Last active
August 29, 2015 14:26
-
-
Save craigbutcher/d80f9c23dda64dc95e9b to your computer and use it in GitHub Desktop.
CKEditor numerical fixes.
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
/* | |
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | |
For licensing, see LICENSE.md or http://ckeditor.com/license | |
*/ | |
/* Ordered list add ons by Craig Butcher (TSO) */ | |
/* | |
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | |
For licensing, see LICENSE.md or http://ckeditor.com/license | |
*/ | |
/* Further add ons by Craig Butcher (TSO) 07/08/2015 */ | |
body { | |
/* Font */ | |
font-family: sans-serif, Arial, Verdana, "Trebuchet MS"; | |
font-size: 12px; | |
/* Text color */ | |
color: #333; | |
/* Remove the background color to make it transparent */ | |
background-color: #fff; | |
margin: 20px; | |
} | |
.cke_editable { | |
font-size: 13px; | |
line-height: 1.6; | |
} | |
blockquote { | |
font-style: italic; | |
font-family: Georgia, Times, "Times New Roman", serif; | |
padding: 2px 0; | |
border: 0 solid #ccc; | |
} | |
.cke_contents_ltr blockquote { | |
padding: 0 8px 0 20px; | |
border-left-width: 5px; | |
} | |
.cke_contents_rtl blockquote { | |
padding: 0 20px 0 8px; | |
border-right-width: 5px; | |
} | |
a { | |
color: #0782C1; | |
} | |
ol,ul,dl { | |
/* IE7: reset rtl list margin. (#7334) */ | |
*margin-right: 0px; | |
/* preserved spaces for list items with text direction other than the list. (#6249,#8049)*/ | |
padding: 0 40px; | |
} | |
ol li[value*="."], | |
ol li ol li[value*="."], | |
ol li ol li ol li[value*="."], | |
ol li ol li ol li ol li[value*="."] { | |
list-style: decimal | |
} | |
ol li { | |
margin: 10px 0; | |
} | |
ol li > ol li { | |
counter-increment: subsection; | |
margin: 10px 0 10px -3px; | |
} | |
ol li > ol > li:before { | |
content: counter(subsection)" "; | |
margin: 0 0 0 -3px; | |
} | |
ol li > ol li > ol { | |
counter-reset: subsectiona; | |
list-style-type: none; | |
margin: 10px 0; | |
} | |
ol li > ol li > ol li { | |
counter-increment: subsectiona; | |
} | |
ol li > ol li > ol li > ol { | |
counter-reset: subsectionb; | |
list-style-type: none; | |
margin: 10px 0; | |
} | |
ol li > ol li > ol li > ol li { | |
counter-increment: subsectionb; | |
} | |
ol li > ol li[value^="1."] > ol li:before, | |
ol li > ol li[value^="2."] > ol li:before, | |
ol li > ol li[value^="3."] > ol li:before, | |
ol li > ol li[value^="4."] > ol li:before, | |
ol li > ol li[value^="5."] > ol li:before, | |
ol li > ol li[value^="6."] > ol li:before, | |
ol li > ol li[value^="7."] > ol li:before, | |
ol li > ol li[value^="8."] > ol li:before, | |
ol li > ol li[value^="9."] > ol li:before, | |
ol li > ol li[value^="10."] > ol li:before { | |
margin: 0 0 0 -30px | |
} | |
/* Visualiser */ | |
ol li { background: pink} | |
ol li > ol li { background: lightgreen} | |
ol li > ol li > ol li { background: lightblue} | |
ol li > ol li > ol li > ol li { background: lightyellow} | |
/* 1.x.x and 1.x.x.x */ | |
ol li > ol li[value^="1."] > ol li:before { | |
content: "1." counter(subsection)"." counter(subsectiona) " "; | |
} | |
ol li > ol li[value^="1."] > ol li > ol li:before { | |
content: "1." counter(subsection)"." counter(subsectiona) "." counter(subsectionb)" " ; | |
} | |
/* 2.x.x and 2.x.x.x */ | |
ol li > ol li[value^="2."] > ol li:before { | |
content: "2." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
ol li > ol li[value^="2."] > ol li > ol li:before { | |
content: "2." counter(subsection)"." counter(subsectiona) "." counter(subsectionb)" " ; | |
} | |
/* 3.x.x and 3.x.x.x */ | |
ol li > ol li[value^="3."] > ol li:before { | |
content: "3." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
ol li > ol li[value^="3."] > ol li > ol li:before { | |
content: "3." counter(subsection)"." counter(subsectiona) "." counter(subsectionb)" " ; | |
} | |
/* 4.x.x and 4.x.x.x */ | |
ol li > ol li[value^="4."] > ol li:before { | |
content: "4." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
ol li > ol li[value^="4."] > ol li > ol li:before { | |
content: "4." counter(subsection)"." counter(subsectiona) "." counter(subsectionb)" " ; | |
} | |
/* 5.x.x and 5.x.x.x */ | |
ol li > ol li[value^="5."] > ol li:before { | |
content: "5." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
ol li > ol li[value^="5."] > ol li > ol li:before { | |
content: "5." counter(subsection)"." counter(subsectiona) "." counter(subsectionb)" " ; | |
} | |
/* 6.x.x and 6.x.x.x */ | |
ol li > ol li[value^="6."] > ol li:before { | |
content: "6." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
ol li > ol li[value^="6."] > ol li > ol li:before { | |
content: "6." counter(subsection)"." counter(subsectiona) "." counter(subsectionb)" " ; | |
} | |
/* 7.x.x and 7.x.x.x */ | |
ol li > ol li[value^="7."] > ol li:before { | |
content: "7." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
ol li > ol li[value^="7."] > ol li > ol li:before { | |
content: "7." counter(subsection)"." counter(subsectiona) "." counter(subsectionb)" " ; | |
} | |
/* 8.x.x and 8.x.x.x */ | |
ol li > ol li[value^="8."] > ol li:before { | |
content: "8." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
ol li > ol li[value^="8."] > ol li > ol li:before { | |
content: "8." counter(subsection)"." counter(subsectiona) "." counter(subsectionb)" " ; | |
} | |
/* 9.x.x and 9.x.x.x */ | |
ol li > ol li[value^="9."] > ol li:before { | |
content: "9." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
ol li > ol li[value^="9."] > ol li:before { | |
content: "9." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
/* 10.x.x and 10.x.x.x */ | |
ol li > ol li[value^="10."] > ol li:before { | |
content: "10." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
ol li > ol li[value^="10."] > ol li:before { | |
content: "10." counter(subsection)"." counter(subsectiona) " " ; | |
} | |
h1,h2,h3,h4,h5,h6 { | |
font-weight: normal; | |
line-height: 1.2; | |
} | |
hr { | |
border: 0px; | |
border-top: 1px solid #ccc; | |
} | |
img.right { | |
border: 1px solid #ccc; | |
float: right; | |
margin-left: 15px; | |
padding: 5px; | |
} | |
img.left { | |
border: 1px solid #ccc; | |
float: left; | |
margin-right: 15px; | |
padding: 5px; | |
} | |
pre { | |
white-space: pre-wrap; /* CSS 2.1 */ | |
word-wrap: break-word; /* IE7 */ | |
-moz-tab-size: 4; | |
tab-size: 4; | |
} | |
.marker { | |
background-color: Yellow; | |
} | |
span[lang] { | |
font-style: italic; | |
} | |
figure { | |
text-align: center; | |
border: solid 1px #ccc; | |
border-radius: 2px; | |
background: rgba(0,0,0,0.05); | |
padding: 10px; | |
margin: 10px 20px; | |
display: inline-block; | |
} | |
figure > figcaption { | |
text-align: center; | |
display: block; /* For IE8 */ | |
} | |
a > img { | |
padding: 1px; | |
margin: 1px; | |
border: none; | |
outline: 1px solid #0782C1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment