Created
March 6, 2014 17:24
-
-
Save cliffordp/9394820 to your computer and use it in GitHub Desktop.
Overriding PageLines DMS styles for blockquotes and Font Awesome icons for blockquotes
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
// Font Awesome icons before and after quotes | |
q:before, | |
blockquote:before { | |
font-family: PageLinesFont; | |
content: @fa-var-quote-left; //works in DMS v2 | |
//content:"\f10d"; //works in DMS prior to v2 | |
color: @textColorAlt; | |
} | |
q:after, | |
blockquote:after { | |
font-family: PageLinesFont; | |
content: @fa-var-quote-right; //works in DMS v2 | |
//content:"\f10e"; //works in DMS prior to v2 | |
color: @textColorAlt; | |
} |
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
// Override Blockquotes from typography.less | |
blockquote { | |
padding: inherit; | |
line-height: inherit; | |
font-size: inherit; | |
padding-left: inherit; | |
letter-spacing: inherit; | |
//margin-bottom: 30px; | |
margin-left: 20px !important; | |
margin-right: 20px !important; | |
p { | |
margin-bottom: 0; | |
&:first-child{ | |
margin-top: 0; | |
} | |
&:last-child{ | |
margin-bottom: 0; | |
} | |
} | |
small, | |
cite{ | |
//display: block; | |
font-size: 90%; | |
letter-spacing: inherit; | |
line-height: inherit; | |
padding-left: inherit; | |
margin-top: 0.5em !important; | |
&:before { | |
content: '\2014 \00A0'; //not an icon font | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment