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

190 lines
3.1 KiB
SCSS
Raw Normal View History

2015-10-15 17:16:35 -04:00
@mixin icon {
line-height: 14px;
&.decorator:before {
content: '@';
background: $blueberry;
}
2015-10-15 17:16:35 -04:00
&.directive:before {
content: 'D';
background: #db4437;
}
&.class:before {
content: 'C';
background: #4285f4;
}
&.interface:before {
content: 'I';
background: #0097a7;
}
&.function:before {
content: 'F';
background: #0f9d58;
}
&.const:before,
&.enum:before {
content: 'N';
background: #757575;
}
&.var:before,
&.let:before {
2015-10-15 17:16:35 -04:00
content: 'V';
background: #9575cd;
}
&:before {
display: inline-block;
border-radius: 50%;
width: 14px;
height: 14px;
text-align: center;
color: white;
font-family: Roboto, sans-serif;
font-size: 10px;
margin-right: $unit;
float: left;
}
}
.api-key {
dt, dd {
display: inline-block;
font-size: 14px;
font-family: Roboto, sans-serif;
padding: $unit;
}
dt {
padding-left: 0;
}
dd {
@include icon;
margin: 0 0 0 ($unit);
cursor: pointer;
&.active {
background: #d5d9dc;
border-radius: 3px;
}
}
}
input.api-filter {
display: block;
max-width: ($unit * 100);
width: 100%;
line-height: 18px;
padding: $unit;
position: relative;
left: ($unit * -1);
}
.docs-content {
.api-list {
list-style: none;
padding: 0 0 ($unit * 4);
overflow: hidden;
.api-item {
font-size: 14px;
font-family: Roboto, sans-serif;
margin: 0;
line-height: 14px;
padding: $unit $unit $unit 0;
float: left;
width: 33%;
min-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2016-03-09 12:52:45 -05:00
box-sizing: border-box;
2015-10-15 17:16:35 -04:00
a {
text-decoration: none;
color: black;
}
.symbol {
@include icon;
}
}
}
2016-04-07 12:54:24 -04:00
a {
code {
color: $ocean;
}
}
p {
color: #1a2326;
&.selector {
margin: 0 0 8px 0;
}
&.location-badge {
margin: 0 0 16px 16px !important;
}
code {
border-bottom: 0px;
:hover {
border-bottom: none;
}
}
}
.row-margin {
margin-bottom: 36px;
h2 {
line-height: 28px;
}
}
.code-margin {
margin-bottom: $unit;
}
.hr-margin {
display: block;
height: 1px;
border: 0;
border-top: 1px solid $lightgrey;
margin-top: 15px;
margin-bottom: 20px;
padding: 0;
}
.no-bg {
background: none;
padding: 0;
}
code {
font-size: 14px;
color: #1a2326;
// the last .pln (white space) creates additional spacing between sections of the api doc. Remove it.
2016-04-07 12:54:24 -04:00
&.no-pln {
.pln:last-child {
2016-04-07 12:54:24 -04:00
display: none;
}
}
}
}
@media screen and (max-width: 600px) {
.docs-content {
// Overrides display flex from angular material.
// This was added because Safari doesn't play nice with layout="column".
// Look of API doc in Chrome and Firefox remains the same, and is fixed for Safari.
.layout-xs-column {
display: block !important;
}
}
2016-04-07 12:54:24 -04:00
code {
font-size: 12px;
}
p.location-badge {
position: relative;
font-size: 11px;
}
2015-10-15 17:16:35 -04:00
}