Skip to content

Commit c6454b6

Browse files
author
Funasitien DreamCloud
committed
🎨 Custom Callouts
1 parent 57b4f8a commit c6454b6

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

src/assets/app.css

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,97 @@
7878
mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" fill="none"><path fill="%23D9D9D9" d="M0 20C0 8.954 8.954 0 20 0h120c20 0 20 20 20 20 0 11.046 8.954 20 20 20 0 0 20 0 20 19.5V180c0 11.046-8.954 20-20 20H58c-18 0-18-20-18-20 0-11.046-8.954-20-20-20 0 0-20 0-20-17V20Z"/></svg>');
7979
-webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" fill="none"><path fill="%23D9D9D9" d="M0 20C0 8.954 8.954 0 20 0h120c20 0 20 20 20 20 0 11.046 8.954 20 20 20 0 0 20 0 20 19.5V180c0 11.046-8.954 20-20 20H58c-18 0-18-20-18-20 0-11.046-8.954-20-20-20 0 0-20 0-20-17V20Z"/></svg>');
8080
}
81+
82+
83+
/*
84+
* Custom Callout Styles
85+
*
86+
* These styles are used to create custom callouts in the documentation.
87+
*
88+
* The callouts are styled using CSS classes and can be customized further
89+
* as needed.
90+
*/
91+
92+
.callout {
93+
font-weight: 500;
94+
font-style: normal;
95+
color: var(--tw-prose-quotes);
96+
border-inline-start-width: 0;
97+
quotes: "\201C" "\201D" "\2018" "\2019";
98+
padding: 0.2em;
99+
padding-top: 1.2rem;
100+
padding-inline-start: 1em;
101+
margin-top: 0.4rem;
102+
margin-bottom: 0.4rem;
103+
border-radius: var(--radius-field);
104+
}
105+
106+
.callout-title {
107+
font-weight: 600;
108+
font-style: normal;
109+
display: flex;
110+
gap: 0.5em;
111+
}
112+
113+
.callout.info {
114+
background-color: var(--color-info);
115+
}
116+
117+
.callout.bug {
118+
background-color: var(--color-secondary);
119+
}
120+
121+
.callout.success,
122+
.callout.check,
123+
.callout.done {
124+
background-color: var(--color-success);
125+
}
126+
.callout.warning,
127+
.callout.attention,
128+
.callout.caution {
129+
background-color: var(--color-warning);
130+
}
131+
132+
.callout.question,
133+
.callout.help,
134+
.callout.faq {
135+
background-color: var(--color-info);
136+
}
137+
138+
.callout.tip,
139+
.callout.hint,
140+
.callout.important {
141+
background-color: var(--color-primary);
142+
}
143+
144+
.callout.todo,
145+
.callout.abstract,
146+
.callout.summary,
147+
.callout.tldr {
148+
background-color: var(--color-base-300);
149+
}
150+
151+
.callout.error,
152+
.callout.failure,
153+
.callout.missing {
154+
background-color: var(--color-error);
155+
}
156+
157+
.callout.danger,
158+
.callout.error {
159+
background-color: var(--color-error);
160+
}
161+
162+
.callout.note {
163+
background-color: var(--color-primary);
164+
}
165+
166+
.callout.quote,
167+
.callout.example,
168+
.callout.cite {
169+
background-color: var(--color-base-300);
170+
}
171+
172+
.callout.custom {
173+
background-color: #CBC3E3;
174+
}

0 commit comments

Comments
 (0)