Add common SCSS for all custom components

This commit is contained in:
Oliver-Akins 2024-04-13 12:36:32 -06:00
parent ca0d3eb970
commit a8c94ee16f
3 changed files with 14 additions and 4 deletions

View file

@ -0,0 +1,7 @@
// Disclaimer: This CSS is used by a custom web component and is scoped to JUST
// the corresponding web component. This should only be imported by web component
// style files.
:host {
display: inline-block;
}

View file

@ -1,10 +1,12 @@
/* /*
Disclaimer: This CSS is used by a custom web component and is scoped to JUST Disclaimer: This CSS is used by a custom web component and is scoped to JUST
the corresponding web component. Importing this into other files is forbidden. the corresponding web component. Importing this into other files is forbidden
*/ */
$default-size: 1rem; $default-size: 1rem;
@use "./common.scss";
div { div {
display: flex; display: flex;
justify-content: center; justify-content: center;

View file

@ -1,13 +1,14 @@
/* /*
Disclaimer: This CSS is used by a custom web component and is scoped to JUST Disclaimer: This CSS is used by a custom web component and is scoped to JUST
the corresponding web component. Importing this into other files is forbidden. the corresponding web component. Importing this into other files is forbidden
*/ */
@use "../mixins/material";
$default-border-radius: 4px; $default-border-radius: 4px;
$default-height: 1.5rem; $default-height: 1.5rem;
@use "../mixins/material";
@use "./common.scss";
div { div {
display: grid; display: grid;
grid-template-columns: var(--height, $default-height) var(--width, 50px) var(--height, $default-height); grid-template-columns: var(--height, $default-height) var(--width, 50px) var(--height, $default-height);