signal-desktop/stylesheets/components/Checkbox.scss

48 lines
828 B
SCSS
Raw Normal View History

2021-08-18 20:08:14 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2021-08-18 20:08:14 +00:00
.Checkbox {
&__container {
align-items: center;
display: flex;
input {
height: 18px;
width: 18px;
2023-04-22 00:37:48 +00:00
2024-11-15 23:09:31 +00:00
@include mixins.mouse-mode {
2023-04-22 00:37:48 +00:00
&:focus,
&:active {
outline: none;
}
}
2024-11-15 23:09:31 +00:00
@include mixins.keyboard-mode {
2023-04-22 00:37:48 +00:00
&:focus,
&:active {
2024-11-15 23:09:31 +00:00
outline: 1px solid variables.$color-ultramarine;
2023-04-22 00:37:48 +00:00
}
}
2021-08-18 20:08:14 +00:00
}
}
&__checkbox {
height: 18px;
2023-04-20 17:03:43 +00:00
margin-inline-end: 20px;
2021-08-18 20:08:14 +00:00
width: 18px;
}
&__description {
2024-11-15 23:09:31 +00:00
@include mixins.font-subtitle;
@include mixins.light-theme {
color: variables.$color-gray-60;
2021-08-18 20:08:14 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
color: variables.$color-gray-25;
2021-08-18 20:08:14 +00:00
}
}
}