feat: styles package (#1074)
This commit is contained in:
74
packages/styles/src/Styles/utils/_animation.scss
Normal file
74
packages/styles/src/Styles/utils/_animation.scss
Normal file
@@ -0,0 +1,74 @@
|
||||
@keyframes slide-down {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.slide-down-animation {
|
||||
animation: slide-down 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes slide-in-right {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateX(10px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
.slide-in-right-animation {
|
||||
animation: slide-in-right 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes slide-out-left {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: translateX(-10px);
|
||||
}
|
||||
}
|
||||
|
||||
.slide-out-left-animation {
|
||||
animation: slide-out-left 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes fade-out {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.fade-out-animation {
|
||||
animation: fade-out 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.fade-in-animation {
|
||||
animation: fade-in 0.2s ease;
|
||||
}
|
||||
|
||||
.animation-fill-forwards {
|
||||
animation-fill-mode: forwards;
|
||||
}
|
||||
79
packages/styles/src/Styles/utils/_border.scss
Normal file
79
packages/styles/src/Styles/utils/_border.scss
Normal file
@@ -0,0 +1,79 @@
|
||||
.no-border {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.border-0 {
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.border-1 {
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
.border-2 {
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
.border-b-1 {
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
|
||||
.border-main {
|
||||
border-color: var(--sn-stylekit-border-color);
|
||||
}
|
||||
|
||||
.border-background {
|
||||
border-color: var(--sn-stylekit-background-color);
|
||||
}
|
||||
|
||||
.border-transparent {
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.border-info {
|
||||
border-color: var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.border-neutral {
|
||||
border-color: var(--sn-stylekit-neutral-color);
|
||||
}
|
||||
|
||||
.border-rounded-md {
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.rounded-full {
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.border-solid {
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.border-bottom-solid {
|
||||
border-bottom-style: solid;
|
||||
}
|
||||
|
||||
.border-box {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.ring-info {
|
||||
box-shadow: 0 0 0 2px var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.inner-ring-info {
|
||||
box-shadow: inset 0 0 0 2px var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.shadow-overlay {
|
||||
box-shadow: 0px 4px 24px 0px #00000029;
|
||||
}
|
||||
|
||||
.border-bottom-1-gray {
|
||||
border-bottom-color: var(--sn-stylekit-border-color);
|
||||
}
|
||||
70
packages/styles/src/Styles/utils/_color.scss
Normal file
70
packages/styles/src/Styles/utils/_color.scss
Normal file
@@ -0,0 +1,70 @@
|
||||
.bg-default {
|
||||
background-color: var(--sn-stylekit-background-color);
|
||||
}
|
||||
|
||||
.bg-contrast {
|
||||
background-color: var(--sn-stylekit-contrast-background-color);
|
||||
}
|
||||
|
||||
.bg-border {
|
||||
background-color: var(--sn-stylekit-border-color);
|
||||
}
|
||||
|
||||
.bg-secondary-contrast {
|
||||
background-color: var(--sn-stylekit-secondary-contrast-background-color);
|
||||
}
|
||||
|
||||
.bg-clip-padding {
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.bg-transparent {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
@mixin define-color($name, $source: null) {
|
||||
.bg-#{$name} {
|
||||
background-color: var(--sn-stylekit-#{if($source, $source, $name)});
|
||||
}
|
||||
|
||||
.color-#{$name} {
|
||||
color: var(--sn-stylekit-#{if($source, $source, $name)});
|
||||
}
|
||||
}
|
||||
|
||||
@include define-color('neutral', 'neutral-color');
|
||||
@include define-color('text', 'contrast-foreground-color');
|
||||
@include define-color('foreground', 'foreground-color');
|
||||
@include define-color('danger', 'danger-color');
|
||||
@include define-color('info', 'info-color');
|
||||
@include define-color('info-contrast', 'info-contrast-color');
|
||||
@include define-color('info-dark', 'info-color-darkened');
|
||||
@include define-color('success', 'success-color');
|
||||
|
||||
@include define-color('passive-0', 'passive-color-0');
|
||||
@include define-color('passive-1', 'passive-color-1');
|
||||
@include define-color('passive-2', 'passive-color-2');
|
||||
@include define-color('passive-3', 'passive-color-3');
|
||||
@include define-color('passive-4', 'passive-color-4');
|
||||
@include define-color('passive-4-opacity-variant', 'passive-color-4-opacity-variant');
|
||||
@include define-color('passive-5', 'passive-color-5');
|
||||
@include define-color('passive-6', 'passive-color-6');
|
||||
@include define-color('passive-super-light', 'passive-color-super-light');
|
||||
|
||||
@for $i from 1 to 7 {
|
||||
@include define-color('accessory-tint-#{$i}', 'accessory-tint-color-#{$i}');
|
||||
}
|
||||
|
||||
.selected\:bg-color[data-selected],
|
||||
.selected\:bg-color[aria-selected='true'] {
|
||||
background-color: var(--sn-stylekit-passive-color-5);
|
||||
}
|
||||
|
||||
.selected\:fg-color[data-selected],
|
||||
.selected\:fg-color[aria-selected='true'] {
|
||||
color: var(--sn-stylekit-contrast-foreground-color);
|
||||
}
|
||||
|
||||
.fill-current {
|
||||
fill: currentColor;
|
||||
}
|
||||
3
packages/styles/src/Styles/utils/_cursor.scss
Normal file
3
packages/styles/src/Styles/utils/_cursor.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
.cursor-pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
118
packages/styles/src/Styles/utils/_display.scss
Normal file
118
packages/styles/src/Styles/utils/_display.scss
Normal file
@@ -0,0 +1,118 @@
|
||||
.inline-flex {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.flex-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.flex-grow {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.flex-shrink {
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.flex-shrink-0 {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.flex-wrap {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.items-center {
|
||||
align-items: center;
|
||||
}
|
||||
.items-start {
|
||||
align-items: flex-start;
|
||||
}
|
||||
.items-end {
|
||||
align-items: flex-end;
|
||||
}
|
||||
.items-stretch {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
.justify-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.justify-start {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.justify-end {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.gap-1 {
|
||||
grid-gap: 0.25rem;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
.gap-2 {
|
||||
grid-gap: 0.5rem;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.gap-3 {
|
||||
grid-gap: 0.75rem;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.gap-4 {
|
||||
grid-gap: 1rem;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.absolute {
|
||||
position: absolute;
|
||||
}
|
||||
.fixed {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.cursor-pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.origin-top-right {
|
||||
transform-origin: top right;
|
||||
}
|
||||
|
||||
.overflow-auto {
|
||||
overflow: auto;
|
||||
}
|
||||
.overflow-y-auto {
|
||||
overflow-y: auto;
|
||||
}
|
||||
.overflow-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
.overflow-ellipsis {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.flex-basis-55 {
|
||||
flex-basis: 13.75rem;
|
||||
}
|
||||
|
||||
.opacity-0 {
|
||||
opacity: 0;
|
||||
}
|
||||
84
packages/styles/src/Styles/utils/_height.scss
Normal file
84
packages/styles/src/Styles/utils/_height.scss
Normal file
@@ -0,0 +1,84 @@
|
||||
.h-auto {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.h-full {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.h-100vh {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.h-90vh {
|
||||
height: 90vh;
|
||||
}
|
||||
|
||||
.h-0 {
|
||||
height: 0;
|
||||
}
|
||||
.h-2 {
|
||||
height: 0.5rem;
|
||||
}
|
||||
.h-3\.5 {
|
||||
height: 0.875rem;
|
||||
}
|
||||
.h-4 {
|
||||
height: 1rem;
|
||||
}
|
||||
.h-4\.5 {
|
||||
height: 1.125rem;
|
||||
}
|
||||
.h-5 {
|
||||
height: 1.25rem;
|
||||
}
|
||||
.h-6 {
|
||||
height: 1.5rem;
|
||||
}
|
||||
.h-7 {
|
||||
height: 1.75rem;
|
||||
}
|
||||
.h-8 {
|
||||
height: 2rem;
|
||||
}
|
||||
.h-9 {
|
||||
height: 2.25rem;
|
||||
}
|
||||
.h-10 {
|
||||
height: 2.5rem;
|
||||
}
|
||||
.h-14 {
|
||||
height: 3.5rem;
|
||||
}
|
||||
.h-18 {
|
||||
height: 4.5rem;
|
||||
}
|
||||
.h-25 {
|
||||
height: 6.25rem;
|
||||
}
|
||||
|
||||
.h-1px {
|
||||
height: 1px;
|
||||
}
|
||||
.h-20px {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.min-h-0 {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.min-h-5 {
|
||||
min-height: 1.25rem;
|
||||
}
|
||||
.m-h-32 {
|
||||
min-height: 2rem;
|
||||
}
|
||||
|
||||
.min-h-20px {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.max-h-120 {
|
||||
max-height: 30rem;
|
||||
}
|
||||
101
packages/styles/src/Styles/utils/_hover_focus.scss
Normal file
101
packages/styles/src/Styles/utils/_hover_focus.scss
Normal file
@@ -0,0 +1,101 @@
|
||||
.hover\:bg-passive-3:hover {
|
||||
background-color: var(--sn-stylekit-passive-color-3);
|
||||
}
|
||||
|
||||
.hover\:brightness-130:hover {
|
||||
filter: brightness(130%);
|
||||
}
|
||||
|
||||
.focus\:brightness-130:focus {
|
||||
filter: brightness(130%);
|
||||
}
|
||||
|
||||
.hover\:bg-highlight:hover {
|
||||
background-color: var(--sn-stylekit-passive-color-5);
|
||||
}
|
||||
|
||||
.focus\:bg-highlight:focus {
|
||||
background-color: var(--sn-stylekit-passive-color-5);
|
||||
}
|
||||
|
||||
.hover\:bg-contrast:hover {
|
||||
@extend .bg-contrast;
|
||||
}
|
||||
|
||||
.hover\:bg-info-dark:hover {
|
||||
@extend .bg-info-dark;
|
||||
}
|
||||
.focus\:bg-info-dark:focus {
|
||||
@extend .bg-info-dark;
|
||||
}
|
||||
|
||||
.focus\:padded-ring-info:focus {
|
||||
box-shadow: 0 0 0 2px var(--sn-stylekit-background-color), 0 0 0 4px var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.focus\:border-bottom:focus {
|
||||
border-bottom: 2px solid var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.focus-within\:padded-ring-info:focus-within {
|
||||
box-shadow: 0 0 0 2px var(--sn-stylekit-background-color), 0 0 0 4px var(--sn-stylekit-info-color);
|
||||
}
|
||||
|
||||
.focus-within\:border-background:focus-within {
|
||||
border-color: var(--sn-stylekit-background-color);
|
||||
}
|
||||
|
||||
.box-shadow,
|
||||
.box-shadow:focus,
|
||||
.box-shadow:focus-within {
|
||||
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.12), 0px 2px 8px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.focus\:bg-contrast:focus {
|
||||
@extend .bg-contrast;
|
||||
}
|
||||
|
||||
.hover\:color-text:hover {
|
||||
@extend .color-text;
|
||||
}
|
||||
|
||||
.focus\:color-text:focus {
|
||||
@extend .color-text;
|
||||
}
|
||||
|
||||
.hover\:bg-secondary-contrast:hover {
|
||||
@extend .bg-secondary-contrast;
|
||||
}
|
||||
|
||||
.focus\:bg-secondary-contrast:focus {
|
||||
@extend .bg-secondary-contrast;
|
||||
}
|
||||
|
||||
.focus\:inner-ring-info:focus {
|
||||
@extend .inner-ring-info;
|
||||
}
|
||||
|
||||
.focus\:ring-info:focus {
|
||||
@extend .ring-info;
|
||||
}
|
||||
|
||||
.focus-within\:ring-info:focus-within {
|
||||
@extend .ring-info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Do not use these rules without explicitly handling focus in a different
|
||||
* way, otherwise keyboard focus will break.
|
||||
*/
|
||||
.focus\:outline-none:focus {
|
||||
outline: none;
|
||||
}
|
||||
.focus\:shadow-none:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
.focus-within\:outline-none:focus-within {
|
||||
outline: none;
|
||||
}
|
||||
.focus-within\:shadow-none:focus-within {
|
||||
box-shadow: none;
|
||||
}
|
||||
86
packages/styles/src/Styles/utils/_margin.scss
Normal file
86
packages/styles/src/Styles/utils/_margin.scss
Normal file
@@ -0,0 +1,86 @@
|
||||
.m-0 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.my-1 {
|
||||
margin-top: 0.25rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.my-2 {
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.my-3 {
|
||||
margin-top: 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.-mt-1 {
|
||||
margin-top: -0.25rem;
|
||||
}
|
||||
|
||||
.mt-1 {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.mt-2 {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.mt-3 {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.mt-4 {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.mb-1 {
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.mb-3 {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.-mr-2 {
|
||||
margin-right: -0.5rem;
|
||||
}
|
||||
|
||||
.mr-1 {
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
.mr-1\.5 {
|
||||
margin-right: 0.375rem;
|
||||
}
|
||||
|
||||
.mr-2 {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.mr-10 {
|
||||
margin-right: 2.5rem;
|
||||
}
|
||||
|
||||
.ml-1 {
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
.ml-1\.5 {
|
||||
margin-left: 0.375rem;
|
||||
}
|
||||
|
||||
.ml-2 {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.ml-4 {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.ml-6 {
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
103
packages/styles/src/Styles/utils/_padding.scss
Normal file
103
packages/styles/src/Styles/utils/_padding.scss
Normal file
@@ -0,0 +1,103 @@
|
||||
.p-0 {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.p-2 {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.p-3 {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.py-1 {
|
||||
padding-top: 0.25rem;
|
||||
padding-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.py-1\.5 {
|
||||
padding-top: 0.375rem;
|
||||
padding-bottom: 0.375rem;
|
||||
}
|
||||
|
||||
.py-1\.75 {
|
||||
padding-top: 0.4375rem;
|
||||
padding-bottom: 0.4375rem;
|
||||
}
|
||||
|
||||
.py-2 {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.py-3 {
|
||||
padding-top: 0.75rem;
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
.py-4 {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.py-6 {
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.py-8 {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.px-1 {
|
||||
padding-left: 0.25rem;
|
||||
padding-right: 0.25rem;
|
||||
}
|
||||
|
||||
.px-2 {
|
||||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
.px-3 {
|
||||
padding-left: 0.75rem;
|
||||
padding-right: 0.75rem;
|
||||
}
|
||||
|
||||
.px-3\.5 {
|
||||
padding-left: 0.875rem;
|
||||
padding-right: 0.875rem;
|
||||
}
|
||||
|
||||
.px-4 {
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.px-6 {
|
||||
padding-left: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
.pt-4 {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.pb-3 {
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.pr-2 {
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
.pl-1 {
|
||||
padding-left: 0.25rem;
|
||||
}
|
||||
|
||||
.pl-3 {
|
||||
padding-left: 0.75rem;
|
||||
}
|
||||
40
packages/styles/src/Styles/utils/_position.scss
Normal file
40
packages/styles/src/Styles/utils/_position.scss
Normal file
@@ -0,0 +1,40 @@
|
||||
.top-0 {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.left-0 {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.bottom-0 {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.bottom-6 {
|
||||
bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.right-0 {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.right-6 {
|
||||
right: 1.5rem;
|
||||
}
|
||||
|
||||
.top-left-0 {
|
||||
@extend .top-0;
|
||||
@extend .left-0;
|
||||
}
|
||||
|
||||
.-top-10 {
|
||||
top: -2.5rem;
|
||||
}
|
||||
|
||||
.-left-51 {
|
||||
left: -12.75rem;
|
||||
}
|
||||
|
||||
.z-index-toast {
|
||||
z-index: 11000;
|
||||
}
|
||||
15
packages/styles/src/Styles/utils/_transition.scss
Normal file
15
packages/styles/src/Styles/utils/_transition.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
.duration-150 {
|
||||
transition-duration: 150ms;
|
||||
}
|
||||
|
||||
.ease-out {
|
||||
transition-timing-function: ease-out;
|
||||
}
|
||||
|
||||
.transition-background {
|
||||
transition-property: background;
|
||||
}
|
||||
|
||||
.transition-transform {
|
||||
transition-property: transform;
|
||||
}
|
||||
73
packages/styles/src/Styles/utils/_typography.scss
Normal file
73
packages/styles/src/Styles/utils/_typography.scss
Normal file
@@ -0,0 +1,73 @@
|
||||
.capitalize {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.font-normal {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.font-semibold {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.font-bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-xs {
|
||||
font-size: 0.75rem;
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
.text-input {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.125rem;
|
||||
}
|
||||
|
||||
.text-base {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.text-lg {
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
.text-2xl {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
.text-3xl {
|
||||
font-size: 1.875rem;
|
||||
line-height: 2.25rem;
|
||||
}
|
||||
|
||||
.font-medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.leading-4 {
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
.whitespace-pre-wrap {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.whitespace-nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
128
packages/styles/src/Styles/utils/_width.scss
Normal file
128
packages/styles/src/Styles/utils/_width.scss
Normal file
@@ -0,0 +1,128 @@
|
||||
.w-auto {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.w-full {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.w-100vw {
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
.fit-content {
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.w-0 {
|
||||
width: 0;
|
||||
}
|
||||
.w-2 {
|
||||
width: 0.5rem;
|
||||
}
|
||||
.w-3\.5 {
|
||||
width: 0.875rem;
|
||||
}
|
||||
.w-4 {
|
||||
width: 1rem;
|
||||
}
|
||||
.w-5 {
|
||||
width: 1.25rem;
|
||||
}
|
||||
.w-8 {
|
||||
width: 2rem;
|
||||
}
|
||||
.w-25 {
|
||||
width: 6.25rem;
|
||||
}
|
||||
.w-30 {
|
||||
width: 7.5rem;
|
||||
}
|
||||
.w-55 {
|
||||
width: 13.75rem;
|
||||
}
|
||||
.w-56 {
|
||||
width: 14rem;
|
||||
}
|
||||
.w-70 {
|
||||
width: 17.5rem;
|
||||
}
|
||||
.w-80 {
|
||||
width: 20rem;
|
||||
}
|
||||
.w-103 {
|
||||
width: 25.75rem;
|
||||
}
|
||||
.w-125 {
|
||||
width: 31.25rem;
|
||||
}
|
||||
.w-160 {
|
||||
width: 40rem;
|
||||
}
|
||||
|
||||
.w-20px {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.min-w-265px {
|
||||
min-width: 265px;
|
||||
}
|
||||
|
||||
.min-w-20px {
|
||||
min-width: 20px;
|
||||
}
|
||||
|
||||
.min-w-0 {
|
||||
min-width: 0;
|
||||
}
|
||||
.min-w-4 {
|
||||
min-width: 1rem;
|
||||
}
|
||||
.min-w-5 {
|
||||
min-width: 1.25rem;
|
||||
}
|
||||
.min-w-8 {
|
||||
min-width: 2rem;
|
||||
}
|
||||
.min-w-20 {
|
||||
min-width: 5rem;
|
||||
}
|
||||
.min-w-40 {
|
||||
min-width: 10rem;
|
||||
}
|
||||
.min-w-42 {
|
||||
min-width: 10.5rem;
|
||||
}
|
||||
.min-w-55 {
|
||||
min-width: 13.75rem;
|
||||
}
|
||||
.min-w-80 {
|
||||
min-width: 20rem;
|
||||
}
|
||||
.min-w-max {
|
||||
min-width: max-content;
|
||||
}
|
||||
|
||||
.max-w-xs {
|
||||
max-width: 20rem;
|
||||
}
|
||||
.max-w-md {
|
||||
max-width: 28rem;
|
||||
}
|
||||
|
||||
.max-w-40 {
|
||||
max-width: 10rem;
|
||||
}
|
||||
|
||||
.max-w-80 {
|
||||
max-width: 20rem;
|
||||
}
|
||||
|
||||
.max-w-125 {
|
||||
max-width: 31.25rem;
|
||||
}
|
||||
|
||||
.max-w-290px {
|
||||
max-width: 290px;
|
||||
}
|
||||
Reference in New Issue
Block a user