LocalCDN-Firefox-Chrome-Brave/pages/popup/popup.css

555 lines
9.1 KiB
CSS
Raw Normal View History

2020-02-27 13:45:29 +01:00
/**
* Sections
*/
body {
background-color: #f0f0f0;
color: #555;
cursor: default;
font-family: 'Noto Sans', Arial, sans-serif !important;
font-size: 75%;
margin: 0 auto;
2021-03-14 11:02:43 +01:00
min-width: 348px;
2021-02-17 06:59:56 +01:00
overflow-x: hidden;
overflow-y: auto;
2020-02-27 13:45:29 +01:00
}
header {
align-items: center;
border-bottom: solid #d3d3d3 1px;
display: flex;
justify-content: space-between;
2021-02-17 06:59:56 +01:00
padding: 8px 15px 8px 4px;
position: relative;
2020-02-27 13:45:29 +01:00
}
2021-02-07 08:05:06 +01:00
#manipulateDOM-indicator {
background: url('../../icons/help-dark.svg') no-repeat right center;
background-size: 15px 15px;
2021-02-17 06:59:56 +01:00
color: #555;
2021-02-07 08:05:06 +01:00
padding-right: 20px;
text-decoration: underline;
}
#manipulateDOM-indicator:hover {
color: #777;
cursor: pointer;
2021-02-17 06:59:56 +01:00
text-decoration: none;
2021-02-07 08:05:06 +01:00
}
2020-02-27 13:45:29 +01:00
.panel {
overflow: hidden;
}
.subpanel {
max-height: 200px;
overflow: auto;
2021-02-17 06:59:56 +01:00
padding-top: 8px;
}
.panel-overflow {
2021-02-17 06:59:56 +01:00
margin-left: 0;
max-height: 300px;
overflow: auto;
2021-02-17 06:59:56 +01:00
padding-left: 0;
2020-05-29 18:05:46 +02:00
}
.subpanel:last-child {
border-bottom: solid #d3d3d3 1px;
2020-05-31 19:11:25 +02:00
padding-bottom: 4px;
2020-02-27 13:45:29 +01:00
}
2020-08-11 16:41:42 +02:00
.content {
2021-02-17 06:59:56 +01:00
padding: 0 15px;
2020-08-11 16:41:42 +02:00
}
2020-02-27 13:45:29 +01:00
footer {
2020-08-11 16:41:42 +02:00
align-items: center;
2021-02-17 06:59:56 +01:00
display: flex;
2020-08-11 16:41:42 +02:00
justify-content: space-between;
2021-02-17 06:59:56 +01:00
overflow: hidden;
padding: 8px 15px;
2020-05-29 18:05:46 +02:00
}
2020-08-11 16:41:42 +02:00
#testing-utility {
flex-grow: 1;
}
2021-02-07 08:05:06 +01:00
#testing-utility-link {
display: none;
float: left;
}
2020-02-27 13:45:29 +01:00
/**
* Fonts
*/
@font-face {
2021-02-17 06:59:56 +01:00
font-family: 'Noto Sans';
font-style: normal;
font-weight: 400;
src: url('../../modules/noto-sans/noto-sans.woff2') format('woff2');
2020-02-27 13:45:29 +01:00
}
@font-face {
2021-02-17 06:59:56 +01:00
font-family: 'Noto Sans';
font-style: normal;
font-weight: 600;
src: url('../../modules/noto-sans/noto-sans-bold.woff2') format('woff2');
2020-02-27 13:45:29 +01:00
}
@font-face {
2021-02-17 06:59:56 +01:00
font-family: 'Noto Sans';
font-style: italic;
font-weight: 400;
src: url('../../modules/noto-sans/noto-sans-italic.woff2') format('woff2');
2020-02-27 13:45:29 +01:00
}
/**
* Headings
*/
.heading {
2021-02-17 06:59:56 +01:00
align-items: center;
display: flex;
2020-02-27 13:45:29 +01:00
font-size: 14px;
font-weight: 600;
padding-left: 0;
}
/**
* Lists
*/
.list {
margin: 0;
padding: 8px 0 0;
}
.list-item {
background-color: #f7f7f7;
border: 1px solid #e4e4e4;
color: #737373;
font-weight: 600;
list-style: none;
margin: 0;
padding: 10px;
}
.sublist {
align-items: center;
background-color: #ececec;
border: 1px solid #e0e0e0;
box-shadow: inset 0 2px 10px #e2e2e2;
list-style: none;
2021-02-17 06:59:56 +01:00
padding: 0 0 0 8px;
2020-02-27 13:45:29 +01:00
}
.sublist:last-child {
border-bottom: 1px solid #e0e0e0;
2021-02-17 06:59:56 +01:00
margin-bottom: 0;
2020-02-27 13:45:29 +01:00
}
.sublist-item {
border-bottom: 1px solid #e0e0e0;
color: #737373;
font-weight: 600;
padding: 10px;
}
.sublist-item:last-child {
border-bottom: none;
}
2020-06-05 06:22:09 +02:00
#label-donate {
2021-02-17 06:59:56 +01:00
margin: 0 5px 0 0;
2020-06-05 06:22:09 +02:00
}
#get-more-injections-btn, #label-donate {
background-color: #f0f0f0;
color: #555;
2021-02-17 06:59:56 +01:00
cursor: pointer;
2020-05-30 18:00:05 +02:00
font-weight: 600;
2021-02-17 06:59:56 +01:00
margin: 0 5px;
2020-05-26 21:23:26 +02:00
}
#get-more-injections-btn:hover {
2020-05-26 21:23:26 +02:00
color: #a3a3a3;
text-decoration: underline;
}
2020-02-27 13:45:29 +01:00
/**
* Icons
*/
.icon-logo {
height: 26px;
2020-05-29 18:05:46 +02:00
padding: 5px 6px 5px 8px;
2020-02-27 13:45:29 +01:00
width: 26px;
}
/**
* Buttons
*/
.button {
background-color: #f5f5f5;
border: 1px solid #cfcfcf;
2021-02-17 06:59:56 +01:00
border-radius: 2px;
2020-02-27 13:45:29 +01:00
color: #5f5f5f;
cursor: pointer;
float: right;
font-size: 12px;
2020-08-11 07:09:07 +02:00
margin-left: 10px;
padding: 5px 10px;
2021-02-17 06:59:56 +01:00
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
2020-02-27 13:45:29 +01:00
}
.button:hover {
background-color: #fff;
}
.button:active {
background-color: #dedede;
}
2020-08-11 07:09:07 +02:00
.button-svg {
background-size: cover;
height: 15px;
2021-02-17 06:59:56 +01:00
width: 15px;
2020-08-11 07:09:07 +02:00
}
/**
* Donate
*/
2020-05-19 17:24:36 +02:00
#donate-button {
color: #5f5f5f;
cursor: pointer;
2021-02-21 19:56:13 +01:00
display: none;
2020-05-19 17:24:36 +02:00
float: right;
font-size: 12px;
2021-02-17 06:59:56 +01:00
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
2020-05-19 17:24:36 +02:00
}
2020-06-05 06:22:09 +02:00
#donate-button:hover #donate-button-svg {
2020-05-19 17:24:36 +02:00
transform: scale(1.3);
}
2020-06-05 06:22:09 +02:00
#donate-button:hover #label-donate {
text-decoration: underline;
}
2020-08-11 07:09:07 +02:00
#donate-button-svg {
background-image: url("../../icons/donate.svg");
2020-03-11 06:13:04 +01:00
}
2020-08-11 07:09:07 +02:00
/**
2021-02-21 20:03:07 +01:00
* Buttons
2020-08-11 07:09:07 +02:00
*/
2020-03-11 06:13:04 +01:00
#options-button-svg {
background-image: url("../../icons/settings-dark.svg");
}
2020-08-11 07:09:07 +02:00
#statistics-button-svg {
2021-02-21 20:03:07 +01:00
background-image: url("../../icons/statistics-dark.svg");
2020-08-11 07:09:07 +02:00
}
#logging-button-svg {
background-image: url("../../icons/logging-dark.svg");
2020-05-16 17:40:46 +02:00
}
#statistics-button, #logging-button {
2020-08-11 07:09:07 +02:00
display: none;
}
#options-button:hover, #statistics-button:hover, #logging-button:hover {
filter: contrast(0.5);
}
2020-08-11 07:09:07 +02:00
/**
* Toggles
*/
2021-08-13 06:15:10 +02:00
#protection-toggle, #manipulateDOM-toggle, #google-fonts-toggle {
2021-02-17 06:59:56 +01:00
cursor: pointer;
float: right;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
}
.switch {
2021-02-17 06:59:56 +01:00
display: inline-block;
height: 18px;
position: relative;
width: 40px;
}
.switch input {
2021-02-17 06:59:56 +01:00
height: 0;
opacity: 0;
width: 0;
}
.slider, .slider-disabled {
2021-02-17 06:59:56 +01:00
background-color: #b40000;
border-radius: 34px;
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
-webkit-transition: 0.1s;
transition: 0.1s;
}
.slider::before, .slider-disabled::before {
background-color: #f9f9fa;
border-radius: 50%;
bottom: 2px;
content: "";
height: 14px;
left: 2px;
position: absolute;
-webkit-transition: 0.3s;
transition: 0.3s;
width: 14px;
}
input:checked + .slider {
2021-02-17 06:59:56 +01:00
background-color: #6bb798;
}
2021-02-17 06:59:56 +01:00
input:checked + .slider::before {
-webkit-transform: translateX(22px);
-ms-transform: translateX(22px);
transform: translateX(22px);
2020-03-11 06:13:04 +01:00
}
.slider-disabled {
background-color: lightgray;
cursor: not-allowed;
}
.slider:hover {
background-color: #7e0000;
}
input:checked + .slider:hover {
background-color: #4b806a;
}
2020-02-27 13:45:29 +01:00
/**
* Miscellaneous
*/
.badge {
background-color: #6bb798;
border-radius: 10px;
color: #fff;
font-family: monospace;
font-size: 13px;
font-weight: 600;
margin-right: 8px;
padding: 3px 15px;
}
.counter {
font-size: 36px;
font-weight: 600;
margin-top: 4px;
text-align: center;
}
.description {
color: #777;
font-style: italic;
margin: 0 6px;
text-align: center;
}
.hidden {
display: none;
}
.label-version {
color: #6aac91;
font-size: 9px;
2021-02-17 06:59:56 +01:00
margin: 0 0 5px 2px;
2020-02-27 13:45:29 +01:00
}
.label-domain {
2020-06-28 14:59:07 +02:00
color: #555;
2020-02-27 13:45:29 +01:00
display: flex;
font-style: italic;
overflow: hidden;
white-space: nowrap;
}
.side-note {
color: #a5a5a5;
font-style: italic;
font-weight: 400;
}
#popup-incomplete-translation {
background-color: #ffa500;
2021-02-17 06:59:56 +01:00
color: white;
cursor: pointer;
2021-02-17 06:59:56 +01:00
font-weight: bold;
padding: 0;
text-align: center;
width: 100%;
}
2020-02-27 13:45:29 +01:00
/**
* Compatibility
*/
@media screen and (-webkit-min-device-pixel-ratio: 0) {
body {
width: 348px;
}
}
@media (prefers-color-scheme: dark) {
/**
* Sections
*/
body {
background-color: #404040;
2020-05-31 18:59:43 +02:00
color: #bbb;
2020-02-27 13:45:29 +01:00
}
header {
border-bottom-color: #292929;
}
2021-02-07 08:05:06 +01:00
#manipulateDOM-indicator {
background: url('../../icons/help-light.svg') no-repeat right center;
background-size: 15px 15px;
color: #f2f2f2;
font-weight: bold;
2021-02-17 06:59:56 +01:00
padding-right: 20px;
text-decoration: underline;
2021-02-07 08:05:06 +01:00
}
2020-02-27 13:45:29 +01:00
/**
* Lists
*/
.list-item {
background-color: #484848;
border-color: #292929;
color: #f0f0f0;
}
.sublist {
background-color: #323232;
border-color: #292929;
box-shadow: inset 0 2px 10px #292929;
}
.sublist:last-child {
border-bottom-color: #292929;
}
.sublist-item {
border-bottom-color: #2c2c2c;
color: #f0f0f0;
}
2020-05-31 18:59:43 +02:00
.subpanel:last-child {
border-bottom: solid #292929 1px;
}
2020-02-27 13:45:29 +01:00
/**
* Buttons
*/
.button {
background-color: #3c3c3c;
border-color: #323232;
color: #bbb;
}
.button:hover {
background-color: #434343;
}
.button:active {
background-color: #393939;
}
2020-03-11 06:13:04 +01:00
#options-button-svg {
background-image: url("../../icons/settings-light.svg");
}
2020-08-11 07:09:07 +02:00
#statistics-button-svg {
2021-02-21 20:03:07 +01:00
background-image: url("../../icons/statistics-light.svg");
2020-08-11 07:09:07 +02:00
}
#logging-button-svg {
background-image: url("../../icons/logging-light.svg");
}
input:checked + .slider {
2020-08-11 16:41:42 +02:00
background-color: #6bb798;
}
.slider {
2020-08-11 16:41:42 +02:00
background-color: #b54b4b;
}
2021-02-17 06:59:56 +01:00
.slider::before {
background-color: #323232;
2020-03-11 06:13:04 +01:00
}
2020-05-31 20:20:48 +02:00
.slider-disabled {
background-color: #777;
cursor: not-allowed;
}
2021-02-17 06:59:56 +01:00
.slider-disabled::before {
2020-05-31 20:20:48 +02:00
background-color: #323232;
}
2020-08-11 16:40:01 +02:00
#label-donate {
2020-05-31 19:14:29 +02:00
background-color: #404040;
color: #bbb;
2021-02-17 06:59:56 +01:00
cursor: pointer;
2020-05-31 19:14:29 +02:00
font-weight: 600;
}
2020-02-27 13:45:29 +01:00
/**
* Miscellaneous
*/
.badge {
color: #2d5042;
}
.description {
color: #dadada;
}
.label-domain {
2020-06-28 14:59:07 +02:00
color: #aeaeae;
2020-02-27 13:45:29 +01:00
}
.panel:not(:last-child) {
border-bottom-color: #292929;
}
.side-note {
color: #888;
}
2020-07-05 18:53:15 +02:00
.panel-overflow {
scrollbar-color: #747475 #484848;
}
2020-02-27 13:45:29 +01:00
}