Skip to content
Snippets Groups Projects
Commit 10580c9c authored by Gilquin's avatar Gilquin
Browse files

feat: add custom callout and font

* add sass files to define custom callout
* restore Raleway font
* handle light and dark themes
* mark old css files as deprecated
parent 847076ed
No related branches found
No related tags found
1 merge request!9fix: correct code formatting and warnings
File moved
File moved
/* ==========================================================================
Callout
========================================================================== */
$border-color-left: #ac00e6 !default;
$background-color: #f1ccff !default;
$icon: url("data:image/svg+xml,%3csvg width='15' height='15' xmlns='http://www.w3.org/2000/svg'%3e%3c!--!Font Awesome Free 6.5.2 by %40fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons%2c Inc.--%3e%3cpath d='m14.587 4.16-1.35 1.35a.353.353 0 0 1-.5 0L9.485 2.258a.353.353 0 0 1 0-.496L10.838.41a1.41 1.41 0 0 1 1.99 0l1.759 1.76a1.404 1.404 0 0 1 0 1.99zM8.325 2.923.63 10.616l-.62 3.56a.705.705 0 0 0 .815.814l3.558-.626 7.696-7.692a.353.353 0 0 0 0-.498L8.828 2.922a.356.356 0 0 0-.501 0zM3.633 9.955a.408.408 0 0 1 0-.58l4.514-4.51a.408.408 0 0 1 .579 0 .408.408 0 0 1 0 .578l-4.51 4.512a.408.408 0 0 1-.581 0zM2.577 12.42h1.407v1.064l-1.89.33-.912-.91.331-1.89h1.065z' style='fill:%23ac00e6%3bfill-opacity:1%3bstroke-width:.0293002'/%3e%3c/svg%3e") !default;
div.callout-body-container.callout-body > div.callout-exercise {
padding-top: 0.7rem !important;
padding-bottom: 0rem !important;
}
div.callout-exercise.callout {
border-left-color: $border-color-left;
}
div.callout-exercise.callout-style-default>.callout-header {
background-color: $background-color;
}
div.callout-exercise > .callout-header::before {
content: $icon;
margin-right: .35em !important;
}
/*-- scss:defaults --*/
@import "common/variables";
@import "common/callout";
/*-- scss:rules --*/
/* Components */
@import "dark/callout_exercise";
/* Fonts */
@import "common/fonts";
/*-- scss:defaults --*/
@import "common/variables";
@import "common/callout";
/*-- scss:rules --*/
/* Components */
@import "light/callout_exercise";
/* Fonts */
@import "common/fonts";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment