Last active
August 29, 2015 14:24
-
-
Save roytomeij/46b7b006e5ec9c3cc80e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@mixin VAlign($child-element) { | |
text-align: center; | |
#{$child-element}:before { | |
content: ''; | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; | |
} | |
} | |
#block-views-services-block { | |
.item-list { | |
ul { | |
list-style: none; | |
li { | |
float: left; | |
.views-field-title { | |
background-color: #007e39; | |
width: 306px; | |
height: 200px; | |
h3 { | |
color: white; | |
font-size: 30pt; | |
line-height: 100%; | |
margin: 0 .25em; | |
} | |
@include VAlign(h3); | |
} | |
ul { | |
list-style-type: disc; | |
li { | |
background-color: #d7e4bd; | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#block-views-services-block .item-list ul { | |
list-style: none; | |
} | |
#block-views-services-block .item-list ul li { | |
float: left; | |
} | |
#block-views-services-block .item-list ul li .views-field-title { | |
background-color: #007e39; | |
width: 306px; | |
height: 200px; | |
text-align: center; | |
} | |
#block-views-services-block .item-list ul li .views-field-title h3 { | |
color: white; | |
font-size: 30pt; | |
line-height: 100%; | |
margin: 0 0.25em; | |
} | |
#block-views-services-block .item-list ul li .views-field-title h3:before { | |
content: ''; | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; | |
} | |
#block-views-services-block .item-list ul li ul { | |
list-style-type: disc; | |
} | |
#block-views-services-block .item-list ul li ul li { | |
background-color: #d7e4bd; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment