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

66 lines
1.1 KiB
SCSS
Raw Normal View History

2015-04-22 08:33:17 -04:00
.code-box {
2015-04-22 09:59:02 -04:00
border-radius: 4px;
2015-12-11 21:49:31 -05:00
background: $lightgrey;
2015-04-22 10:17:26 -04:00
margin-bottom: $unit * 2;
2015-04-22 08:33:17 -04:00
2015-04-22 09:59:02 -04:00
header {
background: #1976D2;
2015-04-22 09:59:02 -04:00
color: $snow;
2015-12-11 21:49:31 -05:00
padding: $unit $unit 0px $unit;
2015-04-22 09:59:02 -04:00
border-radius: 4px 4px 0px 0px;
2015-04-22 08:33:17 -04:00
}
2016-04-07 12:54:24 -04:00
&__live-code {
background-color: #cfd8dc;
height: 36px;
color: $snow;
padding: 0 $unit;
border-radius: 4px 4px 0px 0px;
margin-bottom: 0;
& a {
font-size: 14px;
text-decoration: none;
border-bottom: 1px $regal dotted;
&:hover {
border-bottom: 1px $regal solid;
}
}
&--icon {
font-size: 14px;
color: $regal;
}
}
2015-04-22 08:33:17 -04:00
nav {
2015-04-22 09:59:02 -04:00
button {
2015-12-11 21:49:31 -05:00
line-height: $unit * 3.5;
height: $unit * 3.5;
2015-04-22 09:59:02 -04:00
padding: 0px ($unit * 3);
margin-right: $unit;
font-size: 13px;
background: #3F94E9;
2015-12-11 21:49:31 -05:00
color: $snow;
border-radius: 4px 4px 0px 0px;
text-transform: none;
2015-04-22 08:33:17 -04:00
2015-05-02 18:34:16 -04:00
&.is-selected,
&.selected
2016-04-07 12:54:24 -04:00
{
2015-12-11 21:49:31 -05:00
background: $lightgrey;
color: $darkgrey;
2015-04-22 09:59:02 -04:00
}
2015-04-22 08:33:17 -04:00
}
}
2015-04-22 09:59:02 -04:00
.prettyprint {
box-shadow: none;
margin: 0px;
}
2015-12-11 21:49:31 -05:00
}
2016-04-07 12:54:24 -04:00
pre {
margin-top: 0;
}