Skip to content

Commit

Permalink
added transparency to accordian css
Browse files Browse the repository at this point in the history
  • Loading branch information
adhaase committed May 8, 2018
1 parent 935445f commit 42f1346
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ li {

button.accordion {
width: 100%;
background-color: whitesmoke;
background-color: rgb(0, 0, 0, 0.2);
color: whitesmoke;
border: none;
outline: none;
text-align: left;
Expand All @@ -196,18 +197,16 @@ button.accordion.is-open::after {

button.accordion:hover,
button.accordion.is-open {
background-color: #ddd;
background-color: rgb(0, 0, 0, 0.7);
}

.accordion-content {
padding: 0px 20px;
border-left: 1px solid whitesmoke;
border-right: 1px solid whitesmoke;
max-height: 0px;
overflow: hidden; /* don't see the content when the accordion is closed */
transition: max-height 0.2s ease-in-out; /* creates scrolling effect */
background-color: whitesmoke;
color: black; /* font color - black */
background-color: rgb(0, 0, 0, 0.5);
color: white; /* font color - black */
}

/*--------------- FOOTER --------------- */
Expand Down

0 comments on commit 42f1346

Please sign in to comment.