move no user select code to a mixin

This commit is contained in:
b1ek 2023-08-12 18:03:56 +10:00
parent 208dc4d612
commit 42cdd16c5f
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 9 additions and 4 deletions

6
src/lib/mixins.scss Normal file
View File

@ -0,0 +1,6 @@
@mixin no_sel {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}

View File

@ -1,3 +1,5 @@
@use '../../lib/mixins.scss';
$corners: 16px;
.titlebar {
@ -7,10 +9,7 @@ $corners: 16px;
z-index: 1;
width: 100%;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
@include mixins.no_sel;
background: #111111;
height: 32px;