Repository navigation
Expand file tree
/
Copy pathbadges.scss
More file actions
110 lines (105 loc) · 2.41 KB
/
Copy pathbadges.scss
File metadata and controls
110 lines (105 loc) · 2.41 KB
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
// Use with two or more badges
.badge-container {
display: flex;
column-gap: 1rem;
}
.badge-gray {
background-color: gray;
border: var(--ifm-badge-border-width) solid gray;
border-radius: var(--ifm-badge-border-radius);
color: var(--ifm-badge-color);
display: grid;
align-items: center;
font-size: 75%;
font-weight: var(--ifm-font-weight-bold);
line-height: 1;
padding: var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal);
}
.heading-badge,
.badge-container {
font-size: 0.9rem;
a {
color: var(--ifm-secondary);
}
+ p {
margin-top: 1rem;
}
}
// Collapsible menu category badge `alpha-cat`
.theme-doc-sidebar-menu {
.theme-doc-sidebar-item-category.alpha-cat {
.menu__list-item-collapsible {
.menu__link {
position: relative;
&:after {
content: 'Alpha';
font-size: 0.7rem;
font-weight: normal;
margin-left: 5px;
color: white;
padding: 2px 5px;
border-radius: 5px;
min-height: unset;
width: unset;
height: unset;
background: none;
background-color: var(--ifm-color-gray-600);
transform: none;
}
}
}
}
.theme-doc-sidebar-item-category.beta-cat {
.menu__list-item-collapsible {
.menu__link {
position: relative;
&:after {
content: "Beta";
font-size: 0.7rem;
font-weight: normal;
margin-left: 5px;
color: white;
padding: 2px 5px;
border-radius: 5px;
min-height: unset;
width: unset;
height: unset;
background: none;
background-color: var(--ifm-color-gray-600);
transform: none;
}
}
}
}
}
// Menu badge style for beta docs
.theme-doc-sidebar-menu {
.alpha-tag {
.menu__link {
&:after {
content: 'Alpha';
font-size: 0.7rem;
font-weight: normal;
margin-left: 5px;
color: white;
background-color: var(--ifm-color-gray-600);
padding: 2px 5px;
border-radius: 5px;
}
}
}
.beta-tag {
.menu__link {
&:after {
content: 'Beta';
font-size: 0.7rem;
font-weight: normal;
margin-left: 5px;
color: white;
background-color: var(--ifm-color-gray-600);
padding: 2px 5px;
border-radius: 5px;
}
}
}
}