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

117 lines
1.7 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 {
background: #f7f7f7;
color: #141414;
2023-02-07 13:20:07 +00:00
&:hover {
background: #e8e8e8;
}
2023-02-07 13:20:07 +00:00
&:active {
background: #ccc;
}
}
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;
}
}
&.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: #000;
border-color: #000;
color: #fff;
:global(.icon) {
filter: invert(1);
}
}
:global(.icon) {
margin: 0 -0.5em;
filter: invert(0);
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;
}
}