Homepage: sass file for homepage styling.

This commit is contained in:
2019-04-10 17:18:23 +02:00
parent 61b1ab0c20
commit ad31b6338f
2 changed files with 42 additions and 0 deletions

41
src/styles/_homepage.sass Normal file
View File

@@ -0,0 +1,41 @@
.random-featured
// Hide irrelevant info from cards.
li
&.item-type,
&.item-date
@extend .d-none
// Fit 3 cards per row.
&.card-deck.card-deck-responsive
.card
+media-md
flex: 1 0 30%
max-width: 30%
flex: 1 0 31%
max-width: 31%
.homepage
.timeline
.card-text,
.card-title
margin-bottom: 0 !important
padding: 0 !important
// Hide project name, it's already in the timeline.
a
display: none
// On blog posts, center text and title.
.h1.text-uppercase
+media-md
text-align: center
+media-xl
text-align: left
.node-details-description
+media-md
margin-left: auto
margin-right: auto
+media-xl
margin-left: 0
margin-right: auto

View File

@@ -102,4 +102,5 @@ $pillar-font-path: "../../../../static/pillar/assets/font"
@import welcome @import welcome
@import services @import services
@import about @import about
@import homepage
@import list_films @import list_films