Updates for compatibility

This commit is contained in:
narcolepticinsomniac 2017-12-07 07:56:29 -05:00 committed by GitHub
parent e6aa5416f9
commit 16da61739d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,36 +79,33 @@ select {
#header h1 { #header h1 {
margin-top: 0; margin-top: 0;
margin-bottom: .3em;
} }
#header a[href^="edit"] { #header a[href^="edit"] {
text-decoration: none; text-decoration: none;
margin-right: 8px;
} }
#add-style-label { #add-style-wrapper {
margin-right: .25em; display: flex;
margin-bottom: .25em; align-items: center;
padding-bottom: 1.5em;
} }
#newStyleAsUsercss-wrapper:not(:hover) input:not(:checked) ~ a svg { #add-style-as-usercss-wrapper {
display: inline-flex;
margin-top: 3px;
}
#add-style-as-usercss-wrapper:not(:hover) input:not(:checked) ~ a svg {
fill: #aaa; fill: #aaa;
} }
#usercss-wiki svg { #add-style-as-usercss-wrapper #usercss-wiki {
margin-top: -2px; position: absolute;
} right: -20px;
top: -3px;
.nobreak {
white-space: nowrap;
}
label.nobreak input {
vertical-align: sub;
margin: 0;
}
.firefox .chromium-only {
display: none;
} }
#installed { #installed {
@ -147,7 +144,7 @@ label.nobreak input {
margin-left: .5ex; margin-left: .5ex;
} }
.svg-icon.configure { .svg-icon.config {
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
@ -264,9 +261,23 @@ label.nobreak input {
} }
/* collapsibles */ /* collapsibles */
#header details:not(#filters) {
padding-bottom: .7em;
}
#add-style-wrapper,
#options :last-child,
#backup :last-child {
margin-bottom: 0;
}
#header details:not([open]),
#header details:not([open]) h2 { #header details:not([open]) h2 {
margin-bottom: -.25em; padding-bottom: 0;
}
#header details[open] summary {
padding-bottom: .5em;
} }
#header summary { #header summary {
@ -274,7 +285,6 @@ label.nobreak input {
margin-left: -13px; margin-left: -13px;
cursor: pointer; cursor: pointer;
outline: none; outline: none;
margin-bottom: 8px;
} }
#header summary h2 { #header summary h2 {
@ -326,6 +336,7 @@ label.nobreak input {
.filter-selection { .filter-selection {
position: relative; position: relative;
left: -9px;
} }
#header label { #header label {
@ -346,10 +357,6 @@ label.nobreak input {
margin-top: -2px; margin-top: -2px;
} }
.firefox #header .filter-selection label .checkmate {
margin: 0;
}
.newUI #newUIoptions > label { .newUI #newUIoptions > label {
padding-left: 0; padding-left: 0;
} }
@ -361,10 +368,7 @@ label.nobreak input {
max-width: 100%; max-width: 100%;
padding-left: 4px; padding-left: 4px;
padding-right: 14px; padding-right: 14px;
} margin-left: 4px;
.firefox .filter-selection select {
padding-left: 0;
} }
.filter-selection .select-arrow { .filter-selection .select-arrow {
@ -382,20 +386,23 @@ label.nobreak input {
left: 16px; left: 16px;
} }
.firefox .select-resizer { #filters label,
left: 16px; #filters .filter-selection {
}
fieldset > label,
fieldset > .filter-selection {
transition: background-color .25s; transition: background-color .25s;
} }
fieldset > label:hover, #filters label:hover,
fieldset > .filter-selection:hover { #filters .filter-selection:hover {
background-color: hsla(0, 0%, 50%, .2); background-color: hsla(0, 0%, 50%, .2);
} }
#only-updates {
position: relative;
left: -5px;
margin-top: 2px;
margin-bottom: 2px;
}
.checkmate { .checkmate {
position: relative; position: relative;
height: 12px; height: 12px;
@ -646,6 +653,7 @@ fieldset > .filter-selection:hover {
align-items: center; align-items: center;
margin-bottom: auto; margin-bottom: auto;
flex-wrap: wrap; flex-wrap: wrap;
position: relative;
} }
#newUIoptions input[type="number"] { #newUIoptions input[type="number"] {
@ -653,6 +661,18 @@ fieldset > .filter-selection:hover {
margin-right: .5em; margin-right: .5em;
} }
#newUIoptions [data-toggle-on-click] {
transform: rotate(-90deg);
cursor: pointer;
right: -16px;
top: 0;
pointer-events: auto;
}
#newUIoptions [data-toggle-on-click][open] {
transform: none;
}
input[id^="manage.newUI"] { input[id^="manage.newUI"] {
margin-left: 0; margin-left: 0;
} }
@ -751,26 +771,14 @@ input[id^="manage.newUI"] {
display: none !important; display: none !important;
} }
fieldset { #filters label {
border-width: 1px;
border-radius: 6px;
margin: 1em 0;
min-width: 0;
max-width: 250px;
}
fieldset > input,
fieldset > label {
display: flex; display: flex;
align-items: center; align-items: center;
}
#header fieldset > label {
padding-left: 20px; padding-left: 20px;
} }
#header fieldset > label input[type="checkbox"]:not(.slider), #filters label input[type="checkbox"]:not(.slider),
#header fieldset > label input[type="checkbox"]:not(.slider):checked + .svg-icon.checked{ #filters label input[type="checkbox"]:not(.slider):checked + .svg-icon.checked{
left: 4px; left: 4px;
} }
@ -778,36 +786,88 @@ fieldset > label {
border: 1px solid transparent; border: 1px solid transparent;
} }
#filters.active { #filters summary h2 {
margin-left: -4px;
}
.active #filters-stats {
background-color: darkcyan; background-color: darkcyan;
border-color: darkcyan; border-color: darkcyan;
color: white; color: white;
font-size: 0.7rem;
font-weight: normal;
padding: 2px 5px;
position: relative;
top: -2px;
} }
#filters:not(.active) #filters-stats { #reset-filters {
position: absolute;
margin-top: 2px;
fill: hsla(180, 50%, 27%, .5);
width: 24px; /* widen the click area a bit */
height: 20px;
padding: 2px;
box-sizing: border-box;
}
#reset-filters:hover {
fill: hsla(180, 50%, 27%, 1);
}
#filters summary:not(.active) #reset-filters,
#filters summary:not(.active) #filters-stats {
display: none; display: none;
} }
#filters-stats::before { #search-wrapper {
content: ": "; display: flex;
align-items: center;
flex-wrap: wrap;
} }
#search { #search {
-webkit-appearance: none; flex-grow: 1;
-moz-appearance: none; margin: 0.25rem 0 0;
background: #fff; background: #fff;
position: relative; height: 20px;
height: 19px;
box-sizing: border-box; box-sizing: border-box;
padding: 2px 3px 3px 4px; padding: 3px 3px 3px 4px;
font: 400 13.3333px Arial; font: 400 12px Arial;
color: #000; color: #000;
border: 1px solid hsl(0, 0%, 66%); border: 1px solid hsl(0, 0%, 66%);
width: calc(100% - 4px);
margin: 0.25rem 4px 0;
border-radius: 0.25rem; border-radius: 0.25rem;
} }
#search-wrapper .info {
margin: 4px -5px 0 8px;
}
#message-box.help-text > div {
max-width: 26rem;
}
.help-text li:not(:last-child) {
margin-bottom: 1em;
}
.help-text mark {
background-color: rgba(128, 128, 128, .15);
color: currentColor;
padding: 2px 6px;
font-weight: bold;
font-family: monospace;
border: 1px solid rgba(128, 128, 128, .25);
display: inline-block;
margin: 2px;
}
.help-text mark.last {
display: block;
width: -moz-min-content;
width: min-content;
white-space: nowrap;
}
#import ul { #import ul {
margin-left: 0; margin-left: 0;
padding-left: 0; padding-left: 0;
@ -868,109 +928,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;
@ -1018,8 +975,7 @@ fieldset > label {
margin-right: 1em; margin-right: 1em;
} }
#backup p, #backup p {
#header fieldset {
margin: 0; margin: 0;
} }
@ -1060,12 +1016,6 @@ fieldset > label {
padding-left: 0; padding-left: 0;
} }
fieldset {
max-width: none;
margin-top: 0;
margin-right: 2em;
}
#header h1, #header h1,
#header h2, #header h2,
#header h3, #header h3,
@ -1095,21 +1045,10 @@ fieldset > label {
.newUI #header > *:not(h1), .newUI #header > *:not(h1),
.newUI #newUIoptions, .newUI #newUIoptions,
#newUIoptions > *, #newUIoptions > * {
fieldset label {
display: inline; display: inline;
} }
fieldset {
border: none;
margin: 0;
padding: 0 0 1em;
}
fieldset legend {
display: none;
}
#header label { #header label {
white-space: nowrap; white-space: nowrap;
} }
@ -1118,3 +1057,29 @@ fieldset > label {
word-break: break-all; word-break: break-all;
} }
} }
@supports (-moz-appearance: none) {
.chromium-only {
display: none;
}
#header .filter-selection label .checkmate {
margin: 0;
}
.filter-selection select {
padding-left: 0;
}
.select-resizer {
left: 16px;
}
#reset-filters {
margin-top: 4px;
}
#filters summary h2 {
margin-left: -2px;
}
}