Skip to content

Commit 0ee3acd

Browse files
authored
Add Pro label to Stately Sky category name and make labels robust (#255)
1 parent b5ea853 commit 0ee3acd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

sidebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ const sidebars = {
153153
{
154154
type: 'category',
155155
label: 'Stately Sky',
156+
className: 'pro-feature',
156157
link: {
157158
type: 'doc',
158159
id: 'stately-sky-getting-started',
@@ -162,7 +163,6 @@ const sidebars = {
162163
type: 'doc',
163164
label: 'Getting started',
164165
id: 'stately-sky-getting-started',
165-
className: 'pro-feature',
166166
},
167167
],
168168
},

src/css/custom.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,8 @@ html [class*='toggleButton'] {
12301230

12311231
/* Add a pro badge to menu items with the pro-feature classname */
12321232

1233-
.menu__list-item.pro-feature a:after {
1233+
.menu__list-item.pro-feature > a:after,
1234+
.menu__list-item.pro-feature > div > a:after {
12341235
background-color: var(--st-orange-500);
12351236
border-radius: 0.3rem;
12361237
content: 'Pro';
@@ -1241,11 +1242,12 @@ html [class*='toggleButton'] {
12411242
margin-left: 0.45rem;
12421243
padding: 0 0.3rem;
12431244
text-transform: uppercase;
1245+
transform: rotateZ(0deg);
12441246
}
12451247

12461248
/* Add a free badge to menu items with the pro-feature classname */
1247-
1248-
.menu__list-item.community-feature a:after {
1249+
.menu__list-item.community-feature > a:after,
1250+
.menu__list-item.community-feature > div > a:after {
12491251
background-color: var(--st-blue-500);
12501252
border-radius: 0.3rem;
12511253
content: 'Free';
@@ -1255,6 +1257,7 @@ html [class*='toggleButton'] {
12551257
margin-top: 0.1rem;
12561258
margin-left: 0.45rem;
12571259
padding: 0 0.3rem;
1260+
transform: rotateZ(0deg);
12581261
text-transform: uppercase;
12591262
}
12601263

0 commit comments

Comments
 (0)