-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
278 lines (250 loc) · 6.99 KB
/
style.css
File metadata and controls
278 lines (250 loc) · 6.99 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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
/* Указываем box sizing */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Убираем внутренние отступы */
ul[class],
ol[class] {
padding: 0;
}
/* Убираем внешние отступы */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
margin: 0;
}
/* Выставляем основные настройки по-умолчанию для body */
body {
min-height: 100vh;
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
/* Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class */
ul[class],
ol[class] {
list-style: none;
}
/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
a:not([class]) {
text-decoration-skip-ink: auto;
}
/* Упрощаем работу с изображениями */
img {
max-width: 100%;
display: block;
}
/* Указываем понятную периодичность в потоке данных у article */
article > * + * {
margin-top: 1em;
}
/* Наследуем шрифты для инпутов и кнопок */
input,
button,
textarea,
select {
font: inherit;
}
/* Удаляем все анимации и переходы для людей, которые предпочитай их не использовать */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/*********************************************/
html, body {
height: 100%;
background-size: cover;
background-attachment: fixed;
}
.wrapper {
max-width: 1200px;
padding: 20px;
height: 100%;
margin: 0 auto;
}
img {
display: inline-block;
border-radius: 5px;
width: 80px;
height: 80px;
}
header h1 {
text-align: center;
font-family: Arial, Helvetica, sans-serif;
font-size: 36px;
color: #fff;
font-weight: bold;
margin: 50px;
display: inline-block;
}
.works {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
footer {
height: 200px;
}
.redtextbold {
text-align: center;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
color: red;
font-weight: 900;
margin: 50px;
display: block;
}
.btn {
height: 95px;
width: 220px;
border-radius: 5%;
margin: 6px 7px 6px 7px;
background-color: #32dc72;
padding: 10px;
font-family: 'Open Sans', sans-serif;
font-weight: bold;
display: inline-block;
background-repeat: no-repeat;
text-align: center;
background-position: center center;
background-size: 95% 85%;
}
.main-btn {
position: relative;
display: block;
width: 100%;
max-width: none;
margin: 30px auto;
padding: 0;
background-color: transparent;
color: white;
text-decoration: none;
border-radius: 15px;
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
transition: transform 0.2s ease, background-color 0.2s ease;
height: 155px;
overflow: hidden;
}
.main-btn-text { transform: translateY(3mm); }
.main-btn-icon { transform: translateY(4mm); }
.main-btn:hover {
background-color: #ff5722;
transform: scale(1.1);
}
/* ==== Плаваючі іконки в стовпчик ==== */
.floating-container {
position: fixed;
top: 20px;
right: 20px;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 15px;
z-index: 9999;
}
.floating-icon {
width: 48px;
height: 48px;
background-color: white;
border-radius: 10px;
padding: 5px;
box-shadow: 0 0 10px rgba(0,0,0,0.3);
transition: transform 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.floating-icon:hover { transform: scale(1.1); }
.floating-icon img { width: 100%; height: auto; display: block; }
/* ==== Кольори для блоків ==== */
#one, #two, #three, #four, #five, #six { background-color: #FF1493; }
#seven, #eight, #nine { background-color: #aa99ff; }
#ten, #eleven, #twelve, #thirteen, #fourteen,
#fifteen, #sixteen, #seventeen, #eighteen,
#nineteen, #twenty, #twentyone, #twentytwo,
#twentythree, #twentyfive, #twentysix, #twentyseven { background-color: #FFFF00; }
/* ==== Зображення для кнопок ==== */
#one { background-image: url("images/1.png"); }
#two { background-image: url("images/2.png"); }
#three { background-image: url("images/3.png"); }
#four { background-image: url("images/4.png"); }
#five { background-image: url("images/5.png"); }
#six { background-image: url("images/6.png"); }
#seven { background-image: url("images/7.png"); }
#eight { background-image: url("images/8.png"); }
#nine { background-image: url("images/9.png"); }
#ten { background-image: url("images/10.png"); }
#eleven { background-image: url("images/11.png"); }
#twelve { background-image: url("images/12.png"); }
#thirteen { background-image: url("images/13.png"); }
#fourteen { background-image: url("images/14.png"); }
#fifteen { background-image: url("images/15.png"); }
#sixteen { background-image: url("images/16.png"); }
#seventeen { background-image: url("images/17.png"); }
#eighteen { background-image: url("images/18.png"); }
#nineteen { background-image: url("images/19.png"); }
#twenty { background-image: url("images/20.png"); }
#twentyone { background-image: url("images/21.png"); }
#twentytwo { background-image: url("images/22.png"); }
#twentythree { background-image: url("images/24.png"); }
#twentyfive { background-image: url("images/25.png"); }
#twentysix { background-image: url("images/26.png"); }
#twentyseven { background-image: url("images/27.png"); }
/* ========================================================= */
/* === Горизонтальні «іконки‑посилання» для .text-links === */
.text-links {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
padding: 20px;
}
.text-links a {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
background-color: #001f3f; /* темно‑синій фон */
color: #fff;
text-decoration: none;
border-radius: 8px;
font-size: 0;
overflow: hidden;
transition: transform 0.2s ease, background-color 0.2s ease;
}
.text-links a:hover {
transform: scale(1.1);
background-color: #003366;
}
/* Текст (href) залишається в DOM для SEO, але не видно */
.text-links a::after {
content: attr(href);
position: absolute;
bottom: -9999px;
left: -9999px;
}
/* Якщо в <a> є <img> — відображаємо його як іконку */
.text-links img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
}