mirror of
https://github.com/grey-cat-1908/website.git
synced 2024-11-11 18:57:26 +03:00
199 lines
2.9 KiB
CSS
199 lines
2.9 KiB
CSS
@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; */
|
||
|
||
|
||
}
|
||
|
||
img {
|
||
max-inline-size: 80%;
|
||
block-size: auto;
|
||
display: block;
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
}
|
||
|
||
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 pre {
|
||
background-color: #0d0e13;
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
}
|