You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
192 lines
4.3 KiB
SCSS
192 lines
4.3 KiB
SCSS
@import "../css/variables.module.scss";
|
|
|
|
.excalidraw {
|
|
.ExcButton {
|
|
--text-color: transparent;
|
|
--border-color: transparent;
|
|
--back-color: transparent;
|
|
|
|
color: var(--text-color);
|
|
background-color: var(--back-color);
|
|
border-color: var(--border-color);
|
|
|
|
&--color-primary {
|
|
&.ExcButton--variant-filled {
|
|
--text-color: var(--color-surface-lowest);
|
|
--back-color: var(--color-primary);
|
|
|
|
&:hover {
|
|
--back-color: var(--color-brand-hover);
|
|
}
|
|
|
|
&:active {
|
|
--back-color: var(--color-brand-active);
|
|
}
|
|
}
|
|
|
|
&.ExcButton--variant-outlined,
|
|
&.ExcButton--variant-icon {
|
|
--text-color: var(--color-primary);
|
|
--border-color: var(--color-border-outline);
|
|
--back-color: transparent;
|
|
|
|
&:hover {
|
|
--text-color: var(--color-brand-hover);
|
|
--border-color: var(--color-brand-hover);
|
|
}
|
|
|
|
&:active {
|
|
--text-color: var(--color-brand-active);
|
|
--border-color: var(--color-brand-active);
|
|
}
|
|
}
|
|
}
|
|
|
|
&--color-danger {
|
|
&.ExcButton--variant-filled {
|
|
--text-color: var(--color-danger-text);
|
|
--back-color: var(--color-danger-dark);
|
|
|
|
&:hover {
|
|
--back-color: var(--color-danger-darker);
|
|
}
|
|
|
|
&:active {
|
|
--back-color: var(--color-danger-darkest);
|
|
}
|
|
}
|
|
|
|
&.ExcButton--variant-outlined,
|
|
&.ExcButton--variant-icon {
|
|
--text-color: var(--color-danger);
|
|
--border-color: var(--color-danger);
|
|
--back-color: transparent;
|
|
|
|
&:hover {
|
|
--text-color: var(--color-danger-darkest);
|
|
--border-color: var(--color-danger-darkest);
|
|
}
|
|
|
|
&:active {
|
|
--text-color: var(--color-danger-darker);
|
|
--border-color: var(--color-danger-darker);
|
|
}
|
|
}
|
|
}
|
|
|
|
&--color-muted {
|
|
&.ExcButton--variant-filled {
|
|
--text-color: var(--island-bg-color);
|
|
--back-color: var(--color-gray-50);
|
|
|
|
&:hover {
|
|
--back-color: var(--color-gray-60);
|
|
}
|
|
|
|
&:active {
|
|
--back-color: var(--color-gray-80);
|
|
}
|
|
}
|
|
|
|
&.ExcButton--variant-outlined,
|
|
&.ExcButton--variant-icon {
|
|
--text-color: var(--color-muted-background);
|
|
--border-color: var(--color-muted);
|
|
--back-color: var(--island-bg-color);
|
|
|
|
&:hover {
|
|
--text-color: var(--color-muted-background-darker);
|
|
--border-color: var(--color-muted-darker);
|
|
}
|
|
|
|
&:active {
|
|
--text-color: var(--color-muted-background-darker);
|
|
--border-color: var(--color-muted-darkest);
|
|
}
|
|
}
|
|
}
|
|
|
|
&--color-warning {
|
|
&.ExcButton--variant-filled {
|
|
--text-color: black;
|
|
--back-color: var(--color-warning-dark);
|
|
|
|
&:hover {
|
|
--back-color: var(--color-warning-darker);
|
|
}
|
|
|
|
&:active {
|
|
--back-color: var(--color-warning-darkest);
|
|
}
|
|
}
|
|
|
|
&.ExcButton--variant-outlined,
|
|
&.ExcButton--variant-icon {
|
|
--text-color: var(--color-warning-dark);
|
|
--border-color: var(--color-warning-dark);
|
|
--back-color: var(--input-bg-color);
|
|
|
|
&:hover {
|
|
--text-color: var(--color-warning-darker);
|
|
--border-color: var(--color-warning-darker);
|
|
}
|
|
|
|
&:active {
|
|
--text-color: var(--color-warning-darkest);
|
|
--border-color: var(--color-warning-darkest);
|
|
}
|
|
}
|
|
}
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
flex-wrap: nowrap;
|
|
|
|
border-radius: 0.5rem;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
|
|
font-family: "Assistant";
|
|
|
|
user-select: none;
|
|
|
|
transition: all 150ms ease-out;
|
|
|
|
&--size-large {
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
min-height: 3rem;
|
|
padding: 0.5rem 1.5rem;
|
|
gap: 0.75rem;
|
|
|
|
letter-spacing: 0.4px;
|
|
}
|
|
|
|
&--size-medium {
|
|
font-weight: 600;
|
|
font-size: 0.75rem;
|
|
min-height: 2.5rem;
|
|
padding: 0.5rem 1rem;
|
|
gap: 0.5rem;
|
|
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
&--variant-icon {
|
|
padding: 0.5rem 0.75rem;
|
|
width: 3rem;
|
|
}
|
|
|
|
&--fullWidth {
|
|
width: 100%;
|
|
}
|
|
|
|
&__icon {
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
}
|
|
}
|
|
}
|