Accordions fixed for the dropdown (#1564)

## Description

<!-- Insert PR description-->

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [x] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
Ahmed Cool Projects 2022-11-20 20:27:43 +01:00 committed by GitHub
parent e6bdceb248
commit e7200f193b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View File

@ -11,6 +11,28 @@ CUSTOM TO THE NEW HOME PAGE
html{ html{
scroll-behavior: smooth !important; scroll-behavior: smooth !important;
} }
.accordion-button-custom::after {
-ms-flex-shrink: 0;
flex-shrink: 0;
width: 1.25rem;
height: 1.25rem;
margin-left: auto;
content: "";
background-image: url("../../static/assets/download.svg");
background-repeat: no-repeat;
background-size: 1.25rem;
transition: transform 0.2s ease-in-out;
}
.accordion-button-custom:not(.collapsed)::after {
background-image: url("../../static/assets/download_blue.svg");
transform: rotate(-180deg);
}
.accordion-button-custom:not(.collapsed) {
color: #2563eb;
background-color: #fff;
box-shadow: inset 0 -1px 0 #e5e7eb;
}
.link-underline { .link-underline {
border-bottom-width: 0; border-bottom-width: 0;

1
docs/static/assets/download.svg vendored Normal file
View File

@ -0,0 +1 @@
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#fff'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>

After

Width:  |  Height:  |  Size: 228 B

1
docs/static/assets/download_blue.svg vendored Normal file
View File

@ -0,0 +1 @@
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#2563eb'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>

After

Width:  |  Height:  |  Size: 231 B