Compare commits

...

2 Commits

Author SHA1 Message Date
b1ek 42cdd16c5f
move no user select code to a mixin 2023-08-12 18:03:56 +10:00
b1ek 208dc4d612
fix empty 1px space at close button 2023-08-12 18:01:18 +10:00
2 changed files with 11 additions and 6 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,4 +1,6 @@
$corners: 10px; @use '../../lib/mixins.scss';
$corners: 16px;
.titlebar { .titlebar {
@ -7,10 +9,7 @@ $corners: 10px;
z-index: 1; z-index: 1;
width: 100%; width: 100%;
user-select: none; @include mixins.no_sel;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
background: #111111; background: #111111;
height: 32px; height: 32px;
@ -19,7 +18,7 @@ $corners: 10px;
table { table {
border-collapse: collapse; border-collapse: collapse;
height: 33px; height: 33px;
transform: translateY(-1px); transform: translate(1px, -1px);
} }
.shade { .shade {