Skip to content

Commit 344872f

Browse files
authored
Merge pull request #3280 from SwiftPackageIndex/readme-alert-styling
Readme alert styling
2 parents e55c4e5 + b5685bc commit 344872f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

FrontEnd/styles/readme.scss

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,45 @@
9090
details {
9191
margin: 20px 0;
9292
}
93+
94+
.markdown-alert {
95+
padding-left: 15px;
96+
fill: currentColor;
97+
border-left: solid 3px;
98+
}
99+
100+
.markdown-alert-title {
101+
font-weight: 500;
102+
}
103+
104+
.markdown-alert p:nth-child(2) {
105+
color: black;
106+
}
107+
108+
.markdown-alert-title svg {
109+
margin-right: 10px;
110+
transform: translateY(3px);
111+
}
112+
113+
.markdown-alert-note {
114+
color: var(--mid-blue);
115+
}
116+
117+
.markdown-alert-tip {
118+
color: var(--dark-green);
119+
}
120+
121+
.markdown-alert-important {
122+
color: var(--mid-purple);
123+
}
124+
125+
.markdown-alert-warning {
126+
color: var(--yellow);
127+
}
128+
129+
.markdown-alert-caution {
130+
color: var(--mid-red);
131+
}
93132
}
94133

95134
g-emoji {

0 commit comments

Comments
 (0)