| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085 |
- :root {
- --header-width: 280px;
- --checkbox-width: 24px;
- --name-padding-left: 40px;
- --name-padding-right: 40px;
- --actions-width: 75px;
- --onoffswitch-width: 60px;
- }
- body {
- margin: 0;
- font: 12px arial, sans-serif;
- /* Firefox: fill the entire page for drag'n'drop to work */
- display: flex;
- height: 100%;
- }
- body.all-styles-hidden-by-filters:before,
- body.all-styles-hidden-by-filters:after {
- position: absolute;
- left: calc(3rem + var(--header-width));
- color: hsla(180, 40%, 45%, .3);
- animation: fadein 3s;
- }
- body.all-styles-hidden-by-filters:before {
- content: "\2190"; /* left arrow */
- font-size: 3rem;
- top: 3.5rem;
- }
- body.all-styles-hidden-by-filters:after {
- font-size: 1.5rem;
- position: absolute;
- top: 3rem;
- }
- a, .disabled a:hover {
- color: #000;
- transition: color .5s;
- text-decoration-skip: ink;
- }
- a:hover {
- color: #666;
- }
- select {
- font-size: 12px;
- }
- .nowrap {
- white-space: nowrap;
- }
- .nowrap > * {
- white-space: nowrap;
- overflow-x: hidden;
- text-overflow: ellipsis;
- }
- #header {
- width: var(--header-width);
- height: 100vh;
- position: fixed;
- top: 0;
- padding: 15px;
- border-right: 1px dashed #AAA;
- -webkit-box-shadow: 0 0 50px -18px black;
- box-shadow: 0 0 50px -18px black;
- overflow: auto;
- box-sizing: border-box;
- z-index: 9;
- }
- #check-all-updates {
- max-width: 220px;
- }
- #header h1 {
- margin-top: 0;
- margin-bottom: .3em;
- }
- #header a[href^="edit"] {
- text-decoration: none;
- margin-right: 8px;
- }
- #add-style-wrapper {
- display: flex;
- align-items: center;
- padding-bottom: 1.5em;
- }
- #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;
- }
- #add-style-as-usercss-wrapper #usercss-wiki {
- position: absolute;
- right: -20px;
- top: -3px;
- }
- #installed {
- position: relative;
- padding-left: var(--header-width);
- box-sizing: border-box;
- width: 100%;
- }
- .entry {
- margin: 0;
- padding: 1.25em 2em;
- border-top: 1px solid #ddd;
- }
- .entry:first-child {
- border-top: none;
- }
- .svg-icon {
- cursor: pointer;
- vertical-align: middle;
- transition: fill .5s;
- width: 20px;
- height: 20px;
- fill: #666;
- }
- .svg-icon:hover {
- fill: #000;
- }
- .svg-icon.info {
- width: 14px;
- height: 16px;
- margin-left: .5ex;
- }
- .svg-icon.config {
- width: 16px;
- height: 16px;
- }
- .homepage {
- margin-left: 0.1em;
- margin-right: 0.1em;
- }
- .homepage[href=""] {
- display: none;
- }
- .homepage .svg-icon {
- margin-top: -4px;
- margin-left: .5ex;
- }
- .style-name {
- margin-top: .25em;
- overflow-wrap: break-word;
- }
- .style-name a, .style-edit-link {
- text-decoration: none;
- }
- .applies-to {
- overflow-wrap: break-word;
- }
- .applies-to,
- .actions {
- padding-left: 15px;
- margin-bottom: 0;
- }
- .actions {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- }
- .actions > * {
- margin-bottom: .25rem;
- }
- .actions > *:not(:last-child) {
- margin-right: .25rem;
- }
- .applies-to label {
- margin-right: .5ex;
- }
- .applies-to .target:hover {
- background-color: rgba(128, 128, 128, .15);
- }
- .applies-to-extra:not([open]) {
- display: inline;
- margin-left: 1ex;
- }
- .applies-to-extra-expander {
- font-weight: bold;
- cursor: pointer;
- outline: none;
- }
- .applies-to-extra-expander {
- list-style-type: none; /* for FF, allegedly */
- }
- .applies-to-extra-expander::-webkit-details-marker {
- display: none;
- }
- .disabled h2::after, .entry.usercss .style-name-link::after {
- font-weight: normal;
- font-size: 11px;
- text-transform: lowercase;
- background: rgba(128, 128, 128, .2);
- padding: 2px 5px 3px;
- border-radius: 4px;
- margin-left: 1ex;
- }
- .entry.usercss .style-name-link::after {
- content: "usercss";
- background-color: hsla(180, 100%, 20%, 1);
- color: white;
- }
- .disabled h2 .style-name-link,
- .disabled h2::after,
- .disabled .actions,
- .disabled .applies-to {
- opacity: 0.6;
- font-weight: normal;
- transition: opacity .5s .1s;
- }
- .disabled:hover .actions {
- opacity: 1;
- }
- .disabled .disable {
- display: none;
- }
- .enabled .enable {
- display: none;
- }
- /* 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 {
- padding-bottom: 0;
- }
- #header details[open] summary {
- padding-bottom: .5em;
- }
- #header summary {
- align-items: center;
- margin-left: -13px;
- cursor: pointer;
- outline: none;
- }
- #header summary h2 {
- display: inline-block;
- border-bottom: 1px dotted transparent;
- margin-top: .1em;
- margin-bottom: .1em;
- }
- #header summary:hover h2 {
- border-color: #bbb;
- }
- /* compact layout */
- .newUI #installed {
- display: table;
- margin-top: .75rem;
- margin-bottom: .75rem;
- }
- .newUI .disabled {
- opacity: 1;
- }
- .newUI .entry {
- display: table-row;
- }
- .newUI .entry:nth-child(2n) {
- background-color: rgba(128, 128, 128, 0.05);
- }
- .newUI .entry > * {
- padding: .9rem 0 1rem;
- margin: 0;
- display: table-cell;
- vertical-align: middle;
- }
- /************ checkbox & select************/
- .newUI .checker {
- margin: 0;
- }
- #newUIoptions > div {
- margin: 4px 0;
- }
- .filter-selection {
- position: relative;
- left: -9px;
- }
- #header label {
- padding-left: 16px;
- position: relative;
- }
- #header .filter-selection label {
- display: flex;
- align-items: center;
- height: 18px;
- width: 100%;
- padding: 0 0 0 4px;
- }
- #header .filter-selection label .checkmate {
- vertical-align: middle;
- margin-top: -2px;
- }
- .newUI #newUIoptions > label {
- padding-left: 0;
- }
- .filter-selection select {
- height: 18px;
- outline: none;
- border: none;
- max-width: 100%;
- padding-left: 4px;
- padding-right: 14px;
- margin-left: 4px;
- }
- .filter-selection .select-arrow {
- margin-top: 2px;
- top: 0;
- right: 0;
- }
- .select-resizer {
- cursor: default;
- border: none;
- max-width: calc(100% - 2em);
- position: absolute;
- top: 0;
- left: 16px;
- }
- #filters label,
- #filters .filter-selection {
- transition: background-color .25s;
- }
- #filters label:hover,
- #filters .filter-selection:hover {
- background-color: hsla(0, 0%, 50%, .2);
- }
- #only-updates {
- position: relative;
- left: -5px;
- margin-top: 2px;
- margin-bottom: 2px;
- }
- .checkmate {
- position: relative;
- height: 12px;
- width: 12px;
- display: inline-flex;
- }
- .entry .checkmate {
- vertical-align: middle;
- margin: -2px 1ex 0 0;
- }
- .newUI .entry .svg-icon.checked,
- .newUI .entry:hover .svg-icon.checked {
- fill: #000;
- }
- .newUI .entry input[type="checkbox"]:not(.slider) {
- pointer-events: all;
- }
- .newUI .style-name {
- font-size: 14px;
- font-family: sans-serif;
- text-indent: calc(var(--checkbox-width) - var(--name-padding-left) - 4px);
- padding-left: var(--name-padding-left);
- padding-right: var(--name-padding-right);
- position: relative;
- cursor: pointer;
- }
- .newUI .entry .style-name:hover::before {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: linear-gradient(to right, hsla(180, 50%, 30%, 0.2), hsla(180, 20%, 10%, 0.05) 50%, transparent);
- pointer-events: none;
- }
- .newUI .entry.enabled .style-name:hover .style-name-link {
- color: hsla(180, 100%, 15%, 1);
- }
- .newUI .homepage .svg-icon {
- position: absolute;
- margin-top: 0;
- margin-left: -28px;
- }
- .newUI .actions {
- width: var(--actions-width);
- height: 20px;
- white-space: nowrap;
- }
- .newUI .actions > * {
- margin: 0;
- }
- .newUI .actions .svg-icon {
- margin-right: 8px;
- }
- .newUI .updater-icons > * {
- transition: opacity 1s;
- display: none;
- }
- .newUI .entry .svg-icon {
- fill: #999;
- }
- .newUI .entry:hover .svg-icon {
- fill: #666;
- }
- .newUI .entry:hover .svg-icon:hover {
- fill: #000;
- }
- .newUI .checking-update .check-update {
- opacity: 0;
- display: inline;
- pointer-events: none;
- }
- .newUI .can-update .update,
- .newUI .no-update:not(.update-problem):not(.update-done) .up-to-date,
- .newUI .no-update.update-problem .check-update,
- .newUI .update-done .updated {
- display: inline;
- }
- .newUI .up-to-date svg,
- .newUI .updated svg {
- cursor: auto;
- }
- .newUI .update-done .updated svg {
- top: -4px;
- position: relative;
- /* unprefixed since Chrome 53 */
- -webkit-filter: drop-shadow(0 4px 0 currentColor);
- filter: drop-shadow(0 5px 0 currentColor);
- }
- .newUI .can-update .update,
- .newUI .no-update.update-problem .check-update {
- cursor: pointer;
- }
- .newUI .can-update[data-details$="locally edited"] .update svg,
- .newUI .update-problem .check-update svg {
- fill: #ef6969;
- }
- .newUI .can-update[data-details$="locally edited"]:hover .update svg,
- .newUI .entry.update-problem:hover .check-update svg {
- fill: #fd4040;
- }
- .newUI .can-update[data-details$="locally edited"]:hover .update svg:hover,
- .newUI .entry.update-problem:hover .check-update svg:hover {
- fill: red;
- }
- .newUI .updater-icons > :not(.check-update):after {
- content: attr(title);
- position: absolute;
- margin-top: 18px;
- margin-left: -36px;
- padding: 1ex 1.5ex;
- border: 1px solid #ded597;
- background-color: #fffbd6;
- border-radius: 4px;
- box-shadow: 2px 3px 10px rgba(0,0,0,.25);
- font-size: 90%;
- animation: fadeout 10s;
- animation-fill-mode: both;
- z-index: 999;
- }
- .newUI .update-problem .check-update:after {
- background-color: red;
- border: 1px solid #d40000;
- color: white;
- animation: none;
- }
- .newUI .can-update .update:after {
- animation: none;
- }
- .newUI .can-update:not([data-details$="locally edited"]) .update:after {
- background-color: #c0fff0;
- border: 1px solid #89cac9;
- }
- .newUI .applies-to {
- padding-top: .25rem;
- padding-bottom: .25rem;
- }
- .newUI .targets {
- overflow: hidden;
- }
- .newUI .applies-to.expanded .targets {
- max-height: none;
- }
- .newUI .target {
- display: block;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- max-width: calc(100vw - var(--header-width) - var(--actions-width) - var(--name-padding-left) - 25vw - var(--name-padding-right));
- box-sizing: border-box;
- padding-right: 1rem;
- line-height: 18px;
- }
- .newUI .applies-to .expander {
- margin: 0;
- cursor: pointer;
- font-size: 3ex;
- line-height: .5ex;
- vertical-align: super;
- letter-spacing: .1ex;
- }
- .newUI .applies-to:not(.has-more) .expander {
- display: none;
- }
- .newUI .has-favicons .applies-to .expander {
- padding-left: 20px;
- }
- .newUI .target:hover {
- background-color: inherit;
- }
- .newUI .target img {
- width: 16px;
- height: 16px;
- vertical-align: sub;
- margin-left: -20px;
- margin-right: 4px;
- transition: opacity .5s, filter .5s;
- /* unprefixed since Chrome 53 */
- -webkit-filter: grayscale(1);
- filter: grayscale(1);
- /* workaround for the buggy CSS filter: images in the hidden overflow are shown on Mac */
- backface-visibility: hidden;
- opacity: .25;
- display: none;
- }
- .newUI .has-favicons .target {
- padding-left: 20px;
- }
- .newUI .has-favicons .target img[src] {
- display: inline;
- }
- .newUI .entry:hover .target img {
- opacity: 1;
- /* unprefixed since Chrome 53 */
- -webkit-filter: grayscale(0);
- filter: grayscale(0);
- }
- #newUIoptions {
- display: none;
- }
- .newUI #newUIoptions {
- display: initial;
- }
- #newUIoptions > * {
- display: flex;
- align-items: center;
- margin-bottom: auto;
- flex-wrap: wrap;
- position: relative;
- }
- #newUIoptions input[type="number"] {
- width: 3em;
- 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"] {
- margin-left: 0;
- }
- #faviconsHelp {
- overflow-y: auto;
- font-size: 90%;
- padding: 1ex 0 2ex 16px;
- }
- #faviconsHelp div {
- display: flex;
- align-items: center;
- margin-top: 1ex;
- }
- /* Default, no update buttons */
- .update,
- .check-update {
- display: none;
- }
- /* Check update button for things that can*/
- .updatable .check-update {
- display: inline;
- }
- /* Update check in progress */
- .checking-update .check-update {
- display: none;
- }
- /* Updates available */
- .can-update .update {
- display: inline;
- }
- .can-update[data-details$="locally edited"] button.update:after {
- content: "*";
- }
- .can-update .check-update {
- display: none;
- }
- /* Updates not available */
- .no-update:not(.update-problem) .check-update {
- display: none;
- }
- /* Updates done */
- .update-done .check-update {
- display: none;
- }
- #apply-all-updates:after {
- content: " (" attr(data-value) ")";
- }
- .update-in-progress #check-all-updates {
- position: relative;
- }
- .update-in-progress #update-progress {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- background-color: currentColor;
- content: "";
- opacity: .35;
- }
- #check-all-updates-force {
- margin-top: 1ex;
- }
- /* highlight updated/added styles */
- .highlight {
- animation: highlight 10s cubic-bezier(0,.82,.47,.98);
- }
- .highlight-quick {
- animation: highlight .5s;
- }
- @keyframes highlight {
- from {
- background-color: rgba(128, 128, 128, .5);
- }
- to {
- background-color: none;
- }
- }
- .hidden {
- display: none !important;
- }
- #filters label {
- display: flex;
- align-items: center;
- padding-left: 20px;
- }
- #filters label input[type="checkbox"]:not(.slider),
- #filters label input[type="checkbox"]:not(.slider):checked + .svg-icon.checked{
- left: 4px;
- }
- #filters {
- border: 1px solid transparent;
- }
- #filters summary h2 {
- margin-left: -4px;
- }
- .active #filters-stats {
- background-color: darkcyan;
- border-color: darkcyan;
- color: white;
- font-size: 0.7rem;
- font-weight: normal;
- padding: 2px 5px;
- position: relative;
- top: -2px;
- }
- #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;
- }
- #search-wrapper {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- }
- #search {
- flex-grow: 1;
- margin: 0.25rem 0 0;
- background: #fff;
- height: 20px;
- box-sizing: border-box;
- padding: 3px 3px 3px 4px;
- font: 400 12px Arial;
- color: #000;
- border: 1px solid hsl(0, 0%, 66%);
- 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 {
- margin-left: 0;
- padding-left: 0;
- list-style: none;
- }
- #import li {
- margin-bottom: .5em;
- }
- #import pre {
- background: #eee;
- overflow: auto;
- margin: 0 0 .5em 0;
- }
- /* drag-n-drop on import button */
- .dropzone:after {
- background-color: rgba(0, 0, 0, 0.7);
- color: white;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- z-index: 1000;
- position: fixed;
- padding: calc(50vh - 3em) calc(50vw - 5em);
- content: attr(dragndrop-hint);
- text-shadow: 1px 1px 10px black;
- font-size: xx-large;
- text-align: center;
- animation: fadein 1s cubic-bezier(.03, .67, .08, .94);
- animation-fill-mode: both;
- }
- .fadeout.dropzone:after {
- animation: fadeout .25s ease-in-out;
- animation-fill-mode: both;
- }
- /* post-import report */
- #message-box details:not([data-id="invalid"]) div:hover {
- background-color: rgba(128, 128, 128, .3);
- }
- #message-box details:not(:last-child) {
- margin-bottom: 1em;
- }
- #message-box details small div {
- margin-left: 1.5em;
- }
- .update-history-log {
- font-size: 11px;
- white-space: pre;
- overflow-x: hidden;
- text-overflow: ellipsis;
- }
- @keyframes fadein {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- @keyframes fadeout {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
- }
- @keyframes fadein-25pct {
- from {
- opacity: 0;
- }
- to {
- opacity: .25;
- }
- }
- @media (max-width: 675px) {
- #installed {
- position: static;
- padding-left: 0;
- overflow: visible;
- }
- #header p,
- #backup {
- display: inline-block;
- }
- #find-editor-styles {
- display: inline-block;
- }
- #backup {
- margin-right: 1em;
- }
- #backup p {
- margin: 0;
- }
- .entry {
- margin: 0;
- }
- }
- @media (max-width: 800px) {
- body {
- flex-direction: column;
- }
- body.all-styles-hidden-by-filters:before {
- content: "\2191"; /* up arrow */
- top: calc(50% + 2.75rem);
- left: 2rem;
- }
- body.all-styles-hidden-by-filters:after {
- top: calc(50% + 4rem);
- left: 3.75rem;
- }
- #header {
- height: auto;
- position: static;
- width: auto;
- border-right: none;
- border-bottom: 1px dashed #AAA;
- overflow: visible;
- -webkit-column-count: 2;
- -moz-column-count: 2;
- column-count: 2;
- }
- #installed {
- padding-left: 0;
- }
- #header h1,
- #header h2,
- #header h3,
- #backup-message {
- display: none;
- }
- .newUI .entry {
- margin: 0;
- }
- .newUI .style-name {
- width: 50%;
- }
- .newUI .target {
- max-width: calc(50vw - var(--actions-width));
- }
- }
- @media (max-width: 500px) {
- #header {
- -webkit-column-count: 1;
- -moz-column-count: 1;
- column-count: 1;
- }
- .newUI #header > *:not(h1),
- .newUI #newUIoptions,
- #newUIoptions > * {
- display: inline;
- }
- #header label {
- white-space: nowrap;
- }
- .newUI .style-name {
- 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;
- }
- }
|