stylus/options/options.css

399 lines
6.4 KiB
CSS
Raw Normal View History

2017-04-14 11:08:31 +00:00
html.opera {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
2017-04-14 11:08:31 +00:00
}
html.opera body {
width: auto;
}
2017-02-14 15:35:53 +00:00
body {
2018-10-18 20:39:38 +00:00
display: flex;
2018-10-12 20:30:33 +00:00
background: var(--main-bg);
margin: 0;
font-family: "Helvetica Neue", Helvetica, sans-serif;
2017-02-14 15:35:53 +00:00
font-size: 12px;
min-width: 480px;
max-width: 800px;
}
2018-10-12 20:30:33 +00:00
.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;
}
2018-05-12 10:26:39 +00:00
@supports (-moz-appearance:none) {
body {
--addons-page-left-padding: 6px;
2018-10-12 20:30:33 +00:00
--match-ff-bg: hsl(240, 9%, 98%);
2018-05-12 10:26:39 +00:00
/* compensate 'html.firefox .block' padding-left */
width: calc(100% - var(--addons-page-left-padding));
/* match the default FF theme */
2018-10-12 20:30:33 +00:00
background-color: var(--match-ff-bg)
2018-05-12 10:26:39 +00:00
}
html.firefox .block {
padding-left: var(--addons-page-left-padding);
}
}
.firefox .chromium-only {
display: none;
}
.block {
display: flex;
align-items: center;
margin: 1em 0;
2018-10-12 20:30:33 +00:00
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;
2017-02-14 15:35:53 +00:00
}
.items {
width: 70%;
}
label {
display: flex;
margin: .25ex 0;
2017-06-28 10:01:00 +00:00
align-items: center;
2017-02-14 15:35:53 +00:00
}
label > :first-child {
margin-right: 8px;
flex-grow: 1;
}
2018-10-12 20:30:33 +00:00
label:not([disabled]),
label:not([disabled]) * {
cursor: pointer;
}
label:not([disabled]) input[type=number] {
cursor: auto;
}
label:not([disabled]):hover > :first-child {
2018-10-12 20:30:33 +00:00
text-shadow: 0 0 0.01px var(--black-alpha-25);
2017-02-14 15:35:53 +00:00
}
input[type=number],
input[type="color"],
2017-10-08 15:26:23 +00:00
select,
.onoffswitch {
width: 60px;
box-sizing: border-box;
flex-shrink: 0;
}
a {
text-decoration-skip: ink;
}
2017-02-14 15:35:53 +00:00
button {
text-align: center;
}
input[type=number] {
text-align: right;
}
input[type=number]:invalid {
2018-10-12 20:30:33 +00:00
background-color: var(--red-alpha-1);
color: var(--darkred);
}
input[type="color"] {
box-sizing: border-box;
height: 2em;
}
2017-06-28 10:49:04 +00:00
.iconset {
display: flex;
}
.iconset input {
display: block;
}
.iconset input[type="radio"] {
margin: 2px 4px 0 0;
}
#actions {
justify-content: space-around;
align-items: stretch;
2017-12-12 00:27:28 +00:00
padding: 1em;
white-space: nowrap;
margin: 0;
}
.firefox #actions,
.opera #actions {
background-color: transparent;
}
#actions button {
width: auto;
2017-12-12 00:27:28 +00:00
}
#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 {
2017-12-12 00:27:28 +00:00
height: 30px;
padding: 0;
margin: 0;
justify-content: center;
}
2017-12-12 00:27:28 +00:00
html:not(.firefox):not(.opera) #updates {
margin-bottom: 0;
}
#advanced.collapsible:not(.collapsed) {
margin-bottom: 0;
}
2017-11-15 03:48:47 +00:00
#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;
2018-10-12 20:30:33 +00:00
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 {
2018-10-12 20:30:33 +00:00
color: var(--gray-lightness-40);
}
#advanced.collapsible.collapsed h1 {
padding: 0;
2018-10-12 20:30:33 +00:00
color: var(--gray-lightness-40);
}
#advanced.collapsible.collapsed:hover h1 {
2018-10-12 20:30:33 +00:00
color: var(--gray-lightness-20);
}
.collapsible-resizer .svg-icon {
2018-10-12 20:30:33 +00:00
fill: var(--gray-lightness-20);
transition: fill .5s;
height: 16px;
width: 16px;
}
2018-10-12 20:30:33 +00:00
.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 {
2018-10-12 20:30:33 +00:00
fill: var(--gray-lightness-40);
}
#advanced.collapsible.collapsed:hover .collapsible-resizer .svg-icon {
2018-10-12 20:30:33 +00:00
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;
2018-10-12 20:30:33 +00:00
fill: var(--gray-lightness-40);
vertical-align: sub;
}
.svg-inline-wrapper:hover .svg-icon {
2018-10-12 20:30:33 +00:00
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 }
}
2017-12-12 00:27:28 +00:00
@media (hover: none) {
.expanded-note {
font-size: 90%;
white-space: normal;
2018-10-12 20:30:33 +00:00
color: var(--gray-lightness-40);
2017-12-12 00:27:28 +00:00
margin-top: .5em;
hyphens: auto;
}
}