Nashboard/static/styles/main.css

200 lines
3.4 KiB
CSS
Raw Normal View History

2022-12-14 02:27:39 +03:00
@import url("../fonts/iosevka-aile.css");
:root {
--col-gr-100: #012;
--col-gr-200: #234;
--col-gr-300: #456;
--col-gr-400: #678;
--col-gr-500: #89a;
--col-gr-600: #abc;
--col-gr-700: #cde;
--col-gr-800: #def;
--col-acc-1: #d15c5c;
--col-acc-2: #f36d6d;
--col-acc-0: #993d3d;
2022-12-14 12:10:00 +03:00
--col-fg-1: var(--col-gr-100);
--col-fg-2: var(--col-gr-200);
--col-fg-3: var(--col-gr-300);
2022-12-14 02:27:39 +03:00
--col-bg-1: var(--col-gr-600);
--col-bg-2: var(--col-gr-700);
--col-bg-3: var(--col-gr-800);
}
2022-12-14 12:10:00 +03:00
@media (prefers-color-scheme: dark) {
:root {
--col-fg-1: var(--col-gr-800);
--col-fg-2: var(--col-gr-700);
--col-fg-3: var(--col-gr-600);
--col-bg-1: var(--col-gr-300);
--col-bg-2: var(--col-gr-200);
--col-bg-3: var(--col-gr-100);
}
}
2022-12-14 02:27:39 +03:00
h1,
h2,
h3,
h4,
h5,
h6 {
padding: 0;
margin: 0;
}
body {
min-height: 100vh;
2022-12-14 12:10:00 +03:00
color: var(--col-fg-2);
2022-12-14 02:27:39 +03:00
background-color: var(--col-bg-1);
font-family: "Iosevka Aile Web";
box-sizing: border-box;
font-size: 1.3rem;
margin: 0;
padding: 0;
}
.wrapper {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
max-width: 1400px;
margin: auto;
2022-12-14 02:27:39 +03:00
}
.panel {
display: flex;
flex-direction: column;
2022-12-14 12:10:00 +03:00
color: var(--col-fg-1);
2022-12-14 02:27:39 +03:00
background-color: var(--col-bg-2);
box-shadow: 2px 2px 100px #1115;
2022-12-14 12:10:00 +03:00
padding: 1em;
2022-12-14 02:27:39 +03:00
text-align: center;
}
2022-12-14 12:10:00 +03:00
a {
text-decoration: none;
color: var(--col-acc-2);
2022-12-14 12:10:00 +03:00
}
2022-12-14 02:27:39 +03:00
#bookmarks {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
/* overflow-y: auto; */
2022-12-14 02:27:39 +03:00
}
.card {
display: flex;
justify-content: center;
2022-12-14 02:27:39 +03:00
flex-direction: column;
color: var(--col-fg-1);
2022-12-14 02:27:39 +03:00
background-color: var(--col-bg-2);
box-shadow: 2px 2px 100px #1115;
text-align: left;
2022-12-14 12:10:00 +03:00
padding: 1em 2.5em 1em 1em;
2022-12-14 02:27:39 +03:00
margin: 1em;
2022-12-14 12:10:00 +03:00
transition: all 200ms ease;
position: relative;
z-index: 0;
/* width: 320px; */
height: 120px;
}
.card.hoverable::before {
content: "";
display: block;
position: absolute;
left: 0;
top: 0;
width: 0%;
transition: all 200ms ease;
height: 100%;
background-color: var(--col-acc-0);
z-index: -1;
}
.card.hoverable:hover::before {
width: 100%;
2022-12-14 12:10:00 +03:00
}
.card .xmark {
position: absolute;
display: block;
width: 0.8em;
height: 0.8em;
/* border: 1px solid red; */
right: 1em;
top: 1em;
}
2022-12-14 12:10:00 +03:00
.tags {
font-size: 0.8em;
color: var(--col-fg-3);
2022-12-14 02:27:39 +03:00
}
form {
display: flex;
flex-direction: column;
margin: 20px;
}
input {
background-color: var(--col-bg-3);
2022-12-14 12:10:00 +03:00
color: var(--col-fg-1);
2022-12-14 02:27:39 +03:00
border: none;
padding: 1em 1em;
font-size: 1em;
2022-12-14 12:10:00 +03:00
box-shadow: 2px 2px 50px #1115;
transition: all 200ms ease;
2022-12-14 02:27:39 +03:00
margin: 1em 0;
}
2022-12-14 12:10:00 +03:00
input:hover,
input:focus {
box-shadow: 2px 2px 50px var(--col-acc-2);
}
2022-12-14 02:27:39 +03:00
input[type="submit"],
button,
.btn {
background-color: var(--col-acc-1);
transition: background-color 150ms ease;
color: white;
}
input[type="submit"]:hover,
button:hover,
.btn:hover {
background-color: var(--col-acc-2);
}
input[type="submit"]:focus,
button:focus,
.btn:focus {
background-color: var(--col-acc-0);
}
.accent {
background-color: var(--col-acc-1);
color: white;
}
.modal-base {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: #0005;
opacity: 0;
backdrop-filter: blur(10px);
transition: all 300ms ease;
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
/* display: none; */
pointer-events: none;
}
.modal-base.show {
opacity: 1;
pointer-events: all;
}