2023-06-06 05:14:17 +00:00
|
|
|
@use "sass:color";
|
|
|
|
|
|
|
|
.callout {
|
2023-07-23 00:27:41 +00:00
|
|
|
border: 1px solid var(--border);
|
|
|
|
background-color: var(--bg);
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: 0 1rem;
|
|
|
|
overflow-y: hidden;
|
2023-06-17 20:08:06 +00:00
|
|
|
transition: max-height 0.3s ease;
|
2023-08-12 17:33:57 +00:00
|
|
|
box-sizing: border-box;
|
2023-06-06 05:14:17 +00:00
|
|
|
|
2023-06-17 21:36:06 +00:00
|
|
|
& > *:nth-child(2) {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2023-07-23 00:27:41 +00:00
|
|
|
&[data-callout="note"] {
|
|
|
|
--color: #448aff;
|
2023-08-08 06:56:50 +00:00
|
|
|
--border: #448aff44;
|
|
|
|
--bg: #448aff10;
|
2023-07-23 00:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-callout="abstract"] {
|
|
|
|
--color: #00b0ff;
|
2023-08-08 06:56:50 +00:00
|
|
|
--border: #00b0ff44;
|
|
|
|
--bg: #00b0ff10;
|
2023-07-23 00:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-callout="info"],
|
|
|
|
&[data-callout="todo"] {
|
|
|
|
--color: #00b8d4;
|
2023-08-08 06:56:50 +00:00
|
|
|
--border: #00b8d444;
|
|
|
|
--bg: #00b8d410;
|
2023-07-23 00:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-callout="tip"] {
|
|
|
|
--color: #00bfa5;
|
2023-08-08 06:56:50 +00:00
|
|
|
--border: #00bfa544;
|
|
|
|
--bg: #00bfa510;
|
2023-07-23 00:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-callout="success"] {
|
|
|
|
--color: #09ad7a;
|
2023-08-08 06:56:50 +00:00
|
|
|
--border: #09ad7144;
|
|
|
|
--bg: #09ad7110;
|
2023-07-23 00:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-callout="question"] {
|
|
|
|
--color: #dba642;
|
2023-08-08 06:56:50 +00:00
|
|
|
--border: #dba64244;
|
|
|
|
--bg: #dba64210;
|
2023-07-23 00:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-callout="warning"] {
|
|
|
|
--color: #db8942;
|
2023-08-08 06:56:50 +00:00
|
|
|
--border: #db894244;
|
|
|
|
--bg: #db894210;
|
2023-07-23 00:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-callout="failure"],
|
|
|
|
&[data-callout="danger"],
|
|
|
|
&[data-callout="bug"] {
|
|
|
|
--color: #db4242;
|
2023-08-08 06:56:50 +00:00
|
|
|
--border: #db424244;
|
|
|
|
--bg: #db424210;
|
2023-07-23 00:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-callout="example"] {
|
|
|
|
--color: #7a43b5;
|
2023-08-08 06:56:50 +00:00
|
|
|
--border: #7a43b544;
|
|
|
|
--bg: #7a43b510;
|
2023-07-23 00:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-callout="quote"] {
|
|
|
|
--color: var(--secondary);
|
|
|
|
--border: var(--lightgray);
|
|
|
|
}
|
|
|
|
|
2023-07-05 01:26:11 +00:00
|
|
|
&.is-collapsed > .callout-title > .fold {
|
2023-07-23 00:27:41 +00:00
|
|
|
transform: rotateZ(-90deg);
|
2023-07-05 01:26:11 +00:00
|
|
|
}
|
2023-06-06 05:14:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.callout-title {
|
2023-07-23 00:27:41 +00:00
|
|
|
display: flex;
|
|
|
|
gap: 5px;
|
|
|
|
padding: 1rem 0;
|
|
|
|
color: var(--color);
|
|
|
|
|
|
|
|
& .fold {
|
|
|
|
margin-left: 0.5rem;
|
2023-06-17 20:08:06 +00:00
|
|
|
transition: transform 0.3s ease;
|
|
|
|
opacity: 0.8;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2023-08-12 17:16:55 +00:00
|
|
|
|
|
|
|
& > .callout-title-inner > p {
|
|
|
|
color: var(--color);
|
|
|
|
margin: 0;
|
|
|
|
}
|
2023-06-06 05:14:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.callout-icon {
|
2023-07-23 00:27:41 +00:00
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
2023-08-26 17:48:34 +00:00
|
|
|
flex: 0 0 18px;
|
|
|
|
padding-top: 4px;
|
2023-06-06 05:14:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.callout-title-inner {
|
2023-07-23 00:27:41 +00:00
|
|
|
font-weight: 700;
|
2023-06-06 05:14:17 +00:00
|
|
|
}
|