Skip to content

Commit 08eded7

Browse files
Ahmed-Hakeempkozlowski-opensource
authored andcommitted
docs(docs-infra): fix callouts icon collision with the content (angular#61664)
PR Close angular#61664
1 parent fe0abb7 commit 08eded7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

adev/shared-docs/styles/docs/_callout.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
border-style: solid;
1111
margin-block: 1.5rem;
1212
border-image: var(--callout-theme) 1;
13-
position: relative;
1413

1514
// Removes bottom line if followed by another callout
1615
// Prevents too many lines/visual noise
@@ -21,8 +20,7 @@
2120
&::before {
2221
font-family: var(--icons);
2322
// content: icon is defined in each docs-alert class below...
24-
position: absolute;
25-
right: 0;
23+
float: right;
2624
margin-top: 1.35rem;
2725
color: var(--alert-accent);
2826
font-size: 1.3rem;
@@ -41,13 +39,15 @@
4139
max-width: fit-content;
4240
}
4341
}
42+
4443
.docs-viewer .docs-callout h3 {
4544
font-size: 0.875rem;
4645
margin-block: 1.6rem;
4746
}
4847

4948
.docs-callout-helpful {
5049
--callout-theme: var(--purple-to-blue-horizontal-gradient);
50+
5151
&::before {
5252
content: 'check_circle';
5353
color: var(--bright-blue);
@@ -56,6 +56,7 @@
5656

5757
.docs-callout-critical {
5858
--callout-theme: var(--red-to-orange-horizontal-gradient);
59+
5960
&::before {
6061
content: 'warning';
6162
color: var(--orange-red);
@@ -64,9 +65,10 @@
6465

6566
.docs-callout-important {
6667
--callout-theme: var(--pink-to-purple-horizontal-gradient);
68+
6769
&::before {
6870
content: 'priority_high';
6971
color: var(--electric-violet);
7072
}
7173
}
72-
}
74+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy