Spaces:
Sleeping
Sleeping
Update spoller.html
Browse files- spoller.html +64 -46
spoller.html
CHANGED
|
@@ -1,59 +1,77 @@
|
|
| 1 |
|
| 2 |
<style>
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
.spoiler2-button {
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
border: none;
|
| 13 |
-
border-radius: 4px;
|
| 14 |
-
cursor: pointer;
|
| 15 |
font-size: 16px;
|
| 16 |
-
|
| 17 |
-
letter-spacing: 0.5px;
|
| 18 |
-
transition: background-color 0.3s;
|
| 19 |
-
margin: 10px 0;
|
| 20 |
-
gap: 8px;
|
| 21 |
}
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
}
|
| 27 |
-
|
| 28 |
.spoiler1-content,
|
| 29 |
.spoiler2-content {
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
border-top: none;
|
| 33 |
-
border-radius: 0 0 4px 4px;
|
| 34 |
-
display: none;
|
| 35 |
-
margin-top: -4px;
|
| 36 |
-
}
|
| 37 |
-
|
| 38 |
-
.arrow {
|
| 39 |
-
flex-shrink: 0;
|
| 40 |
-
transition: transform 0.3s;
|
| 41 |
}
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
/* 📱 Адаптив для телефона */
|
| 44 |
-
@media (max-width: 767px) {
|
| 45 |
-
.spoiler1-button,
|
| 46 |
-
.spoiler2-button {
|
| 47 |
-
font-size: 14px;
|
| 48 |
-
padding: 10px 12px;
|
| 49 |
-
gap: 6px;
|
| 50 |
-
}
|
| 51 |
-
.spoiler1-content,
|
| 52 |
-
.spoiler2-content {
|
| 53 |
-
font-size: 14px;
|
| 54 |
-
padding: 12px;
|
| 55 |
-
}
|
| 56 |
-
}
|
| 57 |
</style>
|
| 58 |
|
| 59 |
|
|
|
|
| 1 |
|
| 2 |
<style>
|
| 3 |
+
|
| 4 |
+
/* УНИВЕРСАЛЬНЫЕ СТИЛИ */
|
| 5 |
+
.spoiler1-button,
|
| 6 |
+
.spoiler2-button {
|
| 7 |
+
display: flex;
|
| 8 |
+
align-items: center;
|
| 9 |
+
justify-content: center;
|
| 10 |
+
width: 100%;
|
| 11 |
+
padding: 12px 16px;
|
| 12 |
+
background-color: #f5f5f5;
|
| 13 |
+
border: none;
|
| 14 |
+
border-radius: 4px;
|
| 15 |
+
cursor: pointer;
|
| 16 |
+
font-size: 16px;
|
| 17 |
+
text-transform: uppercase;
|
| 18 |
+
letter-spacing: 0.5px;
|
| 19 |
+
transition: background-color 0.3s;
|
| 20 |
+
margin: 10px 0;
|
| 21 |
+
gap: 8px;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.spoiler1-button:hover,
|
| 25 |
+
.spoiler2-button:hover {
|
| 26 |
+
background-color: #e0e0e0;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.spoiler1-content,
|
| 30 |
+
.spoiler2-content {
|
| 31 |
+
padding: 16px;
|
| 32 |
+
border: 1px solid #ddd;
|
| 33 |
+
border-top: none;
|
| 34 |
+
border-radius: 0 0 4px 4px;
|
| 35 |
+
display: none;
|
| 36 |
+
margin-top: -4px;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.arrow {
|
| 40 |
+
flex-shrink: 0;
|
| 41 |
+
transition: transform 0.3s;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/* 📱 Телефон (до 767px) */
|
| 45 |
+
@media (max-width: 767px) {
|
| 46 |
+
.spoiler1-button,
|
| 47 |
.spoiler2-button {
|
| 48 |
+
font-size: 18px; /* крупнее текст */
|
| 49 |
+
padding: 16px 20px; /* больше зона клика */
|
| 50 |
+
gap: 10px;
|
| 51 |
+
}
|
| 52 |
+
.spoiler1-content,
|
| 53 |
+
.spoiler2-content {
|
|
|
|
|
|
|
|
|
|
| 54 |
font-size: 16px;
|
| 55 |
+
padding: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
}
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/* 📱📲 Планшет (768px – 1024px) */
|
| 60 |
+
@media (min-width: 768px) and (max-width: 1024px) {
|
| 61 |
+
.spoiler1-button,
|
| 62 |
+
.spoiler2-button {
|
| 63 |
+
font-size: 17px;
|
| 64 |
+
padding: 14px 18px;
|
| 65 |
+
gap: 9px;
|
| 66 |
}
|
|
|
|
| 67 |
.spoiler1-content,
|
| 68 |
.spoiler2-content {
|
| 69 |
+
font-size: 15px;
|
| 70 |
+
padding: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
}
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
</style>
|
| 76 |
|
| 77 |
|