276 lines
4.2 KiB
CSS
276 lines
4.2 KiB
CSS
:root {
|
|
--text-main: #FFF;
|
|
--text-secondary: #000;
|
|
--dark-grey: #3C4043;
|
|
--darker-grey: #292A2D;
|
|
--white: #FFF;
|
|
--active: #FF5B56;
|
|
--space: 5px;
|
|
--danger: #f04141;
|
|
--danger-light: #F9D0D5;
|
|
}
|
|
|
|
body {
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
background-color: var(--darker-grey);
|
|
width: 400px;
|
|
margin: auto;
|
|
min-height: 572px;
|
|
}
|
|
|
|
.popup {
|
|
width: 300px;
|
|
min-height: auto;
|
|
overflow: hidden;
|
|
background-color: var(--dark-grey);
|
|
}
|
|
|
|
input {
|
|
appearance: none;
|
|
-moz-appearance: none;
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
header {
|
|
background-color: var(--white);
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
padding: var(--space);
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2em;
|
|
}
|
|
|
|
header .logo-container {
|
|
margin: var(--space);
|
|
}
|
|
|
|
header .logo-container img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
header small {
|
|
display: block;
|
|
font-size: .70em;
|
|
font-weight: bold;
|
|
margin: 1%;
|
|
width: 100%;
|
|
text-align: right;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 14px;
|
|
margin: var(--space) auto;
|
|
}
|
|
|
|
i {
|
|
font-size: 12px;
|
|
}
|
|
|
|
h2 {
|
|
clear: both;
|
|
font-size: 12px;
|
|
font-weight: normal;
|
|
margin: 0;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
h1,
|
|
h2 {
|
|
color: var(--text-main);
|
|
}
|
|
|
|
footer {
|
|
width: 100%;
|
|
}
|
|
|
|
footer a.button {
|
|
margin: var(--space);
|
|
}
|
|
|
|
/* Elements */
|
|
|
|
input[type=url], input[type=text], select {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
input[type=url] {
|
|
padding: 1px 2px;
|
|
}
|
|
|
|
input[type=checkbox] {
|
|
opacity: 0;
|
|
}
|
|
|
|
.checkbox-label {
|
|
background: grey;
|
|
border-radius: 25px;
|
|
color: var(--text-main);
|
|
cursor: pointer;
|
|
display: block;
|
|
float: right;
|
|
font-weight: bold;
|
|
height: 30px;
|
|
position: relative;
|
|
text-indent: -400px;
|
|
width: 50px;
|
|
}
|
|
|
|
.checkbox-label:after {
|
|
background: #fff;
|
|
border-radius: 90px;
|
|
content: '';
|
|
height: 20px;
|
|
left: 5px;
|
|
position: absolute;
|
|
top: 5px;
|
|
transition: 0.3s; /* Acts on transform below */
|
|
width: 20px;
|
|
}
|
|
input:checked+label {
|
|
background: var(--active);
|
|
}
|
|
/* position when active*/
|
|
input:checked+label:after {
|
|
left: calc(100% - 5px);
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.settings_block {
|
|
display: block;
|
|
padding: 10px 1em 1em 1em;
|
|
border-bottom: var(--dark-grey) solid 1px;
|
|
}
|
|
|
|
.settings_block h1 {
|
|
float: left;
|
|
}
|
|
|
|
.button {
|
|
border: var(--active) solid 1px;
|
|
color: var(--text-main);
|
|
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;
|
|
}
|
|
|
|
.button * {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: var(--active);
|
|
color: #fff;
|
|
}
|
|
|
|
.button:active {
|
|
background-color: var(--active);
|
|
box-shadow: 0 5px var(--dark-grey);
|
|
transform: translateY(4px);
|
|
}
|
|
|
|
input:invalid {
|
|
color: var(--danger);
|
|
border-color: var(--danger);
|
|
background-color: var(--danger-light);
|
|
}
|
|
|
|
.margin-bottom {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.tab {
|
|
overflow: hidden;
|
|
background-color: var(--darker-grey);
|
|
}
|
|
|
|
.tab button {
|
|
border-top-left-radius: 10px;
|
|
border-top-right-radius: 10px;
|
|
color: var(--text-main);
|
|
background-color: inherit;
|
|
float: left;
|
|
border: none;
|
|
outline: none;
|
|
cursor: pointer;
|
|
padding: 14px 16px;
|
|
transition: 0.3s;
|
|
border: solid 1px var(--dark-grey);
|
|
width: 33.333%;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.tab button:hover {
|
|
background-color: var(--active);
|
|
}
|
|
|
|
.tab button.active {
|
|
background-color: var(--dark-grey);
|
|
}
|
|
|
|
.tabcontent {
|
|
padding-top: 10px;
|
|
display: none;
|
|
border: solid 1px var(--dark-grey);
|
|
background-color: var(--dark-grey);
|
|
min-height: 510px;
|
|
}
|
|
|
|
div.whitelist {
|
|
clear: left;
|
|
}
|
|
|
|
div.whitelist > input {
|
|
width: 240px;
|
|
float: left;
|
|
}
|
|
|
|
#add-to-whitelist {
|
|
width: 120px;
|
|
float: right;
|
|
border: var(--active) solid 1px;
|
|
background-color: var(--active);
|
|
color: var(--text-main);
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
border-radius: 25px;
|
|
}
|
|
|
|
ul {
|
|
padding: 0;
|
|
list-style-type: none;
|
|
color: var(--text-main);
|
|
margin-right: 20px;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
li {
|
|
border-bottom: solid 0.5px var(--darker-grey);
|
|
padding: 20px 0px 20px 20px;
|
|
}
|
|
|
|
#whitelist-items button {
|
|
float: right;
|
|
margin-right: -5px;
|
|
border: var(--active) solid 1px;
|
|
background-color: var(--active);
|
|
color: var(--text-main);
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
border-radius: 50%;
|
|
}
|