Skip to content

Instantly share code, notes, and snippets.

View sebastiano-guerriero's full-sized avatar

Sebastiano Guerriero sebastiano-guerriero

View GitHub Profile
.grid {
--grid-gap: 0px;
display: flex;
flex-wrap: wrap;
}
.grid > * {
flex-basis: 100%;
}
.grid {
display: flex;
flex-wrap: wrap;
}
.grid > * {
flex-basis: 100%;
}
.grid-gap-xxxs {
.component {
padding: var(--space-md);
}
:root {
// type scale
--text-scale-ratio: 1.2;
--text-xs: calc((1em / var(--text-scale-ratio)) / var(--text-scale-ratio));
--text-sm: calc(var(--text-xs) * var(--text-scale-ratio));
--text-md: calc(var(--text-sm) * var(--text-scale-ratio) * var(--text-scale-ratio));
--text-lg: calc(var(--text-md) * var(--text-scale-ratio));
--text-xl: calc(var(--text-lg) * var(--text-scale-ratio));
--text-xxl: calc(var(--text-xl) * var(--text-scale-ratio));
--text-xxxl: calc(var(--text-xxl) * var(--text-scale-ratio));
:root {
--space-unit: 1em;
--space-xxxxs: calc(0.125 * var(--space-unit));
--space-xxxs: calc(0.25 * var(--space-unit));
--space-xxs: calc(0.375 * var(--space-unit));
--space-xs: calc(0.5 * var(--space-unit));
--space-sm: calc(0.75 * var(--space-unit));
--space-md: calc(1.25 * var(--space-unit));
--space-lg: calc(2 * var(--space-unit));
--space-xl: calc(3.25 * var(--space-unit));
.sr-only { // content made available only to screen readers
position: absolute;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
width: 1px;
height: 1px;
overflow: hidden;
padding: 0;
border: 0;
white-space: nowrap;
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
.compontentTwo--text-center {
text-align: center;
}
.compontentTwo--text-right {
text-align: right;
}
.compontentOne--text-center {
text-align: center;
}
.compontentOne--text-right {
text-align: right;
}
@media only screen and (max-width: map-get($map: $breakpoints, $key: xs) - 0.05rem) {
.display--xs, .display--sm, .display--md, .display--lg, .display--xl {
display: none !important;
}
}
@media only screen and (max-width: map-get($map: $breakpoints, $key: sm) - 0.05rem) {
.display--sm, .display--md, .display--lg, .display--xl {
display: none !important;
}