website/static/custom.css
grey-cat-1908 8f0c07fe89 hihi-haha
2023-10-21 12:46:00 +03:00

187 lines
2.8 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;400;600&display=swap');
:root {
--font: 'Onest', sans-serif;
--bg-color: #15171f;
--font-color: #dadada;
--font-size: 17px;
}
@font-face {
src: url("./fonts/Onest-Bold.ttf");
font-family: "Onest";
font-weight: 600;
}
@font-face {
src: url("./fonts/Onest-Medium.ttf");
font-family: "Onest";
font-weight: 400;
}
@font-face {
src: url("./fonts/Onest-Regular.ttf");
font-family: "Onest";
font-weight: 200;
}
body {
padding: 0;
margin: 0;
background-color: var(--bg-color);
font-family: var(--font);
color: var(--font-color);
font-size: var(--font-size);
font-weight: 200;
}
button, a {
outline: 0;
border: 0;
text-decoration: none;
background: 0;
font-family: var(--font);
color: var(--font-color);
font-size: var(--font-size);
}
nav {
/* ground-color: #0d0e13; */
}
nav .container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
border-bottom: 1px solid #9f9f9f;
}
.container {
max-width: 1300px;
margin: 0 auto;
padding: 0 20px;
}
.nav-avatar {
display: flex;
align-items: center;
}
.nav-avatar img {
width: 60px;
border-radius: 1rem;
}
.nav-name {
font-size: 20px;
font-weight: 600;
}
.nav-toggle-button {
display: none;
cursor: pointer;
}
.nav-list {
list-style: none;
display: flex;
gap: 10px 40px;
}
.nav-button {
transition: .12s ease-in-out;
}
.nav-button:hover {
color: #c7c7c7;
}
.mc {
margin-top: 50px;
}
/* РАЗМЕТКА */
.mc h1, .mc h2, .mc h3, .mc h4, .mc h5 {
color: #fff;
}
.mc a {
color: #fff;
font-weight: 400;
}
.mc a:hover {
text-decoration: underline;
}
.mc code {
color: #fff;
background-color: #0d0e13;
border-radius: 0.1rem;
}
.mc table {
display: block;
width: 100%;
flex-direction: column;
text-align: left;
border-collapse: collapse;
white-space: nowrap;
margin-bottom: 15px;
}
.mc table * {
}
.mc table td, table th {
padding: 15px;
border-bottom: 1px solid #d6d6d6;
}
@media (max-width: 520px) {
.nav-toggle-button {
display: block;
font-size: 25px;
}
.nav-toggle {
max-height: 0;
overflow: hidden;
transition: max-height .5s;
}
.nav-toggle.active {
max-height: 200px;
}
nav .container {
flex-direction: column;
}
.nav-toggle .nav-list {
flex-direction: column;
padding: 0;
gap: 15px 0;
}
.nav-toggle {
width: 100%;
}
.nav-main {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
}