Skip to content

Commit 3fc54dc

Browse files
committed
docs: move header link icon to the right to align with Angular style
1 parent 2b85d59 commit 3fc54dc

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

docs/src/styles/_markdown.scss

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,25 @@
88
color: var(--mat-sys-primary);
99
}
1010

11-
h1 {
12-
display: inline-block;
13-
font-size: 32px;
11+
h1,
12+
h2,
13+
h3 {
1414
font-weight: 400;
1515
margin: 32px 0 16px;
16+
display: flex;
17+
align-items: center;
18+
}
19+
20+
h1 {
21+
font-size: 32px;
1622
}
1723

1824
h2 {
1925
font-size: 28px;
20-
margin: 32px 0 16px;
21-
font-weight: 400;
2226
}
2327

2428
h3 {
2529
font-size: 24px;
26-
margin: 32px 0 16px;
27-
font-weight: 400;
2830
}
2931

3032
h4 {
@@ -44,7 +46,9 @@
4446
font-weight: 400;
4547
}
4648

47-
p, ul, ol {
49+
p,
50+
ul,
51+
ol {
4852
font-size: 16px;
4953
line-height: 28px;
5054
}
@@ -90,13 +94,15 @@
9094
}
9195

9296
.docs-header-link {
97+
// Align header link to the right of the header text.
98+
[header-link] {
99+
order: 2;
100+
}
101+
93102
header-link {
94-
// deduct -30px so the anchor icon will be positioned outside the content
95-
margin-left: -30px;
96-
// Slight margin to try and center the icon better.
97-
margin-top: 2px;
98-
display: inline-block;
99-
vertical-align: middle;
103+
margin-left: 8px;
104+
display: flex;
105+
align-items: center;
100106

101107
// stylelint-disable-next-line material/no-prefixes
102108
user-select: none;
@@ -117,5 +123,4 @@
117123
visibility: visible;
118124
}
119125
}
120-
121126
}

0 commit comments

Comments
 (0)