init'
This commit is contained in:
67
assets/sass/components/_card.scss
Normal file
67
assets/sass/components/_card.scss
Normal file
@@ -0,0 +1,67 @@
|
||||
/* Card */
|
||||
|
||||
.card-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.box-wrapper {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.card-container .box-wrapper {
|
||||
flex: 0 0 50%;
|
||||
}
|
||||
|
||||
.card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: _size(border-radius);
|
||||
border: solid _size(border-width) #ddd;
|
||||
margin-bottom: _size(element-margin);
|
||||
padding: 1.5em;
|
||||
margin: 1.5em;
|
||||
width: 100%;
|
||||
|
||||
> :last-child,
|
||||
> :last-child > :last-child,
|
||||
> :last-child > :last-child > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&.alt {
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 80%;
|
||||
max-width: 600px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: 1.1em;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
.date {
|
||||
font-size: 1em;
|
||||
margin-top: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint("<=small") {
|
||||
.card-container .box-wrapper {
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user