398 lines
6.4 KiB
CSS
398 lines
6.4 KiB
CSS
html.opera {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
}
|
|
|
|
html.opera body {
|
|
width: auto;
|
|
}
|
|
|
|
body {
|
|
background: var(--main-bg);
|
|
margin: 0;
|
|
font-family: "Helvetica Neue", Helvetica, sans-serif;
|
|
font-size: 12px;
|
|
min-width: 480px;
|
|
max-width: 800px;
|
|
}
|
|
|
|
.radio-outer-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.radio-inner-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.radio-inner-wrapper label > :first-child {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.radio-title + label {
|
|
margin-left: auto;
|
|
margin-right: 1.25rem;
|
|
}
|
|
|
|
@supports (-moz-appearance:none) {
|
|
body {
|
|
--addons-page-left-padding: 6px;
|
|
--match-ff-bg: hsl(240, 9%, 98%);
|
|
/* compensate 'html.firefox .block' padding-left */
|
|
width: calc(100% - var(--addons-page-left-padding));
|
|
/* match the default FF theme */
|
|
background-color: var(--match-ff-bg)
|
|
}
|
|
html.firefox .block {
|
|
padding-left: var(--addons-page-left-padding);
|
|
}
|
|
}
|
|
|
|
.firefox .chromium-only {
|
|
display: none;
|
|
}
|
|
|
|
.block {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 1em 0;
|
|
border-bottom: 1px dotted var(--gray-lightness-80);
|
|
padding: 0 16px .75em;
|
|
position: relative;
|
|
}
|
|
|
|
.block:nth-last-child(2) {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.block:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.collapsed, .collapsible h1 {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.collapsed .items {
|
|
display: none;
|
|
}
|
|
|
|
h1 {
|
|
width: 30%;
|
|
margin: 0;
|
|
font-size: 120%;
|
|
font-weight: bold;
|
|
padding-right: 8px;
|
|
box-sizing: border-box;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.items {
|
|
width: 70%;
|
|
}
|
|
|
|
label {
|
|
display: flex;
|
|
margin: .25ex 0;
|
|
align-items: center;
|
|
}
|
|
|
|
label > :first-child {
|
|
margin-right: 8px;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
label:not([disabled]),
|
|
label:not([disabled]) * {
|
|
cursor: pointer;
|
|
}
|
|
|
|
label:not([disabled]) input[type=number] {
|
|
cursor: auto;
|
|
}
|
|
|
|
label:not([disabled]):hover > :first-child {
|
|
text-shadow: 0 0 0.01px var(--black-alpha-25);
|
|
}
|
|
|
|
input[type=number],
|
|
input[type="color"],
|
|
select,
|
|
.onoffswitch {
|
|
width: 60px;
|
|
box-sizing: border-box;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
a {
|
|
text-decoration-skip: ink;
|
|
}
|
|
|
|
button {
|
|
text-align: center;
|
|
}
|
|
|
|
input[type=number] {
|
|
text-align: right;
|
|
}
|
|
|
|
input[type=number]:invalid {
|
|
background-color: var(--red-alpha-1);
|
|
color: var(--darkred);
|
|
}
|
|
|
|
input[type="color"] {
|
|
box-sizing: border-box;
|
|
height: 2em;
|
|
}
|
|
|
|
.iconset {
|
|
display: flex;
|
|
}
|
|
|
|
.iconset input {
|
|
display: block;
|
|
}
|
|
|
|
.iconset input[type="radio"] {
|
|
margin: 2px 4px 0 0;
|
|
}
|
|
|
|
#actions {
|
|
justify-content: space-around;
|
|
align-items: stretch;
|
|
padding: 1em;
|
|
white-space: nowrap;
|
|
margin: 0;
|
|
}
|
|
|
|
.firefox #actions,
|
|
.opera #actions {
|
|
background-color: transparent;
|
|
}
|
|
|
|
#actions button {
|
|
width: auto;
|
|
}
|
|
|
|
#actions button:not(:last-child) {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
[data-cmd="check-updates"] button {
|
|
position: relative;
|
|
}
|
|
|
|
.update-in-progress [data-cmd="check-updates"] {
|
|
opacity: .5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.update-in-progress #update-progress {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
background-color: currentColor;
|
|
content: "";
|
|
opacity: .35;
|
|
}
|
|
|
|
#updates-installed {
|
|
position: absolute;
|
|
font-size: 85%;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
#updates-installed::after {
|
|
content: attr(data-value);
|
|
margin-left: .5ex;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#updates-installed:not([data-value]),
|
|
#updates-installed[data-value=""] {
|
|
display: none;
|
|
}
|
|
|
|
#advanced.collapsible.collapsed {
|
|
height: 30px;
|
|
padding: 0;
|
|
margin: 0;
|
|
justify-content: center;
|
|
}
|
|
|
|
html:not(.firefox):not(.opera) #updates {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
#advanced.collapsible:not(.collapsed) {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
#advanced.collapsible:not(.collapsed) .collapsible-resizer,
|
|
#advanced:not(.collapsible) .collapsible-resizer {
|
|
padding-right: 8px;
|
|
box-sizing: border-box;
|
|
width: 30%;
|
|
}
|
|
|
|
#advanced.collapsible h1 {
|
|
width: unset;
|
|
padding: 0;
|
|
color: var(--gray-lightness-20);
|
|
transition: color .5s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
#advanced:not(.collapsible) .collapsible-resizer h1 {
|
|
width: unset;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
}
|
|
|
|
#advanced.collapsible:not(.collapsed) h1:hover {
|
|
color: var(--gray-lightness-40);
|
|
}
|
|
|
|
#advanced.collapsible.collapsed h1 {
|
|
padding: 0;
|
|
color: var(--gray-lightness-40);
|
|
}
|
|
|
|
#advanced.collapsible.collapsed:hover h1 {
|
|
color: var(--gray-lightness-20);
|
|
}
|
|
|
|
.collapsible-resizer .svg-icon {
|
|
fill: var(--gray-lightness-20);
|
|
transition: fill .5s;
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
|
|
.action-elements {
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.icon-wrapper {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.action-elements input,
|
|
.style-name-action input {
|
|
margin: 0 3px -1px;
|
|
}
|
|
|
|
.icon-wrapper.use-text {
|
|
margin: 0 3px;
|
|
}
|
|
|
|
.icon-wrapper.use-edit {
|
|
margin: 0 5px 0 6px;
|
|
}
|
|
|
|
.action-elements label > :first-child,
|
|
.style-name-action label > :first-child {
|
|
margin: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.action-elements label,
|
|
.style-name-action label {
|
|
width: 56px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.icon-wrapper .svg-icon {
|
|
fill: var(--gray-lightness-40);
|
|
transition: fill .5s;
|
|
}
|
|
|
|
label:hover .icon-wrapper .svg-icon,
|
|
input:checked + .icon-wrapper .svg-icon {
|
|
fill: var(--black);
|
|
}
|
|
|
|
.svg-icon.text,
|
|
.svg-icon.vector {
|
|
height: 16px;
|
|
}
|
|
|
|
.svg-icon.edit {
|
|
height: 18px;
|
|
}
|
|
|
|
.svg-icon.double-toggle {
|
|
height: 22px;
|
|
}
|
|
|
|
#advanced.collapsible.collapsed .collapsible-resizer .svg-icon,
|
|
#advanced.collapsible:not(.collapsed) .collapsible-resizer h1:hover .svg-icon {
|
|
fill: var(--gray-lightness-40);
|
|
}
|
|
|
|
#advanced.collapsible.collapsed:hover .collapsible-resizer .svg-icon {
|
|
fill: var(--gray-lightness-20);
|
|
}
|
|
|
|
#advanced.collapsible h1 .svg-icon {
|
|
margin-left: 2px;
|
|
}
|
|
|
|
#advanced.collapsible.collapsed .is-expanded,
|
|
#advanced:not(.collapsible) .collapsible-resizer .svg-icon {
|
|
display: none;
|
|
}
|
|
|
|
#advanced.collapsible:not(.collapsed) .is-collapsed {
|
|
display: none;
|
|
}
|
|
|
|
.svg-inline-wrapper .svg-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
fill: var(--gray-lightness-40);
|
|
vertical-align: sub;
|
|
}
|
|
|
|
.svg-inline-wrapper:hover .svg-icon {
|
|
fill: var(--black);
|
|
}
|
|
|
|
#message-box.note > div {
|
|
max-width: calc(100vw - 6rem);
|
|
}
|
|
|
|
.opera #message-box.note,
|
|
.firefox #message-box.note {
|
|
background-color: transparent;
|
|
}
|
|
|
|
@keyframes fadeinout {
|
|
0% { opacity: 0 }
|
|
10% { opacity: 1 }
|
|
25% { opacity: 1 }
|
|
100% { opacity: 0 }
|
|
}
|
|
|
|
@media (hover: none) {
|
|
.expanded-note {
|
|
font-size: 90%;
|
|
white-space: normal;
|
|
color: var(--gray-lightness-40);
|
|
margin-top: .5em;
|
|
hyphens: auto;
|
|
}
|
|
}
|