-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
1,544 additions
and
1,665 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 146 additions & 0 deletions
146
generators/app/templates/src/css/components/card/card.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
/* =========================================================================== *\ | ||
Card component styles | ||
\* =========================================================================== */ | ||
|
||
/* @define Card */ | ||
.Card { | ||
border-radius: 10px; | ||
box-shadow: 0 15px 30px rgb(4 43 55 / 25%); | ||
display: flex; | ||
flex-direction: column; | ||
overflow-wrap: anywhere; | ||
width: 100%; | ||
} | ||
|
||
.Card:hover { | ||
outline: 5px solid var(--theme-primary-color); | ||
} | ||
|
||
/* postcss-bem-linter: ignore */ | ||
.Card > div { | ||
margin-bottom: 10px; | ||
} | ||
|
||
/* postcss-bem-linter: ignore */ | ||
.Card > div:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
.Card--noImage .Card-title { | ||
flex-grow: unset; | ||
} | ||
|
||
/* ------------------------------------ *\ | ||
Card image | ||
\* ------------------------------------ */ | ||
|
||
.Card-image { | ||
margin-bottom: 0 !important; | ||
} | ||
|
||
/* postcss-bem-linter: ignore */ | ||
.Card-image img { | ||
border-radius: 10px 10px 0 0; | ||
width: 100%; | ||
} | ||
|
||
.Card-image--aspect1by1 { | ||
display: block; | ||
padding-bottom: 100%; | ||
position: relative; | ||
} | ||
|
||
/* postcss-bem-linter: ignore */ | ||
.Card-image--aspect1by1 > img { | ||
height: 100%; | ||
image-orientation: none; | ||
left: 0; | ||
object-fit: cover; | ||
position: absolute; | ||
top: 0; | ||
width: 100%; | ||
} | ||
|
||
/* ------------------------------------ *\ | ||
Card content | ||
\* ------------------------------------ */ | ||
|
||
.Card-inner { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
justify-content: space-evenly; | ||
padding: 20px; | ||
} | ||
|
||
/* postcss-bem-linter: ignore */ | ||
.Card-inner > div { | ||
margin-bottom: 10px; | ||
} | ||
|
||
/* postcss-bem-linter: ignore */ | ||
.Card-inner > div:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
.Card-date { | ||
color: var(--theme-typography-heading-color); | ||
font-weight: 700; | ||
} | ||
|
||
.Card-category { | ||
color: var(--theme-button-background); | ||
} | ||
|
||
.Card-title { | ||
display: flex; | ||
font-weight: 700; | ||
justify-content: center; | ||
text-align: center; | ||
} | ||
|
||
.Card-title--left { | ||
justify-content: flex-start; | ||
text-align: left; | ||
} | ||
|
||
.Card-title--push { | ||
flex-grow: 1; | ||
} | ||
|
||
.Card-abstract { | ||
flex-grow: 1; | ||
} | ||
|
||
/* ------------------------------------ *\ | ||
Horizonal card styles | ||
\* ------------------------------------ */ | ||
|
||
.Card--horizontal { | ||
margin-bottom: 20px; | ||
} | ||
|
||
/* postcss-bem-linter: ignore */ | ||
.Card--horizontal .Card-image img { | ||
border-radius: 10px 0 0 10px !important; | ||
} | ||
|
||
.Card--horizontal .Card-inner--noImage { | ||
height: unset !important; | ||
} | ||
|
||
.Card--horizontal .Card-title { | ||
margin-bottom: 20px; | ||
} | ||
|
||
@media (--c-bp-md) { | ||
|
||
/* postcss-bem-linter: ignore */ | ||
.Card--horizontal .Card-image img { | ||
border-radius: 10px 10px 0 0 !important; | ||
} | ||
|
||
.Card--horizontal .Card-inner { | ||
height: unset !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './card.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.