Files
msgr/messenger-server/public/style.css
2026-06-23 12:04:01 +03:00

310 lines
5.0 KiB
CSS

:root {
--text-color: #222222;
--primary-color: #388bfd;
--primary-hover-color: #006aff;
--transition: 0.3s;
--border-color: rgb(211 211 211 / 60%);
--border-radius: 40px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
a,
li,
button {
-webkit-tap-highlight-color: transparent;
}
html::selection {
color: white;
background-color: var(--primary-color);
}
html {
color: var(--text-color);
}
header {
position: sticky;
top: 0;
z-index: 10;
backdrop-filter: blur(10px);
background: rgb(255 255 255 / 40%);
}
header nav ul {
display: flex;
}
header nav ul li {
cursor: pointer;
position: relative;
}
header nav ul li a {
font-size: 18px;
padding: 14px 20px;
display: block;
}
header nav ul li::after {
pointer-events: none;
content: '';
position: absolute;
left: 50%;
bottom: 0;
width: 0;
height: 4px;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
background-color: var(--primary-color);
transition: var(--transition);
}
header nav li:hover::after,
header nav li.active::after {
left: 20px;
width: calc(100% - 40px);
}
h2,
h3 {
font-weight: 500;
}
li {
list-style-type: none;
}
a {
color: var(--primary-color);
text-decoration: none;
}
footer .mobile {
display: none;
text-align: center;
padding-block: 20px;
border-top: 1px solid var(--border-color);
}
footer .desktop {
display: flex;
justify-content: space-between;
padding-block: 20px;
border-top: 1px solid var(--border-color);
}
footer a:hover {
color: var(--primary-hover-color);
}
footer .slang h3 {
display: inline-block;
}
footer .col {
max-width: 300px;
width: 100%;
}
footer .title {
padding-bottom: 10px;
}
.container {
max-width: 1024px;
padding-inline: 20px;
margin-inline: auto;
}
.hero {
text-align: center;
margin-block: 50px;
}
.hero h1 {
font-size: 3rem;
font-weight: 800;
margin-bottom: 2rem;
background: linear-gradient(90deg, #58a6ff, #a371f7);
background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero p {
font-size: 1.5rem;
margin-bottom: 2.5rem;
font-weight: 400;
opacity: 0.8;
}
.btn-hero {
display: inline-block;
text-decoration: none;
color: white;
font-size: 24px;
font-weight: 500;
border-radius: 20px;
padding: 16px 24px;
background-color: var(--primary-color);
transition: var(--transition);
}
.btn-hero:hover {
color: white;
}
.btn-hero:active {
scale: 0.98;
}
section {
padding-block: 100px;
}
.section-title {
font-size: 2rem;
text-align: center;
margin-bottom: 40px;
}
.features-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 20px;
justify-items: center;
}
.feature-card {
text-align: center;
max-width: 500px;
padding: 28px;
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
background: rgb(252 252 252);
transition: var(--transition);
}
@starting-style {
.feature-card {
opacity: 0;
translate: 0 10px;
}
}
.feature-card:hover {
border-color: var(--primary-color);
}
.feature-card:hover .icon svg {
fill: var(--primary-color);
}
.feature-card .icon {
margin-bottom: 20px;
}
.feature-card .icon svg {
width: 48px;
height: 48px;
transition: var(--transition);
}
.feature-card h3 {
font-size: 1.6rem;
margin-bottom: 10px;
}
.feature-card p {
line-height: 1.4;
}
.opensource-content {
padding: 28px;
margin-inline: auto;
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
background: rgb(252 252 252);
}
.opensource p {
line-height: 1.4;
text-wrap: balance;
text-align: center;
}
.opensource-buttons {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 2rem;
}
.opensource-buttons a {
display: inline-block;
text-align: center;
text-decoration: none;
font-weight: 600;
padding: 14px 28px;
color: var(--primary-color);
border-radius: 20px;
border: 2px solid var(--primary-color);
transition: var(--transition);
}
.opensource-buttons a:hover {
background-color: var(--primary-color);
color: white;
}
@media screen and (width <=768px) {
.hero h1 {
font-size: 28px;
line-height: 34px;
margin-bottom: 0;
}
.hero p {
font-size: 16px;
margin-block: 16px 32px;
}
.hero .btn-hero {
font-size: 18px;
}
.btn-hero {
display: block;
}
.features-grid {
grid-template-columns: 1fr;
grid-template-rows: repeat(2, 1fr);
}
.opensource-content {
max-width: 500px;
}
.opensource-buttons {
flex-direction: column;
}
.opensource-buttons a {
width: 100%;
}
.desktop {
display: none !important;
}
.mobile {
display: block !important;
}
}