Выделен файл под миксины

This commit is contained in:
goodmice 2022-12-28 18:23:02 +05:00
parent a6fa931b04
commit 609cd2cf45
No known key found for this signature in database
GPG Key ID: EA4AA16454AC96C8
2 changed files with 20 additions and 12 deletions

View File

@ -1,5 +1,6 @@
@import 'include/antd_theme.less';
@import 'fonts.less';
@import './include/antd_theme.less';
@import './fonts';
@import './mixins';
body {
margin: 0;
@ -43,14 +44,8 @@ body {
width: 100%;
}
.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
.pointer { cursor: pointer }
.no-select {
.no-select();
}

13
src/styles/mixins.less Normal file
View File

@ -0,0 +1,13 @@
.no-select () {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
.no-events () {
pointer-events: none;
}