From dc519eb57fad82a07f744bd4e73c2d48b6af5b10 Mon Sep 17 00:00:00 2001 From: RistoNiinemets Date: Wed, 22 May 2013 11:42:10 +0300 Subject: [PATCH] added editor-style --- editor-style.css | 149 +++++++++++++++++++++++++++++++++++++++++++++++ functions.php | 5 ++ 2 files changed, 154 insertions(+) create mode 100644 editor-style.css diff --git a/editor-style.css b/editor-style.css new file mode 100644 index 0000000000..4bd5c742e2 --- /dev/null +++ b/editor-style.css @@ -0,0 +1,149 @@ +/* =Global +----------------------------------------------- */ + +body, +button, +input, +select, +textarea { + color: #404040; + font-family: sans-serif; + font-size: 16px; + font-size: 1.6rem; + line-height: 1.5; +} + +/* Headings */ +h1,h2,h3,h4,h5,h6 { + clear: both; +} +hr { + background-color: #ccc; + border: 0; + height: 1px; + margin-bottom: 1.5em; +} + +/* Text elements */ +p { + margin-bottom: 1.5em; +} +ul, ol { + margin: 0 0 1.5em 3em; +} +ul { + list-style: disc; +} +ol { + list-style: decimal; +} +li > ul, +li > ol { + margin-bottom: 0; + margin-left: 1.5em; +} +dt { + font-weight: bold; +} +dd { + margin: 0 1.5em 1.5em; +} +b, strong { + font-weight: bold; +} +dfn, cite, em, i { + font-style: italic; +} +blockquote { + margin: 0 1.5em; +} +address { + margin: 0 0 1.5em; +} +pre { + background: #eee; + font-family: "Courier 10 Pitch", Courier, monospace; + font-size: 15px; + font-size: 1.5rem; + line-height: 1.6; + margin-bottom: 1.6em; + padding: 1.6em; + overflow: auto; + max-width: 100%; +} +code, kbd, tt, var { + font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} +abbr, acronym { + border-bottom: 1px dotted #666; + cursor: help; +} +mark, ins { + background: #fff9c0; + text-decoration: none; +} +sup, +sub { + font-size: 75%; + height: 0; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sup { + bottom: 1ex; +} +sub { + top: .5ex; +} +small { + font-size: 75%; +} +big { + font-size: 125%; +} +figure { + margin: 0; +} +table { + margin: 0 0 1.5em; + width: 100%; +} +th { + font-weight: bold; +} +img { + height: auto; /* Make sure images are scaled correctly. */ + max-width: 100%; /* Adhere to container width. */ +} + + +/* Links */ +a { + color: royalblue; +} +a:visited { + color: purple; +} +a:hover, +a:focus, +a:active { + color: midnightblue; +} + +/* Alignment */ +.alignleft { + display: inline; + float: left; + margin-right: 1.5em; +} +.alignright { + display: inline; + float: right; + margin-left: 1.5em; +} +.aligncenter { + clear: both; + display: block; + margin: 0 auto; +} \ No newline at end of file diff --git a/functions.php b/functions.php index 4a770fb53b..a140b6ccc1 100644 --- a/functions.php +++ b/functions.php @@ -52,6 +52,11 @@ function _s_setup() { * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); + + /** + * Add editor style + */ + add_editor_style( 'editor-style.css' ); } endif; // _s_setup add_action( 'after_setup_theme', '_s_setup' );