Skip to content

Commit b78f500

Browse files
committed
fix neo accordian responsiveness
1 parent f74a523 commit b78f500

File tree

1 file changed

+24
-3
lines changed
  • Components/Accordions/Neumorphism-Accordion

1 file changed

+24
-3
lines changed

Components/Accordions/Neumorphism-Accordion/style.css

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ body {
66
background: linear-gradient(to right, #19569d, #2ee809);
77
font-family: 'Arial', sans-serif;
88
color: #394240;
9+
font-size: 16px;
910
}
1011

1112
#neumorphism {
@@ -17,7 +18,7 @@ body {
1718
h1 {
1819
font-family: "Arial Black", sans-serif;
1920
background: linear-gradient(to right, #7289da, #4e5d94);
20-
font-size: 5rem;
21+
font-size: 3rem;
2122
color: #ffffff;
2223
text-shadow: 2px 2px 3px rgba(232, 212, 212, 0.3);
2324
-webkit-background-clip: text;
@@ -99,7 +100,6 @@ ul li,
99100
p {
100101
color: rgb(14, 14, 138);
101102
font-family: Georgia, 'Times New Roman', Times, serif;
102-
font-size: 20px;
103103
}
104104

105105
/* Customize the accordion header font and color */
@@ -128,14 +128,17 @@ p {
128128
/* Customize the accordion body font and color */
129129
.accordion-body {
130130
color: #333;
131-
font-size: 1rem;
132131
line-height: 1.5;
133132
padding: 1rem;
134133
border: none;
135134
border-radius: 0;
136135
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
137136
}
138137

138+
.accordion-body p {
139+
font-size: 1rem;
140+
}
141+
139142
/* Customize the accordion item background color */
140143
.accordion-item {
141144
background-color: #fff;
@@ -144,3 +147,21 @@ p {
144147
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
145148
margin-bottom: 1rem;
146149
}
150+
151+
@media screen and (max-width: 768px) {
152+
section#neumorphism {
153+
padding: 30px !important;
154+
}
155+
156+
h1 {
157+
font-size: 5vw;
158+
}
159+
160+
.accordion-button {
161+
font-size: 1rem;
162+
}
163+
164+
.accordion-body {
165+
font-size: 1rem;
166+
}
167+
}

0 commit comments

Comments
 (0)