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

Update spoller.html

Browse files
Files changed (1) hide show
  1. spoller.html +44 -44
spoller.html CHANGED
@@ -1,23 +1,33 @@
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 {
@@ -25,55 +35,45 @@
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>
 
77
  <!-- Первый блок HTML сдесь класс и ИД боков с номером 1 -->
78
 
79
  <div class="spoiler-divider"></div>
 
1
 
2
  <style>
3
+ /* Общие стили */
4
+ .spoiler-wrapper {
5
+ margin: 20px 0;
6
+ position: relative;
7
+ }
8
+
9
+ .spoiler-divider {
10
+ height: 1px;
11
+ background-color: #ddd;
12
+ margin: 10px 0;
13
+ }
14
+
15
  .spoiler-button {
16
  display: flex;
17
  align-items: center;
18
  justify-content: center;
19
  width: 100%;
20
+ padding: 12px 16px;
21
  background-color: #f5f5f5;
22
  border: none;
23
+ border-radius: 4px;
24
  cursor: pointer;
25
+ font-size: 16px;
26
  text-transform: uppercase;
27
+ letter-spacing: 0.5px;
28
+ transition: background-color 0.3s;
29
+ margin: 10px 0;
30
+ gap: 8px;
 
31
  }
32
 
33
  .spoiler-button:hover {
 
35
  }
36
 
37
  .spoiler-content {
38
+ padding: 16px;
39
  border: 1px solid #ddd;
40
  border-top: none;
41
+ border-radius: 0 0 4px 4px;
42
  display: none;
43
+ margin-top: -4px;
 
44
  }
45
 
46
+ .arrow {
47
+ flex-shrink: 0;
 
48
  transition: transform 0.3s;
49
  }
50
+
51
+ /* Версия для телефона */
52
+ @media (max-width: 767px) {
53
+ .spoiler-mobile {
54
+ display: flex;
55
+ flex-direction: column;
 
56
  }
57
+ .spoiler-mobile .spoiler-content {
58
+ order: 2;
59
+ border-top: 1px solid #ddd;
60
+ border-radius: 0 0 4px 4px;
61
+ margin-top: -4px;
62
  }
63
+ .spoiler-mobile .spoiler-button {
64
+ order: 1;
65
+ border-radius: 4px 4px 0 0;
66
+ margin-bottom: 0;
67
  }
68
  }
69
 
70
+ /* Версия для десктопа */
71
+ @media (min-width: 768px) {
72
+ .spoiler-desktop { display: block; }
73
+ .spoiler-mobile { display: none; }
 
 
 
 
 
 
 
 
 
 
 
74
  }
75
  </style>
76
+
77
  <!-- Первый блок HTML сдесь класс и ИД боков с номером 1 -->
78
 
79
  <div class="spoiler-divider"></div>