Skip to content

Commit de57e92

Browse files
authored
Unified pills and headers (#354)
1 parent d94a48e commit de57e92

File tree

15 files changed

+168
-52
lines changed

15 files changed

+168
-52
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ __pycache__/*
55
**/.idea/
66
/node_modules/
77
yarn.lock
8+
**.css.map

docs/ai_actions/ai_actions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Learn about generative AI and its capabilities.
3+
edition: lts-update
34
---
45

56
# AI Actions

docs/ai_actions/work_with_ai_actions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Create new AI actions or modify existing ones to work faster and increase creativity.
3+
edition: lts-update
34
---
45

56
# Work with AI actions

docs/css/custom.css

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -152,32 +152,41 @@ body {
152152
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4, .md-typeset h5, .md-typeset h6 {
153153
color: var(--ibexa-dusk-black);
154154
line-height: 1;
155+
display: flex;
156+
align-items: center;
157+
text-align: center;
155158
}
156159

157160
.md-typeset h1 {
158161
margin: 0 0 1rem;
159-
font-size: 34px;
162+
font-size: 24px;
163+
line-height: 34px;
160164
}
161165

162166
.md-typeset h2 {
163-
font-size: 28px;
167+
font-size: 20px;
168+
line-height: 27px;
164169
}
165170

166171
.md-typeset h3 {
167-
font-size: 24px;
172+
font-size: 18px;
173+
line-height: 22px;
168174
}
169175

170176
.md-typeset h4 {
171-
font-size: 22px;
177+
font-size: 16;
178+
line-height: 19px;
172179
}
173180

174181
.md-typeset h5 {
175-
font-size: 18px;
182+
font-size: 14px;
183+
line-height: 18px;
176184
text-transform: none;
177185
}
178186

179187
.md-typeset h6 {
180-
font-size: 16px;
188+
font-size: 12px;
189+
line-height: 18px;
181190
}
182191

183192
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4, .md-typeset h5, .md-typeset h6 {
@@ -546,35 +555,6 @@ a.external:not(.card):not(.notification__cta a):after {
546555
padding: 0;
547556
}
548557

549-
div.pills {
550-
float: right;
551-
}
552-
553-
.pill {
554-
background-color: var(--ibexa-jazzberry);
555-
border-radius: 2.18px;
556-
padding: 3px 8px;
557-
color: var(--white);
558-
font-size: 10px;
559-
font-weight: 500;
560-
}
561-
562-
.experience-pill::after {
563-
content: "Experience";
564-
}
565-
566-
.experience-pill {
567-
background-color: var(--ibexa-orange);
568-
}
569-
570-
.commerce-pill::after {
571-
content: "Commerce";
572-
}
573-
574-
.commerce-pill {
575-
background-color: var(--ibexa-jazzberry);
576-
}
577-
578558
.md-clipboard:focus, .md-clipboard:hover {
579559
color: var(--ibexa-jazzberry);
580560
}

docs/css/navigation.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,6 @@
142142
padding-bottom: 0.5rem;
143143
}
144144

145-
.md-nav__link .pill.new {
146-
margin-right: 15px;
147-
background-color: #d9e8ff;
148-
color: #3562a0;
149-
text-transform: lowercase;
150-
}
151-
152145
.md-nav__link::after {
153146
font-weight: 700;
154147
}
@@ -302,6 +295,8 @@
302295
padding: 1rem 0.8rem;
303296
border-bottom: 1px solid var(--mid-grey);
304297
background: white;
298+
display: flex;
299+
align-items: center;
305300
}
306301

307302
.push {

docs/css/pills.css

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/custom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $(document).ready(function() {
2424
}
2525

2626
// Add version pill to top of navigation
27-
$('#site-name').append('<span class="pill">' + branchName + '</span>');
27+
$('#site-name').append('<span class="pill pill--inline">' + branchName + '</span>');
2828

2929
$('.rst-current-version.switcher__label').html(branchName);
3030

@@ -197,5 +197,5 @@ $(document).ready(function() {
197197
});
198198

199199
// Mark higher-level nodes with "New" pill, not only the actual item
200-
$('.pill.new:not([hidden])').parents('.md-nav__item').children('label').children('.pill.new[hidden]').removeAttr('hidden');
200+
$('.pill--new:not([hidden])').parents('.md-nav__item').children('label').children('.pill--new[hidden]').removeAttr('hidden');
201201
});

docs/snippets/commerce_badge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<span class="pill commerce-pill"></span>
1+
<span class="pill pill--inline pill--commerce"></span>

docs/snippets/experience_badge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<span class="pill experience-pill"></span>
1+
<span class="pill pill--inline pill--experience"></span>

docs/snippets/lts-update_badge.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<span class="pill pill--inline pill--lts-update"></span>

0 commit comments

Comments
 (0)