umami/components/common/Checkbox.module.css

31 lines
500 B
CSS
Raw Normal View History

2020-08-15 10:17:15 +02:00
.container {
display: flex;
align-items: center;
2020-08-16 20:22:07 +02:00
position: relative;
2020-08-15 10:17:15 +02:00
overflow: hidden;
}
.checkbox {
display: flex;
justify-content: center;
align-items: center;
width: 20px;
height: 20px;
border: 1px solid var(--gray500);
border-radius: 4px;
}
.label {
margin-left: 10px;
user-select: none; /* disable text selection when clicking to toggle the checkbox */
2020-08-15 10:17:15 +02:00
}
.input {
position: absolute;
2020-08-16 20:22:07 +02:00
visibility: hidden;
2020-08-15 10:17:15 +02:00
height: 0;
width: 0;
2020-08-16 20:22:07 +02:00
bottom: 100%;
right: 100%;
2020-08-15 10:17:15 +02:00
}