DmitrMakeev commited on
Commit
7b555d6
·
verified ·
1 Parent(s): f0399f0

Update spoller.html

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