Last active
December 18, 2015 13:48
-
-
Save GaryJones/5792576 to your computer and use it in GitHub Desktop.
CSS styles to fix the appearance of embedded gists in Genesis 2.0 / Sample child theme.
This file contains hidden or 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
/* Same as other file, but with extra notes */ | |
/* Embedded Gists */ | |
.line-pre::before, | |
.line-pre::after, | |
.line::before, | |
.line::after { | |
content: ''; /* Fixes addition of float-clearing space added to before and after global pre and div elements */ | |
} | |
.line-number, | |
.gist .line-data > .line-pre { | |
line-height: 1.2; /* Fixes redundant body line-height of 1.625 - Gist style default is to inherit line-height */ | |
} | |
/* The following is only needed for Genesis Beta 1 or Beta 2, and is not included in the other style sheet. */ | |
.line-pre { | |
color: #000; /* Fixes choice of grey colouring for pre elements */ | |
overflow: hidden; /* Fixes choice of overflow scroll for pre elements */ | |
} |
This file contains hidden or 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
/* Embedded Gists */ | |
.line-pre::before, | |
.line-pre::after, | |
.line::before, | |
.line::after { | |
content: ''; | |
} | |
.line-number, | |
.gist .line-data > .line-pre { | |
line-height: 1.2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment