mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
4e4ae0a7d0
Pretty sure the `user-select: none` could be employed in other places aswell Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
31 lines
500 B
CSS
31 lines
500 B
CSS
.container {
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
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 */
|
|
}
|
|
|
|
.input {
|
|
position: absolute;
|
|
visibility: hidden;
|
|
height: 0;
|
|
width: 0;
|
|
bottom: 100%;
|
|
right: 100%;
|
|
}
|