[www] added ArticleCard on Home

This commit is contained in:
Roman Timashev committed 2017-10-15 02:16:57 +03:00
1 parent 047c934953
commit d918d98b17
8 files changed
+220 -2

No files matched your search

+64
View File
@@ -0,0 +1,64 @@
.ArticleCard {
display: flex;
flex-direction: column;
margin: .25em;
border: 1px solid #ccc;
border-radius: 3px;
}
.ArticleCard-image {
border-radius: 2px 2px 0 0;
width: 100%;
height: 15em;
img {
max-width: 30em;
width: 100%;
height: 15em;
object-fit: cover;
}
}
.ArticleCard-body {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
height: 5em;
padding: .25em .5em;
}
//Styling
.ArticleCard .date {
color: #ccc;
font-size: small;
}
//Animation
.ArticleCard-image {
overflow: hidden;
img{
transition: transform 150ms ease-out;
}
}
.ArticleCard {
&:hover{
img{
transform: scale(1.05);
}
}
}
@@ -0,0 +1,5 @@
.ArticleCardList-body {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
+3
View File
@@ -22,6 +22,9 @@
@import "components/page-schedule";
@import "components/page-collective";
@import "components/ArticleCard";
@import "components/ArticleCardList";
@import "main";
@import "body-wrapper";
@import "page";
+13
View File
@@ -78,6 +78,19 @@ $short-duration: 0.3s;
--font-size-h1: 2.0rem;
--font-size-h2: 1.3rem;
--font-size-h3: 1.1rem;
//COLOR
--dark-color: $dark-color;
--darker-color: $darker-color;
--light-color: $light-color;
--lighter-color: $lighter-color;
//MARGINS
--small-margin: $small-margin;
--half-margin: $half-margin;
--single-margin: $single-margin;
--double-margin: $double-margin;
--post-margin: $post-margin;
}
@media (max-width: $mobile-width) {