fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

547 lines
11 KiB

7 years ago
@import "../../index";
8 years ago
.base-disabled {
7 years ago
cursor: not-allowed !important;
8 years ago
color: @color-bi-text-disabled !important;
8 years ago
& .bi-input {
color: @color-bi-text-disabled !important;
}
8 years ago
& .bi-textarea {
color: @color-bi-text-disabled !important;
}
8 years ago
& .b-font:before {
7 years ago
color: @color-bi-icon-disabled !important;
8 years ago
}
}
.bi-theme-dark {
.base-disabled {
color: @color-bi-text-disabled-theme-dark !important;
8 years ago
& .bi-input {
color: @color-bi-text-disabled-theme-dark !important;
}
8 years ago
& .bi-textarea {
color: @color-bi-text-disabled-theme-dark !important;
}
8 years ago
& .b-font:before {
7 years ago
color: @color-bi-icon-disabled-theme-dark !important;
8 years ago
}
8 years ago
}
}
4 years ago
.base-invalid {
cursor: default !important;
}
//focus时边框高亮
.bi-focus-shadow {
&:focus, &:hover {
border-color: @color-bi-border-highlight;
}
4 years ago
// ie下不支持focus-within, 和上面写在一起会导致ie下:hover不生效
&:focus-within{
7 years ago
border-color: @color-bi-border-highlight;
}
&.disabled {
&:hover {
border-color: @border-color-line;
}
}
}
.bi-theme-dark {
.bi-focus-shadow {
&.disabled {
&:hover {
border-color: @border-color-line-theme-dark;
}
}
}
}
8 years ago
.clearfix {
.clearfix();
}
4 years ago
//基本背景
8 years ago
.bi-background {
background-color: @color-bi-background-normal;
4 years ago
color: @color-bi-text-background;
8 years ago
& .bi-input {
4 years ago
color: @color-bi-text-background;
8 years ago
}
8 years ago
& .bi-textarea {
4 years ago
color: @color-bi-text-background;
8 years ago
}
8 years ago
}
.bi-theme-dark {
.bi-background {
background-color: @color-bi-background-normal-theme-dark;
4 years ago
color: @color-bi-text-background-theme-dark;
8 years ago
& .bi-input {
4 years ago
color: @color-bi-text-background-theme-dark;
8 years ago
}
8 years ago
& .bi-textarea {
4 years ago
color: @color-bi-text-background-theme-dark;
8 years ago
}
8 years ago
}
}
7 years ago
.bi-header-background {
4 years ago
background-color: @color-bi-background-header-background;
color: @color-bi-text-header-background;
7 years ago
& .bi-input {
4 years ago
color: @color-bi-text-header-background;
7 years ago
}
& .bi-textarea {
4 years ago
color: @color-bi-text-header-background;
7 years ago
}
}
.bi-theme-dark {
.bi-header-background {
4 years ago
background-color: @color-bi-background-header-background-theme-dark;
color: @color-bi-text-header-background-theme-dark;
7 years ago
& .bi-input {
4 years ago
color: @color-bi-text-header-background-theme-dark;
7 years ago
}
& .bi-textarea {
4 years ago
color: @color-bi-text-header-background-theme-dark;
7 years ago
}
}
}
8 years ago
//card
.bi-card {
4 years ago
background-color: @color-bi-background-card;
color: @color-bi-text-card;
8 years ago
& .bi-input {
4 years ago
color: @color-bi-text-card;
8 years ago
}
8 years ago
& .bi-textarea {
4 years ago
color: @color-bi-text-card;
8 years ago
}
&.bi-primary {
background-color: @background-color-primary;
color: @color-card-primary;
}
8 years ago
}
.bi-theme-dark {
.bi-card {
4 years ago
background-color: @color-bi-background-card-theme-dark;
color: @color-bi-text-card-theme-dark;
8 years ago
& .bi-input {
4 years ago
color: @color-bi-text-card-theme-dark;
8 years ago
}
8 years ago
& .bi-textarea {
4 years ago
color: @color-bi-text-card-theme-dark;
8 years ago
}
8 years ago
}
}
4 years ago
//灰化
8 years ago
.bi-disabled {
color: @color-bi-text-disabled;
8 years ago
& .bi-input {
color: @color-bi-text-disabled;
}
8 years ago
& .bi-textarea {
color: @color-bi-text-disabled;
}
8 years ago
}
.bi-theme-dark {
.bi-disabled {
color: @color-bi-text-disabled-theme-dark;
8 years ago
& .bi-input {
color: @color-bi-text-disabled-theme-dark;
}
8 years ago
& .bi-textarea {
color: @color-bi-text-disabled-theme-dark;
}
8 years ago
}
}
4 years ago
// 提示区域, 灰色字体
8 years ago
.bi-tips {
color: @color-bi-text-tips;
8 years ago
& .bi-input {
color: @color-bi-text-tips;
}
8 years ago
& .bi-textarea {
color: @color-bi-text-tips;
}
8 years ago
}
4 years ago
// 边框
8 years ago
.bi-border {
border: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
&.error {
border-color: @border-color-negative;
}
8 years ago
}
7 years ago
.bi-border-top {
border-top: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
&.error {
border-color: @border-color-negative;
}
}
7 years ago
.bi-border-right {
border-right: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
&.error {
border-color: @border-color-negative;
}
}
7 years ago
.bi-border-bottom {
border-bottom: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
&.error {
border-color: @border-color-negative;
}
8 years ago
}
7 years ago
.bi-border-left {
border-left: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
&.error {
border-color: @border-color-negative;
}
}
7 years ago
.bi-theme-dark {
.bi-border {
border: 1px solid @color-bi-border-line-theme-dark;
&.disabled {
border-color: @color-bi-border-disabled-theme-dark !important;
}
7 years ago
}
7 years ago
.bi-border-top {
border-top: 1px solid @color-bi-border-line-theme-dark;
&.disabled {
border-color: @color-bi-border-disabled-theme-dark !important;
}
7 years ago
}
7 years ago
.bi-border-right {
border-right: 1px solid @color-bi-border-line-theme-dark;
&.disabled {
border-color: @color-bi-border-disabled-theme-dark !important;
}
7 years ago
}
7 years ago
.bi-border-bottom {
border-bottom: 1px solid @color-bi-border-line-theme-dark;
&.disabled {
border-color: @color-bi-border-disabled-theme-dark !important;
}
7 years ago
}
7 years ago
.bi-border-left {
border-left: 1px solid @color-bi-border-line-theme-dark;
&.disabled {
border-color: @color-bi-border-disabled-theme-dark !important;
}
7 years ago
}
}
4 years ago
// 分割线
7 years ago
.bi-split {
border: 1px solid @border-color-light-line;
}
7 years ago
.bi-split-top {
border-top: 1px solid @border-color-light-line;
}
7 years ago
.bi-split-right {
border-right: 1px solid @border-color-light-line;
8 years ago
}
7 years ago
.bi-split-bottom {
border-bottom: 1px solid @border-color-light-line;
8 years ago
}
7 years ago
.bi-split-left {
border-left: 1px solid @border-color-light-line;
8 years ago
}
.bi-theme-dark {
.bi-split {
7 years ago
border: 1px solid @border-color-light-line-theme-dark;
8 years ago
}
7 years ago
.bi-split-top {
border-top: 1px solid @border-color-light-line-theme-dark;
}
8 years ago
7 years ago
.bi-split-right {
border-right: 1px solid @border-color-light-line-theme-dark;
8 years ago
}
7 years ago
.bi-split-bottom {
border-bottom: 1px solid @border-color-light-line-theme-dark;
}
8 years ago
7 years ago
.bi-split-left {
border-left: 1px solid @border-color-light-line-theme-dark;
8 years ago
}
}
7 years ago
// 字体
.bi-font-helvetica-neue {
font-family: "Helvetica Neue", Arial, Verdana, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
}
.bi-font-verdana {
font-family: Verdana, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
}
7 years ago
.bi-font-arial {
font-family: Arial, "Helvetica Neue", Verdana, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
}
7 years ago
.bi-font-PingFang {
font-family: "PingFang SC", "Helvetica Neue", Verdana, Arial, "Hiragino Sans GB", "Microsoft YaHei", Heiti, serif;
}
7 years ago
.bi-font-hiragino-sans {
font-family: "Hiragino Sans GB", "Helvetica Neue", Verdana, Arial, "PingFang SC", "Microsoft YaHei", Heiti, serif;
}
7 years ago
.bi-font-microsoft-yaHei {
font-family: "Microsoft YaHei", "Helvetica Neue", Verdana, Arial, "PingFang SC", "Hiragino Sans GB", Heiti, serif;
}
7 years ago
.bi-font-heiti {
font-family: Heiti, "Helvetica Neue", Verdana, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif;
}
7 years ago
.bi-border-radius {
.border-radius(2px);
}
7 years ago
.bi-font-bold {
font-weight: 700;
}
4 years ago
// 标红
8 years ago
.bi-keyword-red-mark {
color: @color-bi-text-redmark;
8 years ago
& .bi-input {
color: @color-bi-text-redmark;
}
8 years ago
& .bi-textarea {
color: @color-bi-text-redmark;
}
8 years ago
}
4 years ago
// 高亮
8 years ago
.bi-high-light {
color: @color-bi-text-highlight;
8 years ago
& .bi-input {
color: @color-bi-text-highlight;
}
8 years ago
& .bi-textarea {
color: @color-bi-text-highlight;
}
8 years ago
}
7 years ago
.bi-error {
color: @color-bi-text-failure;
& .bi-input {
color: @color-bi-text-failure;
}
& .bi-textarea {
color: @color-bi-text-failure;
}
}
8 years ago
.bi-high-light-background {
background-color: @color-bi-background-highlight;
color: @color-bi-text;
8 years ago
& .bi-input {
color: @color-bi-text;
}
8 years ago
& .bi-textarea {
color: @color-bi-text;
}
8 years ago
}
7 years ago
.bi-error-background {
background-color: @color-bi-background-failure;
color: @color-bi-text;
& .bi-input {
color: @color-bi-text;
}
& .bi-textarea {
color: @color-bi-text;
}
}
8 years ago
.bi-high-light-border {
border: 1px solid @color-bi-border-highlight;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
8 years ago
}
.bi-high-light-border-top {
border-top: 1px solid @color-bi-border-highlight;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
.bi-high-light-border-right {
border-right: 1px solid @color-bi-border-highlight;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
.bi-high-light-border-bottom {
border-bottom: 1px solid @color-bi-border-highlight;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
.bi-high-light-border-left {
border-left: 1px solid @color-bi-border-highlight;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
4 years ago
// 水印
8 years ago
.bi-water-mark {
4 years ago
color: @color-bi-text-water-mark;
8 years ago
cursor: text;
4 years ago
.user-select-disable();
8 years ago
& .bi-input {
4 years ago
color: @color-bi-text-water-mark;
8 years ago
}
8 years ago
& .bi-textarea {
4 years ago
color: @color-bi-text-water-mark;
8 years ago
}
8 years ago
}
8 years ago
.bi-theme-dark {
.bi-water-mark {
4 years ago
color: @color-bi-text-water-mark-theme-dark;
8 years ago
& .bi-input {
4 years ago
color: @color-bi-text-water-mark-theme-dark;
8 years ago
}
8 years ago
& .bi-textarea {
4 years ago
color: @color-bi-text-water-mark-theme-dark;
8 years ago
}
8 years ago
}
8 years ago
}
4 years ago
// resizer
8 years ago
.bi-resizer {
8 years ago
background: @color-bi-background-black;
.opacity(0.2);
8 years ago
z-index: @zIndex-tip !important;
8 years ago
}
8 years ago
.bi-theme-dark {
.bi-resizer {
background: @color-bi-background-default;
}
}
4 years ago
// 蒙板
8 years ago
.bi-mask {
4 years ago
color: @color-bi-text;
8 years ago
& .bi-input {
4 years ago
color: @color-bi-text;
8 years ago
}
8 years ago
& .bi-textarea {
4 years ago
color: @color-bi-text;
8 years ago
}
8 years ago
.background-color(@color-bi-background-black, 20%);
}
.bi-theme-dark {
.bi-mask {
4 years ago
color: @color-bi-text-white-theme-dark;
8 years ago
& .bi-input {
4 years ago
color: @color-bi-text-white-theme-dark;
8 years ago
}
8 years ago
& .bi-textarea {
4 years ago
color: @color-bi-text-white-theme-dark;
8 years ago
}
8 years ago
.background-color(@color-bi-background-default, 20%);
}
}
4 years ago
// 遮罩
8 years ago
.bi-z-index-mask {
8 years ago
.background-color(@color-bi-background-black, 50%);
8 years ago
}
8 years ago
.bi-theme-dark {
.bi-z-index-mask {
//color: @color-bi-background-default;
//& .bi-input {
// color: @color-bi-background-default;
//}
//& .bi-textarea {
// color: @color-bi-background-default;
//}
.background-color(@color-bi-background-black-theme-dark, 50%);
}
}
// hover-visible的原子化形式
.bi-hover-visible-container {
4 years ago
&:where(:not(&:hover)) .bi-hover-visible-item {
display: none;
}
//& .bi-hover-visible-item {
// display: none;
//}
//&:hover .bi-hover-visible-item {
// display: block;
// &.bi-f-h, &.bi-f-v, &.bi-f-s-h, &.bi-f-s-v {
// display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
// display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
// display: -ms-flexbox; /* TWEENER - IE 10 */
// display: -webkit-flex; /* NEW - Chrome */
// display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */
// }
// &.i-item {
// display: inline-block;
// }
//}
& .bi-hover-visible-item {
visibility: hidden;
}
&:hover .bi-hover-visible-item {
visibility: visible;
}
}