Browse Source

Merge pull request #610 in VISUAL/fineui from ~IMP/fineui_fui:master to master

* commit 'f4835261236cad28929e41de607a1e6bad0b3cdb':
  common less
es6
imp 6 years ago
parent
commit
a41d695bdd
  1. 2
      Gruntfile.js
  2. 96
      dist/bundle.css
  3. 44
      dist/bundle.js
  4. 2
      dist/bundle.min.css
  5. 96
      dist/core.css
  6. 44
      dist/core.js
  7. 96
      dist/core_without_normalize.css
  8. 96
      dist/fineui.css
  9. 44
      dist/fineui.js
  10. 2
      dist/fineui.min.css
  11. 96
      src/css/core/utils/common.css
  12. 145
      src/less/core/utils/common.less

2
Gruntfile.js

@ -337,7 +337,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-connect"); grunt.loadNpmTasks("grunt-contrib-connect");
grunt.loadNpmTasks("grunt-contrib-clean"); grunt.loadNpmTasks("grunt-contrib-clean");
var defaultTask = ["less", "concat", "connect", "watch"]; var defaultTask = ["clean", "less", "concat", "connect", "watch"];
grunt.registerTask("default", defaultTask); grunt.registerTask("default", defaultTask);
grunt.registerTask("compile", function () { grunt.registerTask("compile", function () {
grunt.config.set("connect.options.open", false); grunt.config.set("connect.options.open", false);

96
dist/bundle.css vendored

@ -428,15 +428,63 @@ textarea {
.bi-border { .bi-border {
border: 1px solid #e8eaed; border: 1px solid #e8eaed;
} }
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #3a3c53; border: 1px solid #3a3c53;
} }
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-split { .bi-split {
border: 1px solid #f2f4f7; border: 1px solid #f2f4f7;
} }
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #2F3149; border: 1px solid #2F3149;
} }
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-font-helvetica-neue { .bi-font-helvetica-neue {
font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif; font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
} }
@ -463,54 +511,6 @@ textarea {
.bi-font-bold { .bi-font-bold {
font-weight: 700; font-weight: 700;
} }
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-keyword-red-mark { .bi-keyword-red-mark {
color: #faaa39; color: #faaa39;
} }

44
dist/bundle.js vendored

@ -9408,30 +9408,30 @@ jQuery.fn.offset = function( options ) {
// If we don't have gBCR, just use 0,0 rather than error // If we don't have gBCR, just use 0,0 rather than error
// BlackBerry 5, iOS 3 (original iPhone) // BlackBerry 5, iOS 3 (original iPhone)
// if ( typeof elem.getBoundingClientRect !== core_strundefined ) { if ( typeof elem.getBoundingClientRect !== core_strundefined ) {
// box = elem.getBoundingClientRect(); box = elem.getBoundingClientRect();
// } }
// 解决transform下的offset问题 // 解决transform下的offset问题(先恢复)
var el = elem, // var el = elem,
offsetLeft = 0, // offsetLeft = 0,
offsetTop = 0; // offsetTop = 0;
do{ // do{
offsetLeft += el.offsetLeft; // offsetLeft += el.offsetLeft;
offsetTop += el.offsetTop; // offsetTop += el.offsetTop;
el = el.offsetParent; // el = el.offsetParent;
} while( el ); // } while( el );
var elm = elem; // var elm = elem;
do{ // do{
offsetLeft -= elm.scrollLeft || 0; // offsetLeft -= elm.scrollLeft || 0;
offsetTop -= elm.scrollTop || 0; // offsetTop -= elm.scrollTop || 0;
elm = elm.parentNode; // elm = elm.parentNode;
} while( elm ); // } while( elm );
win = getWindow( doc ); win = getWindow( doc );
return { return {
top: offsetTop + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ), top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
left: offsetLeft + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 ) left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
}; };
}; };

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

96
dist/core.css vendored

@ -428,15 +428,63 @@ textarea {
.bi-border { .bi-border {
border: 1px solid #e8eaed; border: 1px solid #e8eaed;
} }
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #3a3c53; border: 1px solid #3a3c53;
} }
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-split { .bi-split {
border: 1px solid #f2f4f7; border: 1px solid #f2f4f7;
} }
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #2F3149; border: 1px solid #2F3149;
} }
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-font-helvetica-neue { .bi-font-helvetica-neue {
font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif; font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
} }
@ -463,54 +511,6 @@ textarea {
.bi-font-bold { .bi-font-bold {
font-weight: 700; font-weight: 700;
} }
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-keyword-red-mark { .bi-keyword-red-mark {
color: #faaa39; color: #faaa39;
} }

44
dist/core.js vendored

@ -9408,30 +9408,30 @@ jQuery.fn.offset = function( options ) {
// If we don't have gBCR, just use 0,0 rather than error // If we don't have gBCR, just use 0,0 rather than error
// BlackBerry 5, iOS 3 (original iPhone) // BlackBerry 5, iOS 3 (original iPhone)
// if ( typeof elem.getBoundingClientRect !== core_strundefined ) { if ( typeof elem.getBoundingClientRect !== core_strundefined ) {
// box = elem.getBoundingClientRect(); box = elem.getBoundingClientRect();
// } }
// 解决transform下的offset问题 // 解决transform下的offset问题(先恢复)
var el = elem, // var el = elem,
offsetLeft = 0, // offsetLeft = 0,
offsetTop = 0; // offsetTop = 0;
do{ // do{
offsetLeft += el.offsetLeft; // offsetLeft += el.offsetLeft;
offsetTop += el.offsetTop; // offsetTop += el.offsetTop;
el = el.offsetParent; // el = el.offsetParent;
} while( el ); // } while( el );
var elm = elem; // var elm = elem;
do{ // do{
offsetLeft -= elm.scrollLeft || 0; // offsetLeft -= elm.scrollLeft || 0;
offsetTop -= elm.scrollTop || 0; // offsetTop -= elm.scrollTop || 0;
elm = elm.parentNode; // elm = elm.parentNode;
} while( elm ); // } while( elm );
win = getWindow( doc ); win = getWindow( doc );
return { return {
top: offsetTop + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ), top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
left: offsetLeft + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 ) left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
}; };
}; };

96
dist/core_without_normalize.css vendored

@ -147,15 +147,63 @@ textarea {
.bi-border { .bi-border {
border: 1px solid #e8eaed; border: 1px solid #e8eaed;
} }
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #3a3c53; border: 1px solid #3a3c53;
} }
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-split { .bi-split {
border: 1px solid #f2f4f7; border: 1px solid #f2f4f7;
} }
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #2F3149; border: 1px solid #2F3149;
} }
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-font-helvetica-neue { .bi-font-helvetica-neue {
font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif; font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
} }
@ -182,54 +230,6 @@ textarea {
.bi-font-bold { .bi-font-bold {
font-weight: 700; font-weight: 700;
} }
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-keyword-red-mark { .bi-keyword-red-mark {
color: #faaa39; color: #faaa39;
} }

96
dist/fineui.css vendored

@ -428,15 +428,63 @@ textarea {
.bi-border { .bi-border {
border: 1px solid #e8eaed; border: 1px solid #e8eaed;
} }
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #3a3c53; border: 1px solid #3a3c53;
} }
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-split { .bi-split {
border: 1px solid #f2f4f7; border: 1px solid #f2f4f7;
} }
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #2F3149; border: 1px solid #2F3149;
} }
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-font-helvetica-neue { .bi-font-helvetica-neue {
font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif; font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
} }
@ -463,54 +511,6 @@ textarea {
.bi-font-bold { .bi-font-bold {
font-weight: 700; font-weight: 700;
} }
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-keyword-red-mark { .bi-keyword-red-mark {
color: #faaa39; color: #faaa39;
} }

44
dist/fineui.js vendored

@ -9647,30 +9647,30 @@ jQuery.fn.offset = function( options ) {
// If we don't have gBCR, just use 0,0 rather than error // If we don't have gBCR, just use 0,0 rather than error
// BlackBerry 5, iOS 3 (original iPhone) // BlackBerry 5, iOS 3 (original iPhone)
// if ( typeof elem.getBoundingClientRect !== core_strundefined ) { if ( typeof elem.getBoundingClientRect !== core_strundefined ) {
// box = elem.getBoundingClientRect(); box = elem.getBoundingClientRect();
// } }
// 解决transform下的offset问题 // 解决transform下的offset问题(先恢复)
var el = elem, // var el = elem,
offsetLeft = 0, // offsetLeft = 0,
offsetTop = 0; // offsetTop = 0;
do{ // do{
offsetLeft += el.offsetLeft; // offsetLeft += el.offsetLeft;
offsetTop += el.offsetTop; // offsetTop += el.offsetTop;
el = el.offsetParent; // el = el.offsetParent;
} while( el ); // } while( el );
var elm = elem; // var elm = elem;
do{ // do{
offsetLeft -= elm.scrollLeft || 0; // offsetLeft -= elm.scrollLeft || 0;
offsetTop -= elm.scrollTop || 0; // offsetTop -= elm.scrollTop || 0;
elm = elm.parentNode; // elm = elm.parentNode;
} while( elm ); // } while( elm );
win = getWindow( doc ); win = getWindow( doc );
return { return {
top: offsetTop + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ), top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
left: offsetLeft + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 ) left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
}; };
}; };

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

96
src/css/core/utils/common.css

@ -147,15 +147,63 @@ textarea {
.bi-border { .bi-border {
border: 1px solid #e8eaed; border: 1px solid #e8eaed;
} }
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #3a3c53; border: 1px solid #3a3c53;
} }
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-split { .bi-split {
border: 1px solid #f2f4f7; border: 1px solid #f2f4f7;
} }
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-border { .bi-theme-dark .bi-border {
border: 1px solid #2F3149; border: 1px solid #2F3149;
} }
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-font-helvetica-neue { .bi-font-helvetica-neue {
font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif; font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
} }
@ -182,54 +230,6 @@ textarea {
.bi-font-bold { .bi-font-bold {
font-weight: 700; font-weight: 700;
} }
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-left {
border-left: 1px solid #3a3c53;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-right {
border-right: 1px solid #3a3c53;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-top {
border-top: 1px solid #3a3c53;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-theme-dark .bi-border-bottom {
border-bottom: 1px solid #3a3c53;
}
.bi-split-left {
border-left: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-left {
border-left: 1px solid #2F3149;
}
.bi-split-right {
border-right: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-right {
border-right: 1px solid #2F3149;
}
.bi-split-top {
border-top: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-top {
border-top: 1px solid #2F3149;
}
.bi-split-bottom {
border-bottom: 1px solid #f2f4f7;
}
.bi-theme-dark .bi-split-bottom {
border-bottom: 1px solid #2F3149;
}
.bi-keyword-red-mark { .bi-keyword-red-mark {
color: #faaa39; color: #faaa39;
} }

145
src/less/core/utils/common.less

@ -182,134 +182,118 @@ textarea {
border: 1px solid @color-bi-border-line; border: 1px solid @color-bi-border-line;
} }
.bi-theme-dark { .bi-border-top {
.bi-border { border-top: 1px solid @color-bi-border-line;
border: 1px solid @color-bi-border-line-theme-dark;
}
} }
//分割线 .bi-border-right {
.bi-split { border-right: 1px solid @color-bi-border-line;
border: 1px solid @border-color-light-line;
} }
.bi-theme-dark { .bi-border-bottom {
.bi-border { border-bottom: 1px solid @color-bi-border-line;
border: 1px solid @border-color-light-line-theme-dark;
}
} }
// 字体 .bi-border-left {
.bi-font-helvetica-neue { border-left: 1px solid @color-bi-border-line;
font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
} }
.bi-font-arial{ .bi-theme-dark {
font-family: Arial, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif; .bi-border {
} border: 1px solid @color-bi-border-line-theme-dark;
}
.bi-font-PingFang { .bi-border-top {
font-family: "PingFang SC", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif; border-top: 1px solid @color-bi-border-line-theme-dark;
} }
.bi-font-hiragino-sans { .bi-border-right {
font-family: "Hiragino Sans GB", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", Heiti, serif; border-right: 1px solid @color-bi-border-line-theme-dark;
} }
.bi-font-microsoft-yaHei { .bi-border-bottom {
font-family: "Microsoft YaHei", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", Heiti, serif; border-bottom: 1px solid @color-bi-border-line-theme-dark;
} }
.bi-font-heiti { .bi-border-left {
font-family: Heiti, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif; border-left: 1px solid @color-bi-border-line-theme-dark;
}
} }
.bi-border-radius { //分割线
.border-radius(2px); .bi-split {
border: 1px solid @border-color-light-line;
} }
.bi-font-bold { .bi-split-top {
font-weight: 700; border-top: 1px solid @border-color-light-line;
} }
.bi-border-left { .bi-split-right {
border-left: 1px solid @color-bi-border-line; border-right: 1px solid @border-color-light-line;
} }
.bi-theme-dark { .bi-split-bottom {
.bi-border-left { border-bottom: 1px solid @border-color-light-line;
border-left: 1px solid @color-bi-border-line-theme-dark;
}
} }
.bi-border-right { .bi-split-left {
border-right: 1px solid @color-bi-border-line; border-left: 1px solid @border-color-light-line;
} }
.bi-theme-dark { .bi-theme-dark {
.bi-border-right { .bi-border {
border-right: 1px solid @color-bi-border-line-theme-dark; border: 1px solid @border-color-light-line-theme-dark;
} }
}
.bi-border-top { .bi-split-top {
border-top: 1px solid @color-bi-border-line; border-top: 1px solid @border-color-light-line-theme-dark;
} }
.bi-theme-dark { .bi-split-right {
.bi-border-top { border-right: 1px solid @border-color-light-line-theme-dark;
border-top: 1px solid @color-bi-border-line-theme-dark;
} }
}
.bi-border-bottom { .bi-split-bottom {
border-bottom: 1px solid @color-bi-border-line; border-bottom: 1px solid @border-color-light-line-theme-dark;
} }
.bi-theme-dark { .bi-split-left {
.bi-border-bottom { border-left: 1px solid @border-color-light-line-theme-dark;
border-bottom: 1px solid @color-bi-border-line-theme-dark;
} }
} }
.bi-split-left { // 字体
border-left: 1px solid @border-color-light-line; .bi-font-helvetica-neue {
font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
} }
.bi-theme-dark { .bi-font-arial {
.bi-split-left { font-family: Arial, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
border-left: 1px solid @border-color-light-line-theme-dark;
}
} }
.bi-split-right { .bi-font-PingFang {
border-right: 1px solid @border-color-light-line; font-family: "PingFang SC", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
} }
.bi-theme-dark { .bi-font-hiragino-sans {
.bi-split-right { font-family: "Hiragino Sans GB", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", Heiti, serif;
border-right: 1px solid @border-color-light-line-theme-dark;
}
} }
.bi-split-top { .bi-font-microsoft-yaHei {
border-top: 1px solid @border-color-light-line; font-family: "Microsoft YaHei", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", Heiti, serif;
} }
.bi-theme-dark { .bi-font-heiti {
.bi-split-top { font-family: Heiti, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif;
border-top: 1px solid @border-color-light-line-theme-dark;
}
} }
.bi-split-bottom { .bi-border-radius {
border-bottom: 1px solid @border-color-light-line; .border-radius(2px);
} }
.bi-theme-dark { .bi-font-bold {
.bi-split-bottom { font-weight: 700;
border-bottom: 1px solid @border-color-light-line-theme-dark;
}
} }
//标红 //标红
@ -366,7 +350,6 @@ textarea {
} }
} }
.bi-high-light-border { .bi-high-light-border {
border-color: @color-bi-border-highlight; border-color: @color-bi-border-highlight;
} }

Loading…
Cancel
Save