Add card component to patron
This commit is contained in:
parent
5b417889b2
commit
dc00c10366
2 changed files with 34 additions and 0 deletions
22
app/assets/stylesheets/new_design/card.scss
Normal file
22
app/assets/stylesheets/new_design/card.scss
Normal file
|
@ -0,0 +1,22 @@
|
|||
@import "colors";
|
||||
@import "constants";
|
||||
|
||||
.card {
|
||||
padding: ($default-spacer * 3) ($default-spacer * 2);
|
||||
border: 1px solid $border-grey;
|
||||
margin-bottom: $default-spacer * 2;
|
||||
|
||||
&.featured {
|
||||
border-top: 8px solid $blue;
|
||||
|
||||
.card-title {
|
||||
color: $blue;
|
||||
}
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-weight: bold;
|
||||
font-size: 20px;
|
||||
margin-bottom: $default-spacer;
|
||||
}
|
||||
}
|
|
@ -56,6 +56,18 @@
|
|||
|
||||
%span.label .label
|
||||
|
||||
%h2 Cards
|
||||
|
||||
.card
|
||||
.card-title
|
||||
Titre de la carte
|
||||
Et voici le contenu de la carte
|
||||
|
||||
.card.featured
|
||||
.card-title
|
||||
Titre de la carte mise en avant
|
||||
Et voici le contenu de la carte
|
||||
|
||||
%h2 Layout deux colonnes
|
||||
|
||||
.two-columns
|
||||
|
|
Loading…
Reference in a new issue