forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
annotate.scss
114 lines (93 loc) · 2.1 KB
/
annotate.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* Code annotations
----------------------------------------------------------------------------*/
.annotate.beside {
.annotate-beside {
display: inherit;
}
.annotate-inline {
display: none;
}
}
.annotate.inline {
.annotate-beside {
display: none;
}
.annotate-inline {
display: inherit;
}
}
.annotate {
pre {
border: 0px !important;
margin: 0px !important;
}
}
.annotate-header header {
border-top-left-radius: 6px !important;
border-top-right-radius: 6px !important;
border-bottom: 1px solid var(--color-border-default);
}
.annotate-beside,
.beside .annotate-header {
margin: auto;
@include breakpoint(md) {
// 720px: content width, 4rem padding
margin: 0 calc((100vw - 720px - 4rem) / 2 * -1);
}
@include breakpoint(xl) {
// 326px: navigation width
margin: 0 max(-12rem, calc((100vw - 720px - 326px - 4rem) / 2 * -1));
}
}
.beside .annotate-header header {
width: auto;
@include breakpoint(md) {
width: 50%;
}
}
.annotate-beside > div:last-child > .annotate-code {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-bottom: 1px solid var(--color-border-default);
}
.annotate-inline {
border-left: 1px solid var(--color-border-default);
border-right: 1px solid var(--color-border-default);
border-bottom: 1px solid var(--color-border-default);
}
.annotate-row {
display: flex;
flex-direction: column;
@include breakpoint(md) {
flex-direction: row;
margin: 0 auto;
&:hover {
border-radius: 4px;
outline: 2px solid var(--color-accent-fg);
}
}
}
.annotate-code {
background-color: var(--color-canvas-subtle);
border-left: 1px solid var(--color-border-default);
border-right: 1px solid var(--color-border-default);
@include breakpoint(md) {
width: 50%;
}
}
.annotate-note {
margin-top: 1rem;
margin-bottom: 2rem;
@include breakpoint(md) {
width: 50%;
padding: 16px 0 16px 16px;
font-size: 14px;
margin: 0px;
}
}
.annotate-note > p:last-child {
margin-bottom: 0px;
}
.subnav-item[aria-current]:not([aria-current="false"]) {
z-index: 0;
}