Skip to content

Commit

Permalink
collapsible system member display
Browse files Browse the repository at this point in the history
  • Loading branch information
pluiedev committed Dec 14, 2022
1 parent a72f5d4 commit 7abe98a
Showing 1 changed file with 36 additions and 15 deletions.
51 changes: 36 additions & 15 deletions sass/components/team-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,24 @@
object-fit: cover;
}

.description {
margin-top: 1rem;
}

.card-content {
padding-top: 4rem;

.system-members {
display: flex;
flex-flow: row wrap;
margin-top: 1rem;

justify-content: center;
> div {
display: flex;
flex-flow: row wrap;

&:not(:last-child) {
margin-bottom: 1rem;
}

div {
height: 2rem;
width: 2rem;
justify-content: center;
align-items: center;

&:not(:last-child) {
margin-right: 0.2rem;
}
margin-top: 0.75rem;

img {
height: 2rem;
Expand All @@ -70,13 +68,36 @@
border: 1px solid $text;
}
}

&[open] .system-member-title .media-content::before {
transform: rotate(90deg);
}
}

.media {
margin-bottom: 0 !important;

&.system-member-title {
margin-bottom: 0.2rem;
.media-content {
display: flex;
justify-content: center;
align-items: center;

&::before {
content: " ";
display: inline-block;

width: 0;
height: 0;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid transparentize($text, 0.2);

margin-right: 0.7rem;
transition: transform 0.2s ease-out;
}
}
}

.subtitle {
color: transparentize($text, 0.2);

Expand Down

0 comments on commit 7abe98a

Please sign in to comment.