From ee3fc7119da17a909562aaa642d5e3f10fbe824d Mon Sep 17 00:00:00 2001 From: Ben Word Date: Tue, 19 Aug 2014 21:29:58 -0500 Subject: [PATCH] Update editor-style --- assets/css/editor-style.css | 441 ++++++++++++++++++++++++------------ 1 file changed, 290 insertions(+), 151 deletions(-) diff --git a/assets/css/editor-style.css b/assets/css/editor-style.css index b1418bc..cdd4cf1 100644 --- a/assets/css/editor-style.css +++ b/assets/css/editor-style.css @@ -8,6 +8,11 @@ * 5. Remove margin property on body tag */ +html { + font-family: sans-serif; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; +} article, aside, details, @@ -24,8 +29,10 @@ summary { } audio, canvas, +progress, video { display: inline-block; + vertical-align: baseline; } audio:not([controls]) { display: none; @@ -35,25 +42,13 @@ audio:not([controls]) { template { display: none; } -html { - font-family: sans-serif; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; -} a { background: transparent; } -a:focus { - outline: thin dotted; -} a:active, a:hover { outline: 0; } -h1 { - font-size: 2em; - margin: 0.67em 0; -} abbr[title] { border-bottom: 1px dotted; } @@ -64,28 +59,14 @@ strong { dfn { font-style: italic; } -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; +h1 { + font-size: 2em; + margin: 0.67em 0; } mark { background: #ff0; color: #000; } -code, -kbd, -pre, -samp { - font-family: monospace, serif; - font-size: 1em; -} -pre { - white-space: pre-wrap; -} -q { - quotes: "\201C" "\201D" "\2018" "\2019"; -} small { font-size: 80%; } @@ -109,28 +90,34 @@ svg:not(:root) { overflow: hidden; } figure { - margin: 0; + margin: 1em 40px; } -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; } -legend { - border: 0; - padding: 0; +pre { + overflow: auto; +} +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; } button, input, +optgroup, select, textarea { - font-family: inherit; - font-size: 100%; + color: inherit; + font: inherit; margin: 0; } -button, -input { - line-height: normal; +button { + overflow: visible; } button, select { @@ -147,11 +134,23 @@ button[disabled], html input[disabled] { cursor: default; } +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} +input { + line-height: normal; +} input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; @@ -162,20 +161,34 @@ input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } -button::-moz-focus-inner, -input::-moz-focus-inner { +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} +legend { border: 0; padding: 0; } textarea { overflow: auto; - vertical-align: top; +} +optgroup { + font-weight: bold; } table { border-collapse: collapse; border-spacing: 0; } -*, +td, +th { + padding: 0; +} +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} *:before, *:after { -webkit-box-sizing: border-box; @@ -183,13 +196,13 @@ table { box-sizing: border-box; } html { - font-size: 62.5%; + font-size: 10px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; - line-height: 1.428571429; + line-height: 1.42857143; color: #333333; background-color: #ffffff; } @@ -211,15 +224,19 @@ a:focus { text-decoration: underline; } a:focus { - outline: thin dotted #333; + outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } +figure { + margin: 0; +} img { vertical-align: middle; } .img-responsive { display: block; + width: 100% \9; max-width: 100%; height: auto; } @@ -228,13 +245,15 @@ img { } .img-thumbnail { padding: 4px; - line-height: 1.428571429; + line-height: 1.42857143; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; + width: 100% \9; max-width: 100%; height: auto; } @@ -257,68 +276,14 @@ hr { clip: rect(0, 0, 0, 0); border: 0; } -p { - margin: 0 0 10px; -} -.lead { - margin-bottom: 20px; - font-size: 16px; - font-weight: 200; - line-height: 1.4; -} -@media (min-width: 768px) { - .lead { - font-size: 21px; - } -} -small, -.small { - font-size: 85%; -} -cite { - font-style: normal; -} -.text-muted { - color: #999999; -} -.text-primary { - color: #428bca; -} -.text-primary:hover { - color: #3071a9; -} -.text-warning { - color: #c09853; -} -.text-warning:hover { - color: #a47e3c; -} -.text-danger { - color: #b94a48; -} -.text-danger:hover { - color: #953b39; -} -.text-success { - color: #468847; -} -.text-success:hover { - color: #356635; -} -.text-info { - color: #3a87ad; -} -.text-info:hover { - color: #2d6987; -} -.text-left { - text-align: left; -} -.text-right { - text-align: right; -} -.text-center { - text-align: center; +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; } h1, h2, @@ -332,7 +297,7 @@ h6, .h4, .h5, .h6 { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; @@ -363,34 +328,52 @@ h6 .small, .h6 .small { font-weight: normal; line-height: 1; - color: #999999; + color: #777777; } h1, +.h1, h2, -h3 { +.h2, +h3, +.h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, +.h1 small, h2 small, +.h2 small, h3 small, +.h3 small, h1 .small, +.h1 .small, h2 .small, -h3 .small { +.h2 .small, +h3 .small, +.h3 .small { font-size: 65%; } h4, +.h4, h5, -h6 { +.h5, +h6, +.h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, +.h4 small, h5 small, +.h5 small, h6 small, +.h6 small, h4 .small, +.h4 .small, h5 .small, -h6 .small { +.h5 .small, +h6 .small, +.h6 .small { font-size: 75%; } h1, @@ -417,6 +400,120 @@ h6, .h6 { font-size: 12px; } +p { + margin: 0 0 10px; +} +.lead { + margin-bottom: 20px; + font-size: 16px; + font-weight: 300; + line-height: 1.4; +} +@media (min-width: 768px) { + .lead { + font-size: 21px; + } +} +small, +.small { + font-size: 85%; +} +cite { + font-style: normal; +} +mark, +.mark { + background-color: #fcf8e3; + padding: .2em; +} +.text-left { + text-align: left; +} +.text-right { + text-align: right; +} +.text-center { + text-align: center; +} +.text-justify { + text-align: justify; +} +.text-nowrap { + white-space: nowrap; +} +.text-lowercase { + text-transform: lowercase; +} +.text-uppercase { + text-transform: uppercase; +} +.text-capitalize { + text-transform: capitalize; +} +.text-muted { + color: #777777; +} +.text-primary { + color: #428bca; +} +a.text-primary:hover { + color: #3071a9; +} +.text-success { + color: #3c763d; +} +a.text-success:hover { + color: #2b542c; +} +.text-info { + color: #31708f; +} +a.text-info:hover { + color: #245269; +} +.text-warning { + color: #8a6d3b; +} +a.text-warning:hover { + color: #66512c; +} +.text-danger { + color: #a94442; +} +a.text-danger:hover { + color: #843534; +} +.bg-primary { + color: #fff; + background-color: #428bca; +} +a.bg-primary:hover { + background-color: #3071a9; +} +.bg-success { + background-color: #dff0d8; +} +a.bg-success:hover { + background-color: #c1e2b3; +} +.bg-info { + background-color: #d9edf7; +} +a.bg-info:hover { + background-color: #afd9ee; +} +.bg-warning { + background-color: #fcf8e3; +} +a.bg-warning:hover { + background-color: #f7ecb5; +} +.bg-danger { + background-color: #f2dede; +} +a.bg-danger:hover { + background-color: #e4b9b9; +} .page-header { padding-bottom: 9px; margin: 40px 0 20px; @@ -440,21 +537,20 @@ ol ol { .list-inline { padding-left: 0; list-style: none; + margin-left: -5px; } .list-inline > li { display: inline-block; padding-left: 5px; padding-right: 5px; } -.list-inline > li:first-child { - padding-left: 0; -} dl { + margin-top: 0; margin-bottom: 20px; } dt, dd { - line-height: 1.428571429; + line-height: 1.42857143; } dt { font-weight: bold; @@ -475,65 +571,61 @@ dd { .dl-horizontal dd { margin-left: 180px; } - .dl-horizontal dd:before, - .dl-horizontal dd:after { - content: " "; - /* 1 */ - - display: table; - /* 2 */ - - } - .dl-horizontal dd:after { - clear: both; - } } abbr[title], abbr[data-original-title] { cursor: help; - border-bottom: 1px dotted #999999; + border-bottom: 1px dotted #777777; } -abbr.initialism { +.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; + font-size: 17.5px; border-left: 5px solid #eeeeee; } -blockquote p { - font-size: 17.5px; - font-weight: 300; - line-height: 1.25; -} -blockquote p:last-child { +blockquote p:last-child, +blockquote ul:last-child, +blockquote ol:last-child { margin-bottom: 0; } -blockquote small { +blockquote footer, +blockquote small, +blockquote .small { display: block; - line-height: 1.428571429; - color: #999999; + font-size: 80%; + line-height: 1.42857143; + color: #777777; } -blockquote small:before { +blockquote footer:before, +blockquote small:before, +blockquote .small:before { content: '\2014 \00A0'; } +.blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; -} -blockquote.pull-right p, -blockquote.pull-right small, -blockquote.pull-right .small { text-align: right; } +.blockquote-reverse footer:before, +blockquote.pull-right footer:before, +.blockquote-reverse small:before, blockquote.pull-right small:before, +.blockquote-reverse .small:before, blockquote.pull-right .small:before { content: ''; } +.blockquote-reverse footer:after, +blockquote.pull-right footer:after, +.blockquote-reverse small:after, blockquote.pull-right small:after, +.blockquote-reverse .small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } @@ -544,5 +636,52 @@ blockquote:after { address { margin-bottom: 20px; font-style: normal; - line-height: 1.428571429; + line-height: 1.42857143; +} +.clearfix:before, +.clearfix:after, +.dl-horizontal dd:before, +.dl-horizontal dd:after { + content: " "; + display: table; +} +.clearfix:after, +.dl-horizontal dd:after { + clear: both; +} +.center-block { + display: block; + margin-left: auto; + margin-right: auto; +} +.pull-right { + float: right !important; +} +.pull-left { + float: left !important; +} +.hide { + display: none !important; +} +.show { + display: block !important; +} +.invisible { + visibility: hidden; +} +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} +.hidden { + display: none !important; + visibility: hidden !important; +} +.affix { + position: fixed; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); }