Create mixins for reusuable landing page elements like iframe and gallery
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
.container.card-container
|
.container.card-container
|
||||||
max-width: 1200px
|
max-width: 1200px
|
||||||
margin-top: 56px
|
margin-top: 56px
|
||||||
// pending media query decision
|
|
||||||
// .col-md-4
|
|
||||||
// +media-breakpoint-up(lg)
|
|
||||||
// padding: 0 20px
|
|
||||||
.col-md-4
|
.col-md-4
|
||||||
padding: 0 20px
|
padding: 0 20px
|
||||||
&:focus
|
&:focus
|
||||||
|
9
src/styles/_gallery.sass
Normal file
9
src/styles/_gallery.sass
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
.gallery
|
||||||
|
h2
|
||||||
|
margin-bottom: 40px
|
||||||
|
.container
|
||||||
|
max-width: 1190px
|
||||||
|
.col-sm-3
|
||||||
|
padding: 0 20px 40px
|
||||||
|
img
|
||||||
|
width: 100%
|
13
src/styles/_iframe.sass
Normal file
13
src/styles/_iframe.sass
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
.iframe-container
|
||||||
|
position: relative
|
||||||
|
padding-top: 25px
|
||||||
|
padding-bottom: 52%
|
||||||
|
height: 0
|
||||||
|
margin-top: 16px
|
||||||
|
margin-bottom: 32px
|
||||||
|
iframe
|
||||||
|
position: absolute
|
||||||
|
top: 0
|
||||||
|
left: 0
|
||||||
|
width: 100%
|
||||||
|
height: 100%
|
@@ -4,6 +4,8 @@
|
|||||||
@import ../styles/navbar
|
@import ../styles/navbar
|
||||||
@import ../styles/jumbotron
|
@import ../styles/jumbotron
|
||||||
@import ../styles/navbar-secondary
|
@import ../styles/navbar-secondary
|
||||||
|
@import ../styles/iframe
|
||||||
|
@import ../styles/gallery
|
||||||
@import ../styles/cards
|
@import ../styles/cards
|
||||||
@import ../styles/footer
|
@import ../styles/footer
|
||||||
|
|
||||||
@@ -12,32 +14,10 @@
|
|||||||
.node-details-title
|
.node-details-title
|
||||||
&.container
|
&.container
|
||||||
max-width: 730px
|
max-width: 730px
|
||||||
.iframe-container
|
|
||||||
position: relative
|
|
||||||
padding-top: 25px
|
|
||||||
padding-bottom: 52%
|
|
||||||
height: 0
|
|
||||||
margin-top: 16px
|
|
||||||
margin-bottom: 32px
|
|
||||||
iframe
|
|
||||||
position: absolute
|
|
||||||
top: 0
|
|
||||||
left: 0
|
|
||||||
width: 100%
|
|
||||||
height: 100%
|
|
||||||
section
|
section
|
||||||
margin-top: 152px
|
margin-top: 152px
|
||||||
&:first-child
|
&:first-child
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
.gallery
|
|
||||||
h2
|
|
||||||
margin-bottom: 40px
|
|
||||||
.container
|
|
||||||
max-width: 1190px
|
|
||||||
.col-sm-3
|
|
||||||
padding: 0 20px 40px
|
|
||||||
img
|
|
||||||
width: 100%
|
|
||||||
.node-extra
|
.node-extra
|
||||||
h2
|
h2
|
||||||
margin-bottom: 40px
|
margin-bottom: 40px
|
||||||
|
Reference in New Issue
Block a user