libredirect/src/pages/stylesheets/styles.css

450 lines
6.3 KiB
CSS
Raw Normal View History

body {
--text: #fff;
--bg-main: #121212;
--bg-secondary: #202020;
--active: #fbc117;
--danger: #f04141;
--light-grey: #c3c3c3;
}
2022-02-27 14:18:21 +01:00
@font-face {
font-family: "Inter";
src: url("Inter-VariableFont_slnt,wght.ttf");
font-weight: normal;
font-style: normal;
2022-02-27 14:18:21 +01:00
}
@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;
padding: 0;
font-family: "Inter";
2023-01-30 13:46:10 +01:00
font-size: 16px;
background-color: var(--bg-main);
color: var(--text);
}
body * {
font-family: "Inter";
}
body.rtl {
font-family: "Vazirmatn";
}
body.rtl * {
font-family: "Vazirmatn";
}
div.block input[type="checkbox"] {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
}
2022-03-10 17:41:00 +01:00
.title {
display: flex;
align-items: center;
text-decoration: none;
width: min-content;
color: var(--text);
transition: .1s;
}
.title:hover {
opacity: 1 !important;
}
.title:hover a {
color: var(--active);
2022-02-10 18:16:48 +01:00
}
img,
svg {
margin-right: 10px;
height: 26px;
width: 26px;
color: var(--text);
2022-02-10 18:16:48 +01:00
}
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 {
font-weight: bold;
box-sizing: border-box;
border-style: solid;
border-color: #767676;
color: var(--text);
font-size: 16px;
padding: 8px;
background-color: var(--bg-secondary);
border: none;
margin: 0;
max-width: 500px;
border-radius: 3px;
}
input[type="url"],
input[type="text"] {
width: 400px;
2022-10-03 20:49:12 +02:00
cursor: text;
}
input:invalid {
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.block-option {
width: 750px;
margin: 0 50px;
}
section.block-option h2 {
margin: 0;
2022-04-12 01:27:39 +02:00
}
body.option {
display: flex;
padding: 40px;
width: 1160px;
}
section.links {
display: flex;
flex-wrap: wrap;
flex-direction: column;
width: 350px;
max-height: 970px;
}
2022-02-10 18:16:48 +01:00
section.links div {
margin: 10px;
width: max-content;
2022-02-10 18:16:48 +01:00
}
a {
text-decoration: none;
color: var(--text);
transition: 0.1s;
}
a:hover {
color: var(--active);
}
section.links a {
display: flex;
align-items: center;
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 .selected {
opacity: 1 !important;
}
section.links .selected a {
color: var(--active);
}
::placeholder {
color: var(--text);
opacity: 0.7;
}
2020-05-19 15:48:03 +02:00
hr {
height: 2px;
margin: 0 15px;
background-color: rgb(77, 77, 77);
border: none;
}
div.block {
padding: 0 15px;
justify-content: space-between;
display: flex;
align-items: center;
margin-top: 10px;
margin-bottom: 10px;
2022-01-27 12:58:10 +01:00
}
div.block-option {
margin: 30px 0;
2022-01-29 23:34:33 +01:00
}
div.block-option label {
margin-right: 5px;
width: 80%;
min-width: 150px;
font-size: 18px;
2022-01-29 23:34:33 +01:00
}
div.block-option h1 {
margin: 0;
font-size: 28px;
color: var(--text);
2022-01-27 12:58:10 +01:00
}
div.block-option div {
text-align: center;
2022-05-08 12:34:13 +02:00
}
div.block input[type="checkbox"] {
width: 46px;
height: 24px;
background-color: var(--light-grey);
border-radius: 50px;
transition: 0.4s;
cursor: pointer;
2022-01-27 12:58:10 +01:00
}
div.block input[type="checkbox"]:checked {
background-color: var(--active);
2022-01-27 12:58:10 +01:00
}
div.block input[type="checkbox"]::before {
content: "";
display: inline-block;
width: 18px;
height: 18px;
box-sizing: border-box;
position: relative;
top: 2.5px;
left: 3.5px;
background-color: white;
border-radius: 50%;
transition: 0.3s;
2022-01-27 12:58:10 +01:00
}
body.rtl div.block input[type="checkbox"]::before {
left: auto;
right: 4px;
}
div.block input[type="checkbox"]:checked::before {
left: 24px;
2022-01-27 12:58:10 +01:00
}
body.rtl div.block input[type="checkbox"]:checked::before {
left: auto;
right: 24px;
}
2022-01-27 12:58:10 +01:00
div.buttons {
display: flex;
margin: 0 15px;
margin-bottom: 15px;
margin-top: 15px;
flex-wrap: wrap;
align-items: center;
justify-content: start;
2022-01-27 12:58:10 +01:00
}
2022-02-26 19:28:30 +01:00
.button {
color: var(--text);
font-size: 16px;
font-weight: bold;
text-decoration: none;
cursor: pointer;
transition-duration: 0.1s;
2022-01-27 12:58:10 +01:00
}
2022-02-27 14:18:21 +01:00
.button:hover {
color: var(--active);
2022-02-27 14:18:21 +01:00
}
.button svg {
width: auto;
height: auto;
padding: 0;
margin-right: 5px;
2022-04-18 09:25:50 +02:00
}
2022-02-27 14:18:21 +01:00
.button:hover svg {
color: var(--active);
2022-02-27 14:18:21 +01:00
}
2022-02-26 19:28:30 +01:00
.button-inline {
display: inline-flex;
align-items: center;
margin: 7.5px 0;
background-color: var(--bg-secondary);
border-radius: 5px;
padding: 10px;
2022-01-30 11:20:34 +01:00
}
.button:active {
transform: translateY(1px);
2022-01-27 12:58:10 +01:00
}
button svg {
color: var(--text);
2022-02-05 12:08:10 +01:00
}
div.checklist div {
justify-content: space-between;
margin: 5px 15px;
padding: 10px 0;
word-wrap: break-word;
display: flex;
}
div.checklist a {
text-decoration: none;
color: var(--text);
}
div.checklist a:hover {
text-decoration: underline;
}
div.custom-checklist x a {
2023-01-19 18:32:32 +01:00
color: var(--active);
}
button.add {
background-color: transparent;
border: none;
padding: 0;
margin: 0;
text-decoration: none;
display: inline-block;
cursor: pointer;
}
2022-02-08 18:30:50 +01:00
body.light-theme {
--text: black;
--bg-main: white;
2023-01-30 13:46:10 +01:00
--bg-secondary: #e4e4e4;
--active: #fb9817;
2022-02-08 18:30:50 +01:00
}
body.light-theme select {
border: 1px solid black;
2022-02-08 18:30:50 +01:00
}
body.light-theme a {
color: black;
2022-04-02 17:33:03 +02:00
}
body.light-theme a:hover {
color: var(--active)
}
button {
background-color: transparent;
color: var(--text);
border: none;
text-decoration: none;
display: inline-block;
cursor: pointer;
border-radius: 5px;
}
body div section {
display: none;
2022-06-28 09:31:34 +02:00
}
2022-10-03 20:49:12 +02:00
select:disabled {
opacity: 0.6;
cursor: not-allowed;
}
input:disabled {
opacity: 0.6;
cursor: not-allowed;
}
@media (max-width: 1250px) {
body.option {
flex-direction: column;
2024-03-14 11:28:47 +01:00
width: 95vw;
align-items: center;
2024-03-14 11:28:47 +01:00
padding: 40px 0px;
}
section.links {
flex-direction: row;
2024-03-14 11:28:47 +01:00
width: 95vw;
padding: 0 55px;
}
2024-03-14 11:28:47 +01:00
section.block-option {
width: 95vw;
}
div.checklist div x {
overflow: hidden;
}
}
html.mobile img,
html.mobile svg {
margin-right: 10px;
height: 30px;
width: 30px;
color: var(--text);
}
html.mobile div.block {
padding: 0 15px;
justify-content: space-between;
display: flex;
align-items: center;
margin-top: 20px;
margin-bottom: 20px;
}
html.mobile div.block input[type="checkbox"] {
width: 58px;
height: 30px;
}
html.mobile div.block input[type="checkbox"]::before {
width: 24px;
height: 24px;
top: 3px;
left: 3.5px;
}
html.mobile div.block input[type="checkbox"]:checked::before {
left: 30px;
}
html.mobile body.option {
flex-direction: column;
width: 100%;
padding: 0;
align-items: center;
}
html.mobile section.links {
flex-direction: row;
width: 100%;
padding: 0 55px;
}
html.mobile section.block-option {
width: 100%;
}