-
Notifications
You must be signed in to change notification settings - Fork 0
/
Base.txt
199 lines (177 loc) · 10.3 KB
/
Base.txt
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
[4:43 PM] Maria (Unverified)
<!DOCTYPE html>
<html lang="en">
<head>
<!-- #region Head tag with Bootsrap CSS File -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/base.css" />
<title>Accordion in Bootstrap</title>
<!-- #endregion -->
</head>
<body>
<div class="container my-3">
<div class="row">
<p class="text-primary border-bottom py-2">Accordion in Bootstrap</p>
<div class="col-6">
<h3 class="text-primary">Basic Accordion</h3>
<hr class="my-4" />
<div class="accordion" id="accordion1">
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box11">Item-1</button>
<div class="accordion-collapse collapse show" id="box11" data-bs-parent="#accordion1">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box12">Item-2</button>
<div class="accordion-collapse collapse" id="box12" data-bs-parent="#accordion1">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box13">Item-3</button>
<div class="accordion-collapse collapse" id="box13" data-bs-parent="#accordion1">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box14">Item-4</button>
<div class="accordion-collapse collapse" id="box14" data-bs-parent="#accordion1">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
</div>
<h3 class="text-primary mt-3">Accordion Flush</h3>
<hr class="my-4" />
<p>Add <span class="mark fw-semibold">.accordion-flush</span> to remove some borders and rounded corners.</p>
<div class="accordion accordion-flush" id="accordion2">
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box21">Item-1</button>
<div class="accordion-collapse collapse show" id="box21" data-bs-parent="#accordion2">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box22">Item-2</button>
<div class="accordion-collapse collapse" id="box22" data-bs-parent="#accordion2">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box23">Item-3</button>
<div class="accordion-collapse collapse" id="box23" data-bs-parent="#accordion2">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box24">Item-4</button>
<div class="accordion-collapse collapse" id="box24" data-bs-parent="#accordion2">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
</div>
<h3 class="text-primary mt-3">Always open</h3>
<hr class="my-4" />
<p>Omit the <span class="mark fw-semibold">data-bs-parent</span> attribute on each .<span class="mark fw-semibold">accordion-collapse</span> to make accordion items stay open when another item is opened.</p>
<div class="accordion" id="accordion3">
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box31">Item-1</button>
<div class="accordion-collapse collapse show" id="box31">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box32">Item-2</button>
<div class="accordion-collapse collapse" id="box32">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box33">Item-3</button>
<div class="accordion-collapse collapse" id="box33">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#box34">Item-4</button>
<div class="accordion-collapse collapse" id="box34">
<div class="accordion-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio consectetur deserunt, accusantium minus tempore nulla. Fuga, rerum, numquam corrupti, at minima ullam deleniti dolorum repellendus vel architecto sequi perferendis nemo?</div>
</div>
</div>
</div>
</div>
</div>
<!--Row End-->
</div>
<!--Container End-->
</div>
<!-- #region Bootsrap js File -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- #endregion -->
</body>
</html>
[4:44 PM] Maria (Unverified)
wwwww
[4:44 PM] Maria (Unverified)
body::before {
content: "XS";
color: yellow;
font-size: 20px;
position: fixed;
font-weight: bold;
top: 10px;
left: 10px;
background-color: rgba(0, 0, 0, 0.5);
padding: 10px;
border-radius: 50%;
}
@media (min-width: 576px) {
body::before {
content: "SM";
}
}
@media (min-width: 768px) {
body::before {
content: "MD";
}
}
@media (min-width: 992px) {
body::before {
content: "LG";
}
}
@media (min-width: 1200px) {
body::before {
content: "XL";
}
}
@media (min-width: 1400px) {
body::before {
content: "XXL";
}
}