2021-05-28 16:15:17 +00:00
|
|
|
// Copyright 2019-2021 Signal Messenger, LLC
|
2020-10-30 20:34:04 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2019-12-17 20:25:57 +00:00
|
|
|
@import '../../stylesheets/variables';
|
|
|
|
@import '../mixins';
|
|
|
|
|
|
|
|
.base {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2021-10-13 17:05:18 +00:00
|
|
|
|
|
|
|
padding: 2px;
|
|
|
|
|
|
|
|
// We'd really like to use focus-within-visible or :has(:focus-visible), to ensure that
|
|
|
|
// this doesn't show when using the mouse, but neither are ready yet!
|
|
|
|
&:focus-within {
|
|
|
|
outline: 2px solid -webkit-focus-ring-color;
|
|
|
|
}
|
2019-12-17 20:25:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.input {
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
border-radius: 2px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
border: {
|
|
|
|
width: 2px;
|
|
|
|
style: solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
border-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
border-color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox-checked {
|
|
|
|
composes: checkbox;
|
|
|
|
border: none;
|
2021-05-28 16:15:17 +00:00
|
|
|
background-color: $color-ultramarine;
|
2019-12-17 20:25:57 +00:00
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.label {
|
|
|
|
margin-left: 6px;
|
|
|
|
position: relative;
|
|
|
|
user-select: none;
|
|
|
|
}
|