angular-cn/public/resources/css/module/_code.scss

147 lines
2.0 KiB
SCSS
Raw Normal View History

2015-03-01 23:00:19 -05:00
/*
* Embedded Code
*
* Style for embedded code examples
*/
2015-02-28 15:06:30 -05:00
.cp_embed_iframe {
2015-02-28 11:11:13 -05:00
overflow: hidden;
2015-03-01 23:00:19 -05:00
}
/*
* Code Snippets
*
* These Code snippets are transformed by prettify and the code
* below represents a custom theme that works with their formatting.
*/
.prettyprint {
background: $steel;
font-family: $mono-font;
2015-03-02 00:39:57 -05:00
color: $snow;
2015-03-01 23:00:19 -05:00
overflow: hidden;
position: relative;
padding: 0px;
font-size: 14px;
font-weight: 600;
line-height: 24px;
2015-03-02 00:34:32 -05:00
margin-bottom: $unit * 3;
2015-03-01 23:00:19 -05:00
border-radius: 4px;
box-shadow: 0px 2px 5px rgba($coal, .3);
2015-03-03 02:14:05 -05:00
padding: ($unit * 2) ($unit * 4);
&.linenums {
padding: 0px;
}
2015-03-01 23:00:19 -05:00
ol {
background: $steel;
padding: ($unit * 2) ($unit * 4) ($unit * 2) ($unit * 7);
margin: 0px;
overflow: auto;
border-radius: 3px;
2015-03-02 00:39:57 -05:00
font-weight: 600;
font-size: 14px;
2015-03-01 23:00:19 -05:00
li {
color: $metal;
background: none;
margin-bottom: 5px;
line-height: normal;
list-style-type: decimal;
2015-03-03 01:57:42 -05:00
font-size: 12px;
2015-03-01 23:00:19 -05:00
&:last-child {
margin-bottom: 0px;
}
code {
background: none;
font-size: 14px;
}
}
}
/*
* Screen Colors
*
*/
.kwd {
color: $mist;
}
.typ,
.tag {
color: $squid;
}
.str,
.atv {
color: darken($sunshine, 10%);
}
.atn {
color: darken($cactus, 10%);
}
.com {
color: $tin;
}
.lit {
color: darken($sunshine, 10%);
}
.pun {
color: $snow;
}
.pln {
color: $snow;
}
.dec {
color: $grape;
}
/*
* Print Colors
*
*/
@media print {
2015-03-05 01:54:30 -05:00
background: $snow;
border: none;
box-shadow: none;
ol {
background: $snow;
}
2015-03-01 23:00:19 -05:00
.kwd {
color: $steel;
}
.typ,
.tag {
color: $ruby;
}
.str,
.atv {
color: darken($sunshine, 10%);
}
.atn {
color: darken($cactus, 10%);
}
.com {
color: $cloud;
}
.lit {
color: darken($sunshine, 10%);
}
.pun {
color: $coal;
}
.pln {
color: $coal;
}
.dec {
color: darken($grape, 5%);
}
}
2015-02-28 11:11:13 -05:00
}