Fix and improve cursor
This commit is contained in:
34
customize.dist/src/less2/include/cursor.less
Normal file
34
customize.dist/src/less2/include/cursor.less
Normal file
@@ -0,0 +1,34 @@
|
||||
.cursor_main() {
|
||||
// CodeMirror
|
||||
.cp-codemirror-cursor {
|
||||
cursor: default;
|
||||
background-color: red;
|
||||
background-clip: padding-box;
|
||||
padding: 0 1px;
|
||||
border: 2px solid red;
|
||||
border-right-color: transparent !important;
|
||||
border-left-color: transparent !important;
|
||||
}
|
||||
.cp-codemirror-selection {
|
||||
background-color: rgba(255,0,0,0.3);
|
||||
}
|
||||
|
||||
// Tippy
|
||||
.cp-cursor-avatar {
|
||||
@size: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
media-tag {
|
||||
min-height: @size;
|
||||
max-height: @size;
|
||||
min-width: @size;
|
||||
max-width: @size;
|
||||
margin-right: 10px;
|
||||
img {
|
||||
border-radius: 4px;
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@
|
||||
@import (reference) "./app-print.less";
|
||||
@import (reference) "./app-noscroll.less";
|
||||
@import (reference) "./messenger.less";
|
||||
@import (reference) "./cursor.less";
|
||||
|
||||
.framework_main(@bg-color, @warn-color, @color) {
|
||||
--LessLoader_require: LessLoader_currentFile();
|
||||
@@ -38,6 +39,7 @@
|
||||
.checkmark_main(20px);
|
||||
.password_main();
|
||||
.messenger_main();
|
||||
.cursor_main();
|
||||
.creation_main(
|
||||
@bg-color: @bg-color,
|
||||
@color: @color
|
||||
|
||||
@@ -235,6 +235,7 @@
|
||||
padding: 5px;
|
||||
margin: 2px 0;
|
||||
background: rgba(0,0,0,0.1);
|
||||
border-right: 3px solid transparent;
|
||||
.avatar_main(30px);
|
||||
.cp-avatar-default, media-tag {
|
||||
margin-right: 5px;
|
||||
|
||||
Reference in New Issue
Block a user