1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-25 01:30:40 +01:00
LocalCDN-Firefox-Chrome-Brave/pages/popup/popup.css

466 lines
7.5 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;
2022-07-04 06:37:46 +02:00
padding-bottom: 8px;
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-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;
2022-07-04 06:37:46 +02:00
height: 24px;
2020-02-27 13:45:29 +01:00
overflow: hidden;
2022-07-04 06:37:46 +02:00
padding: 4px 0;
2020-02-27 13:45:29 +01:00
white-space: nowrap;
}
.side-note {
color: #a5a5a5;
font-style: italic;
font-weight: 400;
2022-02-27 05:51:25 +01:00
padding-left: 5px;
2020-02-27 13:45:29 +01:00
}
#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%;
}
2022-07-04 06:37:46 +02:00
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");
}
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
}