anotherim-website/style.css

276 lines
5 KiB
CSS
Raw Normal View History

2024-11-20 09:02:07 +00:00
body, a, p, h1, h2, h3, h5, ul, li {
margin: 0;
padding: 0;
}
body {
background-color: var(--background-color);
color: var(--main-color);
font-family: 'GeistMono', sans-serif;
font-weight: 200;
font-size: 1rem;
2024-12-11 05:48:58 +00:00
position: relative;
height: 100vh;
2024-11-18 13:52:49 +00:00
}
2024-11-18 17:28:08 +00:00
html {
font-size: 100%;
}
2024-11-19 16:31:01 +00:00
:root {
2024-11-20 09:02:07 +00:00
--main-color: #eee;
--accent-color: #989898;
--background-color: #000;
}
@font-face {
font-family: 'GeistMono';
src: url('font/GeistMono.ttf') format('truetype');
}
h1, h2, h3 {
font-family: 'GeistMono';
font-weight: 700;
}
.nav_butt_1, .nav_butt_2, .content_butt {
display: inline-block;
text-align: center;
text-decoration: none;
}
.nav_butt_1, .nav_butt_2 {
box-sizing: content-box;
border: 1px solid var(--main-color);
color: var(--main-color);
width: 140px;
padding: 12px 12px;
margin-top: 12px;
}
.nav_butt_1:hover, .nav_butt_2:hover,
.nav_butt_1:active, .nav_butt_2:active {
2024-11-19 18:44:25 +00:00
background-color: var(--main-color);
2024-11-20 09:02:07 +00:00
color: var(--background-color);
2024-11-18 13:52:49 +00:00
}
2024-11-20 09:02:07 +00:00
.content_butt {
font-weight: 500;
color: var(--accent-color);
text-decoration: underline;
2024-11-18 13:52:49 +00:00
}
.content_butt:hover, .content_butt:active {
2024-11-19 18:44:25 +00:00
background-color: var(--main-color);
2024-11-20 09:02:07 +00:00
color: var(--background-color);
}
.page_container, .main_container {
max-height: 100vh;
margin: 0 auto;
text-align: center;
}
.main_container {
max-width: 800px;
2024-12-11 05:48:58 +00:00
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
2024-11-20 09:02:07 +00:00
}
.nav_box {
height: 100vh;
width: 20%;
border-right: 1px solid var(--main-color);
position: fixed;
padding-top: 8vh;
}
.content_wrap {
width: 80%;
float: right;
position: relative;
text-align: left;
}
.content_box {
margin: 40px;
padding-bottom: 40px;
}
.content_box img {
max-width: 100%;
}
.logo, .logo_home {
max-width: 80px;
padding-bottom: 28px;
border: none;
background-color: transparent;
}
.post_box {
width: 100%;
padding: 8px;
border: 1px solid var(--accent-color);
margin-bottom: 20px;
}
.post_name {
margin-bottom: 20px;
text-transform: uppercase;
}
.post_description, .post_date {
margin-bottom: 20px;
}
.post_date {
float: right;
}
.multiline {
display: -webkit-box;
2024-11-18 15:08:10 +00:00
-webkit-box-orient: vertical;
overflow: hidden;
2024-11-20 09:02:07 +00:00
-webkit-line-clamp: 2;
2024-11-18 15:28:38 +00:00
}
2024-11-20 09:02:07 +00:00
.links {
padding-top: 100px;
margin: 0 auto;
}
.burger-toggle {
2024-11-20 09:02:07 +00:00
display: none;
}
.burger {
2024-11-20 09:02:07 +00:00
display: none;
cursor: pointer;
position: absolute;
top: 20px;
right: 20px;
width: 32px;
z-index: 2;
}
.burger .line {
2024-11-20 09:02:07 +00:00
width: 100%;
height: 4px;
background-color: var(--main-color);
margin: 4px 0;
}
.contacts {
margin: 0 auto;
padding-top: 40vh;
width: 300px;
}
.navigation {
padding-top: 48px;
margin: 0 auto;
}
.goback {
margin-bottom: 24px;
}
@media (max-width: 768px) {
html {
font-size: 85%;
}
2024-11-20 09:02:07 +00:00
.logo, .logo_home{
max-width: 28px;
padding: 0;
}
.main_container{
2024-11-20 09:02:07 +00:00
max-width: 95%;
max-height: 100vh;
text-align: center;
}
.links{
2024-11-20 09:02:07 +00:00
padding-top:48px;
justify-content: space-between;
display: block;
}
.content_wrap{
width: 100%;
margin-top: 12px;
}
.content_box{
2024-11-20 09:02:07 +00:00
width: 95%;
margin: 0 auto;
}
.post_box{
width: 99%;
padding: 4px 2px 4px 2px;
margin-bottom: 20px;
}
.logo{
width: 40px;
}
.nav_box {
width: 100%;
border-right: none;
2024-11-19 16:31:01 +00:00
border-bottom: solid 1px var(--main-color);
position: relative;
2024-11-20 09:02:07 +00:00
padding-top: 8px;
padding-bottom: 8px;
display: flex;
justify-content: center;
height: auto;
grid-gap:20px;
}
2024-11-20 09:02:07 +00:00
.nav_butt_1, .nav_butt_2 {
width: 120px;
}
.burger {
display: block;
cursor: pointer;
position: absolute;
2024-11-20 09:02:07 +00:00
top: 8px;
right: 20px;
2024-11-20 09:02:07 +00:00
width: 28px;
height: 24px;
z-index: 2;
}
.burger .line {
width: 100%;
height: 3px;
2024-11-19 16:31:01 +00:00
background-color: var(--main-color);
margin: 5px 0;
transition: transform 0.1s ease, opacity 0.1s ease, background-color 0.1s ease;
}
.burger-toggle:checked + .burger .line:nth-child(1) {
2024-11-19 09:34:49 +00:00
transform: translateY(8px) rotate(45deg);
}
.burger-toggle:checked + .burger .line:nth-child(2) {
2024-11-19 18:44:25 +00:00
opacity: 0;
}
.burger-toggle:checked + .burger .line:nth-child(3) {
2024-11-19 09:34:49 +00:00
transform: translateY(-8px) rotate(-45deg);
}
.burger-toggle:checked ~ .navigation {
display: flex;
opacity: 1;
transform: translateY(0);
}
.navigation {
position: absolute;
top: 100%;
left: 0;
width: 100%;
2024-11-19 16:31:01 +00:00
background-color: var(--background-color);
flex-direction: column;
2024-11-19 16:31:01 +00:00
border-bottom: solid 1px var(--main-color);
align-items: center;
2024-11-19 18:44:25 +00:00
transform: translateY(-20px);
opacity: 0;
visibility: hidden;
transition: transform 0.3s ease, opacity 0.3s ease;
z-index: 1;
padding-top: 20px;
padding-bottom: 20px;
}
.burger-toggle:checked ~ .navigation {
2024-11-19 18:44:25 +00:00
transform: translateY(0);
opacity: 1;
visibility: visible;
display: block;
}
.navigation a {
2024-11-20 09:02:07 +00:00
padding: 16px;
text-align: center;
}
.burger-toggle:checked ~ .navigation {
2024-11-19 18:44:25 +00:00
display: block;
}
}
@media (min-width: 769px) {
.burger {
display: none;
}
.navigation {
display: block;
}
}
/*
Front build by
nikitajevdookishkin.github.io/designer/
*/