Skip to content

Commit 9fadee3

Browse files
committed
Increase heading contrast
1 parent 1d36724 commit 9fadee3

3 files changed

Lines changed: 31 additions & 22 deletions

File tree

src/main/resources/static/style.css

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body {
88
flex-direction: column;
99
min-height: 100vh;
1010
margin: 0;
11-
font-size: 1.25rem; /* enlarge text */
11+
font-size: 1.875rem; /* enlarge text by 50% */
1212
}
1313

1414
@media (prefers-color-scheme: dark) {
@@ -18,22 +18,25 @@ body {
1818
}
1919
}
2020
h1, h2, p {
21-
margin: 0.5em 0;
21+
margin: 0.75em 0; /* increased spacing */
2222
}
2323

2424
h1 {
25-
font-size: 2em;
25+
font-family: "Georgia", "Times New Roman", serif; /* distinct font */
26+
font-size: 4rem; /* significantly larger */
2627
font-weight: 700;
27-
margin-bottom: 0.75em;
28+
margin-bottom: 1.125em; /* increased spacing */
2829
}
2930

3031
h2 {
31-
font-size: 1.5em;
32+
font-family: "Georgia", "Times New Roman", serif; /* distinct font */
33+
font-size: 3rem; /* significantly larger */
3234
font-weight: 600;
33-
margin-bottom: 0.5em;
35+
margin-bottom: 0.75em; /* increased spacing */
3436
}
3537

3638
ul { list-style: none; padding: 0; }
39+
ul li { margin-bottom: 0.75em; }
3740
summary {
3841
cursor: pointer;
3942
font-weight: bold;
@@ -49,46 +52,52 @@ main {
4952
padding: 1rem;
5053
text-align: left;
5154
}
55+
56+
.markdown-body {
57+
font-size: 1.5em; /* larger markdown text */
58+
}
5259
@keyframes fadeIn {
5360
from { opacity: 0; }
5461
to { opacity: 1; }
5562
}
5663

57-
button.btn {
58-
padding-top: 0.25rem;
59-
padding-bottom: 0.25rem;
64+
/* style all buttons and button-like links */
65+
.btn {
66+
padding-top: 0.5rem; /* increased padding */
67+
padding-bottom: 0.5rem;
6068
font-weight: 700;
61-
font-size: 1.05rem;
69+
font-size: 1.575rem; /* 50% larger */
6270
}
6371

6472
.question {
65-
margin-bottom: 1rem;
73+
margin-bottom: 1.5rem; /* increased spacing */
6674
}
6775

6876
details.answer-container {
69-
margin-top: 1rem;
77+
margin-top: 1.5rem; /* increased spacing */
7078
}
7179

7280
details.answer-container summary {
73-
background-color: #eff6ff;
74-
padding: 0.5rem 1rem;
81+
background-color: #1f2937; /* dark style */
82+
padding: 0.75rem 1.25rem; /* increased padding */
7583
border-radius: 0.375rem;
76-
border: 1px solid #bfdbfe;
77-
color: #1e40af;
78-
font-size: 1.1em;
84+
border: 1px solid #0f172a;
85+
color: #f8fafc;
86+
font-size: 1.65em; /* 50% larger */
7987
font-weight: 600;
8088
transition: background-color 0.3s, color 0.3s;
8189
position: relative;
8290
}
8391

8492
details.answer-container summary:hover {
85-
background-color: #dbeafe;
93+
background-color: #374151;
8694
}
8795

8896
details.answer-container summary::after {
8997
content: "\25BC";
9098
position: absolute;
9199
right: 0.75rem;
100+
color: #f8fafc; /* ensure arrow matches text */
92101
transition: transform 0.3s ease;
93102
}
94103

src/main/resources/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1>Выберите категории</h1>
2020
</label>
2121
</li>
2222
</ul>
23-
<button type="submit" class="btn btn-primary mt-2">Получить вопросы</button>
23+
<button type="submit" class="btn btn-primary mt-4">Получить вопросы</button>
2424
</form>
2525
</main>
2626
</body>

src/main/resources/templates/question.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ <h2 th:text="${qa.category}"></h2>
2424
<div th:if="${qa == null}">
2525
<p>No questions found.</p>
2626
</div>
27-
<a th:href="@{/}" class="btn btn-primary m-1">К категориям</a>
28-
<a th:href="@{/question(nav='back')}" class="btn m-1">Назад</a>
29-
<a th:href="@{/question(nav='next')}" class="btn m-1">Следующий</a>
27+
<a th:href="@{/}" class="btn btn-primary m-3">К категориям</a>
28+
<a th:href="@{/question(nav='back')}" class="btn m-3">Назад</a>
29+
<a th:href="@{/question(nav='next')}" class="btn m-3">Следующий</a>
3030
</main>
3131
</body>
3232
</html>

0 commit comments

Comments
 (0)