Skip to content

Commit

Permalink
fix neo accordian responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhoenix08 committed Dec 21, 2024
1 parent f74a523 commit b78f500
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions Components/Accordions/Neumorphism-Accordion/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ body {
background: linear-gradient(to right, #19569d, #2ee809);
font-family: 'Arial', sans-serif;
color: #394240;
font-size: 16px;
}

#neumorphism {
Expand All @@ -17,7 +18,7 @@ body {
h1 {
font-family: "Arial Black", sans-serif;
background: linear-gradient(to right, #7289da, #4e5d94);
font-size: 5rem;
font-size: 3rem;
color: #ffffff;
text-shadow: 2px 2px 3px rgba(232, 212, 212, 0.3);
-webkit-background-clip: text;
Expand Down Expand Up @@ -99,7 +100,6 @@ ul li,
p {
color: rgb(14, 14, 138);
font-family: Georgia, 'Times New Roman', Times, serif;
font-size: 20px;
}

/* Customize the accordion header font and color */
Expand Down Expand Up @@ -128,14 +128,17 @@ p {
/* Customize the accordion body font and color */
.accordion-body {
color: #333;
font-size: 1rem;
line-height: 1.5;
padding: 1rem;
border: none;
border-radius: 0;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.accordion-body p {
font-size: 1rem;
}

/* Customize the accordion item background color */
.accordion-item {
background-color: #fff;
Expand All @@ -144,3 +147,21 @@ p {
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
section#neumorphism {
padding: 30px !important;
}

h1 {
font-size: 5vw;
}

.accordion-button {
font-size: 1rem;
}

.accordion-body {
font-size: 1rem;
}
}

0 comments on commit b78f500

Please sign in to comment.