Skip to content

Commit 2f27939

Browse files
authored
Unified pills and headers across Documentation (#2705)
* Adjusted header size everywhere * Extracted pill styling * Unified header with release notes * Added LTS update badhe * Added default color for pill - latest pill on homepage * New pill changes * Selfreview * New pill colors in PHP API ref * Fixed inline styling * Review fixes
1 parent 4113a96 commit 2f27939

32 files changed

+181
-205
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ tools/php-cs-fixer/vendor
99
node_modules/
1010
.yarn
1111
yarn.lock
12+
docs/css/*.map

docs/ai_actions/ai_actions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: AI Actions help editors by automating repetitive tasks.
33
page_type: landing_page
4+
edition: lts-update
45
month_change: false
56
---
67

docs/ai_actions/ai_actions_guide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: AI Actions LTS update helps editors by automating repetitive tasks.
3+
edition: lts-update
34
month_change: true
45
---
56

docs/ai_actions/extend_ai_actions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Extend AI Actions by connecting to other services and adding new capabilities.
3+
edition: lts-update
34
month_change: false
45
---
56

docs/ai_actions/install_ai_actions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Install the AI Actions LTS update.
3+
edition: lts-update
34
month_change: true
45
---
56

docs/api/event_reference/ai_action_events.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: Events that are triggered when working with AI actions.
33
page_type: reference
4+
edition: lts-update
45
month_change: false
56
---
67

docs/api/php_api/php_api_reference/css/base.css

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ html{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:n
199199
--mid-grey: rgb(201,201,208);
200200
--dark-grey: rgb(151,151,151);
201201

202-
202+
--color-warning-dark-01: rgb(211,130,43);
203+
--color-primary-main: rgb(163,39,104);
203204
--caution-border: var(--ibexa-orange);
204205
--note-border: var(--mid-grey);
205206
--enterprise-border: var(--ibexa-jazzberry);
@@ -700,7 +701,6 @@ div.pills {
700701
}
701702

702703
.pill {
703-
background-color: var(--ibexa-jazzberry);
704704
border-radius: 2.18px;
705705
padding: 3px 8px;
706706
color: var(--white);
@@ -713,23 +713,26 @@ div.pills {
713713
}
714714

715715
.experience-pill {
716-
background-color: var(--ibexa-orange);
716+
color: var(--color-warning-dark-01);
717+
border: 1px solid var(--color-warning-dark-01);
717718
}
718719

719720
.commerce-pill::after {
720721
content: "Commerce";
721722
}
722723

723724
.commerce-pill {
724-
background-color: var(--ibexa-jazzberry);
725+
color: var(--color-primary-main);
726+
border: 1px solid var(--color-primary-main);
725727
}
726728

727729
.optional-pill::after {
728730
content: "Optional";
729731
}
730732

731733
.optional-pill {
732-
background-color: var(--sherpa-blue);
734+
color: var(--sherpa-blue);
735+
border: 1px solid var(--sherpa-blue);
733736
}
734737

735738
.md-clipboard:focus, .md-clipboard:hover {
@@ -1631,21 +1634,6 @@ ul.breadcrumbs li.breadcrumb-item-current span {
16311634
background-color: transparent;
16321635
}
16331636

1634-
.md-typeset .content-header .experience-pill {
1635-
color: var(--ibexa-orange);
1636-
border: 1px solid var(--ibexa-orange);
1637-
}
1638-
1639-
.md-typeset .content-header .commerce-pill {
1640-
color: var(--ibexa-jazzberry);
1641-
border: 1px solid var(--ibexa-jazzberry);
1642-
}
1643-
1644-
.md-typeset .content-header .optional-pill {
1645-
color: var(--sherpa-blue);
1646-
border: 1px solid var(--sherpa-blue);
1647-
}
1648-
16491637
.md-typeset .content-header img {
16501638
display: inline-block;
16511639
margin-bottom: -2px;

docs/api/php_api/php_api_reference/css/template.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@
290290
--mid-grey: rgb(201,201,208);
291291
--dark-grey: rgb(151,151,151);
292292

293-
293+
--color-warning-dark-01: rgb(211,130,43);
294+
--color-primary-main: rgb(163,39,104);
294295
--caution-border: var(--ibexa-orange);
295296
--note-border: var(--mid-grey);
296297
--enterprise-border: var(--ibexa-jazzberry);
@@ -791,7 +792,6 @@ div.pills {
791792
}
792793

793794
.pill {
794-
background-color: var(--ibexa-jazzberry);
795795
border-radius: 2.18px;
796796
padding: 3px 8px;
797797
color: var(--white);
@@ -804,23 +804,26 @@ div.pills {
804804
}
805805

806806
.experience-pill {
807-
background-color: var(--ibexa-orange);
807+
color: var(--color-warning-dark-01);
808+
border: 1px solid var(--color-warning-dark-01);
808809
}
809810

810811
.commerce-pill::after {
811812
content: "Commerce";
812813
}
813814

814815
.commerce-pill {
815-
background-color: var(--ibexa-jazzberry);
816+
color: var(--color-primary-main);
817+
border: 1px solid var(--color-primary-main);
816818
}
817819

818820
.optional-pill::after {
819821
content: "Optional";
820822
}
821823

822824
.optional-pill {
823-
background-color: var(--sherpa-blue);
825+
color: var(--sherpa-blue);
826+
border: 1px solid var(--sherpa-blue);
824827
}
825828

826829
.md-clipboard:focus, .md-clipboard:hover {

docs/content_management/data_migration/importing_data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ You can also update attributes, including changing which attribute group they be
346346

347347
You can't change the attribute type of an existing attribute.
348348

349-
##### Date and time attributes
349+
##### Date and time attributes [[% include 'snippets/lts-update_badge.md' %]]
350350

351351
If you're using attributes of the [date and time type](date_and_time.md), you can manage it through the migrations as well, for example:
352352

@@ -487,7 +487,7 @@ When updating a content type, use:
487487
[[= include_file('code_samples/data_migration/examples/update_tag.yaml') =]]
488488
```
489489

490-
### AI action configurations
490+
### AI action configurations [[% include 'snippets/lts-update_badge.md' %]]
491491

492492
- The following example shows how you can create a new action configuration in your system:
493493

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):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.

0 commit comments

Comments
 (0)