fixed start page and scroll in modal window

This commit is contained in:
SlimusMinus
2026-08-18 01:06:50 +03:00
parent 272a0bd050
commit 10fea3cf2a
17 changed files with 142 additions and 68 deletions

View File

@@ -2,8 +2,8 @@
.nk-page {
font-family: 'Inter', sans-serif;
background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
color: #262626;
background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-app) 100%);
color: var(--text-primary);
min-height: 100vh;
}
@@ -71,10 +71,10 @@
.nk-grid {
position: absolute;
inset: 0;
background-image: radial-gradient(rgba(38, 38, 38, 0.10) 1px, transparent 1px);
background-image: radial-gradient(var(--text-primary) 1px, transparent 1px);
background-size: 26px 26px;
animation: drift 14s linear infinite;
opacity: 0.5;
opacity: 0.1;
}
.nk-glow {
@@ -100,7 +100,7 @@
font-size: 22px;
font-weight: 600;
letter-spacing: 0.01em;
color: #262626;
color: var(--text-primary);
}
.nk-nav-right {
@@ -109,10 +109,11 @@
gap: 10px;
}
.nk-lang-btn {
background: #ffffff;
border: 1px solid #dbdbdb;
color: #262626;
.nk-lang-btn,
.nk-theme-btn {
background: var(--bg-card);
border: 1px solid var(--border);
color: var(--text-primary);
padding: 9px 12px;
border-radius: 999px;
font-size: 12px;
@@ -124,8 +125,13 @@
transition: background 0.2s;
}
.nk-lang-btn:hover {
background: #f0f0f0;
.nk-theme-btn {
padding: 9px;
}
.nk-lang-btn:hover,
.nk-theme-btn:hover {
background: var(--hover-bg);
}
.nk-nav-btn {
@@ -194,16 +200,17 @@
position: relative;
z-index: 2;
max-width: 620px;
margin-top: 90px;
margin-top: 40px;
animation: riseIn 0.8s ease both;
}
.nk-eyebrow {
display: inline-block;
font-size: 13px;
color: #737373;
font-size: 20px;
text-align: center;
color: var(--muted);
letter-spacing: 0.04em;
margin-bottom: 18px;
margin-bottom: 30px;
text-transform: uppercase;
font-weight: 600;
}
@@ -211,10 +218,10 @@
.nk-h1 {
font-family: 'Fraunces', serif;
font-weight: 600;
font-size: clamp(34px, 5.2vw, 58px);
font-size: clamp(30px, 6.76vw, 75px);
line-height: 1.08;
margin: 0 0 22px;
color: #262626;
color: var(--text-primary);
}
.nk-accent {
@@ -227,7 +234,7 @@
.nk-lead {
font-size: 17px;
line-height: 1.6;
color: #737373;
color: var(--muted);
max-width: 500px;
margin-bottom: 34px;
}
@@ -259,11 +266,12 @@
.nk-cta-hint {
font-size: 13px;
color: #737373;
color: var(--muted);
}
.nk-steps-section {
padding: 0 6vw 60px;
margin-top: -60px;
}
.nk-h2 {
@@ -272,7 +280,7 @@
font-weight: 600;
margin-bottom: 42px;
text-align: center;
color: #262626;
color: var(--text-primary);
}
.nk-steps-grid {
@@ -284,22 +292,22 @@
}
.nk-step-card {
background: #ffffff;
border: 1px solid #dbdbdb;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 20px;
padding: 26px 24px;
transition: border-color 0.2s, box-shadow 0.2s;
}
.nk-step-card:hover {
border-color: rgba(0, 149, 246, 0.4);
border-color: rgba(var(--teal-rgb), 0.4);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.nk-step-num {
font-family: 'Fraunces', serif;
font-size: 15px;
color: #0095f6;
color: var(--teal);
font-weight: 600;
}
@@ -307,13 +315,13 @@
font-size: 18px;
font-weight: 600;
margin: 12px 0 8px;
color: #262626;
color: var(--text-primary);
}
.nk-step-text {
font-size: 14.5px;
line-height: 1.55;
color: #737373;
color: var(--muted);
}
.nk-final-cta {
@@ -327,7 +335,7 @@
text-align: center;
padding: 24px 0 34px;
font-size: 13px;
color: #b0b0b0;
color: var(--muted2);
}
@media (max-width: 768px) {

View File

@@ -31,13 +31,7 @@
.f-card-author { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.f-card-author-name {
color: var(--text-primary); font-weight: 800; font-size: 1.1rem;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.f-card-author-name.f-truncatable { cursor: pointer; }
.f-card-author-name.f-expanded {
white-space: normal;
overflow: visible;
text-overflow: clip;
word-break: break-word;
}
.f-card-author-loc {
color: var(--muted); font-size: .78rem;
@@ -366,3 +360,10 @@
position: relative;
}
.f-date-pill:hover { background: var(--hover-bg); }
@media (max-width: 600px) {
.f-card-contact {
padding: 20px 56px;
font-size: 1.5rem;
}
}

View File

@@ -70,6 +70,7 @@
.chat-messages {
flex: 1;
overflow-y: auto;
overscroll-behavior: contain;
padding: 20px;
display: flex;
flex-direction: column;
@@ -194,6 +195,7 @@
.chat-list {
flex: 1;
overflow-y: auto;
overscroll-behavior: contain;
padding: 8px;
max-width: 560px;
width: 100%;
@@ -352,4 +354,8 @@
.chat-bubble {
max-width: 85%;
}
.f-card-contact {
padding: 10px 28px;
font-size: 0.9rem;
}
}

View File

@@ -306,7 +306,7 @@
.f-wrap { display: flex; flex: 1; overflow: hidden; min-height: 0; }
.f-feed {
flex: 1; overflow-y: scroll; min-height: 0;
flex: 1; overflow-y: scroll; overscroll-behavior: contain; min-height: 0;
padding: 20px 16px; display: flex; flex-direction: column; gap: 16px;
width: 100%; max-width: 660px; margin: 0 auto;
}

View File

@@ -274,12 +274,23 @@
align-items: flex-end;
}
.f-modal {
.f-modal-bg.auth-modal-bg {
align-items: center;
}
.f-modal:not(.auth-modal) {
width: 100%;
max-height: 92vh;
border-radius: 20px 20px 0 0;
padding: 20px 16px 32px; /* 32px снизу — отступ от home indicator */
}
.auth-modal {
width: 100%;
max-height: 80vh;
border-radius: 20px;
padding: 20px 16px 32px;
}
}
/* ── Rules Checkbox ── */

View File

@@ -12,6 +12,7 @@
padding: 20px;
flex: 1;
overflow-y: auto;
overscroll-behavior: contain;
max-width: 900px;
width: 100%;
margin: 0 auto;