-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
246 lines (201 loc) · 5.5 KB
/
Copy pathstyle.css
File metadata and controls
246 lines (201 loc) · 5.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
* {
margin: 0;
padding: 0;
}
hr {
color: #428a25;
}
header {
display: flex;
justify-content: center;
align-items: center;
}
header img{
padding: 20px;
}
main {
font-family: Arial, Helvetica, sans-serif;
}
.greetingBlock {
width: 100%;
background-color: #428a25;
color: #fff;
}
.codeBlock {
padding: 20px;
width: 30%;
background-color: #2d5325;
color: #fff;
text-align: left;
font-size: 20px;
border-radius: 20px;
}
.comment {
color: #b8b8b8;
}
.keyword {
color: rgb(0, 255, 255);
}
.tmp {
color: #fff;
}
.str {
color: #ff9900;
}
nav {
background-color: #396d2f;
display: flex;
justify-content: center;
align-items: center;
}
nav ul {
list-style: none; /* Убираем маркеры в списке */
padding: 0; /* Убираем отступы по умолчанию */
margin: 0;
display: flex; /* Выстраиваем пункты в ряд */
gap: 20px; /* Расстояние между пунктами меню */
}
nav ul li {
cursor: pointer; /* Курсор при наведении */
padding: 10px 15px; /* Внутренние отступы */
font-weight: 500; /* Жирность текста (по желанию) */
}
/* Опционально: эффект при наведении */
nav ul li:hover {
background-color: #498a3b;
}
.aboutBlock {
display: flex; /* Используем Flexbox для расположения элементов */
align-items: center; /* Выравнивание по центру по вертикали */
margin-left: 30%;
margin-right: 30%;
}
.h1About {
font-size: 20px;
}
.pAbout {
width: 80%;
font-size: 18px;
padding: 1.5%;
}
.content {
flex: 1; /* Занимает оставшееся пространство */
}
.infImg {
margin-left: 20px; /* Добавляем отступ между текстом и изображением */
}
.downloadBlock h1 {
font-size: 36px;
}
.btnDownload button{
transition: 0.5s;
margin-top: 2%;
width: 30%;
height: 50px;
font-size: 24px;
border: none;
border-radius: 20px;
background-color: #428a25;
color: #fff;
}
.btnDownload button:hover{
background-color: #36701f;
color: #fff;
}
.orLabel p {
margin-top: 10px;
font-size: 24px;
margin-bottom: 10px;
}
.sourcebtnDownload button{
transition: 0.5s;
width: 30%;
height: 50px;
font-size: 24px;
border: none;
border-radius: 20px;
background-color: #25658a;
color: #fff;
}
.sourcebtnDownload button:hover{
background-color: #1b5170;
color: #fff;
}
/* Поддержка для экранов шириной 1200px */
@media (max-width: 1200px) {
.codeBlock {
width: 40%; /* Увеличиваем ширину блока с кодом */
}
.aboutBlock {
margin-left: 20%; /* Уменьшаем отступы */
margin-right: 20%;
}
nav ul {
gap: 15px; /* Уменьшаем расстояние между пунктами меню */
}
}
/* Поддержка для экранов шириной 800px */
@media (max-width: 800px) {
header img {
padding: 10px; /* Уменьшаем отступы для изображений в заголовке */
}
.codeBlock {
width: 80%; /* Ширина блока с кодом на малых экранах */
margin: 0 auto; /* Центрируем блок */
}
.greetingBlock {
font-size: 18px; /* Уменьшаем размер шрифта для приветственного блока */
}
nav ul {
flex-direction: column; /* Выстраиваем пункты меню в колонку */
gap: 10px; /* Уменьшаем расстояние между пунктами меню */
}
.aboutBlock {
flex-direction: column; /* Выстраиваем элементы в колонку */
margin-left: 5%; /* Уменьшаем отступы */
margin-right: 5%;
}
.pAbout {
width: 100%; /* Ширина текста о нас на малых экранах */
}
.h1About, .pAbout {
text-align: center;
}
.btnDownload button {
width: 60%;
}
.sourcebtnDownload button {
width: 60%;
}
}
/* Поддержка для экранов шириной 500px */
@media (max-width: 500px) {
.codeBlock {
font-size: 16px; /* Уменьшаем размер шрифта в блоке с кодом */
}
.btnDownload button,
.sourcebtnDownload button {
width: 100%; /* Кнопки занимают всю ширину экрана */
font-size: 18px; /* Уменьшаем размер шрифта кнопок */
}
.h1About, .pAbout {
text-align: center;
}
.downloadBlock h1 {
font-size: 24px; /* Уменьшаем размер заголовка в блоке загрузки */
}
.orLabel p {
font-size: 20px; /* Уменьшаем размер шрифта для метки "или" */
}
.aboutBlock {
margin-left: 0; /* Убираем отступы */
margin-right: 0;
padding: 10px; /* Добавляем отступы для лучшего восприятия */
}
.btnDownload button {
width: 60%;
}
.sourcebtnDownload button {
width: 60%;
}
}