Refactor: pull out config-dialog.css
This commit is contained in:
parent
118ce13c5c
commit
dcfdce7636
|
@ -6,6 +6,7 @@
|
||||||
<title i18n-text="manageTitle"></title>
|
<title i18n-text="manageTitle"></title>
|
||||||
<link rel="stylesheet" href="global.css">
|
<link rel="stylesheet" href="global.css">
|
||||||
<link rel="stylesheet" href="manage/manage.css">
|
<link rel="stylesheet" href="manage/manage.css">
|
||||||
|
<link rel="stylesheet" href="manage/config-dialog.css">
|
||||||
<link rel="stylesheet" href="msgbox/msgbox.css">
|
<link rel="stylesheet" href="msgbox/msgbox.css">
|
||||||
<link rel="stylesheet" href="options/onoffswitch.css">
|
<link rel="stylesheet" href="options/onoffswitch.css">
|
||||||
<link rel="stylesheet" href="vendor-overwrites/colorpicker/colorpicker.css">
|
<link rel="stylesheet" href="vendor-overwrites/colorpicker/colorpicker.css">
|
||||||
|
|
102
manage/config-dialog.css
Normal file
102
manage/config-dialog.css
Normal file
|
@ -0,0 +1,102 @@
|
||||||
|
/* config dialog */
|
||||||
|
.config-dialog .config-heading {
|
||||||
|
float: right;
|
||||||
|
margin: -1.25rem 0 0 0;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog label {
|
||||||
|
display: flex;
|
||||||
|
padding: .75em 0;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog .select-resizer {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog label:first-child {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog label:last-child {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog label:not(:first-child) {
|
||||||
|
border-top: 1px dotted #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog label > :first-child {
|
||||||
|
margin-right: 8px;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog label:not([disabled]) > :first-child {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog label:not([disabled]):hover > :first-child {
|
||||||
|
text-shadow: 0 0 0.01px rgba(0, 0, 0, .25);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog input,
|
||||||
|
.config-dialog select,
|
||||||
|
.config-dialog .onoffswitch {
|
||||||
|
width: var(--onoffswitch-width);
|
||||||
|
margin: 0;
|
||||||
|
height: 2em;
|
||||||
|
box-sizing: border-box;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog .select-resizer,
|
||||||
|
.config-dialog select {
|
||||||
|
width: auto;
|
||||||
|
min-width: var(--onoffswitch-width);
|
||||||
|
max-width: 124px;
|
||||||
|
left: auto;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog .onoffswitch {
|
||||||
|
height: auto;
|
||||||
|
margin: calc((2em - 12px) / 2) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog input[type="text"] {
|
||||||
|
padding-left: 0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog label > :last-child {
|
||||||
|
box-sizing: border-box;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-dialog label > :last-child:not(.onoffswitch):not(.select-resizer) > :not(:last-child) {
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-colorview::before,
|
||||||
|
.color-swatch {
|
||||||
|
width: var(--onoffswitch-width) !important;
|
||||||
|
height: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-colorview::before {
|
||||||
|
margin: 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-swatch {
|
||||||
|
position: absolute;
|
||||||
|
border: 1px solid gray;
|
||||||
|
margin-top: -22px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.colorpicker-popup {
|
||||||
|
z-index: 2147483647 !important;
|
||||||
|
border: none !important;
|
||||||
|
box-shadow: 3px 3px 50px rgba(0,0,0,.5) !important;
|
||||||
|
}
|
|
@ -860,109 +860,6 @@ fieldset > label {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* config dialog */
|
|
||||||
.config-dialog .config-heading {
|
|
||||||
float: right;
|
|
||||||
margin: -1.25rem 0 0 0;
|
|
||||||
font-size: 0.9em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog label {
|
|
||||||
display: flex;
|
|
||||||
padding: .75em 0;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog .select-resizer {
|
|
||||||
position: static;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog label:first-child {
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog label:last-child {
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog label:not(:first-child) {
|
|
||||||
border-top: 1px dotted #ccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog label > :first-child {
|
|
||||||
margin-right: 8px;
|
|
||||||
flex-grow: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog label:not([disabled]) > :first-child {
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog label:not([disabled]):hover > :first-child {
|
|
||||||
text-shadow: 0 0 0.01px rgba(0, 0, 0, .25);
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog input,
|
|
||||||
.config-dialog select,
|
|
||||||
.config-dialog .onoffswitch {
|
|
||||||
width: var(--onoffswitch-width);
|
|
||||||
margin: 0;
|
|
||||||
height: 2em;
|
|
||||||
box-sizing: border-box;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog .select-resizer,
|
|
||||||
.config-dialog select {
|
|
||||||
width: auto;
|
|
||||||
min-width: var(--onoffswitch-width);
|
|
||||||
max-width: 124px;
|
|
||||||
left: auto;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog .onoffswitch {
|
|
||||||
height: auto;
|
|
||||||
margin: calc((2em - 12px) / 2) 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog input[type="text"] {
|
|
||||||
padding-left: 0.25em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog label > :last-child {
|
|
||||||
box-sizing: border-box;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-dialog label > :last-child:not(.onoffswitch):not(.select-resizer) > :not(:last-child) {
|
|
||||||
margin-right: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-colorview::before,
|
|
||||||
.color-swatch {
|
|
||||||
width: var(--onoffswitch-width) !important;
|
|
||||||
height: 20px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-colorview::before {
|
|
||||||
margin: 1px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatch {
|
|
||||||
position: absolute;
|
|
||||||
border: 1px solid gray;
|
|
||||||
margin-top: -22px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.colorpicker-popup {
|
|
||||||
z-index: 2147483647 !important;
|
|
||||||
border: none !important;
|
|
||||||
box-shadow: 3px 3px 50px rgba(0,0,0,.5) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes fadein {
|
@keyframes fadein {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user