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

548 lines
8.4 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;
2020-03-26 10:25:45 +01:00
overflow-y: auto;
overflow-x: hidden;
2020-02-27 13:45:29 +01:00
max-width: 348px;
}
header {
align-items: center;
border-bottom: solid #d3d3d3 1px;
display: flex;
position: relative;
2020-06-16 07:10:22 +02:00
padding: 8px 15px 8px 4px;
justify-content: space-between;
2020-02-27 13:45:29 +01:00
}
.panel {
overflow: hidden;
}
.subpanel {
2020-05-31 18:59:43 +02:00
padding-top: 8px;
max-height: 200px;
overflow: auto;
}
.panel-overflow {
max-height: 300px;
overflow: auto;
margin-left: 0px;
padding-left: 0px;
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
}
footer {
overflow: hidden;
padding: 8px 15px;
2020-05-29 18:05:46 +02:00
}
#more-injections-section {
font-weight: bold;
2020-05-29 18:16:48 +02:00
padding: 0px 8px;
}
.content {
padding: 0px 15px;
}
2020-02-27 13:45:29 +01:00
/**
* Fonts
*/
@font-face {
font-family: 'Noto Sans';
font-style: normal;
font-weight: 400;
src: url('../../modules/noto-sans/noto-sans.woff2')
format('woff2');
}
@font-face {
font-family: 'Noto Sans';
font-style: normal;
font-weight: 600;
src: url('../../modules/noto-sans/noto-sans-bold.woff2')
format('woff2');
}
@font-face {
font-family: 'Noto Sans';
font-style: italic;
font-weight: 400;
src: url('../../modules/noto-sans/noto-sans-italic.woff2')
format('woff2');
}
/**
* Headings
*/
.heading {
font-size: 14px;
font-weight: 600;
padding-left: 0;
display: flex;
align-items: center;
2020-02-27 13:45:29 +01:00
}
.subheading {
font-weight: 600;
margin-bottom: 2px;
text-align: center;
}
/**
* 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;
padding-left: 8px;
padding: 0;
}
.sublist:last-child {
border-bottom: 1px solid #e0e0e0;
margin-bottom: 0px;
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 {
margin: 0px 5px 0px 0px;
}
#get-more-injections-btn, #label-donate {
2020-05-26 21:23:26 +02:00
cursor: pointer;
background-color: #f0f0f0;
color: #555;
2020-05-30 18:00:05 +02:00
font-weight: 600;
2020-06-05 06:22:09 +02:00
margin: 0px 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 {
margin-right: 6px;
}
.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 {
-moz-user-select: none;
2020-05-27 18:27:27 +02:00
user-select: none;
2020-02-27 13:45:29 +01:00
background-color: #f5f5f5;
border-radius: 2px;
border: 1px solid #cfcfcf;
color: #5f5f5f;
cursor: pointer;
float: right;
font-size: 12px;
padding: 5px 22px;
}
.button:hover {
background-color: #fff;
}
.button:active {
background-color: #dedede;
}
.button-toggle {
border-color: #d8d8d8;
color: #bbb;
}
.button-toggle.active {
border-color: #cfcfcf;
color: #339a6f;
}
2020-05-19 17:24:36 +02:00
#donate-button {
-moz-user-select: none;
user-select: none;
color: #5f5f5f;
cursor: pointer;
float: right;
font-size: 12px;
2020-06-05 06:22:09 +02:00
display: flex;
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-05-29 18:05:46 +02:00
#options-button-svg, #donate-button-svg {
2020-03-11 06:13:04 +01:00
background-size: cover;
width: 15px;
height: 15px;
}
#options-button-svg {
background-image: url("../../icons/settings-dark.svg");
}
#options-button:hover {
filter: contrast(.5);
}
2020-05-16 17:40:46 +02:00
#donate-button-svg {
background-image: url("../../icons/donate.svg");
}
#protection-toggle, #manipulateDOM-toggle {
-moz-user-select: none;
cursor: pointer;
float: right;
user-select: none;
}
.switch {
position: relative;
display: inline-block;
2020-05-27 18:27:27 +02:00
width: 40px;
2020-05-29 18:05:46 +02:00
height: 18px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider, .slider-disabled {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #b40000;
2020-05-29 18:05:46 +02:00
-webkit-transition: .1s;
transition: .1s;
border-radius: 34px;
}
.slider:before, .slider-disabled:before {
position: absolute;
content: "";
2020-05-29 18:05:46 +02:00
height: 14px;
width: 14px;
left: 2px;
bottom: 2px;
background-color: #f9f9fa;
-webkit-transition: .3s;
transition: .3s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #6bb798;
}
input:checked + .slider:before {
2020-05-29 18:05:46 +02:00
-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-05-27 06:22:58 +02:00
#info-button-svg {
background-image: url("../../icons/info-dark.svg");
background-repeat: no-repeat;
cursor: pointer;
width: 15px;
margin-left: 5px;
}
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;
margin: 0px 0px 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 {
width: 100%;
color: white;
text-align: center;
font-weight: bold;
background-color: #ffa500;
padding: 0px;
cursor: pointer;
}
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;
}
/**
* 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;
}
.button-toggle {
border-color: #363636;
color: #636363;
}
.button-toggle.active {
border-color: #323232;
}
2020-03-11 06:13:04 +01:00
#options-button-svg {
background-image: url("../../icons/settings-light.svg");
}
input:checked + .slider {
background-color: #6bb798;
}
.slider {
background-color: #b54b4b;
}
.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;
}
.slider-disabled:before {
background-color: #323232;
}
2020-05-27 06:22:58 +02:00
#info-button-svg {
background-image: url("../../icons/info-light.svg");
}
2020-06-05 06:22:09 +02:00
#get-more-injections-btn, #label-donate {
2020-05-31 19:14:29 +02:00
cursor: pointer;
background-color: #404040;
color: #bbb;
font-weight: 600;
}
#get-more-injections-btn:hover {
color: #fff;
text-decoration: underline;
}
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
}