611 lines
11 KiB
CSS
611 lines
11 KiB
CSS
html, body {
|
|
height: min-content;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
padding: 0 9px 9px;
|
|
font-size: 12px;
|
|
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
margin: 0;
|
|
}
|
|
|
|
.firefox body {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.firefox .chromium-only {
|
|
display: none;
|
|
}
|
|
|
|
.svg-icon.checked {
|
|
position: absolute;
|
|
height: 8px;
|
|
width: 8px;
|
|
display: none;
|
|
fill: #000;
|
|
margin: 2px 0 0 2px;
|
|
}
|
|
|
|
input[type="checkbox"]:checked:hover + .svg-icon.checked,
|
|
.style-name:hover input[type="checkbox"]:checked + .svg-icon.checked {
|
|
fill: hsl(0, 0%, 100%);
|
|
}
|
|
|
|
input[type="checkbox"]:checked + .svg-icon.checked {
|
|
display: inline-flex;
|
|
transition: fill .25s;
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
-moz-appearance: none;
|
|
-webkit-appearance: none;
|
|
border: 1px solid hsl(0, 0%, 20%);
|
|
height: 12px;
|
|
width: 12px;
|
|
display: inline-flex;
|
|
border-radius: 2px;
|
|
background-color: hsl(0, 0%, 94%);
|
|
outline: none;
|
|
margin: 0;
|
|
transition: background-color .25s, border-color .25s;
|
|
}
|
|
|
|
input[type="checkbox"]:checked:hover, .style-name:hover input[type="checkbox"]:checked {
|
|
background-color: hsl(0, 0%, 54%);
|
|
border-color: #000;
|
|
}
|
|
|
|
input[type="checkbox"]:hover, .style-name:hover input[type="checkbox"],
|
|
.entry.disabled .style-name:hover input[type="checkbox"] {
|
|
border-color: #000;
|
|
background-color: hsl(0, 0%, 74%);
|
|
}
|
|
|
|
.entry.disabled input[type="checkbox"],
|
|
.entry.not-applied input[type="checkbox"],
|
|
.entry.disabled input[type="checkbox"] + .svg-icon.checked,
|
|
.entry.not-applied input[type="checkbox"] + .svg-icon.checked {
|
|
transition: background-color .5s ease-in-out .25s, border-color .5s ease-in-out .25s, fill .5s ease-in-out .25s;
|
|
}
|
|
|
|
#no-styles {
|
|
font-style: italic;
|
|
}
|
|
|
|
a {
|
|
color: #000;
|
|
transition: color .5s;
|
|
text-decoration-skip: ink;
|
|
}
|
|
|
|
a:hover {
|
|
color: #666;
|
|
}
|
|
|
|
.left-gutter {
|
|
position: relative;
|
|
display: inline-flex;
|
|
}
|
|
|
|
.style-name .left-gutter {
|
|
pointer-events: none;
|
|
}
|
|
|
|
body > DIV:last-of-type,
|
|
body.blocked > DIV {
|
|
border-bottom: none;
|
|
}
|
|
|
|
#installed {
|
|
border-bottom: 1px solid #000;
|
|
padding-bottom: 2px;
|
|
padding-top: 2px;
|
|
margin: 0 -9px;
|
|
flex-grow: 1;
|
|
width: 100%;
|
|
max-height: 445px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#installed .actions {
|
|
cursor: default;
|
|
display: inline-flex;
|
|
}
|
|
|
|
#installed .actions a {
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* entry */
|
|
|
|
.entry {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 9px;
|
|
height: 26px;
|
|
}
|
|
|
|
.entry:nth-child(even) {
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.entry .style-edit-link {
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.entry .style-edit-link,
|
|
.entry .delete {
|
|
display: inline-flex;
|
|
height: 24px;
|
|
width: 18px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.entry .main-controls {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
overflow: hidden;
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
.entry .style-name {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
align-items: center;
|
|
}
|
|
|
|
.entry .style-name-text {
|
|
color: #000;
|
|
cursor: default;
|
|
font-weight: bold;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
margin: 1px 0 0 4px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.entry .style-name:hover .style-name-text {
|
|
color: #000;
|
|
}
|
|
|
|
.entry.disabled:not(.not-applied) .style-name,
|
|
.entry.disabled:not(.not-applied) .actions,
|
|
.entry.not-applied .style-name,
|
|
.entry.not-applied .actions {
|
|
opacity: .4;
|
|
transition: opacity .5s ease-in-out .25s;
|
|
}
|
|
|
|
#installed.disabled {
|
|
opacity: .2;
|
|
transition: opacity .5s ease-in-out .25s;
|
|
}
|
|
|
|
#installed.disabled:hover,
|
|
#installed.disabled:not(:hover) .entry.disabled:not(.not-applied) .style-name,
|
|
#installed.disabled:not(:hover) .entry.disabled:not(.not-applied) .actions,
|
|
#installed.disabled:not(:hover) .entry.not-applied .style-name,
|
|
#installed.disabled:not(:hover) .entry.not-applied .actions,
|
|
.entry.not-applied:hover .style-name,
|
|
.entry.not-applied:hover .actions,
|
|
.entry.disabled:not(.not-applied):hover .style-name,
|
|
.entry.disabled:not(.not-applied):hover .actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.entry.not-applied .style-name .style-name-text,
|
|
.entry.disabled.not-applied .style-name .style-name-text,
|
|
.entry.not-applied .style-name:hover .style-name-text,
|
|
.entry.disabled.not-applied .style-name:hover .style-name-text {
|
|
color: hsl(0, 100%, 30%);
|
|
}
|
|
|
|
.entry.not-applied .svg-icon,
|
|
.not-applied input[type="checkbox"]:checked + .svg-icon.checked,
|
|
.entry.not-applied .style-name:hover input[type="checkbox"]:checked + .svg-icon.checked {
|
|
fill: hsl(0, 100%, 30%);
|
|
}
|
|
|
|
.entry.not-applied .style-name:hover input[type="checkbox"]:checked + .svg-icon.checked,
|
|
.entry.not-applied a:hover .svg-icon.remove {
|
|
fill: hsl(0, 100%, 50%);
|
|
}
|
|
|
|
.entry.not-applied a:hover .svg-icon.edit {
|
|
fill: hsl(170, 70%, 38%);
|
|
}
|
|
|
|
.entry.not-applied input[type="checkbox"],
|
|
.entry.not-applied .style-name:hover input[type="checkbox"] {
|
|
background-color: hsl(0, 0%, 100%);
|
|
border-color: hsl(0, 100%, 30%);
|
|
}
|
|
|
|
.entry.not-applied .style-name:hover input[type="checkbox"],
|
|
.entry.disabled.not-applied .style-name:hover input[type="checkbox"] {
|
|
background-color: hsl(0, 0%, 100%);
|
|
border-color: hsl(0, 100%, 50%);
|
|
}
|
|
|
|
.regexp-problem-indicator {
|
|
background-color: #d00;
|
|
width: 14px;
|
|
height: 14px;
|
|
line-height: 15px;
|
|
border-radius: 8px;
|
|
margin-right: 6px;
|
|
margin-left: 6px;
|
|
text-align: center;
|
|
color: white;
|
|
font-weight: bold;
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
font-size: 90%;
|
|
}
|
|
|
|
.regexp-partial .actions,
|
|
.regexp-invalid .actions {
|
|
order: 2;
|
|
}
|
|
|
|
#regexp-explanation {
|
|
position: fixed;
|
|
background-color: white;
|
|
left: 0;
|
|
right: 0;
|
|
padding: .5rem;
|
|
font-size: 90%;
|
|
border-top: 2px solid black;
|
|
border-bottom: 2px solid black;
|
|
box-shadow: 0 0 100px black;
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 999999;
|
|
}
|
|
|
|
#regexp-explanation button {
|
|
max-width: 100%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin: auto;
|
|
}
|
|
|
|
#regexp-explanation > div {
|
|
display: none;
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.regexp-partial #regexp-partial,
|
|
.regexp-invalid #regexp-invalid {
|
|
display: block;
|
|
}
|
|
|
|
#regexp-explanation > div:not(:last-child) {
|
|
margin-bottom: .5rem;
|
|
}
|
|
|
|
.svg-icon {
|
|
pointer-events: none;
|
|
transition: fill .5s;
|
|
width: 14px;
|
|
height: 16px;
|
|
fill: #666;
|
|
}
|
|
|
|
a:hover .svg-icon {
|
|
fill: #000;
|
|
}
|
|
|
|
body.blocked #installed > *,
|
|
body.blocked .actions > .main-controls,
|
|
body.blocked .actions > .left-gutter {
|
|
display: none;
|
|
}
|
|
|
|
/* Never shown, but can be enabled with a style */
|
|
|
|
.enable,
|
|
.disable {
|
|
display: none;
|
|
}
|
|
|
|
/* 'New style' links */
|
|
|
|
#write-style {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#write-style-for {
|
|
margin-right: .6ex
|
|
}
|
|
|
|
.write-style-link {
|
|
margin-left: .6ex
|
|
}
|
|
|
|
.write-style-link::before {
|
|
content: "\00ad"; /* "soft" hyphen */
|
|
}
|
|
|
|
#match {
|
|
overflow-wrap: break-word;
|
|
flex-grow: 1;
|
|
min-width: 100%;
|
|
}
|
|
|
|
/* "breadcrumbs" 'new style' links */
|
|
.breadcrumbs > .write-style-link {
|
|
margin-left: 0
|
|
}
|
|
|
|
.breadcrumbs:hover a {
|
|
color: #bbb;
|
|
text-decoration: none
|
|
}
|
|
|
|
/* "dot" after each subdomain name */
|
|
.breadcrumbs > .write-style-link[subdomain]::after {
|
|
content: "."
|
|
}
|
|
|
|
/* no "dot" after top-level domain */
|
|
.breadcrumbs > .write-style-link:nth-last-child(2)::after {
|
|
content: none
|
|
}
|
|
|
|
/* "forward slash" before path ("this URL") */
|
|
.breadcrumbs > .write-style-link:last-child::before {
|
|
content: "\200b/"
|
|
}
|
|
|
|
.breadcrumbs > .write-style-link:last-child:first-child::before,
|
|
.breadcrumbs > .write-style-link[subdomain=""] + .write-style-link::before {
|
|
content: none
|
|
}
|
|
|
|
/* suppress TLD-only link */
|
|
.breadcrumbs > .write-style-link[subdomain=""] {
|
|
display: none
|
|
}
|
|
|
|
/* :hover style */
|
|
.breadcrumbs.url\(\) > .write-style-link,
|
|
|
|
/* :hover or :focus on "this URL" sets class="url()" */
|
|
.breadcrumbs > .write-style-link:hover,
|
|
.breadcrumbs > .write-style-link:focus,
|
|
.breadcrumbs > .write-style-link:hover ~ .write-style-link[subdomain],
|
|
.breadcrumbs > .write-style-link:focus ~ .write-style-link[subdomain] {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
text-decoration-skip: ink;
|
|
}
|
|
|
|
/* actions/buttons and wrappers */
|
|
|
|
#popup-manage-button, #popup-shortcuts-button, #popup-options-button {
|
|
width: 100%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
#popup-manage-wrapper, #popup-shortcuts-wrapper, #popup-options-wrapper {
|
|
width: 32%;
|
|
}
|
|
|
|
.firefox #popup-options button {
|
|
width: 48%;
|
|
}
|
|
|
|
#disable-all-wrapper, #write-style-wrapper, #find-styles-wrapper {
|
|
width: 100%;
|
|
}
|
|
#disable-all-wrapper {
|
|
padding: 12px 0;
|
|
}
|
|
|
|
#write-style-wrapper, #find-styles-wrapper {
|
|
padding: 0 0 12px;
|
|
}
|
|
|
|
#disableAll-label {
|
|
padding-left: 4px;
|
|
}
|
|
|
|
|
|
/* confirm */
|
|
|
|
#confirm {
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 2147483647;
|
|
display: none;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0 !important;
|
|
box-sizing: border-box;
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
animation: lights-off .5s cubic-bezier(.03, .67, .08, .94);
|
|
animation-fill-mode: both;
|
|
}
|
|
|
|
#confirm.lights-on {
|
|
animation: lights-on .25s ease-in-out;
|
|
animation-fill-mode: both;
|
|
}
|
|
|
|
#confirm.lights-on,
|
|
#confirm.lights-on > div {
|
|
display: none;
|
|
}
|
|
|
|
#confirm[data-display=true] {
|
|
display: flex;
|
|
}
|
|
|
|
#confirm > div {
|
|
width: 80%;
|
|
max-height: 80%;
|
|
min-height: 6em;
|
|
padding: 1em;
|
|
background-color: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: solid 2px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
#confirm > div > *:not(:last-child) {
|
|
padding-bottom: .5em;
|
|
}
|
|
|
|
#confirm > div > div {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.non-windows #confirm > div > div {
|
|
direction: rtl;
|
|
text-align: right;
|
|
}
|
|
|
|
#confirm button {
|
|
max-width: calc(50% - 9px);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
#confirm button:first-of-type {
|
|
margin-right: 3px;
|
|
}
|
|
|
|
#confirm button:nth-of-type(2) {
|
|
margin-left: 3px;
|
|
}
|
|
|
|
.unreachable .entry {
|
|
opacity: .25;
|
|
}
|
|
|
|
.unreachable .blocked-info {
|
|
border-bottom: 1px solid black;
|
|
}
|
|
|
|
.blocked-info {
|
|
hyphens: auto;
|
|
}
|
|
|
|
.blocked-info label {
|
|
padding: 5px 0;
|
|
display: block;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.blocked-info p {
|
|
padding: 1px 0 9px;
|
|
display: block;
|
|
font-size: 90%;
|
|
margin: 0;
|
|
}
|
|
|
|
@keyframes lights-off {
|
|
from {
|
|
background-color: transparent;
|
|
}
|
|
to {
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
}
|
|
}
|
|
|
|
@keyframes lights-on {
|
|
from {
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
}
|
|
to {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
/* Popup adjustments for common zoom levels */
|
|
|
|
@media (-webkit-min-device-pixel-ratio: 1.05) {
|
|
#installed {
|
|
max-height: 420px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.1) {
|
|
#installed {
|
|
max-height: 393px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.15) {
|
|
#installed {
|
|
max-height: 371px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.2) {
|
|
#installed {
|
|
max-height: 348px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.25) {
|
|
#installed {
|
|
max-height: 326px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.30) {
|
|
#installed {
|
|
max-height: 306px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.35) {
|
|
#installed {
|
|
max-height: 288px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.4) {
|
|
#installed {
|
|
max-height: 271px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.45) {
|
|
#installed {
|
|
max-height: 256px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.5) {
|
|
#installed {
|
|
max-height: 244px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.55) {
|
|
#installed {
|
|
max-height: 199px;
|
|
}
|
|
}
|
|
@media (-webkit-min-device-pixel-ratio: 1.75) {
|
|
#installed {
|
|
max-height: 144px;
|
|
}
|
|
}
|