stylus/global.css
narcolepticinsomniac e19c63b65e
Light grey theme
Give me a few minutes. I edited a bunch of files.
2018-07-18 20:31:03 -04:00

330 lines
7.9 KiB
CSS

* {
outline-color: hsl(180, 100%, 34%) !important;
}
::selection {
color: #fff;
background-color: hsl(180, 50%, 34%)
}
::-moz-selection {
color: #fff;
background-color: hsl(180, 50%, 34%)
}
button {
-webkit-appearance: none;
-moz-appearance: none;
user-select: none;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 2px 7px;
border: 1px solid hsl(0, 0%, 56%);
font: 400 13.3333px Arial;
color: hsl(0, 0%, 24%);
background-color: hsl(0, 0%, 100%);
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAYAAADtlXTHAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QwGBBwIHvKt6QAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAL0lEQVQI12NoaGgQZ2JgYGBkYmBgYGZiYGBggrMY4VxsYsyoskQQCB2MWAxAMhkADVECDhlW9CoAAAAASUVORK5CYII=');
background-repeat: repeat-x;
background-size: 100% 100%;
transition: color .25s, background-color .25s, border-color .25s;
}
button:not(:disabled):hover {
color: hsl(0, 0%, 10%);
background-color: hsl(0, 0%, 95%);
border-color: hsl(0, 0%, 46%);
}
button:active {
background-color: hsl(0, 0%, 95%);
border-color: hsl(0, 0%, 46%);
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAYAAADtlXTHAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QwJARIWJNZvuQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAMElEQVQI12NoaGgIZmJgYPjLxMDA8I+JgYHhP5z1Dy7xH5X7jxQCzWQ0A9DEILYBABm5HtJk2jPHAAAAAElFTkSuQmCC');
background-repeat: repeat-x;
background-size: 100% 100%;
}
/* For some odd reason these hovers appear lighter than all other button hovers in every browser */
#message-box.center #message-box-buttons button:not(:disabled):hover {
background-color: hsl(0, 0%, 90%);
border-color: hsl(0, 0%, 50%);
}
input:not([type]),
input[type="number"],
input[type="search"],
input.config-value {
background: hsl(0, 0%, 92%);
color: hsl(0, 0%, 30%);
height: 22px;
min-height: 22px!important;
line-height: 22px;
padding: 0 3px;
font: 400 13.3333px Arial;
border: 1px solid hsl(0, 0%, 66%);
transition: border-color .25s;
}
input[data-focused-via-click]:not([type]):focus,
input[data-focused-via-click][type="number"]:focus,
input[data-focused-via-click][type="search"]:focus,
label[data-focused-via-click] input[type="number"]:focus,
label[data-focused-via-click] + input[type="number"]:focus,
input[data-focused-via-click].config-value:focus,
label[data-focused-via-click] input.config-value:focus {
outline: none;
border-color: hsl(180, 100%, 34%);
}
.svg-icon.checked {
position: absolute;
height: 8px;
width: 8px;
display: none;
fill: hsl(0, 0%, 30%);
margin: 2px 0 0 2px;
}
input[type="checkbox"]:not(.slider):checked + .svg-icon.checked {
display: inline-flex;
transition: fill .1s;
}
input[type="checkbox"]:not(.slider):checked:hover + .svg-icon.checked {
fill: hsl(0, 0%, 10%);
}
input[type="checkbox"]:not(.slider) {
-webkit-appearance: none;
-moz-appearance: none;
position: absolute;
left: 0;
top: 0;
border: 1px solid hsl(0, 0%, 46%);
height: 12px;
width: 12px;
display: inline-flex;
border-radius: 2px;
background-color: hsl(0, 0%, 88%);
margin: 0;
transition: background-color .1s, border-color .1s;
}
input[type="checkbox"]:not(.slider):hover {
border-color: hsl(0, 0%, 10%);
}
input[type="checkbox"]:not(.slider):checked + .svg-icon.checked {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
}
input[type="checkbox"]:not(.slider):disabled {
background-color: transparent;
border-color: hsl(0, 0%, 60%);
}
input[type="checkbox"]:not(.slider):disabled + .svg-icon.checked,
input[type="checkbox"]:not(.slider):disabled:hover + .svg-icon.checked {
fill: hsl(0, 0%, 60%);
}
input[type="checkbox"]:not(.slider):disabled ~ *,
input[type="checkbox"]:not(.slider):disabled:hover ~ * {
color: hsl(0, 0%, 60%);
}
label {
color: hsl(0, 0%, 30%);
transition: color .1s;
}
label:hover {
color: hsl(0, 0%, 10%);
}
select {
-moz-appearance: none;
-webkit-appearance: none;
height: 22px;
font: 400 13.3333px Arial;
color: hsl(0, 0%, 24%);
border: 1px solid hsl(0, 0%, 66%);
padding: 0 20px 0 6px;
transition: color .25s, background-color .25s, border-color .25s, box-shadow .25s;
box-shadow: 0 1px 1px hsla(0, 0%, 0%, .05);
background-color: hsl(0, 0%, 90%);
background-image: linear-gradient(to bottom, hsla(0, 0%, 100%, .5), hsla(0, 0%, 80%, .5));
}
select:hover,
select:focus {
color: hsl(0, 0%, 14%);
border: 1px solid hsl(0, 0%, 60%);
background-color: hsl(0, 0%, 85%);
box-shadow: 0 1px 1px hsla(0, 0%, 0%, .1);
}
select option,
select optgroup {
background-color: hsl(0, 0%, 90%)
}
select:hover + .svg-icon.select-arrow,
select:focus + .svg-icon.select-arrow {
fill: hsl(0, 0%, 30%);
}
.select-resizer {
display: inline-flex!important;
cursor: default;
position: relative;
}
.svg-icon.select-arrow {
pointer-events: none;
cursor: default;
display: inline-flex;
height: 14px;
width: 14px;
fill: hsl(0, 0%, 50%);
position: absolute;
top: 4px;
right: 4px;
transition: fill .25s;
}
input[type="radio"] {
-webkit-appearance: none;
-moz-appearance: none;
background: hsl(0, 0%, 88%);
border-radius: 50%;
border: 1px solid hsl(0, 0%, 60%);
cursor: default;
height: 13px;
width: 13px;
position: relative;
}
input[type="radio"]:after {
content: '';
background-color: transparent;
transform: scale(0);
transform-origin: 50% 50%;
transition: background-color .5s, transform .5s;
border-radius: 50%;
height: 7px;
width: 7px;
left: 2px;
top: 2px;
position: absolute;
}
input[type="radio"]:checked:after {
background-color: hsl(0, 0%, 30%);
transform: scale(1);
}
/* restore disabled state dimming */
button:disabled,
select:disabled,
option:disabled,
select[disabled] > option {
color: graytext;
}
/* global stuff we use everywhere */
.hidden {
display: none !important;
}
[data-focused-via-click] :focus,
[data-focused-via-click]:focus {
outline: none;
}
/* use a readable font for Japanese/Chinese */
.actions:lang(ja) *,
#header:lang(ja) * {
font-family: 'Meiryo UI', system-ui, 'MS Gothic', Arial, sans-serif;
font-weight: normal;
}
.actions:lang(zh) *,
#header:lang(zh) * {
font-family: 'MingLiU', system-ui, Arial, sans-serif;
}
@supports (-moz-appearance: none) {
.moz-appearance-bug .svg-icon.checked,
.moz-appearance-bug .onoffswitch input,
.moz-appearance-bug input[type="radio"]:after {
display: none !important;
}
.moz-appearance-bug input[type="checkbox"] {
-moz-appearance: checkbox !important;
opacity: .6;
filter: brightness(.9)grayscale(1);
transition: opacity .1s;
will-change: opacity;
}
.moz-appearance-bug input[type="checkbox"]:hover,
.moz-appearance-bug #stylus-popup .style-name:hover input[type="checkbox"] {
opacity: 1;
}
.moz-appearance-bug input[type="radio"] {
-moz-appearance: radio !important;
}
.firefox select {
font-size: 13px;
padding: 0 20px 0 2px;
line-height: 22px!important;
}
svg {
transform: scale(1); /* de-blur */
}
/* We can customize everything about number inputs except arrows. They're horrible in Linux FF, so we'll hide them unless hovered or focused. */
.firefox.non-windows input[type="number"] {
-moz-appearance: textfield;
background: #fff;
color: #000;
border: 1px solid hsl(0, 0%, 66%);
}
.firefox.non-windows input[type="number"]:not(:disabled):hover,
.firefox.non-windows input[type="number"]:focus {
-moz-appearance: number-input;
}
.firefox.non-windows input[type="color"] {
background: #fff;
border: 1px solid hsl(0, 0%, 66%);
padding: 4px;
}
.firefox.non-windows .style-name {
font-family: Arial, sans-serif;
}
/* Firefox cannot handle fractions in font-size */
.firefox button:not(.install) {
font-size: 13px;
line-height: 13px;
padding: 3px 7px;
}
.firefox.moz-appearance-bug button:not(.install) {
padding: 2px 4px;
}
}