Browse Source

JSY-12311 默认文字可以赋值

es6
zsmj 2 years ago
parent
commit
c12603e1d6
  1. 1
      src/less/resource/app.less
  2. 36
      src/less/typographic.less

1
src/less/resource/app.less

@ -14,7 +14,6 @@ body {
top: 0; top: 0;
left: 0; left: 0;
background-repeat: repeat; background-repeat: repeat;
.user-select-disable();
color: @color-bi-text-normal; color: @color-bi-text-normal;
font: normal 12px "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Heiti, "黑体", sans-serif; font: normal 12px "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Heiti, "黑体", sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;

36
src/less/typographic.less

@ -1,29 +1,30 @@
.x-overflow-auto(){ .x-overflow-auto() {
overflow-y: hidden; overflow-y: hidden;
overflow-x: auto; overflow-x: auto;
} }
.y-overflow-auto(){ .y-overflow-auto() {
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
} }
.overflow-auto(){ .overflow-auto() {
overflow: auto; overflow: auto;
overflow-x: auto; overflow-x: auto;
overflow-y: auto; overflow-y: auto;
} }
.overflow-hidden(){ .overflow-hidden() {
overflow: hidden; overflow: hidden;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden; overflow-y: hidden;
} }
.overflow-dot(){
text-overflow:ellipsis; .overflow-dot() {
text-overflow: ellipsis;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden; overflow-y: hidden;
white-space:nowrap; white-space: nowrap;
} }
.user-select(@select) { .user-select(@select) {
@ -35,19 +36,10 @@
user-select: @select; user-select: @select;
} }
.user-select-disable(){ .user-select-disable() {
-webkit-user-select: none; .user-select(none);
-khtml-user-select: none; }
-moz-user-select: none;
-ms-user-select: none; .user-select-enable() {
-o-user-select: none; .user-select(auto);
user-select: none;
}
.user-select-enable(){
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
-o-user-select: text;
user-select: text;
} }
Loading…
Cancel
Save