From e416e9b089fb89fd95f892c4d8a32d2bb90e0765 Mon Sep 17 00:00:00 2001 From: Caleb Alldrin Date: Fri, 15 Dec 2023 11:10:13 -0800 Subject: [PATCH] Change accordion styles --- .../content-accordion.component.css | 52 +++++++------- .../content-accordion.component.html | 3 +- src/assets/style.css | 69 +++++++++++-------- 3 files changed, 70 insertions(+), 54 deletions(-) diff --git a/src/app/new-page/component/content-accordion/content-accordion.component.css b/src/app/new-page/component/content-accordion/content-accordion.component.css index 42ad8b0fa..b36ef3964 100644 --- a/src/app/new-page/component/content-accordion/content-accordion.component.css +++ b/src/app/new-page/component/content-accordion/content-accordion.component.css @@ -1,3 +1,11 @@ +.accordion { + margin-top: 10px; + border-radius: 5px; + border: 1px solid var(--kg-gray-light); + background-color: var(--kg-white); + overflow: hidden; +} + /* Style the buttons that are used to open and close the accordion panel */ .accordion-header { background-color: #eee; @@ -7,55 +15,53 @@ width: 100%; text-align: left; font-size: 16px; + font-family: + Source Sans Pro, + sans-serif !important; border: none; outline: none; transition: 0.4s; - color: var(--kg-white); - background-color: var(--kg-blue); - transition: all 0.3s ease 0s; + color: var(--kg-gray-dark); + background-color: var(--kg-gray-light); + transition: all 0.3s linear; position: relative; + display: flex; + align-items: center; } .accordion-header:hover { - background-color: var(--kg-blue-light); + background-color: var(--kg-gray); + color: var(--kg-gray-dark); +} +.accordion-header:active { + background-color: var(--kg-gray-medium-dark); } .accordion-header i { position: absolute; right: 20px; - transform: translateY(-50%); - transition: all 0.3s ease 0s; - top: 50%; + -moz-transition: all 0.2s linear; + -webkit-transition: all 0.2s linear; + transition: all 0.2s linear; } -.accordion-header i.fa-plus { - opacity: 1; -} -.accordion-header i.fa-minus { - opacity: 0; -} - -.accordion.mw568.active .accordion-header i.fa-plus { - opacity: 0; -} -.accordion.mw568.active .accordion-header i.fa-minus { - opacity: 1; +.accordion.mw568.active .accordion-header i.fa-chevron-down { + -ms-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -webkit-transform: rotate(180deg); + transform: rotate(180deg); } /* Style the accordion panel. Note: hidden by default */ .accordion-content { padding: 0 18px; - background-color: white; max-height: 0px; overflow: hidden; transition: all 0.5s ease 0s; - border: 1px solid var(--kg-white); - background-color: var(--kg-white); padding: 0px 24px; } .accordion.active .accordion-content { - border: 1px solid var(--kg-blue); padding: 0px 24px 24px; max-height: 400px; } diff --git a/src/app/new-page/component/content-accordion/content-accordion.component.html b/src/app/new-page/component/content-accordion/content-accordion.component.html index 3ce9b4807..d43c109d2 100644 --- a/src/app/new-page/component/content-accordion/content-accordion.component.html +++ b/src/app/new-page/component/content-accordion/content-accordion.component.html @@ -3,8 +3,7 @@