Files
lab7/articles/static/index.css
2025-10-21 02:44:19 +03:00

134 lines
1.9 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
body {
background: #1e293b;
font-family: "Montserrat", sans-serif;
color: #f1f5f9;
max-width: 1200px;
margin: auto;
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px;
}
a {
color: #7dd3fc;
}
.header {
display: flex;
gap: 10px;
}
.auth-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo-div {
display: flex;
gap: 10px;
}
.login-sep {
display: inline;
}
.one-post {
background: #273449;
border: solid 1px #334155;
border-radius: 10px;
padding-left: 15px;
padding-right: 15px;
}
.one-post:hover {
background: #334661;
transition: .3s ease-in;
}
.article-created-date {
font-size: 12px;
}
.archive {
display: grid;
gap: 20px;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.post-link {
text-decoration: none;
color: unset;
}
.article-meta {
display: flex;
justify-content: space-between;
}
.article-header {
margin: 0;
}
form {
display: flex;
flex-direction: column;
gap: 20px
}
.submit {
margin: auto;
}
.text {
min-height: 500px;
}
.error {
color: red;
}
.login-form {
max-width: 400px;
margin: auto;
}
.registration-header {
text-align: center;
}
.registration-error {
text-align: center;
margin-top: 10px;
}
.fold-button {
margin-bottom: 10px;
color: #7dd3fc;
border: 2px solid #7dd3fc;
border-radius: 5px;
background-color: transparent;
cursor: pointer;
transition: all 0.5s ease;
padding: 5px 8px;
}
.fold-button:hover {
background-color: #1e293b;
}
.one-post-content {
max-height: 500px;
overflow: hidden;
transition: all 0.5s ease;
opacity: 1;
}
.one-post-content.hidden {
max-height: 0;
opacity: 0;
}