privacy-redirect/pages/styles.css

482 lines
7.6 KiB
CSS
Raw Normal View History

body {
--text: #fff;
--bg-main: #3c4043;
--bg-secondary: #292a2d;
2020-07-15 11:04:52 +02:00
--active: #ff5b56;
2019-09-29 15:04:24 +02:00
--space: 5px;
--danger: #f04141;
2020-07-15 11:04:52 +02:00
--danger-light: #f9d0d5;
--dark-grey: #767676;
--light-grey: #c3c3c3;
}
body.light-theme {
--text: #000;
--bg-main: #e3e7ea;
--bg-secondary: #fff;
}
.light-theme.popup,
.light-theme .popup {
background-color: var(--bg-secondary);
2019-09-29 15:04:24 +02:00
}
body {
margin: 0;
2020-07-15 11:04:52 +02:00
max-width: 400px;
margin: auto;
min-height: 572px;
2020-05-19 15:48:03 +02:00
font-family: Sans-Serif;
background-color: var(--bg-secondary);
color: var(--text);
}
.popup {
2020-04-25 10:31:27 +02:00
width: 300px;
min-height: auto;
overflow: hidden;
background-color: var(--bg-main);
2019-09-29 15:04:24 +02:00
}
input {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
}
2019-09-29 15:04:24 +02:00
header {
background-color: var(--bg-main);
color: var(--text);
2019-09-29 15:04:24 +02:00
display: flex;
padding: var(--space);
}
header .logo-container {
2020-05-19 15:48:03 +02:00
width: 100%;
margin: var(--space) 0 var(--space) 0;
display: flex;
2020-07-15 11:04:52 +02:00
align-items: center;
2019-09-29 15:04:24 +02:00
}
header .logo-container img {
2020-05-19 15:48:03 +02:00
height: 85px;
float: left;
}
header .logo-container h1 {
font-size: 25px;
float: left;
margin-left: 15px;
text-transform: uppercase;
font-weight: normal;
}
header .privacy {
2020-05-19 15:48:03 +02:00
letter-spacing: 0.13em;
2019-09-29 15:04:24 +02:00
}
header .version {
2020-05-19 15:48:03 +02:00
font-size: 8.5px;
2019-09-29 15:04:24 +02:00
font-weight: bold;
position: absolute;
top: var(--space);
right: var(--space);
2019-09-29 15:04:24 +02:00
}
h1 {
font-size: 14px;
margin: 7px auto;
}
i {
font-size: 12px;
2019-09-29 15:04:24 +02:00
}
h2 {
clear: both;
font-size: 12px;
font-weight: normal;
margin: 0;
}
h3 {
font-size: 16px;
}
h1,
h2 {
color: var(--text);
2019-09-29 15:04:24 +02:00
}
footer {
width: 100%;
}
footer a.button {
margin: var(--space);
}
2020-07-15 11:04:52 +02:00
input[type="url"],
input[type="text"],
select {
2019-10-07 13:59:31 +02:00
width: 100%;
box-sizing: border-box;
margin-bottom: var(--space);
background-color: var(--bg-main);
border-style: inset;
color: var(--text);
2019-10-07 13:59:31 +02:00
}
2020-07-15 11:04:52 +02:00
input[type="url"] {
padding: 1px 2px;
}
2020-07-15 11:04:52 +02:00
input[type="checkbox"] {
2019-09-29 15:04:24 +02:00
opacity: 0;
}
2020-07-15 11:04:52 +02:00
input[type="radio"] {
appearance: radio;
-moz-appearance: radio;
-webkit-appearance: radio;
}
2020-07-15 11:04:52 +02:00
input[type="radio"]:checked + label {
background: transparent;
}
2019-10-07 13:59:31 +02:00
.checkbox-label {
margin-left: 5px;
2019-09-29 15:04:24 +02:00
background: grey;
border-radius: 25px;
color: var(--text);
2019-09-29 15:04:24 +02:00
cursor: pointer;
display: block;
float: right;
font-weight: bold;
height: 30px;
position: relative;
text-indent: -400px;
width: 50px;
}
2019-10-07 13:59:31 +02:00
.checkbox-label:after {
background: white;
2019-09-29 15:04:24 +02:00
border-radius: 90px;
2020-07-15 11:04:52 +02:00
content: "";
2019-09-29 15:04:24 +02:00
height: 20px;
left: var(--space);
2019-09-29 15:04:24 +02:00
position: absolute;
top: var(--space);
2020-07-15 11:04:52 +02:00
transition: 0.3s;
2019-09-29 15:04:24 +02:00
width: 20px;
}
2020-07-15 11:04:52 +02:00
input:checked + label {
2019-09-29 15:04:24 +02:00
background: var(--active);
}
2020-07-15 11:04:52 +02:00
input:checked + label:after {
left: calc(100% - var(--space));
2019-09-29 15:04:24 +02:00
transform: translateX(-100%);
}
.settings-block {
2019-09-29 15:04:24 +02:00
display: block;
padding: 5px 10px 5px 10px;
2019-09-29 15:04:24 +02:00
}
.settings-block h1 {
2019-09-29 15:04:24 +02:00
float: left;
}
.button {
border: var(--active) solid 1px;
color: var(--text);
stroke: var(--text);
2019-09-29 15:04:24 +02:00
display: block;
font-size: 12px;
font-weight: bold;
margin: var(--space) auto;
padding: 10px;
text-align: center;
text-decoration: none;
cursor: pointer;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
2019-09-29 15:04:24 +02:00
}
.button * {
vertical-align: middle;
}
2019-09-29 15:04:24 +02:00
.button:hover {
background-color: var(--active);
color: var(--text);
stroke: var(--text);
}
.button:active {
background-color: var(--active);
box-shadow: 0 var(--space) var(--bg-main);
transform: translateY(4px);
}
input:invalid {
color: var(--danger);
border-color: var(--danger);
background-color: var(--danger-light);
2019-09-29 15:04:24 +02:00
}
.margin-bottom {
margin-bottom: 20px;
}
2020-04-25 10:31:27 +02:00
.tab {
overflow: hidden;
background-color: var(--bg-secondary);
2020-11-08 05:16:52 +01:00
position: fixed;
top: 0;
width: 400px;
2020-11-08 05:16:52 +01:00
z-index: 2;
2020-04-25 10:31:27 +02:00
}
.tab button {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
color: var(--text);
2020-04-25 10:31:27 +02:00
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
border: solid 1px var(--bg-main);
2020-04-25 10:31:27 +02:00
width: 33.333%;
font-size: 14px;
}
.tab button:hover {
background-color: var(--active);
}
.tab button.active {
background-color: var(--bg-main);
2020-04-25 10:31:27 +02:00
}
.tabcontent {
2020-11-08 05:16:52 +01:00
padding-top: 50px;
2020-04-25 10:31:27 +02:00
display: none;
background-color: var(--bg-main);
min-height: 510px;
}
div.exceptions {
clear: left;
}
div.exceptions > input {
width: 240px;
float: left;
}
#add-to-exceptions {
float: right;
border: var(--active) solid 1px;
background-color: var(--active);
color: var(--text);
font-weight: bold;
cursor: pointer;
border-radius: 50%;
padding: 1px 1px 0px 1px;
margin-right: 5px;
}
#add-to-exceptions svg {
height: 20px;
width: 20px;
}
ul {
padding: 0;
list-style-type: none;
color: var(--text);
margin: 20px 20px 0 20px;
}
li {
border-bottom: solid 0.5px var(--bg-secondary);
padding: 20px 0px 20px 20px;
}
#exceptions-items button {
float: right;
margin-right: -5px;
border: var(--active) solid 1px;
background-color: var(--active);
color: var(--text);
font-weight: bold;
cursor: pointer;
border-radius: 50%;
padding: 2px 2px 0px 2px;
2020-04-25 10:31:27 +02:00
}
2020-05-06 23:44:23 +02:00
.button svg {
height: 18px;
width: 18px;
}
.autocomplete {
position: relative;
display: inline-block;
width: 100%;
}
.autocomplete input {
background: url(../assets/images/chevron-down.svg) right no-repeat;
}
.autocomplete-items {
position: absolute;
border: 1px solid var(--bg-main);
border-bottom: none;
border-top: none;
z-index: 99;
2020-07-15 11:04:52 +02:00
top: 85%;
left: 0;
right: 0;
overflow-y: auto;
max-height: 175px;
color: var(--text);
overflow-x: hidden;
max-width: 380px;
}
.autocomplete-items div {
padding: 10px;
cursor: pointer;
background-color: var(--bg-secondary);
border-bottom: 1px solid var(--bg-main);
}
.autocomplete-items div:hover {
background-color: var(--active);
}
.autocomplete-active {
background-color: var(--active);
color: var(--text);
}
.option {
width: 100%;
}
.option td {
vertical-align: middle;
}
2020-07-15 11:04:52 +02:00
input[type="range"] {
-webkit-appearance: none;
margin: 18px 0;
width: 100%;
}
2020-07-15 11:04:52 +02:00
input[type="range"]:focus {
outline: none;
}
2020-07-15 11:04:52 +02:00
input[type="range"]::-webkit-slider-runnable-track {
width: 100%;
height: 8.4px;
cursor: pointer;
border-color: var(--dark-grey), var(--light-grey);
background: var(--bg-main);
border-radius: 1.3px;
border: 0.2px inset var(--dark-grey);
}
2020-07-15 11:04:52 +02:00
input[type="range"]::-webkit-slider-thumb {
border-color: var(--active);
border: 1px solid var(--dark-grey);
height: 36px;
width: 16px;
border-radius: 3px;
background: var(--active);
cursor: pointer;
-webkit-appearance: none;
margin-top: -14px;
}
2020-07-15 11:04:52 +02:00
input[type="range"]:focus::-webkit-slider-runnable-track {
background: var(--bg-main);
}
2020-07-15 11:04:52 +02:00
input[type="range"]::-moz-range-track {
width: 100%;
height: 8.4px;
cursor: pointer;
border-color: var(--dark-grey), var(--light-grey);
background: var(--bg-main);
border-radius: 1.3px;
border: 0.2px inset var(--dark-grey);
}
2020-07-15 11:04:52 +02:00
input[type="range"]::-moz-range-thumb {
border-color: var(--active);
border: 1px solid var(--dark-grey);
height: 36px;
width: 16px;
border-radius: 3px;
background: var(--active);
cursor: pointer;
}
::placeholder {
color: var(--text);
opacity: 0.7;
}
2020-05-19 15:48:03 +02:00
*:focus {
outline: var(--active) solid 2px;
2020-05-06 23:44:23 +02:00
}
2020-05-07 03:21:06 +02:00
@media (prefers-color-scheme: light) {
2020-05-19 15:48:03 +02:00
body {
--text: #000;
--text-secondary: #fff;
--bg-main: #e3e7ea;
--bg-secondary: #fff;
}
body.dark-theme {
--text: #fff;
--text-secondary: #000;
--bg-main: #3c4043;
--bg-secondary: #292a2d;
}
.popup {
background-color: var(--bg-secondary);
}
2020-05-07 03:21:06 +02:00
}
2020-09-01 09:26:23 +02:00
#volume-value {
float: right;
}
.subheading {
padding: 0 10px;
}
.subheading h1 {
color: var(--active);
}
.subheading hr {
height: 1px;
background-color: var(--active);
border: none;
}