Skip to content

Commit 1c9d32b

Browse files
[TASK] Change color and thickness of table of contents title (#681)
Resolves #625 ___ Replace orange color with dark gray, reduce font-size from 1.5em to 1.1em and increase font-weight from 600 to 700 Examples with longer title as provided in the source task: BEFORE: <img width="1187" alt="image" src="https://github.com/user-attachments/assets/12dbb6c6-1b93-4307-a46f-c742d563fedb"> AFTER: <img width="1187" alt="image" src="https://github.com/user-attachments/assets/25fe5251-49a1-4547-b8fd-5e4b6da158cd"> --------- Co-authored-by: lina.wolf <[email protected]>
1 parent 543aef4 commit 1c9d32b

File tree

5 files changed

+45
-13
lines changed

5 files changed

+45
-13
lines changed

Documentation-rendertest/Index.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,16 @@ Within ddev
4646
4747
-----
4848

49-
.. rubric:: Pages
49+
.. toctree::
50+
:caption: INTRODUCTION
51+
:titlesonly:
52+
:glob:
53+
54+
*
5055

51-
.. rst-class:: compact-list
5256
.. toctree::
57+
:caption: HOWTOS
5358
:titlesonly:
5459
:glob:
5560

5661
*/Index
57-
*

Documentation-rendertest/Page1.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
======
2+
Page 1
3+
======

Documentation-rendertest/Page2.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
======
2+
Page 2
3+
======

packages/typo3-docs-theme/assets/sass/layout/navigation/_main_navigation.scss

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
.toc-header {
2222
display: flex;
2323
justify-content: space-between;
24-
padding-left: calc(#{$spacer} / 2) ;
24+
padding-left: calc(#{$spacer} / 1.5) ;
2525
}
2626
.main_menu {
2727
margin: $spacer 0;
@@ -121,13 +121,25 @@
121121
}
122122
a.toc-title-project {
123123
display: block;
124-
font-size: 1.5em;
125-
font-weight:$font-weight-bold;
124+
position: relative;
125+
font-size: 1.2em;
126+
font-weight: 700;
126127
line-height: 1.25;
127-
color: $primary;
128+
color: $secondary;
128129
text-decoration: none;
130+
131+
&:before {
132+
content: '';
133+
width: 0.2em;
134+
height: 100%;
135+
background: $primary;
136+
position: absolute;
137+
top: 0;
138+
left: -0.6em;
139+
}
140+
129141
&:hover {
130-
color: darken($primary, 15%);
142+
text-decoration: .1em underline;
131143
}
132144
}
133145
.toc-search {

packages/typo3-docs-theme/resources/public/css/theme.css

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25481,7 +25481,7 @@ dl.field-list > dt:after {
2548125481
.toc-header {
2548225482
display: flex;
2548325483
justify-content: space-between;
25484-
padding-left: calc(1rem / 2);
25484+
padding-left: calc(1rem / 1.5);
2548525485
}
2548625486

2548725487
.main_menu {
@@ -25576,14 +25576,24 @@ dl.field-list > dt:after {
2557625576

2557725577
a.toc-title-project {
2557825578
display: block;
25579-
font-size: 1.5em;
25580-
font-weight: 600;
25579+
position: relative;
25580+
font-size: 1.2em;
25581+
font-weight: 700;
2558125582
line-height: 1.25;
25582-
color: #ff8700;
25583+
color: #333333;
2558325584
text-decoration: none;
2558425585
}
25586+
a.toc-title-project:before {
25587+
content: "";
25588+
width: 0.2em;
25589+
height: 100%;
25590+
background: #ff8700;
25591+
position: absolute;
25592+
top: 0;
25593+
left: -0.6em;
25594+
}
2558525595
a.toc-title-project:hover {
25586-
color: #b35f00;
25596+
text-decoration: 0.1em underline;
2558725597
}
2558825598

2558925599
.toc-search {

0 commit comments

Comments
 (0)