webapp/src/components/_shared/Button/Button.module.scss

120 lines
1.8 KiB
SCSS
Raw Normal View History

.button {
border-radius: 2px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
cursor: pointer;
&.primary {
background: #000;
color: #fff;
2023-02-07 13:20:07 +00:00
&:hover {
color: #ccc;
}
2023-02-07 13:20:07 +00:00
&:active {
color: #9fa1a7;
}
}
&.secondary {
border: 1px solid #f7f7f7;
background: #f7f7f7;
color: #141414;
2023-02-07 13:20:07 +00:00
&:hover {
background: #000;
color: #fff;
}
}
2023-02-07 12:48:45 +00:00
&.inline {
font-weight: 700;
font-size: 16px;
line-height: 21px;
color: #696969;
&:hover,
&:active {
2023-02-07 12:48:45 +00:00
text-decoration: underline;
color: #141414;
}
}
2023-05-22 22:01:04 +00:00
&.light {
font-weight: inherit;
padding: 0;
}
&.outline,
&.bordered {
border: 3px solid #f2f2f2;
border-radius: 1.2em;
cursor: pointer;
font-weight: bold;
margin-right: 0.8em;
min-width: auto !important;
padding: 0;
transition: border-color 0.3s, background-color 0.3s, color 0.3s;
&:hover,
&:active {
background: var(--link-color);
border-color: var(--link-color);
color: var(--link-hover-color);
:global(.icon) {
filter: var(--icon-filter-hover);
}
}
:global(.icon) {
margin: 0 -0.5em;
filter: var(--icon-filter);
transition: filter 0.3s;
}
}
&.bordered {
border-radius: 2px;
border: 2px solid #000;
font-size: 16px;
font-weight: 500;
}
&:disabled,
&:disabled:hover {
cursor: default;
color: #9fa1a7;
background: #f6f6f6;
}
2023-02-07 13:20:07 +00:00
&.loading,
&.loading:hover {
background: #f6f6f6;
}
&.L {
height: 56px;
min-width: 80px;
font-size: 20px;
padding: 16px 20px;
}
&.M {
height: 40px;
min-width: 64px;
font-size: 17px;
padding: 8px 16px;
}
&.S {
height: 32px;
min-width: 53px;
font-size: 15px;
padding: 8px 16px;
}
}