Files
svgedit/dist/editor/svgedit.css
JFH 1af0cd0572 V7 preview (#480)
* #issue-fix The new menu will ask if you want to erase the current content but it will ignore the answer

* #issue-fix  dialog needs to be closer than the original

* #issue-fix main menu alignment changes

* #issue_fix double click and opensvg issue fixed

* #issue-fix process_cancel change to seConfirm

* #issue-fix review how the top toolbar display when many buttons are displayed

* #issue-fix unwanted css reoved

* #issue-fix BOTTOM TOOLS Make sure all features of the bottom toolbar are working

* #issue-fix IMPORT IMAGE menu open issue fixed

* #issue-fix alert dialog overwrite style

* #issue-fix lint issue fixed

* npm update + associated fixes

* #36 look of opacity button should like the zoom button (without the dropdown button)

* #37 Clicking anywhere on the bottom bar (for example below the opacity button is displaying the “color popup”.)

* #38 The opacity button does not update with the current element

* #42 When you import an image, it works well but the dialog should disappear automatically

* Fixes #53: 4th option for the background display fixed

* Fixes #53: 4th option for the background fixed

* #49 the x button does not work

* Fixes #41: Alignment fixes in bottom bar

* fix test scenario

* #39 opacity button/stroke size/radius button don’t allow the 0 value

* #41 The look and alignment of stroke size and stroke style should be consistent with the rest of the bottom bar.

* #44 Text font dropdown is broken

* #52 Fix the export

* Fixes #44: Text font dropdown fixed

* Fixes #44: Text font dropdown fixed

* Fixes #44: Text font dropdown fixed

* Fixes #44: Text font dropdown fixed

* Update index.html

* update husky

* fixes

* moves from index.html to js

* fix #66

* fix #48 first set of new icons

* Reorganize tools in left panel to be more intuitive

* Update button styles to adapt to new icons

* Fix #48 new set of icons for alignments

* Variabilisation of icon bkgd colors
Update of color choice to fit new icons design

* Update canvas and rulers colors

* Improve layer handle design

* Modernize SVG Logo but keeping original spirit

* Fix #48 continue improve icons

* Continue to reorganise left panel

* Update right panel handle for layers

* Fix #48 new set of icons for main menu

* Improve main menu design

* Rework menu organisation

* Rework menu organisation

* Update input element design

* New icons

* Improve Zoom Module

* Improve Color Picker Module

* New icons

* New icons

* #65 restore the feature of start/end marker lines partially did

* #64 The export dialog needs to include the quality options (except for PDF)

* #39 opacity button/stroke size/radius button don’t allow the 0 value

* #39 eslint changes

* #69 menu button style overwrite

* #65 restore the feature of start/end marker lines

* #43 With a small window, the look of the top toolbar is broken

* #43 tool top alignment revert

* #46 Move this jQuery component to a web component  for graduate and picker components

* #46 Move this jQuery component to a web component

* remove some non standard lint rules

* #46 picker convert as pure javascript changes

* #46 jquery plugin convert to pure javascript

* #46 jquery plugin change to pure javascript

* #46 jquery remove and convert to pure javascript

* #46 slider issue fixed

* #46 ColorValuePicker and js convertion

* #46 globals $ remov from slider class

* #46 jquery convert pure javascript changes

* #46 jquery to js convertion changes

* #46 paintbox and current element color set issue fixed

* #46 unwanted files removed

* #46 $.extend modify changes

* #46 extend modifiey changes

* #46 $.extend change to pure javascript

* #46 extend and data changes

* #46 jquery removed

* #45 These buttons don't work and dropdown is broken

* #45 These buttons don't work and dropdown is broken

* #45 These buttons don't work and dropdown is broken commit reverted

* #43 With a small window, the look of the top toolbar is broken

* Update jQuery.jPicker.js

* #76 draggable modification changes

* #76 jquery-ui-1.8.17.custom.min.js removed from editor

* #76 jquery ui file removed

* npm update

* #77 console issue fixed

* #77 <SVG> button issue fixed

* #77 shortkey issue fixed

* #77 jquery hotkeys plugin changes

* #77 hotkey plugin related changes

* #78 hotkey related code comment.

* #78 js-hotkeys/jquery.hotkeys.min.js file removed from svgedit.js

* #51 Rewrite the color palette without elix

* #81 unwanted files removed

* #81 folder name renamed

* #81 folder rename changes

* #81 jquery-ui  folder renamed

* #81 jquery modify changes

* #81 globals $ removed

Co-authored-by: Agriya Dev5 <agriya.dev5@agriya.in>
Co-authored-by: mathieucura <mathieu@optimistik.fr>
2021-03-05 12:45:07 +01:00

728 lines
11 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
:root{
--main-bg-color: #72797A;
--text-color: #000000;
--border-color: #808080;
--canvas-bg-color: #B2B2B2;
--link-color: #19c;
--ruler-color: #B2B2B2;
--icon-bg-color: #72797A;
--icon-bg-color-hover: #2B3C45;
--input-color: #B2B2B2;
}
body {
background: var(--main-bg-color);
}
html, body, div{
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-o-user-select: text;
user-select: text;
/* this will work for QtWebKit in future */
-webkit-user-drag: text;
}
#svg_editor * {
transform-origin: 0 0;
-moz-transform-origin: 0 0;
-o-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
}
#svg_editor {
font-size: 8pt;
font-family: Verdana, Helvetica, Arial;
color: var(--text-color);;
}
a {
color:var(--link-color);
}
hr {
border: none;
border-bottom: 1px solid var(--border-color);
}
#linkLabel > svg {
height: 20px;
padding-top: 4px;
}
#sidepanels {
display: inline-block;
position:absolute;
top: 40px;
bottom: 40px;
right: 0;
width: 2px;
padding: 10px;
border-color: var(--border-color);
border-style: solid;
border-width: 1px;
border-left: none;
overflow-x:hidden;
overflow-y:visible;
}
#layerpanel {
display: inline-block;
position:relative;
top: 0px;
bottom: 0;
left: 12px;
width: 0;
overflow: hidden;
margin: 0;
-moz-user-select: none;
-webkit-user-select: none;
}
/*
border-style: solid;
border-color: #666;
border-width: 0px 0px 0px 1px;
*/
#sidepanel_handle {
display: inline-block;
position: absolute;
background-color: --main-bg-color;
color: #fff;
font-weight: 100;
left: 0;
top: 40%;
width: 1em;
padding: 5px 5px 5px 5px;
margin-left: 6px;
cursor: pointer;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-user-select: none;
-webkit-user-select: none;
}
#sidepanel_handle * {
cursor: pointer;
-moz-user-select: none;
-webkit-user-select: none;
}
#layerbuttons {
margin: 0;
padding: 0;
padding-left: 2px;
padding-right: 2px;
width: 125px;
height: 20px;
border-right: 1px solid #FFFFFF;
border-bottom: 1px solid #FFFFFF;
border-left: 1px solid var(--border-color);
border-top: 1px solid var(--border-color);
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
#layerlist {
margin: 1px;
padding: 0;
width: 127px;
border-collapse: collapse;
border: 1px solid var(--border-color);
background-color: #FFFFFF;
}
#layerlist tr.layer {
background-color: #FFFFFF;
margin: 0;
padding: 0;
}
#layerlist tr.layersel {
border: 1px solid var(--border-color);
background-color: #CCCCCC;
}
#layerlist td.layervis {
width: 22px;
cursor: pointer;
}
#layerlist td.layerinvis {
background-image: none;
cursor: pointer;
}
#layerlist td.layervis * {
display: block;
}
#layerlist td.layerinvis * {
display: none;
}
#layerlist td.layername {
cursor: pointer;
}
#layerlist td.layername:hover {
color: blue;
font-style: italic;
}
#layerlist tr.layersel td.layername {
font-weight: bold;
}
#selLayerLabel {
white-space: nowrap;
}
#selLayerNames {
display: block;
}
/* Main button
—————————————————————————————*/
#main_button {
position: absolute;
top: 4px;
left: 5px;
z-index: 5;
color: #fff;
border-radius: 3px;
}
#main_button:hover {
background-color: var(--icon-bg-color-hover);
color: #fff;
}
#main_icon {
position: relative;
top: -2px;
left: -2px;
width: 95px;
line-height: 26px;
}
#main_icon:hover {
background: #eee !important;
}
#main_icon.buttondown {
background: #eee !important;
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
border-radius: 3px 3px 0 0;
}
#logo {
margin-top: -2px;
}
#logo img {
border: 0;
width: 28px;
height: 28px;
}
#main_icon > div {
float: left;
}
#main_button .dropdown {
position: absolute;
right: 7px;
top: 4px;
}
#main_icon span {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: block;
z-index: 2;
font-weight: bold;
padding-left: 34px;
line-height: 32px;
font-family: sans-serif;
}
#main_menu {
z-index: 12;
background: #eee;
position: relative;
width: 230px;
padding: 5px;
-moz-box-shadow: #555 1px 1px 4px;
-webkit-box-shadow: #555 1px 1px 4px;
box-shadow: #555 1px 1px 4px;
font-size: 1.1em;
display: none;
overflow: hidden;
clear: both;
top: -9px;
}
#main_menu ul,
#main_menu li {
list-style: none;
margin: 0;
padding: 0;
}
#main_menu li {
/* height: 35px;*/
line-height: 22px;
padding-top: 7px;
padding-left: 7px;
margin: -5px;
overflow: auto;
cursor: pointer;
}
#main_menu li:hover {
background: #FFC;
}
#main_menu li > div {
float: left;
padding-right: 5px;
}
#main_menu p {
margin-top: 5px;
}
/*—————————————————————————————*/
#tools_top {
position: absolute;
left: 105px;
top: 2px;
min-height: 40px;
border-bottom: none;
overflow: auto;
right:2px;
}
#tools_top .tool_sep {
margin-top: 5px;
}
#tools_top > div > * {
float: left;
margin-right: 1px;
}
#tools_top se-input {
margin-top: 6px;
height: 15px;
}
#tools_top se-spin-input, #tools_top se-list {
margin-top: 5px;
height: 15px;
}
#tools_top se-dropdown-list {
margin-top: 5px;
height: 15px;
}
/*—————————————————————————————*/
#tools_bottom {
position: absolute;
left: 40px;
right: 0;
bottom: 0;
height: 33px;
overflow: visible;
}
#tools_bottom * {
float: left;
margin-right: 2px;
}
#tools_bottom se-spin-input {
float: left;
vertical-align: middle;
display:flex;
align-items: center;
}
#tools_bottom elix-dropdown-list{
width:22px;
}
/*—————————————————————————————*/
#tools_left {
position: absolute;
border-right: none;
width: 32px;
top: 40px;
left: 1px;
margin-top: -2px;
padding-left: 2px;
background: --main-bg-color;
z-index: 4;
}
/*—————————————————————————————*/
#workarea.wireframe #svgcontent * {
fill: none;
stroke: #000;
stroke-width: 1px;
stroke-opacity: 1.0;
stroke-dasharray: 0;
opacity: 1;
pointer-events: stroke;
filter: none;
}
#workarea.wireframe #svgcontent text {
fill: #000;
stroke: none;
}
#workarea.wireframe #canvasBackground > rect {
fill: #FFF !important;
}
#editor_panel, #history_panel {
height: 34px;
float: left;
}
#multiselected_panel .selected_tool {
vertical-align: 12px;
}
/*TODO: Adjust position of rulers are not visible*/
#cur_context_panel {
position: absolute;
top: 57px;
left: 56px;
line-height: 22px;
overflow: auto;
padding-left: 5px;
font-size: 12px;
background: rgba(0, 0, 0, 0.8);
color: #ccc;
padding: 0 10px;
border-radius: 0 0 3px 0;
}
#cur_context_panel a {
float: none;
text-decoration: none;
}
#cur_context_panel a:hover {
text-decoration: underline;
}
div.toolset, div.toolset > * {
float: left;
}
div.toolset {
height: 34px;
}
div.toolset label span {
/* outline: 1px solid red;*/
padding-top: 3px;
display: inline-block;
}
input[type=text] {
padding: 2px;
}
.dropdown {
position: relative;
}
.dropdown button {
width: 15px;
height: 21px;
margin: 6px 0 0 1px;
padding: 0;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
border-right: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
background-color: #E8E8E8;
}
.dropdown button.down {
border-left: 1px solid var(--border-color);
border-top: 1px solid var(--border-color);
border-right: 1px solid #FFFFFF;
border-bottom: 1px solid #FFFFFF;
background-color: #B0B0B0;
}
.dropdown ul {
list-style: none;
position: absolute;
margin: 0;
padding: 0;
left: -85px;
top: 26px;
z-index: 4;
display: none;
}
.dropup ul {
top: auto;
bottom: 24px;
}
.dropdown li {
display: block;
width: 120px;
padding: 4px;
background: #E8E8E8;
border: 1px solid #B0B0B0;
margin: 0 0 -1px 0;
line-height: 16px;
}
.dropdown li:hover {
background-color: #FFC;
}
.dropdown li.special {
padding: 10px 4px;
}
.dropdown li.special:hover {
background: #FFC;
}
#font_family_dropdown-list li {
font-size: 1.4em;
}
#font_family {
margin-left: 5px;
margin-right: 0;
}
#main_menu li#tool_open, #main_menu li#tool_import {
position: relative;
overflow: hidden;
}
#tool_image {
overflow: hidden;
}
#tool_open input,
#tool_import input,
#tool_image input {
position: absolute;
opacity: 0;
font-size: 10em;
top: -5px;
right: -5px;
margin: 0;
cursor: pointer; /* Sadly doesn't appear to have an effect */
}
.disabled {
opacity: 0.5;
cursor: default;
}
.tool_sep {
width: 1px;
background: #888;
border-left: 1px outset #EEE;
margin: 2px 3px;
padding: 0;
height: 24px;
}
.width_label {
padding-right: 5px;
}
#text {
position: absolute;
left: -9999px;
}
#url_notice {
padding-top: 4px;
display: none;
}
.bottom-icon {
width: 22px;
}
#palette {
float: right;
}
#stroke_expand {
width: 0;
overflow: hidden;
}
#toggle_stroke_tools {
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 25px;
text-align: center;
border-radius: 0 3px 3px 0;
margin: 0;
}
#toggle_stroke_tools:before {
content: '>>';
letter-spacing: -3px;
font-weight: bold;
color: #666;
}
.expanded #toggle_stroke_tools:before {
content: '<<';
}
#toggle_stroke_tools:hover {
background: white;
}
#tool_opacity { right: 0;}
#tool_opacity {
overflow: visible;
}
/**/
#option_lists ul {
display: none;
position: absolute;
height: auto;
z-index: 3;
margin: -10px;
list-style: none;
padding-left: 0;
}
#option_lists .optcols2 {
width: 70px;
margin-left: -15px;
}
#option_lists .optcols3 {
width: 90px;
margin-left: -31px;
}
#option_lists .optcols4 {
width: 130px;
margin-left: -44px;
}
#option_lists ul[class^=optcols] li {
float: left;
}
ul li.current {
background-color: #F4E284;
}
#option_lists ul li {
margin: 0;
border-radius: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
}
#copyright {
text-align: right;
padding-right: .3em;
}
#svg_source_editor {
display: none;
}
.overlay {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background-color: black;
opacity: 0.6;
z-index: 5;
}
#svg_source_editor #svg_source_container {
position: absolute;
top: 30px;
left: 30px;
right: 30px;
bottom: 30px;
background-color: #B0B0B0;
opacity: 1.0;
text-align: center;
border: 1px outset #777;
z-index: 6;
}
#save_output_btns {
display: none;
text-align: left;
}
#save_output_btns p {
margin: .5em 1.5em;
display: inline-block;
}
#bg_blocks {
overflow: auto;
margin-left: 30px;
}
#svg_docprops #svg_docprops_container,
#svg_prefs #svg_prefs_container {
position: absolute;
top: 50px;
padding: 10px;
background-color: #B0B0B0;
border: 1px outset #777;
opacity: 1.0;
/* width: 450px;*/
font-family: Verdana, Helvetica, sans-serif;
font-size: .8em;
z-index: 20001;
}
/* ------------ */
.dropdown li.tool_button {
width: 24px;
}