libredirect/src/pages/stylesheets/styles.css

438 lines
6.6 KiB
CSS
Raw Normal View History

body {
--text: #fff;
2022-01-27 12:58:10 +01:00
--bg-main: #121212;
--bg-secondary: #202020;
--active: #fbc117;
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;
}
2022-02-27 14:18:21 +01:00
@font-face {
font-family: 'Inter';
src: url('Inter-VariableFont_slnt,wght.ttf');
2022-02-27 14:18:21 +01:00
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Vazirmatn';
src: url('Vazirmatn-VariableFont_wght.ttf');
font-weight: normal;
font-style: normal;
}
2019-09-29 15:04:24 +02:00
body {
margin: auto;
2022-01-27 12:58:10 +01:00
padding: 0;
font-family: 'Inter';
2022-01-29 23:34:33 +01:00
background-color: var(--bg-main);
color: var(--text);
2022-02-26 19:28:30 +01:00
overflow-x: hidden
}
body.rtl {
font-family: 'Vazirmatn';
/* line-height: 1; */
}
2022-01-29 23:34:33 +01:00
div.some-block input[type="checkbox"] {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
}
2022-03-10 17:41:00 +01:00
.title {
2022-02-10 18:16:48 +01:00
display: flex;
align-items: center;
2022-03-10 17:41:00 +01:00
text-decoration: none;
color: var(--text);
2022-02-10 18:16:48 +01:00
}
img, svg {
margin-right: 10px;
height: 26px;
width: 26px;
2022-02-10 18:16:48 +01:00
color: var(--text);
}
body.rtl img, body.rtl svg {
margin-right: 0px;
margin-left: 10px;
}
2020-07-15 11:04:52 +02:00
input[type="url"],
input[type="text"],
select {
2022-02-27 15:59:40 +01:00
font-weight: bold;
box-sizing: border-box;
2022-01-27 12:58:10 +01:00
border-style: solid;
border-color: #767676;
color: var(--text);
2022-01-29 23:34:33 +01:00
font-size: 16px;
padding: 8px;
background-color: var(--bg-secondary);
border: none;
2022-01-27 12:58:10 +01:00
margin: 0;
2022-05-08 12:34:13 +02:00
max-width: 500px;
2022-01-27 12:58:10 +01:00
border-radius: 3px;
}
input[type="url"],
input[type="text"] {
width: 400px;
}
input:invalid {
color: var(--danger);
border-color: var(--danger);
2020-04-25 10:31:27 +02:00
}
2020-05-06 23:44:23 +02:00
.button svg {
height: 18px;
width: 18px;
}
section.option-block {
2022-05-08 12:34:13 +02:00
width: 750px;
margin: 0 50px;
}
section.option-block h2 {
2022-04-12 01:27:39 +02:00
margin: 0;
}
body.option {
display: flex;
align-items: flex-start;
padding: 40px;
2022-05-08 12:34:13 +02:00
width: 1200px;
}
2022-02-10 18:16:48 +01:00
section.links div {
margin: 20px 0;
}
a {
color: var(--active);
}
section.links a {
display: flex;
align-items: center;
2022-04-02 17:33:03 +02:00
font-size: 18px;
text-decoration: none;
color: white;
transition: 0.1s;
}
2022-02-06 03:58:42 +01:00
section.links a:hover,
section.links a.selected {
color: var(--active);
}
2022-01-29 23:34:33 +01:00
input[type="range"] {
-webkit-appearance: none;
2022-02-06 03:58:42 +01:00
width: 350px;
height: 7px;
border-radius: 50px;
background: var(--text);
}
input[type="range"]:hover {
background: var(--light-grey);
}
input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--active);
border: none;
}
input[type="range"]::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--active);
border: none;
}
::placeholder {
color: var(--text);
opacity: 0.7;
}
2020-05-19 15:48:03 +02:00
2020-09-01 09:26:23 +02:00
#volume-value {
2022-01-29 23:34:33 +01:00
color: var(--active);
2020-09-01 09:26:23 +02:00
}
2022-01-29 23:34:33 +01:00
/* \25BE */
hr {
height: 2px;
2022-01-29 23:34:33 +01:00
margin: 0 15px;
background-color: rgb(77, 77, 77);
border: none;
}
2022-01-27 12:58:10 +01:00
div.some-block {
padding: 0 15px;
justify-content: space-between;
display: flex;
align-items: center;
margin-top: 10px;
margin-bottom: 10px;
}
2022-01-29 23:34:33 +01:00
div.option-block {
margin: 30px 0;
}
h4 {
margin: 10px 0;
font-size: 18px;
}
2022-01-27 12:58:10 +01:00
div.some-block h4 {
margin: 0;
}
2022-01-29 23:34:33 +01:00
div.option-block h4 {
margin-right: 5px;
width: 80%;
2022-05-08 12:34:13 +02:00
min-width: 150px;
2022-01-29 23:34:33 +01:00
font-size: 18px;
}
div.option-block h1 {
margin: 0;
font-size: 28px;
2022-01-29 23:34:33 +01:00
color: var(--active);
2022-01-27 12:58:10 +01:00
}
2022-05-08 12:34:13 +02:00
div.option-block div {
text-align: center;
}
2022-01-27 12:58:10 +01:00
div.some-block input[type="checkbox"] {
2022-04-02 17:33:03 +02:00
width: 46px;
height: 23px;
2022-01-27 12:58:10 +01:00
background-color: var(--light-grey);
border-radius: 50px;
transition: .4s;
cursor: pointer;
}
div.some-block input[type="checkbox"]:checked {
background-color: var(--active);
}
div.some-block input[type="checkbox"]::before {
content: "";
display: inline-block;
2022-04-02 17:33:03 +02:00
width: 18px;
height: 18px;
2022-01-27 12:58:10 +01:00
box-sizing: border-box;
position: relative;
top: 2.5px;
2022-04-02 17:33:03 +02:00
left: 3.5px;
2022-01-27 12:58:10 +01:00
background-color: white;
border-radius: 50%;
2022-02-06 03:58:42 +01:00
transition: .3s;
2022-01-27 12:58:10 +01:00
}
body.rtl div.some-block input[type="checkbox"]::before {
left: auto;
right: 4px;
}
2022-01-27 12:58:10 +01:00
div.some-block input[type="checkbox"]:checked::before {
left: 24px;
}
body.rtl div.some-block input[type="checkbox"]:checked::before {
left: auto;
right: 24px;
}
2022-01-27 12:58:10 +01:00
div.buttons {
2022-02-27 14:18:21 +01:00
display: flex;
margin: 0 15px;
2022-01-27 12:58:10 +01:00
margin-bottom: 15px;
margin-top: 15px;
2022-02-27 14:18:21 +01:00
flex-wrap: wrap;
align-items: center;
}
div.buttons-popup {
border-radius: 5px;
display: flex;
flex-wrap: wrap;
2022-04-18 09:25:50 +02:00
margin: 0 10px 7px 10px;
justify-content: start;
2022-02-27 14:18:21 +01:00
align-items: center;
2022-01-27 12:58:10 +01:00
}
2022-02-26 19:28:30 +01:00
.button {
display: flex;
2022-02-26 19:28:30 +01:00
text-align: center;
2022-02-27 14:18:21 +01:00
justify-content: space-between;
align-items: center;
2022-01-27 12:58:10 +01:00
color: var(--text);
2022-02-27 14:18:21 +01:00
font-size: 16px;
2022-01-27 12:58:10 +01:00
font-weight: bold;
2022-04-18 09:25:50 +02:00
margin: 0;
2022-02-27 14:18:21 +01:00
padding: 5px 5px;
2022-01-27 12:58:10 +01:00
text-decoration: none;
cursor: pointer;
transition-duration: 0.1s;
}
2022-02-27 14:18:21 +01:00
.button:hover {
color: var(--active);
}
.button svg {
2022-04-18 09:25:50 +02:00
width: auto;
height: auto;
2022-02-27 14:18:21 +01:00
padding: 0;
2022-04-18 09:25:50 +02:00
margin-right: 5px;
}
body.rtl {
2022-02-27 14:18:21 +01:00
margin-right: 0;
2022-04-18 09:25:50 +02:00
margin-left: 5px;
2022-02-27 14:18:21 +01:00
}
.button:hover svg {
color: var(--active);
}
2022-01-30 11:20:34 +01:00
div.buttons-inline {
display: flex;
2022-02-27 18:19:09 +01:00
justify-content: start;
/* padding: 0 15px; */
2022-01-30 11:20:34 +01:00
}
2022-02-26 19:28:30 +01:00
.button-inline {
2022-02-27 14:18:21 +01:00
display: inline-flex;
align-items: center;
2022-01-30 11:20:34 +01:00
margin: 7.5px 0;
2022-02-27 14:18:21 +01:00
background-color: var(--bg-secondary);
border-radius: 5px;
padding: 10px;
2022-01-30 11:20:34 +01:00
}
.button:active {
2022-01-27 12:58:10 +01:00
transform: translateY(1px);
}
2022-02-05 11:24:29 +01:00
button.default {
margin-left: 30px;
background-color: transparent;
border: none;
color: white;
padding: 5px;
width: 34px;
height: 34px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
button svg {
2022-02-05 12:08:10 +01:00
color: var(--text);
}
div.checklist div {
justify-content: space-between;
margin: 5px 15px;
padding: 10px 0;
2022-03-30 19:25:39 +02:00
word-wrap: break-word;
display: flex;
}
2022-03-15 12:48:36 +01:00
div.checklist-popup div {
justify-content: space-between;
margin: 5px 15px;
padding: 5px 0;
max-width: 200px;
display: flex;
align-items: center;
}
div.checklist-popup div div {
margin: 0;
}
button.add {
background-color: transparent;
border: none;
padding: 0;
margin: 0;
text-decoration: none;
display: inline-block;
cursor: pointer;
}
div.disabled {
background-color: rgb(39, 39, 39);
position: absolute;
top: 0;
2022-03-15 12:48:36 +01:00
left: 0;
width: 100%;
height: 100%;
}
2022-02-08 18:30:50 +01:00
.light-theme.popup,
.light-theme .popup {
background-color: var(--bg-secondary);
}
body.light-theme {
--text: black;
--bg-main: white;
--bg-secondary: #fff;
--active: #fb9817;
}
body.light-theme select {
border: 1px solid black;
}
body.light-theme textarea {
color: black;
border: 1px solid #767676;
}
body.light-theme textarea:focus {
outline: none;
}
body.light-theme a {
color: black;
2022-04-02 17:33:03 +02:00
}
section.general {
display: flex;
flex-wrap: wrap;
margin-right: 0;
width: 100%;
justify-content: space-between;
}
section.general div {
margin-right: 20px;
}
#customize-popup {
width: 250px;
2022-01-27 12:58:10 +01:00
}