This repository has been archived by the owner on Dec 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
style.scss
81 lines (80 loc) · 1.63 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
$base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif !default;
$code-font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !default;
.props {
.proprow:nth-child(even) {
background-color: transparentize(#2b3b43, 0.95);
}
.proprow {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 1.6rem 0.8rem;
}
.labels {
padding: 0.8rem;
> .propcol {
font-size: 1rem;
font-weight: 400;
text-transform: uppercase;
color: #547484;
}
.name span {
margin-left: 0.4rem;
}
}
.propcol {
font-size: 1.2rem;
flex: 1;
&.notes {
flex: 2;
}
}
.name {
font-weight: 600;
&.required span {
border-bottom: 0.2rem solid transparentize(#CE7780, 0.5);
}
}
}
.propcol * {
display: inline;
}
.propdoc {
font-family: $base-font-family;
margin-bottom: 12rem;
}
code {
font-family: $code-font-family;
background-color: transparentize(#F3C387, 0.5);
color: #14435A;
padding: 0.2rem;
}
pre code {
line-height: 1.8;
padding: 1.2rem;
&.labelled, .token & {
position: relative;
margin-bottom: 2rem;
&:after {
content: attr(data-lang);
font-size: 0.8rem;
color: #CE7780;
font-weight: 600;
font-family: $base-font-family;
position: absolute;
right: 1.2rem;
bottom: -2rem;
}
}
}
.use, .props {
margin: 2.8rem 0;
}
.token pre {
margin: 0;
}
.use {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 2.8rem;
}