Last active
August 29, 2015 14:08
-
-
Save danielpataki/19ce422ddcd5e5036b9c to your computer and use it in GitHub Desktop.
Editor Style Examples
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
function my_editor_styles() { | |
add_editor_style( 'admin/editor.css' ); | |
} | |
add_action( 'after_setup_theme', 'my_editor_styles' ); |
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
function my_editor_styles() { | |
$font_url = str_replace( ',', '%2C', '//fonts.googleapis.com/css?family=Droid+Sans:400,700|Raleway' ); | |
add_editor_style( $font_url ); | |
add_editor_style( 'admin/editor.css' ); | |
} | |
add_action( 'after_setup_theme', 'my_editor_styles' ); |
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
@import url( 'style.css' ); | |
/* Overwrite styles as appropriate for the editor */ | |
body { | |
padding:0px; | |
border:0px; | |
} | |
.p { | |
margin-left:0px; | |
margin-right:0px; | |
} |
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
function my_editor_styles() { | |
add_editor_style(); | |
} | |
add_action( 'after_setup_theme', 'my_editor_styles' ); |
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
body { | |
font-family:Helvetica Neue; | |
font-size:16px; | |
line-height: 1.5em; | |
} | |
h1,h2,h3,h4,h5,h6 { | |
font-family:Georgia; | |
line-height:1.2em; | |
} | |
p { | |
margin-bottom:24px; | |
} | |
a { | |
color: #ff9900; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment