SCSS: Refactor .is-code by moving it to helper file and renaming it

This commit is contained in:
Molkobain
2021-05-05 18:29:33 +02:00
parent 6ab6930986
commit 88634bcd92
3 changed files with 11 additions and 10 deletions

View File

@@ -16,6 +16,10 @@
* You should have received a copy of the GNU Affero General Public License
*/
/* SCSS variables */
$ibo-is-code--background-color: $ibo-color-white-200 !default;
$ibo-is-code--padding: 1.25rem 1.5rem !default;
/**************/
/* Visibility */
/**************/
@@ -116,6 +120,12 @@ body.ibo-has-fullscreen-descendant {
}
}
.ibo-is-code {
background-color: $ibo-is-code--background-color;
padding: $ibo-is-code--padding;
@extend %ibo-font-code-150;
}
%ibo-medallion {
position: relative;
border-radius: var(--ibo-border-radius-full);