umami/components/common/Button.module.css

103 lines
1.4 KiB
CSS
Raw Normal View History

.button {
display: flex;
justify-content: center;
align-items: center;
font-size: var(--font-size-md);
color: var(--base900);
background: var(--base100);
2020-08-06 04:04:02 +02:00
padding: 8px 16px;
border-radius: 4px;
border: 0;
outline: none;
cursor: pointer;
2020-08-15 10:17:15 +02:00
position: relative;
}
.button:hover {
background: var(--base200);
}
2020-08-07 09:24:01 +02:00
2020-09-02 07:52:20 +02:00
.button:active {
color: var(--base900);
2020-09-02 07:52:20 +02:00
}
2020-09-26 08:38:28 +02:00
.label {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
max-width: 300px;
2020-08-09 12:04:48 +02:00
}
2020-09-26 08:38:28 +02:00
.large {
font-size: var(--font-size-lg);
2020-08-09 12:04:48 +02:00
}
2020-08-07 09:24:01 +02:00
.small {
font-size: var(--font-size-sm);
2020-08-07 09:24:01 +02:00
}
2020-08-09 12:04:48 +02:00
.xsmall {
font-size: var(--font-size-xs);
2020-08-07 09:24:01 +02:00
}
2020-09-26 07:31:18 +02:00
.action,
.action:active {
color: var(--base50);
background: var(--base900);
}
.action:hover {
background: var(--base800);
}
2020-09-26 17:43:05 +02:00
.danger,
.danger:active {
color: var(--base50);
2020-09-13 10:26:54 +02:00
background: var(--red500);
}
.danger:hover {
2020-09-13 10:26:54 +02:00
background: var(--red400);
}
2020-09-26 17:43:05 +02:00
.light,
.light:active {
color: var(--base900);
background: transparent;
}
.light:hover {
2020-09-20 12:28:05 +02:00
background: inherit;
}
2020-09-26 08:38:28 +02:00
.button .icon + * {
2020-09-26 07:31:18 +02:00
margin-left: 10px;
}
.button.iconRight .icon {
order: 1;
margin-left: 10px;
}
2020-09-26 08:38:28 +02:00
.button.iconRight .icon + * {
2020-09-26 07:31:18 +02:00
margin: 0;
}
2020-09-13 10:26:54 +02:00
.button:disabled {
cursor: default;
color: var(--base500);
background: var(--base75);
2020-09-13 10:26:54 +02:00
}
.button:disabled:active {
color: var(--base500);
2020-09-13 10:26:54 +02:00
}
.button:disabled:hover {
background: var(--base75);
}
.button.light:disabled {
background: var(--base50);
}