增加 .editorconfig;使用 prettier 格式化 scss

This commit is contained in:
wuduoyi 2019-05-15 16:10:20 +08:00
parent 183e253a63
commit 40c5109fe0
80 changed files with 2188 additions and 1338 deletions

14
.editorconfig Normal file
View File

@ -0,0 +1,14 @@
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[**.{js,ts,tsx,scss}]
indent_style = space
indent_size = 4
[*.md]
trim_trailing_whitespace = false

View File

@ -1,7 +1,15 @@
//下一个断点 //下一个断点
@function breakpoint-next( $name, $breakpoints: breakpoints, $breakpoint-names: map-keys($breakpoints)) { @function breakpoint-next(
$name,
$breakpoints: breakpoints,
$breakpoint-names: map-keys($breakpoints)
) {
$n: index($breakpoint-names, $name); $n: index($breakpoint-names, $name);
@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null); @return if(
$n < length($breakpoint-names),
nth($breakpoint-names, $n + 1),
null
);
} }
//断点最小值 //断点最小值
@ -25,8 +33,10 @@
@if (unitless($pixels)) { @if (unitless($pixels)) {
$pixels: $pixels * 1px; $pixels: $pixels * 1px;
} }
@if (unitless($context)) { @if (unitless($context)) {
$context: $context * 1px; $context: $context * 1px;
} }
@return $pixels / $context * 1rem; @return $pixels / $context * 1rem;
} }

View File

@ -1,12 +1,12 @@
// 媒体查询最小阈值 // 媒体查询最小阈值
@mixin media-breakpoint-up($name, $breakpoints: $breakpoints) { @mixin media-breakpoint-up($name, $breakpoints: $breakpoints) {
$min: breakpoint-min($name, $breakpoints); $min: breakpoint-min($name, $breakpoints);
@if $min { @if $min {
@media (min-width: $min) { @media (min-width: $min) {
@content; @content;
} }
} } @else {
@else {
@content; @content;
} }
} }
@ -14,12 +14,12 @@
//媒体查询最大阈值 //媒体查询最大阈值
@mixin media-breakpoint-down($name, $breakpoints: $breakpoints) { @mixin media-breakpoint-down($name, $breakpoints: $breakpoints) {
$max: breakpoint-max($name, $breakpoints); $max: breakpoint-max($name, $breakpoints);
@if $max { @if $max {
@media (max-width: $max) { @media (max-width: $max) {
@content; @content;
} }
} } @else {
@else {
@content; @content;
} }
} }
@ -28,6 +28,7 @@
@mixin media-breakpoint-between($min, $max, $breakpoints: $breakpoints) { @mixin media-breakpoint-between($min, $max, $breakpoints: $breakpoints) {
$min: breakpoint-min($min, $breakpoints); $min: breakpoint-min($min, $breakpoints);
$max: breakpoint-max($max, $breakpoints); $max: breakpoint-max($max, $breakpoints);
@media (min-width: $min) and (max-width: $max) { @media (min-width: $min) and (max-width: $max) {
@content; @content;
} }
@ -49,24 +50,35 @@
background-color: desaturate(lighten($bg-color, $percent), $sat-percent); background-color: desaturate(lighten($bg-color, $percent), $sat-percent);
} }
@mixin color-variant($bg-color:#555, $lt-percent:10%, $lter-percent:15%, $dk-percent:10%, $dker-percent:15%) { @mixin color-variant(
$bg-color: #555,
$lt-percent: 10%,
$lter-percent: 15%,
$dk-percent: 10%,
$dker-percent: 15%
) {
background-color: $bg-color; background-color: $bg-color;
&.lt, &.lt,
& .lt { & .lt {
@include color-schema-lt($bg-color, $lt-percent, 2.5%); @include color-schema-lt($bg-color, $lt-percent, 2.5%);
} }
&.lter, &.lter,
& .lter { & .lter {
@include color-schema-lt($bg-color, $lter-percent, 5%); @include color-schema-lt($bg-color, $lter-percent, 5%);
} }
&.dk, &.dk,
& .dk { & .dk {
@include color-schema($bg-color, $dk-percent, 2.5%); @include color-schema($bg-color, $dk-percent, 2.5%);
} }
&.dker, &.dker,
& .dker { & .dker {
@include color-schema($bg-color, $dker-percent, 5%); @include color-schema($bg-color, $dker-percent, 5%);
} }
&.bg, &.bg,
& .bg { & .bg {
background-color: $bg-color; background-color: $bg-color;
@ -78,15 +90,19 @@
$link-color: desaturate(lighten($bg-color, 50%), 10%); $link-color: desaturate(lighten($bg-color, 50%), 10%);
$hover-color: #fff; $hover-color: #fff;
color: $font-color; color: $font-color;
& a { & a {
color: $link-color; color: $link-color;
&:hover { &:hover {
color: $hover-color; color: $hover-color;
} }
} }
& .open > a { & .open > a {
&, &:hover, &:focus { &,
&:hover,
&:focus {
color: $hover-color; color: $hover-color;
} }
} }
@ -99,11 +115,16 @@
color: lighten($font-color, 25%) !important; color: lighten($font-color, 25%) !important;
} }
&.auto, & .auto { &.auto,
& .auto {
& .list-group-item { & .list-group-item {
border-color: darken($bg-color, 5%) !important; border-color: darken($bg-color, 5%) !important;
background-color: transparent; background-color: transparent;
&:hover, &:focus, &:active, &.active {
&:hover,
&:focus,
&:active,
&.active {
@include color-schema($bg-color, 5%, 2.5% !important); @include color-schema($bg-color, 5%, 2.5% !important);
} }
} }
@ -114,28 +135,36 @@
a.bg-#{$name}:hover { a.bg-#{$name}:hover {
background-color: darken($bg-color, 5%); background-color: darken($bg-color, 5%);
} }
a.text-#{$name}:hover { a.text-#{$name}:hover {
color: darken($bg-color, 5%); color: darken($bg-color, 5%);
} }
.text-#{$name} { .text-#{$name} {
color: $bg-color; color: $bg-color;
} }
.text-#{$name}-lt { .text-#{$name}-lt {
color: darken($bg-color, 5%); color: darken($bg-color, 5%);
} }
.text-#{$name}-lter { .text-#{$name}-lter {
color: darken($bg-color, 10%); color: darken($bg-color, 10%);
} }
.text-#{$name}-dk { .text-#{$name}-dk {
color: darken($bg-color, 5%); color: darken($bg-color, 5%);
} }
.text-#{$name}-dker { .text-#{$name}-dker {
color: darken($bg-color, 10%); color: darken($bg-color, 10%);
} }
} }
@mixin hover { @mixin hover {
&:hover { @content; } &:hover {
@content;
}
} }
@mixin hover-focus { @mixin hover-focus {
@ -166,7 +195,6 @@
border-radius: $border-radius; border-radius: $border-radius;
height: $height; height: $height;
.#{$ns}Button-icon:first-child:not(:last-child):not(.pull-right), .#{$ns}Button-icon:first-child:not(:last-child):not(.pull-right),
> .pull-left { > .pull-left {
margin-right: $padding-x; margin-right: $padding-x;
@ -202,7 +230,6 @@
&.is-disabled, &.is-disabled,
&:disabled { &:disabled {
@if variable-exists(Button-onDisabled-bg) { @if variable-exists(Button-onDisabled-bg) {
background-color: $Button-onDisabled-bg; background-color: $Button-onDisabled-bg;
} @else { } @else {
@ -220,8 +247,6 @@
} @else { } @else {
border-color: $border; border-color: $border;
} }
} }
&:not(:disabled):not(.is-disabled):active, &:not(:disabled):not(.is-disabled):active,

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
// 类名前缀 // 类名前缀
$ns: '' !default; $ns: "" !default;
// 颜色 // 颜色
$white: #fff !default; $white: #fff !default;
@ -18,7 +17,7 @@ $black: #000 !default;
$orange: #fd7e14 !default; $orange: #fd7e14 !default;
$yellow: #ffc107 !default; $yellow: #ffc107 !default;
$green: #28a745 !default; $green: #28a745 !default;
$turquoise: #00D1B2 !default; $turquoise: #00d1b2 !default;
$cyan: #17a2b8 !default; $cyan: #17a2b8 !default;
$blue: #007bff !default; $blue: #007bff !default;
$purple: #6f42c1 !default; $purple: #6f42c1 !default;
@ -36,11 +35,17 @@ $dark: $gray800 !default;
$remFactor: 16px !default; $remFactor: 16px !default;
// 字体相关 // 字体相关
$fontFamilySansSerif: -apple-system, BlinkMacSystemFont,"SF Pro SC","SF Pro Text","Helvetica Neue", Helvetica, "PingFang SC","Segoe UI", Roboto, "Hiragino Sans GB", 'Arial','microsoft yahei ui',"Microsoft YaHei",SimSun, sans-serif !default; $fontFamilySansSerif: -apple-system, BlinkMacSystemFont, "SF Pro SC",
$fontFamilyMonospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default; "SF Pro Text", "Helvetica Neue", Helvetica, "PingFang SC", "Segoe UI",
Roboto, "Hiragino Sans GB", "Arial", "microsoft yahei ui", "Microsoft YaHei",
SimSun, sans-serif !default;
$fontFamilyMonospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace !default;
$fontFamilyBase: $fontFamilySansSerif !default; $fontFamilyBase: $fontFamilySansSerif !default;
$fontSizeBase: px2rem(14px) !default; // Assumes the browser default, typically `16px` $fontSizeBase: px2rem(
14px
) !default; // Assumes the browser default, typically `16px`
$fontSizeMd: px2rem(16px) !default; $fontSizeMd: px2rem(16px) !default;
$fontSizeLg: px2rem(20px) !default; $fontSizeLg: px2rem(20px) !default;
$fontSizeSm: px2rem(12px) !default; $fontSizeSm: px2rem(12px) !default;
@ -66,19 +71,17 @@ $h4-fontSize: $fontSizeBase * 1.5 !default;
$h5-fontSize: $fontSizeBase * 1.25 !default; $h5-fontSize: $fontSizeBase * 1.25 !default;
$h6-fontSize: $fontSizeBase !default; $h6-fontSize: $fontSizeBase !default;
// 边框 // 边框
$borderWidth: px2rem(1px) !default; $borderWidth: px2rem(1px) !default;
$borderColor: $gray300 !default; $borderColor: $gray300 !default;
$borderRadius: .142rem !default; $borderRadius: 0.142rem !default;
$borderRadiusMd: .285rem !default; $borderRadiusMd: 0.285rem !default;
$borderRadiusLg: .428rem !default; $borderRadiusLg: 0.428rem !default;
$boxShadowSm: 0 0.125rem 0.25rem rgba($black, 0.075) !default;
$boxShadowSm: 0 .125rem .25rem rgba($black, .075) !default; $boxShadow: 0 0.5rem 1rem rgba($black, 0.15) !default;
$boxShadow: 0 .5rem 1rem rgba($black, .15) !default; $boxShadowLg: 0 1rem 3rem rgba($black, 0.175) !default;
$boxShadowLg: 0 1rem 3rem rgba($black, .175) !default;
// 窗口适配 // 窗口适配
$breakpoints: ( $breakpoints: (
@ -139,7 +142,10 @@ $Layout-aside--md-width: px2rem(250px) !default;
$Layout-aside--lg-width: px2rem(300px) !default; $Layout-aside--lg-width: px2rem(300px) !default;
$Layout-aside--folded-width: px2rem(60px) !default; $Layout-aside--folded-width: px2rem(60px) !default;
$Layout-aside-bg: $dark !default; $Layout-aside-bg: $dark !default;
$Layout-aside-onAcitve-bg: saturate(darken($Layout-aside-bg, 5%), 2.5%) !default; $Layout-aside-onAcitve-bg: saturate(
darken($Layout-aside-bg, 5%),
2.5%
) !default;
$Layout-aside-onHover-bg: saturate(darken($Layout-aside-bg, 3%), 2.5%) !default; $Layout-aside-onHover-bg: saturate(darken($Layout-aside-bg, 3%), 2.5%) !default;
$Layout-aside-color: desaturate(lighten($Layout-aside-bg, 40%), 10%) !default; $Layout-aside-color: desaturate(lighten($Layout-aside-bg, 40%), 10%) !default;
@ -160,12 +166,16 @@ $Layout-asideLink-arrowColor: $Layout-asideLink-color !default;
$Layout-asideLink-onActive-arrowColor: $Layout-asideLink-onActive-color !default; $Layout-asideLink-onActive-arrowColor: $Layout-asideLink-onActive-color !default;
$Layout-asideLabel-color: darken($Layout-aside-color, 10%) !default; $Layout-asideLabel-color: darken($Layout-aside-color, 10%) !default;
$Layout-brand-bg: $dark !default; $Layout-brand-bg: $dark !default;
$Layout-brandBar-color: desaturate(lighten($Layout-brand-bg, 40%), 10%) !default; $Layout-brandBar-color: desaturate(
lighten($Layout-brand-bg, 40%),
10%
) !default;
$Layout-brand-color: lighten($Layout-brandBar-color, 25%) !default; $Layout-brand-color: lighten($Layout-brandBar-color, 25%) !default;
$Layout-header-height: px2rem(50px) !default; $Layout-header-height: px2rem(50px) !default;
$Layout-headerBar-borderBottom: none !default; $Layout-headerBar-borderBottom: none !default;
$Layout-header-bg: $white !default; $Layout-header-bg: $white !default;
$Layout-header-boxShadow: 0 px2rem(2px) px2rem(2px) rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05) !default; $Layout-header-boxShadow: 0 px2rem(2px) px2rem(2px) rgba(0, 0, 0, 0.05),
0 1px 0 rgba(0, 0, 0, 0.05) !default;
$Layout-nav-height: px2rem(40px) !default; $Layout-nav-height: px2rem(40px) !default;
$Layout-nav--folded-height: px2rem(50px) !default; $Layout-nav--folded-height: px2rem(50px) !default;
$Layout--offscreen-width: 75% !default; $Layout--offscreen-width: 75% !default;
@ -197,7 +207,9 @@ $Modal-header-bg: darken($Modal-bg, 2.5%) !default;
$Modal-title-lineHeight: $lineHeightBase !default; $Modal-title-lineHeight: $lineHeightBase !default;
$Modal-title-fontSize: $fontSizeBase !default; $Modal-title-fontSize: $fontSizeBase !default;
$Modal-title-color: $text--loud-color !default; $Modal-title-color: $text--loud-color !default;
$Modal-header-paddingY: ($Modal-header-height - $Modal-title-lineHeight * $Modal-title-fontSize) / 2 !default; $Modal-header-paddingY: (
$Modal-header-height - $Modal-title-lineHeight * $Modal-title-fontSize
) / 2 !default;
$Modal-header-paddingX: $gap-md !default; $Modal-header-paddingX: $gap-md !default;
$Modal-close-width: px2rem(12px) !default; $Modal-close-width: px2rem(12px) !default;
$Modal-close-color: $text--muted-color !default; $Modal-close-color: $text--muted-color !default;
@ -205,8 +217,10 @@ $Model-close-onHover-color: $text-color !default ;
$Modal-body-paddingX: $gap-md !default; $Modal-body-paddingX: $gap-md !default;
$Modal-body-paddingY: $gap-md !default; $Modal-body-paddingY: $gap-md !default;
$Modal-body--noHeader-paddingTop: $gap-base; $Modal-body--noHeader-paddingTop: $gap-base;
$Modal-body-borderTop: $Modal-content-borderWidth solid lighten($Modal-content-borderColor, 5%) !default; $Modal-body-borderTop: $Modal-content-borderWidth solid
$Modal-body-borderBottom: $Modal-content-borderWidth solid lighten($Modal-content-borderColor, 5%) !default; lighten($Modal-content-borderColor, 5%) !default;
$Modal-body-borderBottom: $Modal-content-borderWidth solid
lighten($Modal-content-borderColor, 5%) !default;
$Modal-footer-padding: $gap-sm !default; $Modal-footer-padding: $gap-sm !default;
$Modal-footer-marginY: 0 !default; $Modal-footer-marginY: 0 !default;
$Modal-footer-marginX: 0 !default; $Modal-footer-marginX: 0 !default;
@ -262,9 +276,9 @@ $Tooltip-arrow-width: px2rem(16px) !default;
$Tooltip-arrow-height: px2rem(8px) !default; $Tooltip-arrow-height: px2rem(8px) !default;
$Tooltip-arrow-color: $Tooltip-bg !default; $Tooltip-arrow-color: $Tooltip-bg !default;
$Tooltip-arrow-width: 1rem !default; $Tooltip-arrow-width: 1rem !default;
$Tooltip-arrow-height: .5rem !default; $Tooltip-arrow-height: 0.5rem !default;
$Tooltip-arrow-color: $Tooltip-bg !default; $Tooltip-arrow-color: $Tooltip-bg !default;
$Tooltip-arrow-outerColor: fade-in($Tooltip-borderColor, .05) !default; $Tooltip-arrow-outerColor: fade-in($Tooltip-borderColor, 0.05) !default;
$Tooltip--attr-color: $background !default; $Tooltip--attr-color: $background !default;
$Tooltip--attr-bg: rgba(0, 0, 0, 0.7) !default; $Tooltip--attr-bg: rgba(0, 0, 0, 0.7) !default;
@ -277,7 +291,7 @@ $Tooltip--attr-lineHeigt: $lineHeightBase !default;
$Tooltip--attr-paddingX: px2rem(10px) !default; $Tooltip--attr-paddingX: px2rem(10px) !default;
$Tooltip--attr-paddingY: px2rem(2px) !default; $Tooltip--attr-paddingY: px2rem(2px) !default;
$Tooltip--attr-gap: $gap-sm; $Tooltip--attr-gap: $gap-sm;
$Tooltip--attr-transition: all .15s ease-in-out !default; $Tooltip--attr-transition: all 0.15s ease-in-out !default;
// toast // toast
$Toast-width: px2rem(300px) !default; $Toast-width: px2rem(300px) !default;
@ -317,7 +331,6 @@ $Toast--warning-icon: "\f071" !default;
$Toast--info-icon: "\f05a" !default; $Toast--info-icon: "\f05a" !default;
$Toast--success-icon: "\f00c" !default; $Toast--success-icon: "\f00c" !default;
// alert // alert
$Alert-fontSize: $fontSizeBase !default; $Alert-fontSize: $fontSizeBase !default;
$Alert-boxShadow: none !default; $Alert-boxShadow: none !default;
@ -330,7 +343,10 @@ $Alert-marginBottom: $gap-md !default;
$Alert--danger-color: #a94442 !default; $Alert--danger-color: #a94442 !default;
$Alert--danger-bg: #f2dede !default; $Alert--danger-bg: #f2dede !default;
$Alert--danger-borderColor: darken(adjust-hue($Alert--danger-bg, -10), 5%) !default; $Alert--danger-borderColor: darken(
adjust-hue($Alert--danger-bg, -10),
5%
) !default;
$Alert--info-color: #31708f !default; $Alert--info-color: #31708f !default;
$Alert--info-bg: #d9edf7 !default; $Alert--info-bg: #d9edf7 !default;
@ -338,11 +354,17 @@ $Alert--info-borderColor: darken(adjust-hue($Alert--info-bg, -10), 5%) !default;
$Alert--success-color: #3c763d !default; $Alert--success-color: #3c763d !default;
$Alert--success-bg: #dff0d8 !default; $Alert--success-bg: #dff0d8 !default;
$Alert--success-borderColor: darken(adjust-hue($Alert--success-bg, -10), 5%) !default; $Alert--success-borderColor: darken(
adjust-hue($Alert--success-bg, -10),
5%
) !default;
$Alert--warning-color: #8a6d3b !default; $Alert--warning-color: #8a6d3b !default;
$Alert--warning-bg: #fcf8e3 !default; $Alert--warning-bg: #fcf8e3 !default;
$Alert--warning-borderColor: darken(adjust-hue($Alert--warning-bg, -10), 5%) !default; $Alert--warning-borderColor: darken(
adjust-hue($Alert--warning-bg, -10),
5%
) !default;
// spinner // spinner
$Spinner-overlay-bg: rgba(255, 255, 255, 0.4) !default; $Spinner-overlay-bg: rgba(255, 255, 255, 0.4) !default;
@ -351,7 +373,7 @@ $Spinner-height: px2rem(26px) !default;
$Spinner--lg-width: px2rem(50px) !default; $Spinner--lg-width: px2rem(50px) !default;
$Spinner--lg-height: px2rem(50px) !default; $Spinner--lg-height: px2rem(50px) !default;
$Spinner-bg: url('./spinner-default.svg') !default; $Spinner-bg: url("./spinner-default.svg") !default;
// Tabs // Tabs
$Tabs-linkFontSize: $fontSizeBase !default; $Tabs-linkFontSize: $fontSizeBase !default;
@ -376,7 +398,7 @@ $Nav-item-onHover-color: $text--loud-color!default;
$Nav-item-onActive-color: $white !default; $Nav-item-onActive-color: $white !default;
$Nav-item-onDisabled-color: $text--muted-color !default; $Nav-item-onDisabled-color: $text--muted-color !default;
$Nav-item-bg: transparent !default; $Nav-item-bg: transparent !default;
$Nav-item-onHover-bg: rgba(0,0,0,.05) !default; $Nav-item-onHover-bg: rgba(0, 0, 0, 0.05) !default;
$Nav-item-onActive-bg: $info !default; $Nav-item-onActive-bg: $info !default;
$Nav-item-onActive-borderLeft: 4px solid transparent !default; $Nav-item-onActive-borderLeft: 4px solid transparent !default;
$Nav-subItem-onActiveBeforeBg: #e5eaeb !default; $Nav-subItem-onActiveBeforeBg: #e5eaeb !default;
@ -396,8 +418,8 @@ $Table-borderColor: $borderColor !default;
$Table-borderWidth: $borderWidth !default; $Table-borderWidth: $borderWidth !default;
$Table-borderRadius: $borderRadius !default; $Table-borderRadius: $borderRadius !default;
$Table-fixedTop-boxShadow: $boxShadow !default; $Table-fixedTop-boxShadow: $boxShadow !default;
$Table-fixedLeft-boxShadow: 0.42rem 0 0.42rem -0.28rem rgba($black, .15) !default; $Table-fixedLeft-boxShadow: 0.42rem 0 0.42rem -0.28rem rgba($black, 0.15) !default;
$Table-fixedRight-boxShadow: -0.42rem 0 0.42rem -0.28rem rgba($black, .15) !default; $Table-fixedRight-boxShadow: -0.42rem 0 0.42rem -0.28rem rgba($black, 0.15) !default;
$Table-toolbar-paddingX: $gap-sm !default; $Table-toolbar-paddingX: $gap-sm !default;
$Table-toolbar-paddingY: $gap-sm !default; $Table-toolbar-paddingY: $gap-sm !default;
$Table-thead-bg: $white !default; $Table-thead-bg: $white !default;
@ -409,7 +431,8 @@ $Table-thead-iconColor: $text--muted-color !default;
$TableCell-height: px2rem(40px) !default; $TableCell-height: px2rem(40px) !default;
$TableCell-paddingX: $gap-sm !default; $TableCell-paddingX: $gap-sm !default;
$TableCell--edge-paddingX: $gap-md !default; $TableCell--edge-paddingX: $gap-md !default;
$TableCell-paddingY: ($TableCell-height - $Table-fontSize * $Table-lineHeight) / 2; $TableCell-paddingY: ($TableCell-height - $Table-fontSize * $Table-lineHeight) /
2;
$Table-placeholder-height: px2rem(100px) !default; $Table-placeholder-height: px2rem(100px) !default;
// $Table-checkCell-width: px2rem(50px) !default; // $Table-checkCell-width: px2rem(50px) !default;
@ -424,17 +447,22 @@ $Table-onChecked-bg: #d9f3fb !default;
$Table-onChecked-borderColor: darken($Table-onChecked-bg, 10%) !default; $Table-onChecked-borderColor: darken($Table-onChecked-bg, 10%) !default;
$Table-onChecked-color: darken($Table-onChecked-bg, 40%) !default; $Table-onChecked-color: darken($Table-onChecked-bg, 40%) !default;
$Table-onChecked-onHover-bg: darken($Table-onChecked-bg, 5%) !default; $Table-onChecked-onHover-bg: darken($Table-onChecked-bg, 5%) !default;
$Table-onChecked-onHover-borderColor: darken($Table-onChecked-borderColor, 5%)!default; $Table-onChecked-onHover-borderColor: darken(
$Table-onChecked-borderColor,
5%
) !default;
$Table-onChecked-onHover-color: darken($Table-onChecked-color, 5%) !default; $Table-onChecked-onHover-color: darken($Table-onChecked-color, 5%) !default;
$Table-onModified-bg: #e8f0fe !default; $Table-onModified-bg: #e8f0fe !default;
$Table-onModified-color: #4285f4 !default; $Table-onModified-color: #4285f4 !default;
$Table-onModified-borderColor: darken($Table-onModified-bg, 5%) !default; $Table-onModified-borderColor: darken($Table-onModified-bg, 5%) !default;
$Table-onModified-onHover-bg: darken($Table-onModified-bg, 2.5%) !default; $Table-onModified-onHover-bg: darken($Table-onModified-bg, 2.5%) !default;
$Table-onModified-onHover-borderColor: darken($Table-onModified-onHover-bg, 5%)!default; $Table-onModified-onHover-borderColor: darken(
$Table-onModified-onHover-bg,
5%
) !default;
$Table-onModified-onHover-color: darken($Table-onModified-color, 5%) !default; $Table-onModified-onHover-color: darken($Table-onModified-color, 5%) !default;
$Table-onDragging-opacity: 0.1 !default; $Table-onDragging-opacity: 0.1 !default;
$TableCell-searchBtn-width: px2rem(16px) !default; $TableCell-searchBtn-width: px2rem(16px) !default;
@ -505,8 +533,6 @@ $ListItem-onModified-color: #4285f4 !default;
$ListItem-onModified-borderColor: darken($ListItem-onModified-bg, 10%) !default; $ListItem-onModified-borderColor: darken($ListItem-onModified-bg, 10%) !default;
$ListItem-onDragging-opacity: 0.1 !default; $ListItem-onDragging-opacity: 0.1 !default;
// QuickEdit // QuickEdit
$QuickEdit-iconColor: $text--muted-color !default; $QuickEdit-iconColor: $text--muted-color !default;
$QuickEdit-onHover-iconColor: $text-color !default; $QuickEdit-onHover-iconColor: $text-color !default;
@ -534,7 +560,6 @@ $Remark-borderColor: $borderColor !default;
$Remark-onHover-borderColor: $borderColor !default; $Remark-onHover-borderColor: $borderColor !default;
$Remark-marginLeft: $gap-sm !default; $Remark-marginLeft: $gap-sm !default;
// Form // Form
$Form-fontSize: $fontSizeBase !default; $Form-fontSize: $fontSizeBase !default;
$Form-description-color: lighten($text-color, 10%) !default; $Form-description-color: lighten($text-color, 10%) !default;
@ -582,10 +607,15 @@ $Form-input-placeholderColor: $text--muted-color!default;
$Form-input-lineHeight: 20/14 !default; $Form-input-lineHeight: 20/14 !default;
$Form-input-fontSize: $Form-fontSize !default; $Form-input-fontSize: $Form-fontSize !default;
$Form-input-boxShadow: none !default; $Form-input-boxShadow: none !default;
$Form-input-paddingY: ($Form-input-height - $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px))/2 !default; $Form-input-paddingY: (
$Form-input-height - $Form-input-lineHeight * $Form-input-fontSize -
px2rem(2px)
)/2 !default;
$Form-input-paddingX: px2rem(12px) !default; $Form-input-paddingX: px2rem(12px) !default;
$Form-input-marginBottom: px2rem(6px) !default; $Form-input-marginBottom: px2rem(6px) !default;
$Form-label-paddingTop: ($Form-input-height - $Form-input-lineHeight * $Form-input-fontSize)/2 !default; $Form-label-paddingTop: (
$Form-input-height - $Form-input-lineHeight * $Form-input-fontSize
)/2 !default;
$Form-input-addOnBg: #edf1f2 !default; $Form-input-addOnBg: #edf1f2 !default;
$Form-input-addOnColor: $text-color !default; $Form-input-addOnColor: $text-color !default;
@ -608,7 +638,6 @@ $Number-handler-onHover-bg: darken($Number-handler-bg, 5%) !default;
$Number-handler-onActive-bg: $Number-handler-onHover-bg !default; $Number-handler-onActive-bg: $Number-handler-onHover-bg !default;
$Number-handler-onDisabled-bg: $Form-input-onDisabled-bg !default; $Number-handler-onDisabled-bg: $Form-input-onDisabled-bg !default;
$Form-select-bg: $white !default; $Form-select-bg: $white !default;
$Form-select-onHover-bg: darken($white, 5%) !default; $Form-select-onHover-bg: darken($white, 5%) !default;
$Form-select-color: $text-color !default; $Form-select-color: $text-color !default;
@ -622,8 +651,14 @@ $Form-select-onFocused-borderColor: $Form-input-onFocused-borderColor !default;
$Form-select-onError-borderColor: $Form-input-onError-borderColor !default; $Form-select-onError-borderColor: $Form-input-onError-borderColor !default;
$Form-selectOption-height: $Form-input-height !default; $Form-selectOption-height: $Form-input-height !default;
$Form-selectValue-color: #007eff !default; $Form-selectValue-color: #007eff !default;
$Form-selectValue-bg: saturate(lighten($Form-selectValue-color, 40%), 2.5%) !default; $Form-selectValue-bg: saturate(
$Form-selectValue-borderColor: saturate(lighten($Form-selectValue-color, 30%), 2.5%) !default; lighten($Form-selectValue-color, 40%),
2.5%
) !default;
$Form-selectValue-borderColor: saturate(
lighten($Form-selectValue-color, 30%),
2.5%
) !default;
$Form-selectValue-fontSize: $fontSizeSm !default; $Form-selectValue-fontSize: $fontSizeSm !default;
$Form-select-caret-vender: "FontAwesome" !default; $Form-select-caret-vender: "FontAwesome" !default;
$Form-select-caret-icon: "\f0d7" !default; $Form-select-caret-icon: "\f0d7" !default;
@ -635,7 +670,7 @@ $Form-select-menu-height: $Form-input-height !default;
$Form-select-menu-bg: $white !default; $Form-select-menu-bg: $white !default;
$Form-select-menu-color: $Form-select-color !default; $Form-select-menu-color: $Form-select-color !default;
$Form-select-menu-onHover-color: $info !default; $Form-select-menu-onHover-color: $info !default;
$Form-select-menu-onHover-bg: rgba(0,126,255,.08) !default; $Form-select-menu-onHover-bg: rgba(0, 126, 255, 0.08) !default;
$Form-select-menu-onActive-color: $info !default; $Form-select-menu-onActive-color: $info !default;
$Form-select-menu-onActive-bg: transparent !default; $Form-select-menu-onActive-bg: transparent !default;
$Form-select-menu-onDisabled-color: $text--muted-color !default; $Form-select-menu-onDisabled-color: $text--muted-color !default;
@ -647,7 +682,10 @@ $InputGroup-addOn-bg: $Form-input-addOnBg !default;
$InputGroup-addOn-borderWidth: $Form-input-borderWidth !default; $InputGroup-addOn-borderWidth: $Form-input-borderWidth !default;
$InputGroup-addOn-borderColor: $Form-input-borderColor !default; $InputGroup-addOn-borderColor: $Form-input-borderColor !default;
$InputGroup-addOn-borderRadius: $Form-input-borderRadius !default; $InputGroup-addOn-borderRadius: $Form-input-borderRadius !default;
$InputGroup-paddingY: ($InputGroup-height - $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px))/2 !default; $InputGroup-paddingY: (
$InputGroup-height - $Form-input-lineHeight * $Form-input-fontSize -
px2rem(2px)
)/2 !default;
$InputGroup-paddingX: px2rem(10px) !default; $InputGroup-paddingX: px2rem(10px) !default;
$InputGroup-addOn-onFocused-borderColor: $Form-input-onFocused-borderColor !default; $InputGroup-addOn-onFocused-borderColor: $Form-input-onFocused-borderColor !default;
$InputGroup-select-borderWidth: $Form-select-borderWidth !default; $InputGroup-select-borderWidth: $Form-select-borderWidth !default;
@ -673,7 +711,10 @@ $Button-height: $Form-input-height !default;
$Button-mimWidth: auto !default; $Button-mimWidth: auto !default;
$Button-lineHeight: $Form-input-lineHeight !default; $Button-lineHeight: $Form-input-lineHeight !default;
$Button-paddingX: px2rem(12px) !default; $Button-paddingX: px2rem(12px) !default;
$Button-paddingY: ($Button-height - $Button-borderWidth * 2 - $Button-lineHeight * $Button-fontSize)/2 !default; $Button-paddingY: (
$Button-height - $Button-borderWidth * 2 - $Button-lineHeight *
$Button-fontSize
)/2 !default;
$Button--iconOnly-minWidthRate: 4 / 3 !default; $Button--iconOnly-minWidthRate: 4 / 3 !default;
@ -681,33 +722,43 @@ $Button--xs-fontSize: $fontSizeXs !default;
$Button--xs-height: px2rem(22px) !default; $Button--xs-height: px2rem(22px) !default;
$Button--xs-lineHeight: 18 / 11 !default; $Button--xs-lineHeight: 18 / 11 !default;
$Button--xs-paddingX: px2rem(5px) !default; $Button--xs-paddingX: px2rem(5px) !default;
$Button--xs-paddingY: ($Button--xs-height - $Button-borderWidth * 2 - $Button--xs-lineHeight * $Button--xs-fontSize)/2 !default; $Button--xs-paddingY: (
$Button--xs-height - $Button-borderWidth * 2 - $Button--xs-lineHeight *
$Button--xs-fontSize
)/2 !default;
$Button--sm-fontSize: $fontSizeSm !default; $Button--sm-fontSize: $fontSizeSm !default;
$Button--sm-height: px2rem(30px) !default; $Button--sm-height: px2rem(30px) !default;
$Button--sm-lineHeight: 18 / 12 !default; $Button--sm-lineHeight: 18 / 12 !default;
$Button--sm-paddingX: px2rem(8px) !default; $Button--sm-paddingX: px2rem(8px) !default;
$Button--sm-paddingY: ($Button--sm-height - $Button-borderWidth * 2 - $Button--sm-lineHeight * $Button--sm-fontSize)/2 !default; $Button--sm-paddingY: (
$Button--sm-height - $Button-borderWidth * 2 - $Button--sm-lineHeight *
$Button--sm-fontSize
)/2 !default;
$Button--md-fontSize: $Button-fontSize !default; $Button--md-fontSize: $Button-fontSize !default;
$Button--md-height: $Button-height !default; $Button--md-height: $Button-height !default;
$Button--md-lineHeight: $Button-lineHeight !default; $Button--md-lineHeight: $Button-lineHeight !default;
$Button--md-paddingX: $Button-paddingX !default; $Button--md-paddingX: $Button-paddingX !default;
$Button--md-paddingY: ($Button--md-height - $Button-borderWidth * 2 - $Button--md-lineHeight * $Button--md-fontSize)/2 !default; $Button--md-paddingY: (
$Button--md-height - $Button-borderWidth * 2 - $Button--md-lineHeight *
$Button--md-fontSize
)/2 !default;
$Button--lg-fontSize: $fontSizeLg !default; $Button--lg-fontSize: $fontSizeLg !default;
$Button--lg-height: px2rem(46px) !default; $Button--lg-height: px2rem(46px) !default;
$Button--lg-lineHeight: 24 / 20 !default; $Button--lg-lineHeight: 24 / 20 !default;
$Button--lg-paddingX: px2rem(16px) !default; $Button--lg-paddingX: px2rem(16px) !default;
$Button--lg-paddingY: ($Button--lg-height - $Button-borderWidth * 2 - $Button--lg-lineHeight * $Button--lg-fontSize)/2 !default; $Button--lg-paddingY: (
$Button--lg-height - $Button-borderWidth * 2 - $Button--lg-lineHeight *
$Button--lg-fontSize
)/2 !default;
$Button-boxShadow: inset 0 1px 0 rgba($white, 0.15),
$Button-boxShadow: inset 0 1px 0 rgba($white, .15), 0 1px 1px rgba($black, .075) !default; 0 1px 1px rgba($black, 0.075) !default;
$Button-onFocus-boxShadow: none !default; $Button-onFocus-boxShadow: none !default;
$Button-onActive-boxShadow: inset 0 3px 5px rgba($black, .125) !default; $Button-onActive-boxShadow: inset 0 3px 5px rgba($black, 0.125) !default;
$Button-onDisabled-opacity: .65 !default; $Button-onDisabled-opacity: 0.65 !default;
$Button--link-onDisabled-color: $gray600 !default; $Button--link-onDisabled-color: $gray600 !default;
@ -715,7 +766,8 @@ $Button-borderRadius: $borderRadius !default;
$Button--lg-borderRadius: $borderRadius !default; $Button--lg-borderRadius: $borderRadius !default;
$Button--sm-borderRadius: $borderRadius !default; $Button--sm-borderRadius: $borderRadius !default;
$Button-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default; $Button-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !default;
$Button--primary-bg: $primary !default; $Button--primary-bg: $primary !default;
$Button--primary-border: $Button--primary-bg !default; $Button--primary-border: $Button--primary-bg !default;
@ -724,17 +776,26 @@ $Button--primary-onHover-bg: darken($Button--primary-bg, 7.5%) !default;
$Button--primary-onHover-border: darken($Button--primary-border, 10%) !default; $Button--primary-onHover-border: darken($Button--primary-border, 10%) !default;
$Button--primary-onHover-color: $Button--primary-color !default; $Button--primary-onHover-color: $Button--primary-color !default;
$Button--primary-onActive-bg: darken($Button--primary-bg, 10%) !default; $Button--primary-onActive-bg: darken($Button--primary-bg, 10%) !default;
$Button--primary-onActive-border: darken($Button--primary-border, 12.5%) !default; $Button--primary-onActive-border: darken(
$Button--primary-border,
12.5%
) !default;
$Button--primary-onActive-color: $Button--primary-color !default; $Button--primary-onActive-color: $Button--primary-color !default;
$Button--secondary-bg: $secondary !default; $Button--secondary-bg: $secondary !default;
$Button--secondary-border: $Button--secondary-bg !default; $Button--secondary-border: $Button--secondary-bg !default;
$Button--secondary-color: $white !default; $Button--secondary-color: $white !default;
$Button--secondary-onHover-bg: darken($Button--secondary-bg, 7.5%) !default; $Button--secondary-onHover-bg: darken($Button--secondary-bg, 7.5%) !default;
$Button--secondary-onHover-border: darken($Button--secondary-border, 10%) !default; $Button--secondary-onHover-border: darken(
$Button--secondary-border,
10%
) !default;
$Button--secondary-onHover-color: $Button--secondary-color !default; $Button--secondary-onHover-color: $Button--secondary-color !default;
$Button--secondary-onActive-bg: darken($Button--secondary-bg, 10%) !default; $Button--secondary-onActive-bg: darken($Button--secondary-bg, 10%) !default;
$Button--secondary-onActive-border: darken($Button--secondary-border, 12.5%) !default; $Button--secondary-onActive-border: darken(
$Button--secondary-border,
12.5%
) !default;
$Button--secondary-onActive-color: $Button--secondary-color !default; $Button--secondary-onActive-color: $Button--secondary-color !default;
$Button--success-bg: $success !default; $Button--success-bg: $success !default;
@ -744,7 +805,10 @@ $Button--success-onHover-bg: darken($Button--success-bg, 7.5%) !default;
$Button--success-onHover-border: darken($Button--success-border, 10%) !default; $Button--success-onHover-border: darken($Button--success-border, 10%) !default;
$Button--success-onHover-color: $Button--success-color !default; $Button--success-onHover-color: $Button--success-color !default;
$Button--success-onActive-bg: darken($Button--success-bg, 10%) !default; $Button--success-onActive-bg: darken($Button--success-bg, 10%) !default;
$Button--success-onActive-border: darken($Button--success-border, 12.5%) !default; $Button--success-onActive-border: darken(
$Button--success-border,
12.5%
) !default;
$Button--success-onActive-color: $Button--success-color !default; $Button--success-onActive-color: $Button--success-color !default;
$Button--info-bg: $info !default; $Button--info-bg: $info !default;
@ -764,7 +828,10 @@ $Button--warning-onHover-bg: darken($Button--warning-bg, 7.5%) !default;
$Button--warning-onHover-border: darken($Button--warning-border, 10%) !default; $Button--warning-onHover-border: darken($Button--warning-border, 10%) !default;
$Button--warning-onHover-color: $Button--warning-color !default; $Button--warning-onHover-color: $Button--warning-color !default;
$Button--warning-onActive-bg: darken($Button--warning-bg, 10%) !default; $Button--warning-onActive-bg: darken($Button--warning-bg, 10%) !default;
$Button--warning-onActive-border: darken($Button--warning-border, 12.5%) !default; $Button--warning-onActive-border: darken(
$Button--warning-border,
12.5%
) !default;
$Button--warning-onActive-color: $Button--warning-color !default; $Button--warning-onActive-color: $Button--warning-color !default;
$Button--danger-bg: $danger !default; $Button--danger-bg: $danger !default;
@ -797,7 +864,6 @@ $Button--dark-onActive-bg: darken($Button--dark-bg, 10%) !default;
$Button--dark-onActive-border: darken($Button--dark-border, 12.5%) !default; $Button--dark-onActive-border: darken($Button--dark-border, 12.5%) !default;
$Button--dark-onActive-color: $Button--dark-color !default; $Button--dark-onActive-color: $Button--dark-color !default;
$Button--default-bg: $white !default; $Button--default-bg: $white !default;
$Button--default-border: $borderColor !default; $Button--default-border: $borderColor !default;
$Button--default-color: $text-color !default; $Button--default-color: $text-color !default;
@ -805,7 +871,10 @@ $Button--default-onHover-bg: darken($Button--default-bg, 7.5%) !default;
$Button--default-onHover-border: darken($Button--default-border, 10%) !default; $Button--default-onHover-border: darken($Button--default-border, 10%) !default;
$Button--default-onHover-color: $Button--default-color !default; $Button--default-onHover-color: $Button--default-color !default;
$Button--default-onActive-bg: darken($Button--default-bg, 10%) !default; $Button--default-onActive-bg: darken($Button--default-bg, 10%) !default;
$Button--default-onActive-border: darken($Button--default-border, 12.5%) !default; $Button--default-onActive-border: darken(
$Button--default-border,
12.5%
) !default;
$Button--default-onActive-color: $Button--default-color !default; $Button--default-onActive-color: $Button--default-color !default;
$Button--link-color: $text-color !default; $Button--link-color: $text-color !default;
@ -821,12 +890,13 @@ $DropDown-menu-height: px2rem(34px) !default;
$DropDown-menu-minWidth: px2rem(160px) !default; $DropDown-menu-minWidth: px2rem(160px) !default;
$DropDown-menu-paddingY: $gap-xs !default; $DropDown-menu-paddingY: $gap-xs !default;
$DropDown-menu-paddingX: 0 !default; $DropDown-menu-paddingX: 0 !default;
$DropDown-menuItem-paddingY: ($DropDown-menu-height - $fontSizeBase * $lineHeightBase) / 2 !default; $DropDown-menuItem-paddingY: (
$DropDown-menu-height - $fontSizeBase * $lineHeightBase
) / 2 !default;
$DropDown-menuItem-paddingX: $gap-sm !default; $DropDown-menuItem-paddingX: $gap-sm !default;
$DropDown-menuItem-onHover-color: inherit !default; $DropDown-menuItem-onHover-color: inherit !default;
$DropDown-menuItem-onHover-bg: $Button--default-onHover-bg !default; $DropDown-menuItem-onHover-bg: $Button--default-onHover-bg !default;
// Checks // Checks
$Checkbox-gap: $gap-sm !default; $Checkbox-gap: $gap-sm !default;
$Checkbox-size: px2rem(20px) !default; $Checkbox-size: px2rem(20px) !default;
@ -867,11 +937,12 @@ $ColorPicker-height: $Form-input-height !default;
$ColorPicker-lineHeight: $Form-input-lineHeight !default; $ColorPicker-lineHeight: $Form-input-lineHeight !default;
$ColorPicker-fontSize: $Form-input-fontSize !default; $ColorPicker-fontSize: $Form-input-fontSize !default;
$ColorPicker-paddingX: px2rem(12px) !default; $ColorPicker-paddingX: px2rem(12px) !default;
$ColorPicker-paddingY: ($ColorPicker-height - $ColorPicker-lineHeight * $ColorPicker-fontSize)/2 - $ColorPicker-borderWidth !default; $ColorPicker-paddingY: (
$ColorPicker-height - $ColorPicker-lineHeight * $ColorPicker-fontSize
)/2 - $ColorPicker-borderWidth !default;
$ColorPicker-placeholderColor: $Form-input-placeholderColor !default; $ColorPicker-placeholderColor: $Form-input-placeholderColor !default;
$ColorPicker-onFocused-borderColor: $Form-input-onFocused-borderColor !default; $ColorPicker-onFocused-borderColor: $Form-input-onFocused-borderColor !default;
// datepicker // datepicker
$DatePicker-color: $Form-input-color !default; $DatePicker-color: $Form-input-color !default;
$DatePicker-bg: $white !default; $DatePicker-bg: $white !default;
@ -883,7 +954,9 @@ $DatePicker-height: $Form-input-height !default;
$DatePicker-lineHeight: $Form-input-lineHeight !default; $DatePicker-lineHeight: $Form-input-lineHeight !default;
$DatePicker-fontSize: $Form-input-fontSize !default; $DatePicker-fontSize: $Form-input-fontSize !default;
$DatePicker-paddingX: px2rem(12px) !default; $DatePicker-paddingX: px2rem(12px) !default;
$DatePicker-paddingY: ($DatePicker-height - $DatePicker-lineHeight * $DatePicker-fontSize)/2 - $DatePicker-borderWidth !default; $DatePicker-paddingY: (
$DatePicker-height - $DatePicker-lineHeight * $DatePicker-fontSize
)/2 - $DatePicker-borderWidth !default;
$DatePicker-placeholderColor: $Form-input-placeholderColor !default; $DatePicker-placeholderColor: $Form-input-placeholderColor !default;
$DatePicker-iconColor: $gray600 !default; $DatePicker-iconColor: $gray600 !default;
$DatePicker-onHover-iconColor: darken($DatePicker-iconColor, 10%) !default; $DatePicker-onHover-iconColor: darken($DatePicker-iconColor, 10%) !default;
@ -898,7 +971,6 @@ $DatePicker-nextBtn-vendor: "FontAwesome" !default;
$DatePicker-nextBtn-fontSize: $fontSizeMd !default; $DatePicker-nextBtn-fontSize: $fontSizeMd !default;
$DatePicker-nextBtn-icon: "\f105" !default; $DatePicker-nextBtn-icon: "\f105" !default;
$Calendar-fontSize: $fontSizeBase !default; $Calendar-fontSize: $fontSizeBase !default;
$Calendar-input-color: $info !default; $Calendar-input-color: $info !default;
@ -909,14 +981,18 @@ $Calendar-input-borderRadius: $borderRadius !default;
$Calendar-input-height: px2rem(30px) !default; $Calendar-input-height: px2rem(30px) !default;
$Calendar-input-lineHeight: $lineHeightBase; $Calendar-input-lineHeight: $lineHeightBase;
$Calendar-input-paddingX: px2rem(10px) !default; $Calendar-input-paddingX: px2rem(10px) !default;
$Calendar-input-paddingY: ($Calendar-input-height - $Calendar-input-lineHeight*$Calendar-input-fontSize) / 2; $Calendar-input-paddingY: (
$Calendar-input-height - $Calendar-input-lineHeight *
$Calendar-input-fontSize
) / 2;
$Calendar-btn-fontSize: $fontSizeSm !default; $Calendar-btn-fontSize: $fontSizeSm !default;
$Calendar-btn-lineHeight: $lineHeightBase !default; $Calendar-btn-lineHeight: $lineHeightBase !default;
$Calendar-btn-height: px2rem(30px) !default; $Calendar-btn-height: px2rem(30px) !default;
$Calendar-btn-paddingX: px2rem(10px) !default; $Calendar-btn-paddingX: px2rem(10px) !default;
$Calendar-btn-paddingY: ($Calendar-btn-height - $Calendar-btn-lineHeight * $Calendar-btn-fontSize)/2 !default; $Calendar-btn-paddingY: (
$Calendar-btn-height - $Calendar-btn-lineHeight * $Calendar-btn-fontSize
)/2 !default;
$Calendar-btn-bg: $info !default; $Calendar-btn-bg: $info !default;
$Calendar-btn-border: $Calendar-btn-bg !default; $Calendar-btn-border: $Calendar-btn-bg !default;
@ -934,13 +1010,18 @@ $Calendar-btnCancel-border: $Calendar-btnCancel-bg !default;
$Calendar-btnCancel-borderRadius: $Button-borderRadius !default; $Calendar-btnCancel-borderRadius: $Button-borderRadius !default;
$Calendar-btnCancel-color: $text-color !default; $Calendar-btnCancel-color: $text-color !default;
$Calendar-btnCancel-onHover-bg: darken($Calendar-btnCancel-bg, 7.5%) !default; $Calendar-btnCancel-onHover-bg: darken($Calendar-btnCancel-bg, 7.5%) !default;
$Calendar-btnCancel-onHover-border: darken($Calendar-btnCancel-border, 10%) !default; $Calendar-btnCancel-onHover-border: darken(
$Calendar-btnCancel-border,
10%
) !default;
$Calendar-btnCancel-onHover-color: $Calendar-btnCancel-color !default; $Calendar-btnCancel-onHover-color: $Calendar-btnCancel-color !default;
$Calendar-btnCancel-onActive-bg: darken($Calendar-btnCancel-bg, 10%) !default; $Calendar-btnCancel-onActive-bg: darken($Calendar-btnCancel-bg, 10%) !default;
$Calendar-btnCancel-onActive-border: darken($Calendar-btnCancel-border, 12.5%) !default; $Calendar-btnCancel-onActive-border: darken(
$Calendar-btnCancel-border,
12.5%
) !default;
$Calendar-btnCancel-onActive-color: $Calendar-btnCancel-color !default; $Calendar-btnCancel-onActive-color: $Calendar-btnCancel-color !default;
$Calendar-color: $text-color !default; $Calendar-color: $text-color !default;
$Calendar-wLabel-color: #999 !default; $Calendar-wLabel-color: #999 !default;
$Calendar-cell-bg: $white !default; $Calendar-cell-bg: $white !default;
@ -961,12 +1042,18 @@ $ListControl-item-paddingX: px2rem(12px) !default;
$ListControl-item-paddingY: px2rem(6px) !default; $ListControl-item-paddingY: px2rem(6px) !default;
$ListControl-item-color: $text-color !default; $ListControl-item-color: $text-color !default;
$ListControl-item-onHover-borderColor: darken($ListControl-item-borderColor, 10%) !default; $ListControl-item-onHover-borderColor: darken(
$ListControl-item-borderColor,
10%
) !default;
$ListControl-item-onHover-bg: darken($ListControl-item-bg, 7.5%) !default; $ListControl-item-onHover-bg: darken($ListControl-item-bg, 7.5%) !default;
$ListControl-item-onHover-color: $ListControl-item-color !default; $ListControl-item-onHover-color: $ListControl-item-color !default;
$ListControl-item-onActive-bg: $primary !default; $ListControl-item-onActive-bg: $primary !default;
$ListControl-item-onActive-borderColor: darken($ListControl-item-onActive-bg, 10%) !default; $ListControl-item-onActive-borderColor: darken(
$ListControl-item-onActive-bg,
10%
) !default;
$ListControl-item-onActive-color: $white !default; $ListControl-item-onActive-color: $white !default;
$ListControl-item-onDisabled-opacity: 0.6 !default; $ListControl-item-onDisabled-opacity: 0.6 !default;
@ -997,7 +1084,10 @@ $Combo-addBtn-borderRadius: $Button-borderRadius;
$Combo-addBtn-height: px2rem(26px) !default; $Combo-addBtn-height: px2rem(26px) !default;
$Combo-addBtn-lineHeight: $Button--sm-lineHeight !default; $Combo-addBtn-lineHeight: $Button--sm-lineHeight !default;
$Combo-addBtn-paddingX: $Button--sm-paddingX !default; $Combo-addBtn-paddingX: $Button--sm-paddingX !default;
$Combo-addBtn-paddingY: ($Combo-addBtn-height - $Button-borderWidth * 2 - $Combo-addBtn-lineHeight * $Combo-addBtn-fontSize)/2 !default; $Combo-addBtn-paddingY: (
$Combo-addBtn-height - $Button-borderWidth * 2 -
$Combo-addBtn-lineHeight * $Combo-addBtn-fontSize
)/2 !default;
$Combo--vertical-item-gap: px2rem(5px); $Combo--vertical-item-gap: px2rem(5px);
$Combo--vertical-item-borderColor: $borderColor !default; $Combo--vertical-item-borderColor: $borderColor !default;
@ -1012,9 +1102,12 @@ $Combo--vertical-itemToolbar-bg: $info !default;
$Combo--vertical-itemToolbar-color: darken($white, 5%) !default; $Combo--vertical-itemToolbar-color: darken($white, 5%) !default;
$Combo--vertical-itemToolbar-onHover-color: $white !default; $Combo--vertical-itemToolbar-onHover-color: $white !default;
$Combo--vertical-itemToolbar-borderWidth: $borderWidth !default; $Combo--vertical-itemToolbar-borderWidth: $borderWidth !default;
$Combo--vertical-itemToolbar-borderColor: darken($Combo--vertical-itemToolbar-bg, 5%) !default; $Combo--vertical-itemToolbar-borderColor: darken(
$Combo--vertical-itemToolbar-bg,
5%
) !default;
$Combo--vertical-itemToolbar-borderRadius: px2rem(3px) !default; $Combo--vertical-itemToolbar-borderRadius: px2rem(3px) !default;
$Combo--vertical-itemToolbar-transion: all .25s ease-in-out !default; $Combo--vertical-itemToolbar-transion: all 0.25s ease-in-out !default;
$Combo--vertical-itemToolbar-positionTop: -$Combo--vertical-itemToolbar-height !default; $Combo--vertical-itemToolbar-positionTop: -$Combo--vertical-itemToolbar-height !default;
$Combo--vertical-itemToolbar-positionRight: px2rem(5px) !default; $Combo--vertical-itemToolbar-positionRight: px2rem(5px) !default;
@ -1028,7 +1121,10 @@ $SubForm--addBtn-onHover-bg: darken($SubForm--addBtn-bg, 7.5%) !default;
$SubForm--addBtn-onHover-border: darken($SubForm--addBtn-border, 10%) !default; $SubForm--addBtn-onHover-border: darken($SubForm--addBtn-border, 10%) !default;
$SubForm--addBtn-onHover-color: $SubForm--addBtn-color !default; $SubForm--addBtn-onHover-color: $SubForm--addBtn-color !default;
$SubForm--addBtn-onActive-bg: darken($SubForm--addBtn-bg, 10%) !default; $SubForm--addBtn-onActive-bg: darken($SubForm--addBtn-bg, 10%) !default;
$SubForm--addBtn-onActive-border: darken($SubForm--addBtn-border, 12.5%) !default; $SubForm--addBtn-onActive-border: darken(
$SubForm--addBtn-border,
12.5%
) !default;
$SubForm--addBtn-onActive-color: $SubForm--addBtn-color !default; $SubForm--addBtn-onActive-color: $SubForm--addBtn-color !default;
$SubForm--addBtn-fontSize: $Button--sm-fontSize !default; $SubForm--addBtn-fontSize: $Button--sm-fontSize !default;
@ -1036,8 +1132,10 @@ $SubForm--addBtn-borderRadius: $Button-borderRadius;
$SubForm--addBtn-height: $Button--sm-height !default; $SubForm--addBtn-height: $Button--sm-height !default;
$SubForm--addBtn-lineHeight: $Button--sm-lineHeight !default; $SubForm--addBtn-lineHeight: $Button--sm-lineHeight !default;
$SubForm--addBtn-paddingX: $Button--sm-paddingX !default; $SubForm--addBtn-paddingX: $Button--sm-paddingX !default;
$SubForm--addBtn-paddingY: ($SubForm--addBtn-height - $Button-borderWidth * 2 - $SubForm--addBtn-lineHeight * $SubForm--addBtn-fontSize)/2 !default; $SubForm--addBtn-paddingY: (
$SubForm--addBtn-height - $Button-borderWidth * 2 -
$SubForm--addBtn-lineHeight * $SubForm--addBtn-fontSize
)/2 !default;
// InputRange // InputRange
$InputRange-fontFamily: $fontFamilyBase !default; $InputRange-fontFamily: $fontFamilyBase !default;
@ -1050,14 +1148,17 @@ $InputRange-onDisabled-color: #cccccc !default;
$InputRange-slider-bg: $InputRange-primaryColor !default; $InputRange-slider-bg: $InputRange-primaryColor !default;
$InputRange-slider-border: px2rem(1px) solid $InputRange-primaryColor !default; $InputRange-slider-border: px2rem(1px) solid $InputRange-primaryColor !default;
$InputRange-slider-onFocus-borderRadius: $borderRadiusMd !default; $InputRange-slider-onFocus-borderRadius: $borderRadiusMd !default;
$InputRange-slider-onFocus-boxShadow: 0 0 0 $InputRange-slider-onFocus-borderRadius transparentize($InputRange-slider-bg, 0.8) !default; $InputRange-slider-onFocus-boxShadow: 0 0 0
$InputRange-slider-onFocus-borderRadius
transparentize($InputRange-slider-bg, 0.8) !default;
$InputRange-slider-height: px2rem(24px) !default; $InputRange-slider-height: px2rem(24px) !default;
$InputRange-slider-width: px2rem(18px) !default; $InputRange-slider-width: px2rem(18px) !default;
$InputRange-slider-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !default; $InputRange-slider-transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !default;
$InputRange-sliderContainer-transition: left 0.3s ease-out !default; $InputRange-sliderContainer-transition: left 0.3s ease-out !default;
$InputRange-slider-onActive-transform: scale(1.3) !default; $InputRange-slider-onActive-transform: scale(1.3) !default;
$InputRange-slider-onDisabled-bg: $InputRange-onDisabled-color !default; $InputRange-slider-onDisabled-bg: $InputRange-onDisabled-color !default;
$InputRange-slider-onDisabled-border: px2rem(1px) solid $InputRange-onDisabled-color !default; $InputRange-slider-onDisabled-border: px2rem(1px) solid
$InputRange-onDisabled-color !default;
// input-range-label // input-range-label
$InputRange-label-color: $InputRange-neutralColor !default; $InputRange-label-color: $InputRange-neutralColor !default;
@ -1080,10 +1181,16 @@ $TagControl-sugBtn-bg: $Button--default-bg !default;
$TagControl-sugBtn-border: $Button--default-border !default; $TagControl-sugBtn-border: $Button--default-border !default;
$TagControl-sugBtn-color: $Button--default-color !default; $TagControl-sugBtn-color: $Button--default-color !default;
$TagControl-sugBtn-onHover-bg: darken($TagControl-sugBtn-bg, 7.5%) !default; $TagControl-sugBtn-onHover-bg: darken($TagControl-sugBtn-bg, 7.5%) !default;
$TagControl-sugBtn-onHover-border: darken($TagControl-sugBtn-border, 10%) !default; $TagControl-sugBtn-onHover-border: darken(
$TagControl-sugBtn-border,
10%
) !default;
$TagControl-sugBtn-onHover-color: $Button--default-color !default; $TagControl-sugBtn-onHover-color: $Button--default-color !default;
$TagControl-sugBtn-onActive-bg: darken($TagControl-sugBtn-bg, 10%) !default; $TagControl-sugBtn-onActive-bg: darken($TagControl-sugBtn-bg, 10%) !default;
$TagControl-sugBtn-onActive-border: darken($TagControl-sugBtn-border, 12.5%) !default; $TagControl-sugBtn-onActive-border: darken(
$TagControl-sugBtn-border,
12.5%
) !default;
$TagControl-sugBtn-onActive-color: $TagControl-sugBtn-color !default; $TagControl-sugBtn-onActive-color: $TagControl-sugBtn-color !default;
$TagControl-sugBtn-borderWidth: $Button-borderWidth !default; $TagControl-sugBtn-borderWidth: $Button-borderWidth !default;
@ -1092,7 +1199,10 @@ $TagControl-sugBtn-borderRadius: $Button-borderRadius !default;
$TagControl-sugBtn-height: $Button--sm-height !default; $TagControl-sugBtn-height: $Button--sm-height !default;
$TagControl-sugBtn-lineHeight: $Button--sm-lineHeight !default; $TagControl-sugBtn-lineHeight: $Button--sm-lineHeight !default;
$TagControl-sugBtn-paddingX: $Button--sm-paddingX !default; $TagControl-sugBtn-paddingX: $Button--sm-paddingX !default;
$TagControl-sugBtn-paddingY: ($TagControl-sugBtn-height - $Button-borderWidth * 2 - $TagControl-sugBtn-lineHeight * $TagControl-sugBtn-fontSize)/2 !default; $TagControl-sugBtn-paddingY: (
$TagControl-sugBtn-height - $Button-borderWidth * 2 -
$TagControl-sugBtn-lineHeight * $TagControl-sugBtn-fontSize
)/2 !default;
// Wizard // Wizard
$Wizard-steps-bg: $gray100 !default; $Wizard-steps-bg: $gray100 !default;
@ -1126,7 +1236,7 @@ $Panel-borderRadius: $borderRadius !default;
$Panel-marginBottom: px2rem(20px) !default; $Panel-marginBottom: px2rem(20px) !default;
$Panel-bg: $white !default; $Panel-bg: $white !default;
$Panel-border: $borderWidth solid transparent !default; $Panel-border: $borderWidth solid transparent !default;
$Panel-boxShadow: 0 px2rem(1px) px2rem(1px) rgba(0, 0, 0, .05) !default; $Panel-boxShadow: 0 px2rem(1px) px2rem(1px) rgba(0, 0, 0, 0.05) !default;
$Panel--default-bg: #f6f8f8 !default; $Panel--default-bg: #f6f8f8 !default;
$Panel--default-color: $text-color !default; $Panel--default-color: $text-color !default;
$Panel--default-badgeColor: #f5f5f5 !default; $Panel--default-badgeColor: #f5f5f5 !default;
@ -1147,7 +1257,7 @@ $Panel-footerPadding: px2rem(10px) px2rem(15px) !default;
$Panel-borderWidth: px2rem(1px) !default; $Panel-borderWidth: px2rem(1px) !default;
$Panel-footerButtomMarginLeft: $gap-sm !default; $Panel-footerButtomMarginLeft: $gap-sm !default;
$Panel-btnToolbarTextAlign: right !default; $Panel-btnToolbarTextAlign: right !default;
$Panel-fixedBottom-boxShadow: 0 -0.5rem 1rem rgba($black, .15) !default; $Panel-fixedBottom-boxShadow: 0 -0.5rem 1rem rgba($black, 0.15) !default;
// Pagination // Pagination
$Pagination-height: px2rem(30px) !default; $Pagination-height: px2rem(30px) !default;
@ -1178,7 +1288,7 @@ $Tree-folderIconContent: "\f07b" !default;
$Tree-itemText--onChecked-color: $Form-selectValue-color !default; $Tree-itemText--onChecked-color: $Form-selectValue-color !default;
// IconPicker // IconPicker
$IconPicker-tabs-bg: #F0F3F4 !default; $IconPicker-tabs-bg: #f0f3f4 !default;
$IconPicker-tab-padding: 0 px2rem(5px) !default; $IconPicker-tab-padding: 0 px2rem(5px) !default;
$IconPicker-tab-height: px2rem(30px) !default; $IconPicker-tab-height: px2rem(30px) !default;
$IconPicker-tab-lineHeight: px2rem(30px) !default; $IconPicker-tab-lineHeight: px2rem(30px) !default;

View File

@ -9,8 +9,8 @@
*/ */
html { html {
line-height: 1.15; /* 1 */ line-height: 1.15; // 1
-webkit-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; //2
} }
/* Sections /* Sections
@ -43,9 +43,9 @@
*/ */
hr { hr {
box-sizing: content-box; /* 1 */ box-sizing: content-box; // 1
height: 0; /* 1 */ height: 0; // 2
overflow: visible; /* 2 */ overflow: visible; //2
} }
/** /**
@ -54,8 +54,8 @@
*/ */
pre { pre {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace; // 1
font-size: 1em; /* 2 */ font-size: 1em; // 2
} }
/* Text-level semantics /* Text-level semantics
@ -75,9 +75,9 @@
*/ */
abbr[title] { abbr[title] {
border-bottom: none; /* 1 */ border-bottom: none; // 1
text-decoration: underline; /* 2 */ text-decoration: underline; // 2
text-decoration: underline dotted; /* 2 */ text-decoration: underline dotted; // 2
} }
/** /**
@ -97,8 +97,8 @@
code, code,
kbd, kbd,
samp { samp {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace; // 1
font-size: 1em; /* 2 */ font-size: 1em; // 2
} }
/** /**
@ -154,10 +154,10 @@
optgroup, optgroup,
select, select,
textarea { textarea {
font-family: inherit; /* 1 */ font-family: inherit; // 1
font-size: 100%; /* 1 */ font-size: 100%; // 1
line-height: 1.15; /* 1 */ line-height: 1.15; // 1
margin: 0; /* 2 */ margin: 0; // 2
} }
/** /**
@ -166,8 +166,8 @@
*/ */
button, button,
input { /* 1 */ input {
overflow: visible; overflow: visible; // 1
} }
/** /**
@ -176,8 +176,8 @@
*/ */
button, button,
select { /* 1 */ select {
text-transform: none; text-transform: none; // 1
} }
/** /**
@ -230,12 +230,12 @@
*/ */
legend { legend {
box-sizing: border-box; /* 1 */ box-sizing: border-box; // 1
color: inherit; /* 2 */ color: inherit; // 2
display: table; /* 1 */ display: table; // 1
max-width: 100%; /* 1 */ max-width: 100%; // 1
padding: 0; /* 3 */ padding: 0; // 3
white-space: normal; /* 1 */ white-space: normal; // 1
} }
/** /**
@ -261,8 +261,8 @@
[type="checkbox"], [type="checkbox"],
[type="radio"] { [type="radio"] {
box-sizing: border-box; /* 1 */ box-sizing: border-box; // 1
padding: 0; /* 2 */ padding: 0; // 2
} }
/** /**
@ -280,8 +280,8 @@
*/ */
[type="search"] { [type="search"] {
-webkit-appearance: textfield; /* 1 */ -webkit-appearance: textfield; // 1
outline-offset: -2px; /* 2 */ outline-offset: -2px; // 2
} }
/** /**
@ -298,8 +298,8 @@
*/ */
::-webkit-file-upload-button { ::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */ -webkit-appearance: button; // 1
font: inherit; /* 2 */ font: inherit; // 2
} }
/* Interactive /* Interactive

View File

@ -30,7 +30,12 @@ label {
font-weight: $fontWeightNormal; font-weight: $fontWeightNormal;
} }
h1, h2, h3, h4, h5, h6 { h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: $fontWeightNormal; font-weight: $fontWeightNormal;
color: $text--loud-color; color: $text--loud-color;
line-height: 1.1; line-height: 1.1;

View File

@ -19,14 +19,14 @@
color: #000; color: #000;
text-shadow: 0 1px 0 #fff; text-shadow: 0 1px 0 #fff;
filter: alpha(opacity=20); filter: alpha(opacity=20);
opacity: .2; opacity: 0.2;
&:hover { &:hover {
color: #000; color: #000;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
filter: alpha(opacity=50); filter: alpha(opacity=50);
opacity: .5; opacity: 0.5;
} }
} }

View File

@ -50,6 +50,7 @@
border: $Audio-border; border: $Audio-border;
display: inline-block; display: inline-block;
padding-left: $Audio-item-margin; padding-left: $Audio-item-margin;
&-rates { &-rates {
display: inline-block; display: inline-block;
width: $Audio-rate-width; width: $Audio-rate-width;
@ -59,9 +60,11 @@
cursor: pointer; cursor: pointer;
margin-right: $Audio-item-margin; margin-right: $Audio-item-margin;
} }
&-rateControl { &-rateControl {
display: inline-block; display: inline-block;
margin-right: $Audio-item-margin; margin-right: $Audio-item-margin;
&::after { &::after {
display: inline-block; display: inline-block;
clear: both; clear: both;
@ -80,6 +83,7 @@
border-right: $Audio-rateControlItem-borderRight; border-right: $Audio-rateControlItem-borderRight;
} }
} }
&-play { &-play {
display: inline-block; display: inline-block;
width: $Audio-play-width; width: $Audio-play-width;
@ -90,22 +94,25 @@
@include svg(); @include svg();
} }
} }
&-times { &-times {
display: inline-block; display: inline-block;
width: $Audio-times-width; width: $Audio-times-width;
margin-right: $Audio-item-margin; margin-right: $Audio-item-margin;
cursor: default; cursor: default;
} }
&-process { &-process {
display: inline-block; display: inline-block;
width: $Audio-process-width; width: $Audio-process-width;
cursor: pointer; cursor: pointer;
margin-right: $Audio-item-margin; margin-right: $Audio-item-margin;
input[type=range] { input[type="range"] {
@include input-range(); @include input-range();
} }
} }
&-volume { &-volume {
display: inline-block; display: inline-block;
width: $Audio-volume-width; width: $Audio-volume-width;
@ -117,13 +124,15 @@
@include svg(); @include svg();
} }
} }
&-volumeControl { &-volumeControl {
display: inline-block; display: inline-block;
width: $Audio-volumeControl-width; width: $Audio-volumeControl-width;
height: $Audio-volumeControl-height; height: $Audio-volumeControl-height;
line-height: $Audio-volumeControl-lineHeight; line-height: $Audio-volumeControl-lineHeight;
margin-right: $Audio-item-margin; margin-right: $Audio-item-margin;
input[type=range] {
input[type="range"] {
@include input-range(); @include input-range();
} }

View File

@ -27,15 +27,20 @@
.#{$ns}ButtonGroup + .#{$ns}ButtonGroup { .#{$ns}ButtonGroup + .#{$ns}ButtonGroup {
margin-left: -$Button-borderWidth; margin-left: -$Button-borderWidth;
} }
} @else if (variable-exists("ButtonGroup-divider-width") and variable-exists("ButtonGroup-divider-color")) { } @else if
(
variable-exists("ButtonGroup-divider-width") and
variable-exists("ButtonGroup-divider-color")
)
{
background-color: $ButtonGroup-divider-color; background-color: $ButtonGroup-divider-color;
> .#{$ns}Button + .#{$ns}Button { > .#{$ns}Button + .#{$ns}Button {
margin-left: $ButtonGroup-divider-width; margin-left: $ButtonGroup-divider-width;
} }
} }
} }
.#{$ns}ButtonToolbar { .#{$ns}ButtonToolbar {
display: inline-flex; display: inline-flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -67,7 +72,6 @@
} }
} }
.#{$ns}ButtonGroup--vertical { .#{$ns}ButtonGroup--vertical {
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
@ -99,7 +103,6 @@
} }
} }
.#{$ns}ButtonGroupControl { .#{$ns}ButtonGroupControl {
display: inline-block; display: inline-block;

View File

@ -1,4 +1,3 @@
.#{$ns}Button { .#{$ns}Button {
display: inline-block; display: inline-block;
font-weight: $Button-fontWeight; font-weight: $Button-fontWeight;
@ -14,7 +13,14 @@
min-width: $Button-mimWidth; min-width: $Button-mimWidth;
} }
@include button-size($Button-paddingY, $Button-paddingX, $Button-fontSize, $Button-lineHeight, $Button-borderRadius, $Button-height); @include button-size(
$Button-paddingY,
$Button-paddingX,
$Button-fontSize,
$Button-lineHeight,
$Button-borderRadius,
$Button-height
);
@include hover-focus { @include hover-focus {
color: $text-color; color: $text-color;
@ -280,7 +286,6 @@ fieldset:disabled a.#{$ns}Button {
} }
} }
.#{$ns}Button--link { .#{$ns}Button--link {
width: auto; width: auto;
min-width: auto; min-width: auto;

View File

@ -3,7 +3,6 @@
@include clearfix(); @include clearfix();
padding: $Cards-toolbar-paddingY $Cards-toolbar-paddingX; padding: $Cards-toolbar-paddingY $Cards-toolbar-paddingX;
margin-bottom: $gap-base; margin-bottom: $gap-base;
} }
&-actions { &-actions {
@ -81,6 +80,7 @@
&--masonry { &--masonry {
display: block; display: block;
&:after { &:after {
content: none; content: none;
} }
@ -103,18 +103,23 @@
.#{$ns}Cards--masonrySm1 { .#{$ns}Cards--masonrySm1 {
column-count: 12; column-count: 12;
} }
.#{$ns}Cards--masonrySm2 { .#{$ns}Cards--masonrySm2 {
column-count: 6; column-count: 6;
} }
.#{$ns}Cards--masonrySm3 { .#{$ns}Cards--masonrySm3 {
column-count: 4; column-count: 4;
} }
.#{$ns}Cards--masonrySm4 { .#{$ns}Cards--masonrySm4 {
column-count: 3; column-count: 3;
} }
.#{$ns}Cards--masonrySm6 { .#{$ns}Cards--masonrySm6 {
column-count: 2; column-count: 2;
} }
.#{$ns}Cards--masonrySm12 { .#{$ns}Cards--masonrySm12 {
column-count: 1; column-count: 1;
} }
@ -129,18 +134,23 @@
.#{$ns}Cards--masonryMd1 { .#{$ns}Cards--masonryMd1 {
column-count: 12; column-count: 12;
} }
.#{$ns}Cards--masonryMd2 { .#{$ns}Cards--masonryMd2 {
column-count: 6; column-count: 6;
} }
.#{$ns}Cards--masonryMd3 { .#{$ns}Cards--masonryMd3 {
column-count: 4; column-count: 4;
} }
.#{$ns}Cards--masonryMd4 { .#{$ns}Cards--masonryMd4 {
column-count: 3; column-count: 3;
} }
.#{$ns}Cards--masonryMd6 { .#{$ns}Cards--masonryMd6 {
column-count: 2; column-count: 2;
} }
.#{$ns}Cards--masonryMd12 { .#{$ns}Cards--masonryMd12 {
column-count: 1; column-count: 1;
} }
@ -150,18 +160,23 @@
.#{$ns}Cards--masonryLg1 { .#{$ns}Cards--masonryLg1 {
column-count: 12; column-count: 12;
} }
.#{$ns}Cards--masonryLg2 { .#{$ns}Cards--masonryLg2 {
column-count: 6; column-count: 6;
} }
.#{$ns}Cards--masonryLg3 { .#{$ns}Cards--masonryLg3 {
column-count: 4; column-count: 4;
} }
.#{$ns}Cards--masonryLg4 { .#{$ns}Cards--masonryLg4 {
column-count: 3; column-count: 3;
} }
.#{$ns}Cards--masonryLg6 { .#{$ns}Cards--masonryLg6 {
column-count: 2; column-count: 2;
} }
.#{$ns}Cards--masonryLg12 { .#{$ns}Cards--masonryLg12 {
column-count: 1; column-count: 1;
} }

View File

@ -1,6 +1,7 @@
.#{$ns}Chart { .#{$ns}Chart {
min-height: 300px; min-height: 300px;
position: relative; position: relative;
&-placeholder { &-placeholder {
position: absolute; position: absolute;
top: 50%; top: 50%;

View File

@ -18,7 +18,7 @@
cursor: pointer; cursor: pointer;
&:before { &:before {
content: ''; content: "";
position: relative; position: relative;
display: inline-block; display: inline-block;
width: px2rem(6px); width: px2rem(6px);

View File

@ -5,6 +5,6 @@
cursor: pointer; cursor: pointer;
&:hover { &:hover {
color: $Copyable-onHover-iconColor color: $Copyable-onHover-iconColor;
} }
} }

View File

@ -44,7 +44,8 @@
padding: $Drawer-header-padding; padding: $Drawer-header-padding;
background-color: $Drawer-header-bg; background-color: $Drawer-header-bg;
@include clearfix(); @include clearfix();
border-bottom: $Drawer-content-borderWidth solid lighten($Drawer-content-borderColor, 5%); border-bottom: $Drawer-content-borderWidth solid
lighten($Drawer-content-borderColor, 5%);
border-top-left-radius: $Drawer-content-borderRadius; border-top-left-radius: $Drawer-content-borderRadius;
border-top-right-radius: $Drawer-content-borderRadius; border-top-right-radius: $Drawer-content-borderRadius;
} }
@ -92,7 +93,8 @@
align-items: flex-end; align-items: flex-end;
justify-content: flex-end; justify-content: flex-end;
padding: $Drawer-footer-padding; padding: $Drawer-footer-padding;
border-top: $Drawer-content-borderWidth solid lighten($Drawer-content-borderColor, 5%); border-top: $Drawer-content-borderWidth solid
lighten($Drawer-content-borderColor, 5%);
border-bottom-left-radius: $Drawer-content-borderRadius; border-bottom-left-radius: $Drawer-content-borderRadius;
border-bottom-right-radius: $Drawer-content-borderRadius; border-bottom-right-radius: $Drawer-content-borderRadius;

View File

@ -1,4 +1,3 @@
.#{$ns}DropDown { .#{$ns}DropDown {
position: relative; position: relative;
display: inline-block; display: inline-block;
@ -69,7 +68,6 @@
text-decoration: none; text-decoration: none;
} }
&-popover { &-popover {
border: none; border: none;
box-shadow: none; box-shadow: none;

View File

@ -84,6 +84,7 @@
line-height: inherit; line-height: inherit;
text-decoration: none; text-decoration: none;
vertical-align: middle; vertical-align: middle;
svg { svg {
width: $Modal-close-width; width: $Modal-close-width;
height: $Modal-close-width; height: $Modal-close-width;
@ -96,6 +97,7 @@
&:hover { &:hover {
text-decoration: none; text-decoration: none;
color: $Model-close-onHover-color; color: $Model-close-onHover-color;
svg { svg {
fill: $Model-close-onHover-color; fill: $Model-close-onHover-color;
} }
@ -111,7 +113,8 @@
} }
&-body { &-body {
padding: $Modal-body--noHeader-paddingTop $Modal-body-paddingX $Modal-body-paddingY; padding: $Modal-body--noHeader-paddingTop $Modal-body-paddingX
$Modal-body-paddingY;
flex-basis: 0; flex-basis: 0;
flex-grow: 1; flex-grow: 1;
} }
@ -143,7 +146,9 @@
@for $i from (2) through 10 { @for $i from (2) through 10 {
.#{$ns}Modal--#{$i}th { .#{$ns}Modal--#{$i}th {
.#{$ns}Modal-content { .#{$ns}Modal-content {
margin-top: $Modal-content-startMarginTop + ($i - 1) * $Modal-content-stepMarginTop; margin-top: $Modal-content-startMarginTop +
($i - 1) *
$Modal-content-stepMarginTop;
} }
} }
} }

View File

@ -2,11 +2,14 @@
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
&--tabs { &--tabs {
border-bottom: $Tabs-borderWidth solid $Tabs-borderColor; border-bottom: $Tabs-borderWidth solid $Tabs-borderColor;
.#{$ns}Nav-item { .#{$ns}Nav-item {
margin-bottom: -$Tabs-borderWidth; margin-bottom: -$Tabs-borderWidth;
display: inline-block; display: inline-block;
> a { > a {
font-size: $Nav-item-fontSize; font-size: $Nav-item-fontSize;
display: block; display: block;
@ -20,11 +23,13 @@
padding: $gap-sm $gap-base; padding: $gap-sm $gap-base;
cursor: pointer; cursor: pointer;
} }
&:hover > a, &:hover > a,
> a:focus { > a:focus {
border-color: $Tabs-onHover-borderColor; border-color: $Tabs-onHover-borderColor;
text-decoration: none; text-decoration: none;
} }
&.disabled > a, &.disabled > a,
&.is-disabled > a { &.is-disabled > a {
color: $Tabs-onDisabled-color; color: $Tabs-onDisabled-color;
@ -32,6 +37,7 @@
border-color: transparent; border-color: transparent;
pointer-events: none; pointer-events: none;
} }
&.active > a, &.active > a,
&.is-active > a { &.is-active > a {
color: $Tabs-onActive-color; color: $Tabs-onActive-color;
@ -41,13 +47,16 @@
border-bottom-width: $Tabs-onActive-borderBottomWidth; border-bottom-width: $Tabs-onActive-borderBottomWidth;
} }
} }
.#{$ns}Nav-itemIcon { .#{$ns}Nav-itemIcon {
margin-right: $gap-xs; margin-right: $gap-xs;
} }
} }
&--stacked { &--stacked {
.#{$ns}Nav-item { .#{$ns}Nav-item {
position: relative; position: relative;
> a { > a {
display: block; display: block;
outline: none; outline: none;
@ -58,18 +67,21 @@
background-color: $Nav-item-bg; background-color: $Nav-item-bg;
border-radius: $Nav-item-borderRadius; border-radius: $Nav-item-borderRadius;
} }
&:hover > a, &:hover > a,
> a:focus { > a:focus {
border-color: $Nav-item-onHover-color; border-color: $Nav-item-onHover-color;
text-decoration: none; text-decoration: none;
background-color: $Nav-item-onHover-bg; background-color: $Nav-item-onHover-bg;
} }
&.disabled > a, &.disabled > a,
&.is-disabled > a { &.is-disabled > a {
color: $Nav-item-onDisabled-color; color: $Nav-item-onDisabled-color;
background-color: transparent; background-color: transparent;
pointer-events: none; pointer-events: none;
} }
&.active > a, &.active > a,
&.is-active > a { &.is-active > a {
color: $Nav-item-onActive-color; color: $Nav-item-onActive-color;
@ -77,14 +89,17 @@
border-left: $Nav-item-onActive-borderLeft; border-left: $Nav-item-onActive-borderLeft;
padding-left: px2rem(12px); padding-left: px2rem(12px);
} }
&.is-unfolded { &.is-unfolded {
.#{$ns}Nav-itemToggler { .#{$ns}Nav-itemToggler {
transform: rotate(180deg) scale(0.8); transform: rotate(180deg) scale(0.8);
} }
.#{$ns}Nav-subItems { .#{$ns}Nav-subItems {
display: block; display: block;
} }
} }
.#{$ns}Nav-itemToggler { .#{$ns}Nav-itemToggler {
position: absolute; position: absolute;
width: px2rem(30px); width: px2rem(30px);
@ -96,17 +111,20 @@
right: px2rem(2px); right: px2rem(2px);
cursor: pointer; cursor: pointer;
transform: scale(0.8); transform: scale(0.8);
transition: transform .3s; transition: transform 0.3s;
} }
.#{$ns}Nav-subItems { .#{$ns}Nav-subItems {
display: none; display: none;
padding-left: 0; padding-left: 0;
list-style: none; list-style: none;
} }
.#{$ns}Nav-item { .#{$ns}Nav-item {
font-size: $Nav-subItem-fontSize; font-size: $Nav-subItem-fontSize;
a:before { a:before {
content: ''; content: "";
display: inline-block; display: inline-block;
width: px2rem(4px); width: px2rem(4px);
height: px2rem(4px); height: px2rem(4px);
@ -115,6 +133,7 @@
margin-right: px2rem(8px); margin-right: px2rem(8px);
vertical-align: middle; vertical-align: middle;
} }
&.active > a:before, &.active > a:before,
&.is-active > a:before { &.is-active > a:before {
background-color: $Nav-subItem-onActiveBeforeBg; background-color: $Nav-subItem-onActiveBeforeBg;

View File

@ -1,12 +1,11 @@
.#{$ns}Page { .#{$ns}Page {
&-header { &-header {
padding: $Page-header-paddingY $Page-header-paddingX; padding: $Page-header-paddingY $Page-header-paddingX;
} }
&-main { &-main {
background: $Page-main-bg; background: $Page-main-bg;
}; }
&-content { &-content {
padding: $Page-content-paddingY $Page-content-paddingX; padding: $Page-content-paddingY $Page-content-paddingX;
@ -51,7 +50,6 @@
&-asideTplWrapper { &-asideTplWrapper {
padding: $gap-xs; padding: $gap-xs;
} }
} }
.#{$ns}Page-aside { .#{$ns}Page-aside {

View File

@ -3,8 +3,10 @@
padding-left: 0; padding-left: 0;
margin-bottom: px2rem(-10px); margin-bottom: px2rem(-10px);
border-radius: px2rem(4px); border-radius: px2rem(4px);
> li { > li {
display: inline; display: inline;
> a, > a,
> span { > span {
user-select: none; user-select: none;
@ -22,6 +24,7 @@
margin-left: 0; margin-left: 0;
font-size: $Pagination-fontSize; font-size: $Pagination-fontSize;
} }
> a:hover, > a:hover,
> span:hover, > span:hover,
> a:focus, > a:focus,
@ -30,11 +33,13 @@
color: $primary; color: $primary;
} }
} }
> li.disabled { > li.disabled {
> span, > span,
> a { > a {
cursor: not-allowed; cursor: not-allowed;
} }
> a, > a,
> span, > span,
> a:hover, > a:hover,
@ -44,6 +49,7 @@
color: #cccccc; color: #cccccc;
} }
} }
> li.active { > li.active {
> a, > a,
> span, > span,
@ -55,35 +61,43 @@
color: $white; color: $white;
} }
} }
&-prev, &-prev,
&-next { &-next {
font-family: $Pagination-arrowVendor; font-family: $Pagination-arrowVendor;
} }
&-prev { &-prev {
> span { > span {
cursor: pointer; cursor: pointer;
&::before { &::before {
content: $Pagination-prevArrowContent; content: $Pagination-prevArrowContent;
} }
} }
} }
&-ellipsis { &-ellipsis {
> a > span { > a > span {
position: relative; position: relative;
top: px2rem(-4px); top: px2rem(-4px);
} }
} }
&-next { &-next {
> span { > span {
cursor: pointer; cursor: pointer;
&::before { &::before {
content: $Pagination-nextArrowContent; content: $Pagination-nextArrowContent;
} }
} }
} }
&-inputGroup { &-inputGroup {
display: inline-flex; display: inline-flex;
flex-wrap: nowrap; flex-wrap: nowrap;
.#{$ns}Pagination-input { .#{$ns}Pagination-input {
width: px2rem(50px); width: px2rem(50px);
height: $Pagination-height; height: $Pagination-height;
@ -91,11 +105,13 @@
border-top-left-radius: $borderRadius; border-top-left-radius: $borderRadius;
border-bottom-left-radius: $borderRadius; border-bottom-left-radius: $borderRadius;
padding: px2rem(5px) px2rem(10px); padding: px2rem(5px) px2rem(10px);
&:focus { &:focus {
outline: none; outline: none;
border: $borderWidth solid $primary; border: $borderWidth solid $primary;
} }
} }
.#{$ns}Button { .#{$ns}Button {
height: $Pagination-height; height: $Pagination-height;
margin-left: px2rem(-1px); margin-left: px2rem(-1px);

View File

@ -22,108 +22,135 @@
/* 主题 */ /* 主题 */
&--default { &--default {
border-color: $borderColor; border-color: $borderColor;
> .#{$ns}Panel-heading { > .#{$ns}Panel-heading {
background-color: $Panel--default-bg; background-color: $Panel--default-bg;
color: $Panel--default-color; color: $Panel--default-color;
.badge { .badge {
color: $Panel--default-badgeColor; color: $Panel--default-badgeColor;
background-color: $Panel--default-badgeBg; background-color: $Panel--default-badgeBg;
} }
} }
> .#{$ns}Panel-heading { > .#{$ns}Panel-heading {
border-color: $Panel--default-headingBorderColor; border-color: $Panel--default-headingBorderColor;
} }
} }
&--primary { &--primary {
border-color: $primary; border-color: $primary;
> .#{$ns}Panel-heading { > .#{$ns}Panel-heading {
background-color: $primary; background-color: $primary;
color: $white; color: $white;
.badge { .badge {
color: $primary; color: $primary;
background-color: $white background-color: $white;
} }
} }
> .#{$ns}Panel-heading, > .#{$ns}Panel-heading,
> .#{$ns}Panel-footer { > .#{$ns}Panel-footer {
border-color: $primary; border-color: $primary;
} }
} }
&--success { &--success {
border-color: $success; border-color: $success;
> .#{$ns}Panel-heading { > .#{$ns}Panel-heading {
background-color: $success; background-color: $success;
color: $white; color: $white;
.badge { .badge {
color: $success; color: $success;
background-color: $white background-color: $white;
} }
} }
> .#{$ns}Panel-heading, > .#{$ns}Panel-heading,
> .#{$ns}Panel-footer { > .#{$ns}Panel-footer {
border-color: $success; border-color: $success;
} }
} }
&--info { &--info {
border-color: $info; border-color: $info;
> .#{$ns}Panel-heading { > .#{$ns}Panel-heading {
background-color: $info; background-color: $info;
color: $white; color: $white;
.badge { .badge {
color: $info; color: $info;
background-color: $white background-color: $white;
} }
} }
> .#{$ns}Panel-heading, > .#{$ns}Panel-heading,
> .#{$ns}Panel-footer { > .#{$ns}Panel-footer {
border-color: $info; border-color: $info;
} }
} }
&--warning { &--warning {
border-color: $warning; border-color: $warning;
> .#{$ns}Panel-heading { > .#{$ns}Panel-heading {
background-color: $warning; background-color: $warning;
color: $white; color: $white;
.badge { .badge {
color: $warning; color: $warning;
background-color: $white background-color: $white;
} }
} }
> .#{$ns}Panel-heading, > .#{$ns}Panel-heading,
> .#{$ns}Panel-footer { > .#{$ns}Panel-footer {
border-color: $warning; border-color: $warning;
} }
} }
&--danger { &--danger {
border-color: $danger; border-color: $danger;
> .#{$ns}Panel-heading { > .#{$ns}Panel-heading {
background-color: $danger; background-color: $danger;
color: $white; color: $white;
.badge { .badge {
color: $danger; color: $danger;
background-color: $white background-color: $white;
} }
} }
> .#{$ns}Panel-heading, > .#{$ns}Panel-heading,
> .#{$ns}Panel-footer { > .#{$ns}Panel-footer {
border-color: $danger; border-color: $danger;
} }
} }
/* 子组件 */ /* 子组件 */
&-heading { &-heading {
padding: $Panel-headingPadding; padding: $Panel-headingPadding;
border-bottom: $Panel-headingBorderBottom; border-bottom: $Panel-headingBorderBottom;
border-radius: $Panel-headingBorderRadius; border-radius: $Panel-headingBorderRadius;
} }
&-title { &-title {
margin-top: $Panel-titleMarginTop; margin-top: $Panel-titleMarginTop;
margin-bottom: $Panel-titleMarginBottom; margin-bottom: $Panel-titleMarginBottom;
font-size: $Panel-titleFontSize; font-size: $Panel-titleFontSize;
color: $Panel-titleColor; color: $Panel-titleColor;
} }
&-body { &-body {
padding: $Panel-bodyPadding; padding: $Panel-bodyPadding;
} }
&-footer { &-footer {
border-color: $Panel-footerBorderColor; border-color: $Panel-footerBorderColor;
border-radius: $Panel-footerBorderRadius; border-radius: $Panel-footerBorderRadius;
@ -131,12 +158,15 @@
padding: $Panel-footerPadding; padding: $Panel-footerPadding;
border-style: solid; border-style: solid;
border-width: $Panel-borderWidth 0 0 0; border-width: $Panel-borderWidth 0 0 0;
.#{$ns}Button + .#{$ns}Button { .#{$ns}Button + .#{$ns}Button {
margin-left: $Panel-footerButtomMarginLeft; margin-left: $Panel-footerButtomMarginLeft;
} }
} }
&-btnToolbar { &-btnToolbar {
text-align: $Panel-btnToolbarTextAlign; text-align: $Panel-btnToolbarTextAlign;
.#{$ns}Button { .#{$ns}Button {
margin-left: $Panel-footerButtomMarginLeft; margin-left: $Panel-footerButtomMarginLeft;
} }

View File

@ -1,4 +1,3 @@
.#{$ns}PopOver { .#{$ns}PopOver {
position: absolute; position: absolute;
background: $white; background: $white;

View File

@ -6,7 +6,7 @@
cursor: pointer; cursor: pointer;
&:hover { &:hover {
color: $PopOverAble-onHover-iconColor color: $PopOverAble-onHover-iconColor;
} }
} }
@ -19,8 +19,6 @@
} }
} }
.#{$ns}PopOverAble-popover { .#{$ns}PopOverAble-popover {
min-width: px2rem(320px); min-width: px2rem(320px);
max-width: px2rem(640px); max-width: px2rem(640px);

View File

@ -6,7 +6,7 @@
cursor: pointer; cursor: pointer;
&:hover { &:hover {
color: $QuickEdit-onHover-iconColor color: $QuickEdit-onHover-iconColor;
} }
} }
@ -16,8 +16,9 @@
&:focus { &:focus {
position: relative; position: relative;
&:after { &:after {
content: ''; content: "";
left: 0; left: 0;
top: 0; top: 0;
right: 0; right: 0;
@ -25,7 +26,8 @@
position: absolute; position: absolute;
pointer-events: none; pointer-events: none;
z-index: 1; z-index: 1;
border: $QuickEdit-onFocus-borderWidth dashed $QuickEdit-onFocus-borderColor; border: $QuickEdit-onFocus-borderWidth dashed
$QuickEdit-onFocus-borderColor;
} }
} }
@ -34,8 +36,6 @@
} }
} }
.#{$ns}QuickEdit-popover { .#{$ns}QuickEdit-popover {
min-width: px2rem(320px); min-width: px2rem(320px);
max-width: px2rem(640px); max-width: px2rem(640px);

View File

@ -2,6 +2,7 @@
0% { 0% {
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
transform: rotate(359deg); transform: rotate(359deg);
} }
@ -44,7 +45,6 @@
} }
} }
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
.#{$ns}Layout .#{$ns}Page-body > .#{$ns}Spinner-overlay { .#{$ns}Layout .#{$ns}Page-body > .#{$ns}Spinner-overlay {
left: $Layout-aside-width; left: $Layout-aside-width;

View File

@ -8,43 +8,50 @@
@keyframes animation-rolling_red { @keyframes animation-rolling_red {
0% { 0% {
left: 0 left: 0;
} }
50% { 50% {
left: px2rem(13px) left: px2rem(13px);
} }
100% { 100% {
left: 0 left: 0;
} }
} }
@keyframes animation-rolling_blue { @keyframes animation-rolling_blue {
0% { 0% {
left: $gap-sm + $gap-base left: $gap-sm + $gap-base;
} }
50% { 50% {
left: px2rem(12px) left: px2rem(12px);
} }
100% { 100% {
left: $gap-sm + $gap-base left: $gap-sm + $gap-base;
} }
} }
.#{$ns}Status-icon { .#{$ns}Status-icon {
&--danger, &--primary, &--rolling, &--success, &--warning{ &--danger,
&--primary,
&--rolling,
&--success,
&--warning {
&::before { &::before {
font-family: "iconfont"; font-family: "iconfont";
content: "\e632"; content: "\e632";
font-style: normal; font-style: normal;
} }
} }
&--rolling { &--rolling {
color: $warning; color: $warning;
position: relative; position: relative;
left: $gap-md; left: $gap-md;
&::before { &::before {
font-size: inherit; font-size: inherit;
color: $danger; color: $danger;
@ -55,6 +62,7 @@
animation: animation-rolling_red 2s; animation: animation-rolling_red 2s;
animation-iteration-count: infinite; animation-iteration-count: infinite;
} }
&::after { &::after {
font-family: "iconfont"; font-family: "iconfont";
content: "\e632"; content: "\e632";
@ -69,27 +77,32 @@
animation-iteration-count: infinite; animation-iteration-count: infinite;
} }
} }
&--success { &--success {
&::before { &::before {
color: $success; color: $success;
} }
} }
&--danger { &--danger {
&::before { &::before {
color: $danger; color: $danger;
} }
} }
&--warning { &--warning {
&::before { &::before {
color: $warning; color: $warning;
} }
} }
&--primary { &--primary {
&::before { &::before {
color: $primary; color: $primary;
} }
} }
} }
.#{$ns}Status-icon--rolling + &-label { .#{$ns}Status-icon--rolling + &-label {
color: $warning; color: $warning;
position: relative; position: relative;
@ -111,5 +124,4 @@
.#{$ns}Status-icon--primary + &-label { .#{$ns}Status-icon--primary + &-label {
color: $primary; color: $primary;
} }
} }

View File

@ -60,7 +60,8 @@
&-heading { &-heading {
background: $Table-heading-bg; background: $Table-heading-bg;
border-bottom: $Table-borderWidth solid $Table-borderColor; border-bottom: $Table-borderWidth solid $Table-borderColor;
padding: ($Table-heading-height - $Table-fontSize * $lineHeightBase) / 2 $Table-toolbar-paddingX; padding: ($Table-heading-height - $Table-fontSize * $lineHeightBase) / 2
$Table-toolbar-paddingX;
} }
&--unsaved &-heading { &--unsaved &-heading {
@ -130,10 +131,8 @@
} }
} }
&-content { &-content {
min-height: .01%; min-height: 0.01%;
overflow-x: auto; overflow-x: auto;
} }
@ -147,6 +146,7 @@
> thead > tr { > thead > tr {
background-color: $Table-thead-bg; background-color: $Table-thead-bg;
> th { > th {
padding: $TableCell-paddingY $TableCell-paddingX; padding: $TableCell-paddingY $TableCell-paddingX;
@ -159,8 +159,10 @@
} }
&:not(:last-child) { &:not(:last-child) {
border-right: $Table-thead-borderWidth solid $Table-thead-borderColor; border-right: $Table-thead-borderWidth solid
$Table-thead-borderColor;
} }
font-size: $Table-thead-fontSize; font-size: $Table-thead-fontSize;
color: $Table-thead-color; color: $Table-thead-color;
font-weight: $fontWeightNormal; font-weight: $fontWeightNormal;
@ -190,6 +192,7 @@
@if $Table-strip-bg !=transparent { @if $Table-strip-bg !=transparent {
background-color: transparent; background-color: transparent;
&.#{$ns}Table-tr--odd { &.#{$ns}Table-tr--odd {
background-color: $Table-strip-bg; background-color: $Table-strip-bg;
} }
@ -260,8 +263,10 @@
position: relative; position: relative;
right: -20px * ($i - 1); right: -20px * ($i - 1);
} }
.#{$ns}Table-expandCell + td { .#{$ns}Table-expandCell + td {
> div, > span { > div,
> span {
margin-left: 20px * ($i - 1); margin-left: 20px * ($i - 1);
} }
} }
@ -272,6 +277,7 @@
> tbody > tr > td.#{$ns}Table-checkCell { > tbody > tr > td.#{$ns}Table-checkCell {
border-right: 0; border-right: 0;
width: px2rem(1px); width: px2rem(1px);
.#{$ns}Checkbox { .#{$ns}Checkbox {
margin: 0; margin: 0;
} }
@ -466,7 +472,12 @@
pointer-events: all; pointer-events: all;
position: absolute; position: absolute;
// background: $Table-onHover-bg; // background: $Table-onHover-bg;
background: linear-gradient(90deg, rgba($Table-onHover-bg, 0) 0%, rgba($Table-onHover-bg,1) 20%, rgba($Table-onHover-bg,1) 100%); background: linear-gradient(
90deg,
rgba($Table-onHover-bg, 0) 0%,
rgba($Table-onHover-bg, 1) 20%,
rgba($Table-onHover-bg, 1) 100%
);
top: $Table-borderWidth; top: $Table-borderWidth;
bottom: 0; bottom: 0;
right: 0; right: 0;
@ -520,7 +531,8 @@
} }
> tbody > tr:not(:first-child) { > tbody > tr:not(:first-child) {
border-top: $Table-borderWidth solid lighten($Table-thead-borderColor, 2.5%); border-top: $Table-borderWidth solid
lighten($Table-thead-borderColor, 2.5%);
} }
} }
} }

View File

@ -1,9 +1,11 @@
.#{$ns}Tabs { .#{$ns}Tabs {
&-links { &-links {
border-bottom: $Tabs-borderWidth solid $Tabs-borderColor; border-bottom: $Tabs-borderWidth solid $Tabs-borderColor;
> .#{$ns}Tabs-link { > .#{$ns}Tabs-link {
margin-bottom: -$Tabs-borderWidth; margin-bottom: -$Tabs-borderWidth;
display: inline-block; display: inline-block;
> a { > a {
font-size: $Tabs-linkFontSize; font-size: $Tabs-linkFontSize;
outline: none; outline: none;
@ -16,11 +18,13 @@
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
} }
&:hover > a, &:hover > a,
> a:focus { > a:focus {
border-color: $Tabs-onHover-borderColor; border-color: $Tabs-onHover-borderColor;
text-decoration: none; text-decoration: none;
} }
&.disabled > a, &.disabled > a,
&.is-disabled > a { &.is-disabled > a {
color: $Tabs-onDisabled-color; color: $Tabs-onDisabled-color;
@ -28,6 +32,7 @@
border-color: transparent; border-color: transparent;
pointer-events: none; pointer-events: none;
} }
&.active > a, &.active > a,
&.is-active > a { &.is-active > a {
color: $Tabs-onActive-color; color: $Tabs-onActive-color;
@ -37,6 +42,7 @@
} }
} }
} }
&-content { &-content {
background-color: $Tabs-content-bg; background-color: $Tabs-content-bg;
padding: $gap-base; padding: $gap-base;
@ -44,9 +50,11 @@
border-width: 0 $Tabs-borderWidth $Tabs-borderWidth; border-width: 0 $Tabs-borderWidth $Tabs-borderWidth;
border-color: $Tabs-borderColor; border-color: $Tabs-borderColor;
} }
&--line { &--line {
> .#{$ns}Tabs-links { > .#{$ns}Tabs-links {
border-bottom-color: #e2e5ec; border-bottom-color: #e2e5ec;
> li { > li {
&.active { &.active {
> a, > a,
@ -55,9 +63,11 @@
border-bottom: px2rem(2px) solid $primary; border-bottom: px2rem(2px) solid $primary;
color: $primary; color: $primary;
background-color: transparent; background-color: transparent;
border-color: transparent transparent $primary transparent; border-color: transparent transparent $primary
transparent;
} }
} }
> a, > a,
> a:hover, > a:hover,
> a:focus { > a:focus {
@ -68,10 +78,12 @@
} }
} }
} }
&--card { &--card {
> .#{$ns}Tabs-links { > .#{$ns}Tabs-links {
background-color: #eceff8; background-color: #eceff8;
border-top: px2rem(1px) solid #e2e5ec; border-top: px2rem(1px) solid #e2e5ec;
> li { > li {
&.active { &.active {
> a, > a,
@ -82,6 +94,7 @@
margin-left: px2rem(1px); margin-left: px2rem(1px);
} }
} }
> a, > a,
> a:hover, > a:hover,
> a:focus { > a:focus {
@ -91,10 +104,12 @@
} }
} }
} }
&--radio { &--radio {
> .#{$ns}Tabs-links { > .#{$ns}Tabs-links {
border: 0; border: 0;
margin-bottom: px2rem(10px); margin-bottom: px2rem(10px);
> li { > li {
> a { > a {
font-size: $fontSizeSm; font-size: $fontSizeSm;
@ -104,6 +119,7 @@
height: px2rem(30px); height: px2rem(30px);
line-height: px2rem(30px); line-height: px2rem(30px);
} }
&.active { &.active {
> a, > a,
> a:hover, > a:hover,
@ -113,6 +129,7 @@
margin-left: px2rem(1px); margin-left: px2rem(1px);
} }
} }
> a, > a,
> a:hover, > a:hover,
> a:focus { > a:focus {
@ -121,6 +138,7 @@
} }
} }
} }
.tab-content { .tab-content {
border-top: $Tabs-borderWidth solid $Tabs-borderColor; border-top: $Tabs-borderWidth solid $Tabs-borderColor;
} }

View File

@ -7,23 +7,29 @@
to { to {
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
} }
0% { 0% {
opacity: 0; opacity: 0;
transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3);
} }
20% { 20% {
transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1);
} }
40% { 40% {
transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9);
} }
60% { 60% {
opacity: 1; opacity: 1;
transform: scale3d(1.03, 1.03, 1.03); transform: scale3d(1.03, 1.03, 1.03);
} }
80% { 80% {
transform: scale3d(0.97, 0.97, 0.97); transform: scale3d(0.97, 0.97, 0.97);
} }
to { to {
opacity: 1; opacity: 1;
transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1);
@ -34,11 +40,13 @@
20% { 20% {
transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9);
} }
50%, 50%,
55% { 55% {
opacity: 1; opacity: 1;
transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1);
} }
to { to {
opacity: 0; opacity: 0;
transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3);
@ -55,7 +63,8 @@
width: $Toast-width; width: $Toast-width;
pointer-events: auto; pointer-events: auto;
margin-bottom: $gap-xs; margin-bottom: $gap-xs;
padding: $Toast-paddingY $Toast-paddingX $Toast-paddingY ($Toast-paddingX + $Toast-paddingL); padding: $Toast-paddingY $Toast-paddingX $Toast-paddingY
($Toast-paddingX + $Toast-paddingL);
box-shadow: $Toast-box-shadow; box-shadow: $Toast-box-shadow;
border-radius: $Toast-borderRadius; border-radius: $Toast-borderRadius;
border: $Toast-border-width solid; border: $Toast-border-width solid;
@ -86,9 +95,11 @@
display: $Toast-display; display: $Toast-display;
font-size: $fontSizeMd; font-size: $fontSizeMd;
} }
&-body { &-body {
display: $Toast-display; display: $Toast-display;
} }
&::before { &::before {
display: inline-block; display: inline-block;
font-family: $Toast-iconVendor; font-family: $Toast-iconVendor;
@ -105,6 +116,7 @@
color: $Toast--danger-color; color: $Toast--danger-color;
border-color: $Toast--danger-borderColor; border-color: $Toast--danger-borderColor;
background-color: $Toast--danger-bgColor; background-color: $Toast--danger-bgColor;
&::before { &::before {
content: $Toast--error-icon; content: $Toast--error-icon;
} }
@ -114,6 +126,7 @@
color: $Toast--warning-color; color: $Toast--warning-color;
border-color: $Toast--warning-borderColor; border-color: $Toast--warning-borderColor;
background-color: $Toast--warning-bgColor; background-color: $Toast--warning-bgColor;
&::before { &::before {
content: $Toast--warning-icon; content: $Toast--warning-icon;
} }
@ -123,7 +136,9 @@
color: $Toast--info-color; color: $Toast--info-color;
border-color: $Toast--info-borderColor; border-color: $Toast--info-borderColor;
background-color: $Toast--info-bgColor; background-color: $Toast--info-bgColor;
padding: $Toast-paddingY $Toast-paddingX $Toast-paddingY ($Toast-paddingX + $Toast--info-paddingL); padding: $Toast-paddingY $Toast-paddingX $Toast-paddingY
($Toast-paddingX + $Toast--info-paddingL);
&::before { &::before {
content: $Toast--info-icon; content: $Toast--info-icon;
} }
@ -133,6 +148,7 @@
color: $Toast--success-color; color: $Toast--success-color;
border-color: $Toast--success-borderColor; border-color: $Toast--success-borderColor;
background-color: $Toast--success-bgColor; background-color: $Toast--success-bgColor;
&::before { &::before {
content: $Toast--success-icon; content: $Toast--success-icon;
} }

View File

@ -68,7 +68,8 @@
.#{$ns}Tooltip-arrow::before, .#{$ns}Tooltip-arrow::before,
.#{$ns}Tooltip-arrow::after { .#{$ns}Tooltip-arrow::after {
border-width: ($Tooltip-arrow-width / 2) $Tooltip-arrow-height ($Tooltip-arrow-width / 2) 0; border-width: ($Tooltip-arrow-width / 2) $Tooltip-arrow-height
($Tooltip-arrow-width / 2) 0;
} }
.#{$ns}Tooltip-arrow::before { .#{$ns}Tooltip-arrow::before {
@ -91,7 +92,8 @@
.#{$ns}Tooltip-arrow::before, .#{$ns}Tooltip-arrow::before,
.#{$ns}Tooltip-arrow::after { .#{$ns}Tooltip-arrow::after {
border-width: 0 ($Tooltip-arrow-width / 2) $Tooltip-arrow-height ($Tooltip-arrow-width / 2); border-width: 0 ($Tooltip-arrow-width / 2) $Tooltip-arrow-height
($Tooltip-arrow-width / 2);
} }
.#{$ns}Tooltip-arrow::before { .#{$ns}Tooltip-arrow::before {
@ -131,7 +133,8 @@
.#{$ns}Tooltip-arrow::before, .#{$ns}Tooltip-arrow::before,
.#{$ns}Tooltip-arrow::after { .#{$ns}Tooltip-arrow::after {
border-width: ($Tooltip-arrow-width / 2) 0 ($Tooltip-arrow-width / 2) $Tooltip-arrow-height; border-width: ($Tooltip-arrow-width / 2) 0
($Tooltip-arrow-width / 2) $Tooltip-arrow-height;
} }
.#{$ns}Tooltip-arrow::before { .#{$ns}Tooltip-arrow::before {
@ -166,9 +169,9 @@
} }
} }
[data-tooltip] { [data-tooltip] {
position: relative; position: relative;
&:after { &:after {
pointer-events: none; pointer-events: none;
left: 0; left: 0;
@ -203,12 +206,13 @@
top: 100%; top: 100%;
transform: translateX(-50%); transform: translateX(-50%);
} }
&[data-position="bottom"]:hover:after { &[data-position="bottom"]:hover:after {
margin: $Tooltip--attr-gap 0 0 0; margin: $Tooltip--attr-gap 0 0 0;
} }
&:hover:active:after { &:hover:active:after {
content: ''; content: "";
display: none !important; display: none !important;
} }
} }

View File

@ -1,15 +1,18 @@
.#{$ns}Video { .#{$ns}Video {
min-width: 200px; min-width: 200px;
&-cursor { &-cursor {
position: absolute; position: absolute;
border: 2px solid $info; border: 2px solid $info;
transition: all 0.5s ease-out; transition: all 0.5s ease-out;
} }
&-frameList { &-frameList {
.#{$ns}Video-frameItem { .#{$ns}Video-frameItem {
cursor: pointer; cursor: pointer;
} }
} }
.video-react-paused .video-react-big-play-button.big-play-button-hide { .video-react-paused .video-react-big-play-button.big-play-button-hide {
display: block; display: block;
} }

View File

@ -2,9 +2,11 @@
@include clearfix(); @include clearfix();
position: relative; position: relative;
&, &,
&-tabs { &-tabs {
padding: 0; padding: 0;
.Badge { .Badge {
display: inline-block; // min-width: px2rem(10px); display: inline-block; // min-width: px2rem(10px);
// padding: px2rem(3px) px2rem(7px); // padding: px2rem(3px) px2rem(7px);
@ -18,44 +20,56 @@
vertical-align: middle; vertical-align: middle;
background-color: $Wizard-badge-bg; background-color: $Wizard-badge-bg;
border-radius: $Wizard-badge-borderRadius; // font-weight: 700; border-radius: $Wizard-badge-borderRadius; // font-weight: 700;
text-shadow: 0 px2rem(1px) 0 rgba(0, 0, 0, .2); text-shadow: 0 px2rem(1px) 0 rgba(0, 0, 0, 0.2);
margin-right: $Wizard-badge-marginRight; margin-right: $Wizard-badge-marginRight;
&--primary { &--primary {
background-color: $primary; background-color: $primary;
} }
&--secondary { &--secondary {
background-color: $secondary; background-color: $secondary;
} }
&--success { &--success {
background-color: $success; background-color: $success;
} }
&--info { &--info {
background-color: $info; background-color: $info;
} }
&--warning { &--warning {
background-color: $warning; background-color: $warning;
} }
&--danger { &--danger {
background-color: $danger; background-color: $danger;
} }
&--light { &--light {
background-color: $light; background-color: $light;
} }
&--dark { &--dark {
background-color: $dark; background-color: $dark;
} }
} }
ul li.active { ul li.active {
color: $info; color: $info;
} }
.#{$ns}Panel-footer > .#{$ns}Form-group, .#{$ns}Panel-footer > .#{$ns}Form-group,
.#{$ns}Panel-footer > .btn { .#{$ns}Panel-footer > .btn {
margin-left: px2rem(5px); margin-left: px2rem(5px);
} }
> ul.nav { > ul.nav {
padding: 0; padding: 0;
margin: 0; margin: 0;
border: $borderWidth solid $borderColor; border: $borderWidth solid $borderColor;
li { li {
position: relative; position: relative;
float: left; float: left;
@ -65,20 +79,24 @@
cursor: pointer; cursor: pointer;
height: $Wizard-steps-height; height: $Wizard-steps-height;
line-height: $Wizard-steps-height; line-height: $Wizard-steps-height;
a { a {
border: 0 none !important; border: 0 none !important;
background: transparent !important; background: transparent !important;
color: inherit; color: inherit;
display: inline; display: inline;
padding: 0; padding: 0;
div { div {
display: inline; display: inline;
} }
} }
&:first-child { &:first-child {
padding-left: px2rem(15px); padding-left: px2rem(15px);
border-radius: px2rem(4px) 0 0 0; border-radius: px2rem(4px) 0 0 0;
} }
&:before, &:before,
&:after { &:after {
content: ""; content: "";
@ -91,23 +109,29 @@
z-index: 1; z-index: 1;
bottom: 0; bottom: 0;
} }
&:after { &:after {
right: px2rem(-9px); right: px2rem(-9px);
border-left-color: $Wizard-steps-bg; border-left-color: $Wizard-steps-bg;
z-index: 2; z-index: 2;
} }
&.is-active { &.is-active {
color: #3a87ad; color: #3a87ad;
background: #fff; background: #fff;
} }
&.is-active:after { &.is-active:after {
border-left-color: #fff; border-left-color: #fff;
} }
} // .Badge { }
// .Badge {
// margin-right: px2rem(4px); // margin-right: px2rem(4px);
// } // }
} }
} }
&-steps { &-steps {
font-size: $fontSizeBase; font-size: $fontSizeBase;
padding: $Wizard-steps-padding; padding: $Wizard-steps-padding;
@ -115,11 +139,13 @@
border-bottom: $Wizard-steps-borderWidth solid $borderColor; border-bottom: $Wizard-steps-borderWidth solid $borderColor;
text-align: $Wizard-steps-textAlign; text-align: $Wizard-steps-textAlign;
height: $Wizard-steps-height; height: $Wizard-steps-height;
ul { ul {
display: $Wizard-steps-ulDisplay; display: $Wizard-steps-ulDisplay;
padding: 0; padding: 0;
margin: 0; margin: 0;
list-style: none outside none; list-style: none outside none;
li { li {
position: relative; position: relative;
float: left; float: left;
@ -129,10 +155,12 @@
cursor: default; cursor: default;
height: $Wizard-steps-height; height: $Wizard-steps-height;
line-height: $Wizard-steps-height; line-height: $Wizard-steps-height;
&:first-child { &:first-child {
padding-left: px2rem(15px); padding-left: px2rem(15px);
border-radius: px2rem(4px) 0 0 0; border-radius: px2rem(4px) 0 0 0;
} }
&:before, &:before,
&:after { &:after {
font-family: $Wizard-steps-liVender; font-family: $Wizard-steps-liVender;
@ -146,55 +174,70 @@
border-left-color: rgba(0, 0, 0, 0.05); border-left-color: rgba(0, 0, 0, 0.05);
z-index: 2; z-index: 2;
} }
&:after { &:after {
right: px2rem(-9px); right: px2rem(-9px);
border-left-color: $Wizard-steps-bg; border-left-color: $Wizard-steps-bg;
z-index: 2; z-index: 2;
} }
&.is-active { &.is-active {
color: #3a87ad; color: #3a87ad;
background: #fff; background: #fff;
} }
&.is-active:after { &.is-active:after {
border-left-color: #fff; border-left-color: #fff;
} }
&.is-complete, &.is-complete,
&.is-complete:hover { &.is-complete:hover {
cursor: pointer; cursor: pointer;
background: $Wizard-steps-bg--isComplete; background: $Wizard-steps-bg--isComplete;
} }
&.is-complete:after { &.is-complete:after {
border-left-color: #f1f5f9; border-left-color: #f1f5f9;
} }
} // .Badge { }
// .Badge {
// margin-right: px2rem(4px); // margin-right: px2rem(4px);
// } // }
} }
} }
&-stepContent { &-stepContent {
padding: $Wizard-stepsContent-padding; padding: $Wizard-stepsContent-padding;
& .Step-pane { & .Step-pane {
display: none; display: none;
&.is-active { &.is-active {
display: inherit; display: inherit;
} }
} }
} }
&--vertical { &--vertical {
float: left; float: left;
border-bottom: none; border-bottom: none;
margin-bottom: px2rem(30px); // padding: 0; margin-bottom: px2rem(30px); // padding: 0;
&.#{$ns}Wizard-steps { &.#{$ns}Wizard-steps {
height: auto; height: auto;
} }
& + .#{$ns}Wizard-stepContent { & + .#{$ns}Wizard-stepContent {
zoom: 1; zoom: 1;
overflow: hidden; overflow: hidden;
padding-left: px2rem(40px); padding-left: px2rem(40px);
} }
& li { & li {
background-color: $Wizard-steps-bg; background-color: $Wizard-steps-bg;
} }
& ul li { & ul li {
height: px2rem(40px); height: px2rem(40px);
line-height: px2rem(40px); line-height: px2rem(40px);
@ -207,6 +250,7 @@
// content: ''; // content: '';
// } // }
} }
& + .#{$ns}Wizard-stepContent + .#{$ns}Panel-footer { & + .#{$ns}Wizard-stepContent + .#{$ns}Panel-footer {
clear: both; clear: both;
} }

View File

@ -1,4 +1,3 @@
.#{$ns}Checkbox { .#{$ns}Checkbox {
margin: 0 $gap-sm 0 0; margin: 0 $gap-sm 0 0;
cursor: pointer; cursor: pointer;
@ -52,8 +51,10 @@
border-color: $Checkbox-onHover-color; border-color: $Checkbox-onHover-color;
&:before { &:before {
left: ($Checkbox-size - px2rem(2px) - $Checkbox-inner-size) / 2; left: ($Checkbox-size - px2rem(2px) - $Checkbox-inner-size) /
top: ($Checkbox-size - px2rem(2px) - $Checkbox-inner-size) / 2; 2;
top: ($Checkbox-size - px2rem(2px) - $Checkbox-inner-size) /
2;
width: $Checkbox-inner-size; width: $Checkbox-inner-size;
height: $Checkbox-inner-size; height: $Checkbox-inner-size;
background-color: $Checkbox-onHover-color; background-color: $Checkbox-onHover-color;
@ -90,7 +91,7 @@
&:before { &:before {
// todo 后面自动计算 // todo 后面自动计算
@if $ns == 'cxd-' { @if $ns== "cxd-" {
top: px2rem(2px); top: px2rem(2px);
left: px2rem(1px); left: px2rem(1px);
} @else { } @else {
@ -146,7 +147,6 @@
&:checked + i { &:checked + i {
border-color: $Radio-onHover-color; border-color: $Radio-onHover-color;
&:before { &:before {
left: ($Radio-size - px2rem(2px) - $Radio-inner-size) / 2; left: ($Radio-size - px2rem(2px) - $Radio-inner-size) / 2;
top: ($Radio-size - px2rem(2px) - $Radio-inner-size) / 2; top: ($Radio-size - px2rem(2px) - $Radio-inner-size) / 2;
@ -189,6 +189,7 @@
} }
} }
} }
> i { > i {
width: $Checkbox--sm-size; width: $Checkbox--sm-size;
height: $Checkbox--sm-size; height: $Checkbox--sm-size;

View File

@ -1,6 +1,4 @@
.#{$ns}Combo { .#{$ns}Combo {
&-toolbarBtn { &-toolbarBtn {
line-height: $Combo-toolbarBtn-lineHeight; line-height: $Combo-toolbarBtn-lineHeight;
height: $Combo-toolbarBtn-height; height: $Combo-toolbarBtn-height;
@ -16,7 +14,14 @@
&-addBtn { &-addBtn {
font-size: $Combo-addBtn-fontSize; font-size: $Combo-addBtn-fontSize;
@include button-size($Combo-addBtn-paddingY, $Combo-addBtn-paddingX, $Combo-addBtn-fontSize, $Combo-addBtn-lineHeight, $Combo-addBtn-borderRadius, $Combo-addBtn-height); @include button-size(
$Combo-addBtn-paddingY,
$Combo-addBtn-paddingX,
$Combo-addBtn-fontSize,
$Combo-addBtn-lineHeight,
$Combo-addBtn-borderRadius,
$Combo-addBtn-height
);
@include button-variant( @include button-variant(
$Combo-addBtn-bg, $Combo-addBtn-bg,
@ -79,14 +84,18 @@
&--ver:not(&--noBorder) { &--ver:not(&--noBorder) {
> .#{$ns}Combo-items { > .#{$ns}Combo-items {
margin: (-$Combo--vertical-item-gap*2) (-$Combo--vertical-item-gap*2) 0 (-$Combo--vertical-item-gap*2); margin: (-$Combo--vertical-item-gap * 2)
(-$Combo--vertical-item-gap * 2) 0
(-$Combo--vertical-item-gap * 2);
} }
// 不严格点会命中 combo 里面嵌套 combo 的情况so sad. // 不严格点会命中 combo 里面嵌套 combo 的情况so sad.
> .#{$ns}Combo-item, > .#{$ns}Combo-item,
> .#{$ns}Combo-items > .#{$ns}Combo-item { > .#{$ns}Combo-items > .#{$ns}Combo-item {
border: $Combo--vertical-item-borderWidth dashed $Combo--vertical-item-borderColor; border: $Combo--vertical-item-borderWidth dashed
padding: $Combo--vertical-item-paddingY $Combo--vertical-item-paddingX; $Combo--vertical-item-borderColor;
padding: $Combo--vertical-item-paddingY
$Combo--vertical-item-paddingX;
position: relative; position: relative;
} }
@ -110,7 +119,9 @@
padding: 0 px2rem(3px); padding: 0 px2rem(3px);
border-style: solid; border-style: solid;
border-color: $Combo--vertical-itemToolbar-borderColor; border-color: $Combo--vertical-itemToolbar-borderColor;
border-width: $Combo--vertical-itemToolbar-borderWidth $Combo--vertical-itemToolbar-borderWidth 0 $Combo--vertical-itemToolbar-borderWidth; border-width: $Combo--vertical-itemToolbar-borderWidth
$Combo--vertical-itemToolbar-borderWidth 0
$Combo--vertical-itemToolbar-borderWidth;
// margin-top: px2rem(-1px); // margin-top: px2rem(-1px);
.#{$ns}Combo-toolbarBtn { .#{$ns}Combo-toolbarBtn {
@ -135,15 +146,15 @@
> .#{$ns}Combo-itemToolbar { > .#{$ns}Combo-itemToolbar {
top: $Combo--vertical-itemToolbar-positionTop; top: $Combo--vertical-itemToolbar-positionTop;
opacity: 1; opacity: 1;
} }
} }
} }
&-item--dragging { &-item--dragging {
position: relative; position: relative;
&:after { &:after {
content: ''; content: "";
display: block; display: block;
position: absolute; position: absolute;
z-index: 5; z-index: 5;
@ -175,7 +186,6 @@
} }
} }
@include media-breakpoint-up(sm) { @include media-breakpoint-up(sm) {
.#{$ns}Combo-form .#{$ns}Form-item:last-child { .#{$ns}Combo-form .#{$ns}Form-item:last-child {
margin-bottom: 0; margin-bottom: 0;

View File

@ -15,6 +15,7 @@
&:not(.is-disabled) { &:not(.is-disabled) {
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: $DatePicker-onHover-bg; background-color: $DatePicker-onHover-bg;
} }
@ -27,6 +28,7 @@
&.is-disabled { &.is-disabled {
background: $gray200; background: $gray200;
> &-input { > &-input {
color: $text--muted-color; color: $text--muted-color;
} }
@ -49,6 +51,7 @@
&-toggler { &-toggler {
cursor: pointer; cursor: pointer;
color: $DatePicker-iconColor; color: $DatePicker-iconColor;
&:hover { &:hover {
color: $DatePicker-onHover-iconColor; color: $DatePicker-onHover-iconColor;
} }

View File

@ -1,4 +1,3 @@
.#{$ns}DatePicker { .#{$ns}DatePicker {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
@ -15,6 +14,7 @@
&:not(.is-disabled) { &:not(.is-disabled) {
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: $DatePicker-onHover-bg; background-color: $DatePicker-onHover-bg;
} }
@ -27,6 +27,7 @@
&.is-disabled { &.is-disabled {
background: $gray200; background: $gray200;
> &-input { > &-input {
color: $text--muted-color; color: $text--muted-color;
} }
@ -49,6 +50,7 @@
&-toggler { &-toggler {
cursor: pointer; cursor: pointer;
color: $DatePicker-iconColor; color: $DatePicker-iconColor;
&:hover { &:hover {
color: $DatePicker-onHover-iconColor; color: $DatePicker-onHover-iconColor;
} }
@ -100,7 +102,6 @@
&:hover { &:hover {
background-color: $Calendar-cell-onHover-bg; background-color: $Calendar-cell-onHover-bg;
} }
} }
td.rdtToday:before { td.rdtToday:before {
@ -120,16 +121,18 @@
td.rdtDisabled:hover { td.rdtDisabled:hover {
background-color: $Calendar-cell-onDisabled-bg; background-color: $Calendar-cell-onDisabled-bg;
} }
} }
thead tr:first-child th { thead tr:first-child th {
cursor: default; cursor: default;
text-align: left; text-align: left;
font-weight: normal; font-weight: normal;
} }
thead tr:first-child th:hover { thead tr:first-child th:hover {
background: transparent; background: transparent;
} }
tfoot { tfoot {
border-top: 0; border-top: 0;
@ -159,7 +162,6 @@
border-color: $Calendar-input-onFocused-borderColor; border-color: $Calendar-input-onFocused-borderColor;
box-shadow: none; box-shadow: none;
} }
} }
.rdtActions { .rdtActions {
@ -204,7 +206,8 @@
pointer-events: none; pointer-events: none;
} }
.fa, .iconfont { .fa,
.iconfont {
font-size: $fontSizeSm; font-size: $fontSizeSm;
} }
@ -246,7 +249,7 @@
display: inline-block; display: inline-block;
color: inherit; color: inherit;
font-style: normal; font-style: normal;
line-height: 1.0; line-height: 1;
} }
.rdtBtnPrev:before { .rdtBtnPrev:before {
@ -284,4 +287,3 @@
} }
} }
} }

View File

@ -8,6 +8,7 @@
> .#{$ns}MonacoEditor > .monaco-diff-editor { > .#{$ns}MonacoEditor > .monaco-diff-editor {
min-height: px2rem(198px); min-height: px2rem(198px);
} }
overflow: visible; overflow: visible;
height: auto; height: auto;
border: $Form-input-borderWidth solid $Form-input-borderColor; border: $Form-input-borderWidth solid $Form-input-borderColor;
@ -24,6 +25,7 @@
&--md { &--md {
min-height: 250px; min-height: 250px;
> .#{$ns}MonacoEditor { > .#{$ns}MonacoEditor {
min-height: 250px; min-height: 250px;
} }
@ -58,7 +60,6 @@
padding: 0; padding: 0;
} }
// @media (min-width: 768px) { // @media (min-width: 768px) {
// .amis-editor-control.form-contorl-inline, // .amis-editor-control.form-contorl-inline,

View File

@ -2,7 +2,7 @@
position: relative; position: relative;
&:after { &:after {
content: ''; content: "";
pointer-events: none; pointer-events: none;
border: 1px solid lighten($borderColor, 5%); border: 1px solid lighten($borderColor, 5%);
position: absolute; position: absolute;

View File

@ -195,7 +195,6 @@
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
> .#{$ns}Form-label { > .#{$ns}Form-label {
padding-top: $Form-label-paddingTop; padding-top: $Form-label-paddingTop;
margin-bottom: 0; margin-bottom: 0;

View File

@ -81,8 +81,6 @@
} }
} }
.#{$ns}Form-groupColumn { .#{$ns}Form-groupColumn {
flex-basis: 0; flex-basis: 0;
flex-grow: 1; flex-grow: 1;

View File

@ -60,6 +60,7 @@
line-height: $IconPicker-tab-lineHeight; line-height: $IconPicker-tab-lineHeight;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
&.active { &.active {
background: $IconPicker-tab-onActive-bg; background: $IconPicker-tab-onActive-bg;
} }

View File

@ -13,10 +13,12 @@
color: $text--muted-color; color: $text--muted-color;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
> div:not(.image-list) { > div:not(.image-list) {
display: table-cell; display: table-cell;
vertical-align: middle; vertical-align: middle;
} }
&.has-files { &.has-files {
cursor: default; cursor: default;
border: 2px dashed transparent; border: 2px dashed transparent;
@ -29,8 +31,9 @@
height: 90px; height: 90px;
padding-bottom: 20px; padding-bottom: 20px;
margin-bottom: 10px; margin-bottom: 10px;
&:after { &:after {
content: '温馨提示:当前状态可以粘贴剪切板中的文件。如截屏'; content: "温馨提示:当前状态可以粘贴剪切板中的文件。如截屏";
position: absolute; position: absolute;
left: 10px; left: 10px;
bottom: 3px; bottom: 3px;
@ -57,19 +60,23 @@
.image-list { .image-list {
outline: none; outline: none;
margin: -5px; margin: -5px;
.image-item { .image-item {
position: relative; position: relative;
margin: 5px; margin: 5px;
width: 90px; width: 90px;
.img-wrapper { .img-wrapper {
width: 90px; width: 90px;
min-height: 50px; min-height: 50px;
overflow: hidden; overflow: hidden;
} }
img { img {
display: block; display: block;
width: 100%; width: 100%;
} }
.fa-spinner { .fa-spinner {
position: absolute; position: absolute;
left: 50%; left: 50%;
@ -77,6 +84,7 @@
margin: -15px 0 0 -20px; margin: -15px 0 0 -20px;
color: #fff; color: #fff;
} }
.image-overlay { .image-overlay {
background: rgba(0, 0, 0, 0.3); background: rgba(0, 0, 0, 0.3);
border-radius: 5px; border-radius: 5px;
@ -109,16 +117,19 @@
} }
} }
} }
p { p {
margin: 0; margin: 0;
text-align: center; text-align: center;
} }
} }
&.image-list-multiple .image-item .img-wrapper { &.image-list-multiple .image-item .img-wrapper {
height: 90px; height: 90px;
display: table-cell; display: table-cell;
vertical-align: middle; vertical-align: middle;
} }
.image-add-btn { .image-add-btn {
width: 90px; width: 90px;
height: 110px; height: 110px;
@ -126,17 +137,21 @@
margin: 5px; margin: 5px;
cursor: pointer; cursor: pointer;
float: left; float: left;
&:hover .fa { &:hover .fa {
color: $dark; color: $dark;
} }
} }
.image-item.uploaded { .image-item.uploaded {
.fa-spinner { .fa-spinner {
display: none; display: none;
} }
.image-overlay { .image-overlay {
display: none; display: none;
} }
&:hover { &:hover {
.image-overlay { .image-overlay {
display: flex; display: flex;
@ -147,15 +162,18 @@
.cropper-wrapper { .cropper-wrapper {
position: relative; position: relative;
img { img {
max-width: 100%; max-width: 100%;
max-height: 400px; max-height: 400px;
} }
.btn { .btn {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0; right: 0;
} }
.btn:nth-child(2n + 1) { .btn:nth-child(2n + 1) {
bottom: 40px; bottom: 40px;
right: 4px; right: 4px;

View File

@ -17,8 +17,10 @@
&-addOn { &-addOn {
background: $InputGroup-addOn-bg; background: $InputGroup-addOn-bg;
border: $InputGroup-addOn-borderWidth solid $InputGroup-addOn-borderColor; border: $InputGroup-addOn-borderWidth solid
line-height: $InputGroup-height - $InputGroup-paddingY * 2 - $InputGroup-addOn-borderWidth * 2; $InputGroup-addOn-borderColor;
line-height: $InputGroup-height - $InputGroup-paddingY * 2 -
$InputGroup-addOn-borderWidth * 2;
height: $InputGroup-height; height: $InputGroup-height;
box-sizing: border-box; box-sizing: border-box;
padding: $InputGroup-paddingY $InputGroup-paddingX; padding: $InputGroup-paddingY $InputGroup-paddingX;
@ -45,7 +47,8 @@
&-btn { &-btn {
.#{$ns}Button { .#{$ns}Button {
border-radius: 0; border-radius: 0;
border: $InputGroup-button-borderWidth solid $InputGroup-button-borderColor; border: $InputGroup-button-borderWidth solid
$InputGroup-button-borderColor;
} }
&:not(:last-child) .#{$ns}Button { &:not(:last-child) .#{$ns}Button {
@ -87,7 +90,9 @@
@if $InputGroup-select-borderWidth { @if $InputGroup-select-borderWidth {
.#{$ns}Select { .#{$ns}Select {
background-color: $InputGroup-select-bg; background-color: $InputGroup-select-bg;
border: $InputGroup-select-borderWidth solid $InputGroup-select-borderColor; border: $InputGroup-select-borderWidth
solid
$InputGroup-select-borderColor;
@if $InputGroup-select-color !=$Form-select-color { @if $InputGroup-select-color !=$Form-select-color {
color: $InputGroup-select-color; color: $InputGroup-select-color;
@ -113,7 +118,6 @@
} }
} }
&:not(:first-child) .#{$ns}Select { &:not(:first-child) .#{$ns}Select {
border-top-left-radius: 0; border-top-left-radius: 0;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
@ -132,7 +136,6 @@
} }
} }
&.is-focused { &.is-focused {
.#{$ns}InputGroup-addOn, .#{$ns}InputGroup-addOn,
.#{$ns}TextControl-input, .#{$ns}TextControl-input,
@ -153,7 +156,9 @@
} }
} }
@if $InputGroup-select-onFocused-arrowColor != $Form-select-caret-iconColor { @if $InputGroup-select-onFocused-arrowColor
!=$Form-select-caret-iconColor
{
.#{$ns}Select-arrow { .#{$ns}Select-arrow {
color: $InputGroup-select-onFocused-arrowColor; color: $InputGroup-select-onFocused-arrowColor;
} }

View File

@ -1,4 +1,3 @@
.#{$ns}ListControl { .#{$ns}ListControl {
&-items { &-items {
display: block; display: block;
@ -16,7 +15,8 @@
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
margin: $ListControl-gutterWidth/2; margin: $ListControl-gutterWidth/2;
border: $ListControl-item-borderWidth solid $ListControl-item-borderColor; border: $ListControl-item-borderWidth solid
$ListControl-item-borderColor;
background-color: $ListControl-item-bg; background-color: $ListControl-item-bg;
padding: $ListControl-item-paddingY $ListControl-item-paddingX; padding: $ListControl-item-paddingY $ListControl-item-paddingX;
color: $ListControl-item-color; color: $ListControl-item-color;
@ -27,7 +27,11 @@
cursor: pointer; cursor: pointer;
} }
.b-t, .b-l, .b-r, .b-b, .b-a { .b-t,
.b-l,
.b-r,
.b-b,
.b-a {
border-color: $ListControl-item-color; border-color: $ListControl-item-color;
} }
@ -36,7 +40,11 @@
border-color: $ListControl-item-onHover-borderColor; border-color: $ListControl-item-onHover-borderColor;
color: $ListControl-item-onHover-color; color: $ListControl-item-onHover-color;
.b-t, .b-l, .b-r, .b-b, .b-a { .b-t,
.b-l,
.b-r,
.b-b,
.b-a {
border-color: $ListControl-item-onHover-borderColor; border-color: $ListControl-item-onHover-borderColor;
} }
} }
@ -53,7 +61,11 @@
color: $ListControl-item-onDisabled-color; color: $ListControl-item-onDisabled-color;
} }
.b-t, .b-l, .b-r, .b-b, .b-a { .b-t,
.b-l,
.b-r,
.b-b,
.b-a {
border-color: $ListControl-item-onDisabled-borderColor; border-color: $ListControl-item-onDisabled-borderColor;
} }
} }
@ -70,12 +82,16 @@
} }
} }
.b-t, .b-l, .b-r, .b-b, .b-a { .b-t,
.b-l,
.b-r,
.b-b,
.b-a {
border-color: $ListControl-item-onActive-color; border-color: $ListControl-item-onActive-color;
} }
&:before { &:before {
content: ''; content: "";
position: absolute; position: absolute;
width: px2rem(14px); width: px2rem(14px);
height: px2rem(14px); height: px2rem(14px);
@ -85,7 +101,7 @@
} }
&:after { &:after {
content: ''; content: "";
position: absolute; position: absolute;
width: px2rem(10px); width: px2rem(10px);
height: px2rem(5px); height: px2rem(5px);
@ -101,6 +117,7 @@
&-itemImage { &-itemImage {
margin: $ListControl-item-paddingY * -1 $ListControl-item-paddingX * -1; margin: $ListControl-item-paddingY * -1 $ListControl-item-paddingX * -1;
img { img {
display: block; display: block;
max-width: 100%; max-width: 100%;
@ -115,7 +132,6 @@
margin-top: $ListControl-item-paddingY; margin-top: $ListControl-item-paddingY;
} }
&-placeholder { &-placeholder {
color: $Form-input-placeholderColor; color: $Form-input-placeholderColor;
} }

View File

@ -7,7 +7,10 @@
background: $Form-select-bg; background: $Form-select-bg;
border-radius: $Form-select-borderRadius; border-radius: $Form-select-borderRadius;
height: $Form-selectOption-height; height: $Form-selectOption-height;
$paddingY: ($Form-selectOption-height - $Form-input-lineHeight * $Form-input-fontSize - $Form-select-borderWidth*2)/2; $paddingY: (
$Form-selectOption-height - $Form-input-lineHeight *
$Form-input-fontSize - $Form-select-borderWidth * 2
)/2;
padding: $paddingY 0 $paddingY $Form-select-paddingX; padding: $paddingY 0 $paddingY $Form-select-paddingX;
cursor: pointer; cursor: pointer;
color: $Form-select-color; color: $Form-select-color;
@ -74,7 +77,7 @@
line-height: $Form-input-height; line-height: $Form-input-height;
cursor: pointer; cursor: pointer;
float: right; float: right;
text-align: center text-align: center;
} }
&-menuOuter, &-menuOuter,
@ -83,7 +86,8 @@
position: absolute; position: absolute;
background: $Form-select-menu-bg; background: $Form-select-menu-bg;
color: $Form-select-menu-color; color: $Form-select-menu-color;
border: $Form-select-outer-borderWidth solid $Form-input-onFocused-borderColor; border: $Form-select-outer-borderWidth solid
$Form-input-onFocused-borderColor;
z-index: 10; z-index: 10;
box-shadow: $Form-select-outer-boxShadow; box-shadow: $Form-select-outer-boxShadow;
@ -115,9 +119,7 @@
&.checkall { &.checkall {
border-bottom: px2rem(1px) solid #eceff8; border-bottom: px2rem(1px) solid #eceff8;
} }
} }
} }
&-childrenOuter { &-childrenOuter {
@ -131,7 +133,7 @@
} }
&-optionArrowRight:before { &-optionArrowRight:before {
content: '\e63b'; content: "\e63b";
font-family: "iconfont" !important; font-family: "iconfont" !important;
} }
} }

View File

@ -20,6 +20,7 @@
overflow: hidden; overflow: hidden;
display: block; display: block;
touch-action: none; touch-action: none;
&-active { &-active {
background: #ddd; background: #ddd;
} }
@ -33,6 +34,7 @@
&:hover { &:hover {
border-color: $Form-input-onFocused-borderColor; border-color: $Form-input-onFocused-borderColor;
.#{$ns}Number-handler-up, .#{$ns}Number-handler-up,
.#{$ns}Number-handler-wrap { .#{$ns}Number-handler-wrap {
border-color: $Form-input-onFocused-borderColor; border-color: $Form-input-onFocused-borderColor;
@ -41,6 +43,7 @@
&-disabled:hover { &-disabled:hover {
border-color: $Form-input-borderColor; border-color: $Form-input-borderColor;
.#{$ns}Number-handler-up, .#{$ns}Number-handler-up,
.#{$ns}Number-handler-wrap { .#{$ns}Number-handler-wrap {
border-color: $Form-input-borderColor; border-color: $Form-input-borderColor;
@ -139,8 +142,6 @@
} }
} }
&-handler-down-disabled, &-handler-down-disabled,
&-handler-up-disabled { &-handler-up-disabled {
background-color: $Number-handler-onDisabled-bg; background-color: $Number-handler-onDisabled-bg;
@ -154,8 +155,10 @@
cursor: not-allowed; cursor: not-allowed;
background-color: $gray200; background-color: $gray200;
} }
.#{$ns}Number-handler { .#{$ns}Number-handler {
opacity: 0.72; opacity: 0.72;
&:hover { &:hover {
color: $text--muted-color; color: $text--muted-color;
border-color: $Form-input-borderColor; border-color: $Form-input-borderColor;

View File

@ -1,9 +1,11 @@
.#{$ns}Picker { .#{$ns}Picker {
&-values { &-values {
display: inline-block; display: inline-block;
margin-top: -$gap-xs; margin-top: -$gap-xs;
padding: ($Form-input-height - $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px))/2 0; padding: (
$Form-input-height - $Form-input-lineHeight *
$Form-input-fontSize - px2rem(2px)
)/2 0;
} }
&-value { &-value {

View File

@ -2,17 +2,19 @@
position: relative; position: relative;
@include clearfix(); @include clearfix();
padding-top: 1.0rem; padding-top: 1rem;
padding-bottom: 1.1rem; padding-bottom: 1.1rem;
&--withInput { &--withInput {
.#{$ns}InputRange { .#{$ns}InputRange {
width: calc(100% - 120px); width: calc(100% - 120px);
} }
.#{$ns}InputRange-label--mid { .#{$ns}InputRange-label--mid {
left: calc(50% - 60px); left: calc(50% - 60px);
} }
} }
.#{$ns}InputRange { .#{$ns}InputRange {
&-input { &-input {
font-size: $fontSizeSm; font-size: $fontSizeSm;
@ -21,30 +23,35 @@
right: px2rem(26px); right: px2rem(26px);
top: px2rem(12px); top: px2rem(12px);
height: px2rem(30px); height: px2rem(30px);
input { input {
padding: px2rem(10px); padding: px2rem(10px);
width: 100%; width: 100%;
height: 100%; height: 100%;
&:focus { &:focus {
outline: none; outline: none;
border: $borderWidth solid $info; border: $borderWidth solid $info;
} }
} }
} }
&-unit { &-unit {
position: absolute; position: absolute;
right: px2rem(10px); right: px2rem(10px);
top: px2rem(7px); top: px2rem(7px);
} }
&-clear { &-clear {
position: absolute; position: absolute;
top: px2rem(18px); top: px2rem(18px);
right: 0; right: 0;
cursor: pointer; cursor: pointer;
svg { svg {
height: px2rem(16px); height: px2rem(16px);
width: px2rem(16px); width: px2rem(16px);
fill: #999 fill: #999;
} }
} }
} }
@ -66,7 +73,8 @@
width: $InputRange-slider-width; width: $InputRange-slider-width;
height: $InputRange-slider-height; height: $InputRange-slider-height;
margin-left: $InputRange-slider-width / -2; margin-left: $InputRange-slider-width / -2;
margin-top: $InputRange-slider-height / -2 + $InputRange-track-height / -2; margin-top: $InputRange-slider-height / -2 + $InputRange-track-height /
-2;
outline: none; outline: none;
position: absolute; position: absolute;
z-index: 2; z-index: 2;
@ -78,7 +86,7 @@
} }
&:focus { &:focus {
box-shadow: $InputRange-slider-onFocus-boxShadow box-shadow: $InputRange-slider-onFocus-boxShadow;
} }
.input-range--disabled & { .input-range--disabled & {
@ -87,6 +95,7 @@
box-shadow: none; box-shadow: none;
transform: none; transform: none;
} }
&:before { &:before {
content: "||"; content: "||";
color: #fff; color: #fff;
@ -154,6 +163,7 @@
height: $InputRange-track-height; height: $InputRange-track-height;
position: relative; position: relative;
transition: $InputRange-track-transition; transition: $InputRange-track-transition;
.#{$ns}InputRange.is-disabled & { .#{$ns}InputRange.is-disabled & {
background: $InputRange-track-onDisabled-bg; background: $InputRange-track-onDisabled-bg;
} }
@ -168,7 +178,7 @@
&::before, &::before,
&::after { &::after {
content: ''; content: "";
width: 0.5rem; width: 0.5rem;
height: 100%; height: 100%;
position: absolute; position: absolute;
@ -189,6 +199,4 @@
&-track--active { &-track--active {
background: $InputRange-track-onActive-bg; background: $InputRange-track-onActive-bg;
} }
} }

View File

@ -3,7 +3,7 @@
overflow: hidden; overflow: hidden;
display: block; display: block;
float: left; float: left;
font-size: px2rem(24px);; font-size: px2rem(24px);
color: $dark; color: $dark;
cursor: pointer; cursor: pointer;

View File

@ -32,7 +32,6 @@
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.repeat-control.form-contorl-inline, .repeat-control.form-contorl-inline,
.form-group-inline .repeat-control { .form-group-inline .repeat-control {
display: inline-block; display: inline-block;

View File

@ -24,23 +24,33 @@
border-top: 1px solid $Form-input-borderColor; border-top: 1px solid $Form-input-borderColor;
} }
.fr-toolbar .fr-command.fr-btn, .fr-popup .fr-command.fr-btn { .fr-toolbar .fr-command.fr-btn,
.fr-popup .fr-command.fr-btn {
color: $Button--default-color; color: $Button--default-color;
} }
.fr-toolbar .fr-command.fr-btn.fr-active, .fr-popup .fr-command.fr-btn.fr-active { .fr-toolbar .fr-command.fr-btn.fr-active,
.fr-popup .fr-command.fr-btn.fr-active {
color: $info; color: $info;
} }
.fr-desktop .fr-command:hover, .fr-desktop .fr-command:focus { .fr-desktop .fr-command:hover,
.fr-desktop .fr-command:focus {
background-color: $light; background-color: $light;
} }
.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active, .fr-popup .fr-command.fr-btn.fr-dropdown.fr-active { .fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,
.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active {
background-color: $light; background-color: $light;
} }
.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active { .fr-command.fr-btn
+ .fr-dropdown-menu
.fr-dropdown-wrapper
.fr-dropdown-content
ul.fr-dropdown-list
li
a.fr-active {
background-color: $info; background-color: $info;
color: #fff; color: #fff;
} }
@ -49,7 +59,8 @@
border: $Form-input-borderWidth solid $Form-input-onFocused-borderColor; border: $Form-input-borderWidth solid $Form-input-onFocused-borderColor;
.fr-box.fr-basic.fr-top .fr-wrapper { .fr-box.fr-basic.fr-top .fr-wrapper {
border-top: $Form-input-borderWidth solid $Form-input-onFocused-borderColor; border-top: $Form-input-borderWidth solid
$Form-input-onFocused-borderColor;
} }
} }
@ -65,6 +76,7 @@
border-color: $Form-input-onDisabled-borderColor; border-color: $Form-input-onDisabled-borderColor;
pointer-events: none; pointer-events: none;
opacity: 0.6; opacity: 0.6;
.fr-box.fr-basic.fr-top .fr-wrapper { .fr-box.fr-basic.fr-top .fr-wrapper {
border-color: $Form-input-onDisabled-borderColor; border-color: $Form-input-onDisabled-borderColor;
} }

View File

@ -1,4 +1,3 @@
.#{$ns}Select { .#{$ns}Select {
display: inline-flex; display: inline-flex;
vertical-align: middle; vertical-align: middle;
@ -8,7 +7,10 @@
background: $Form-select-bg; background: $Form-select-bg;
border-radius: $Form-select-borderRadius; border-radius: $Form-select-borderRadius;
height: $Form-selectOption-height; height: $Form-selectOption-height;
$paddingY: ($Form-selectOption-height - $Form-input-lineHeight * $Form-input-fontSize - $Form-select-borderWidth*2)/2; $paddingY: (
$Form-selectOption-height - $Form-input-lineHeight *
$Form-input-fontSize - $Form-select-borderWidth * 2
)/2;
padding: $paddingY 0 $paddingY $Form-select-paddingX; padding: $paddingY 0 $paddingY $Form-select-paddingX;
cursor: pointer; cursor: pointer;
color: $Form-select-color; color: $Form-select-color;
@ -82,7 +84,8 @@
.#{$ns}Select-value { .#{$ns}Select-value {
position: static; position: static;
user-select: none; user-select: none;
line-height: $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px); line-height: $Form-input-lineHeight * $Form-input-fontSize -
px2rem(2px);
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
font-size: $Form-selectValue-fontSize; font-size: $Form-selectValue-fontSize;
@ -99,8 +102,6 @@
} }
} }
&-valueIcon { &-valueIcon {
cursor: pointer; cursor: pointer;
border-right: px2rem(1px) solid $Form-selectValue-borderColor; border-right: px2rem(1px) solid $Form-selectValue-borderColor;
@ -121,7 +122,7 @@
line-height: 1; line-height: 1;
&:before { &:before {
transition: transform .3s; transition: transform 0.3s;
content: $Form-select-caret-icon; content: $Form-select-caret-icon;
font-family: $Form-select-caret-vender; font-family: $Form-select-caret-vender;
font-size: $Form-select-caret-fontSize; font-size: $Form-select-caret-fontSize;
@ -138,7 +139,8 @@
position: absolute; position: absolute;
background: $Form-select-menu-bg; background: $Form-select-menu-bg;
color: $Form-select-menu-color; color: $Form-select-menu-color;
border: $Form-select-outer-borderWidth solid $Form-input-onFocused-borderColor; border: $Form-select-outer-borderWidth solid
$Form-input-onFocused-borderColor;
left: px2rem(-1px); left: px2rem(-1px);
right: px2rem(-1px); right: px2rem(-1px);
min-width: 100%; min-width: 100%;
@ -153,7 +155,10 @@
} }
&-option { &-option {
padding: ($Form-select-menu-height - $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px))/2 $Form-select-paddingX; padding: (
$Form-select-menu-height - $Form-input-lineHeight *
$Form-input-fontSize - px2rem(2px)
)/2 $Form-select-paddingX;
&.is-active { &.is-active {
color: $Form-select-menu-onActive-color; color: $Form-select-menu-onActive-color;
@ -217,7 +222,8 @@
margin-top: -$Form-select-borderWidth; margin-top: -$Form-select-borderWidth;
background: $Form-select-menu-bg; background: $Form-select-menu-bg;
color: $Form-select-menu-color; color: $Form-select-menu-color;
border: $Form-select-outer-borderWidth solid $Form-input-onFocused-borderColor; border: $Form-select-outer-borderWidth solid
$Form-input-onFocused-borderColor;
box-shadow: $Form-select-outer-boxShadow; box-shadow: $Form-select-outer-boxShadow;
border-top-left-radius: 0; border-top-left-radius: 0;
border-top-right-radius: 0; border-top-right-radius: 0;

View File

@ -1,9 +1,11 @@
.#{$ns}SubForm { .#{$ns}SubForm {
&-values { &-values {
display: inline-block; display: inline-block;
margin-top: -$gap-xs; margin-top: -$gap-xs;
padding: ($Form-input-height - $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px))/2 0; padding: (
$Form-input-height - $Form-input-lineHeight *
$Form-input-fontSize - px2rem(2px)
)/2 0;
} }
&-value { &-value {
@ -46,7 +48,14 @@
&-addBtn { &-addBtn {
font-size: $SubForm--addBtn-fontSize; font-size: $SubForm--addBtn-fontSize;
@include button-size($SubForm--addBtn-paddingY, $SubForm--addBtn-paddingX, $SubForm--addBtn-fontSize, $SubForm--addBtn-lineHeight, $SubForm--addBtn-borderRadius, $SubForm--addBtn-height); @include button-size(
$SubForm--addBtn-paddingY,
$SubForm--addBtn-paddingX,
$SubForm--addBtn-fontSize,
$SubForm--addBtn-lineHeight,
$SubForm--addBtn-borderRadius,
$SubForm--addBtn-height
);
@include button-variant( @include button-variant(
$SubForm--addBtn-bg, $SubForm--addBtn-bg,

View File

@ -1,4 +1,3 @@
.#{$ns}Switch { .#{$ns}Switch {
cursor: pointer; cursor: pointer;
position: relative; position: relative;
@ -16,7 +15,6 @@
background-color: $Switch-onDisabled-bgColor; background-color: $Switch-onDisabled-bgColor;
} }
i { i {
&:before { &:before {
content: "OFF"; content: "OFF";
@ -37,6 +35,7 @@
border-radius: px2rem(30px); border-radius: px2rem(30px);
transition: all 0.2s; transition: all 0.2s;
} }
&:after { &:after {
content: ""; content: "";
position: absolute; position: absolute;
@ -59,7 +58,7 @@
& + i { & + i {
&:before { &:before {
color: $Switch-onDisabled-color; color: $Switch-onDisabled-color;
background-color: $Switch-onDisabled-bgColor background-color: $Switch-onDisabled-bgColor;
} }
&:after { &:after {
@ -74,6 +73,7 @@
left: 100%; left: 100%;
border-width: 0; border-width: 0;
} }
&:after { &:after {
margin-left: $Switch-width - $Switch-height; margin-left: $Switch-width - $Switch-height;

View File

@ -1,4 +1,3 @@
.#{$ns}TagControl { .#{$ns}TagControl {
@include input-text(); @include input-text();
@ -83,7 +82,14 @@
user-select: none; user-select: none;
border: $TagControl-sugBtn-borderWidth solid transparent; border: $TagControl-sugBtn-borderWidth solid transparent;
@include button-size($TagControl-sugBtn-paddingY, $TagControl-sugBtn-paddingX, $TagControl-sugBtn-fontSize, $TagControl-sugBtn-lineHeight, $TagControl-sugBtn-borderRadius, $TagControl-sugBtn-height); @include button-size(
$TagControl-sugBtn-paddingY,
$TagControl-sugBtn-paddingX,
$TagControl-sugBtn-fontSize,
$TagControl-sugBtn-lineHeight,
$TagControl-sugBtn-borderRadius,
$TagControl-sugBtn-height
);
@include button-variant( @include button-variant(
$TagControl-sugBtn-bg, $TagControl-sugBtn-bg,

View File

@ -18,6 +18,7 @@
@mixin input-text { @mixin input-text {
position: relative; position: relative;
&.is-inline { &.is-inline {
display: inline-block; display: inline-block;
} }
@ -180,13 +181,13 @@
} }
} }
&--withAddOn > &-button { &--withAddOn > &-button {
> .#{$ns}Button { > .#{$ns}Button {
position: relative; position: relative;
border-radius: 0; border-radius: 0;
margin-left: px2rem(-1px); margin-left: px2rem(-1px);
border: $InputGroup-button-borderWidth solid $InputGroup-button-borderColor; border: $InputGroup-button-borderWidth solid
$InputGroup-button-borderColor;
} }
&:not(:last-child) .#{$ns}Button { &:not(:last-child) .#{$ns}Button {
@ -207,6 +208,7 @@
} }
} }
} }
&--withAddOn.is-focused > &-button .#{$ns}Button { &--withAddOn.is-focused > &-button .#{$ns}Button {
border-color: $Form-input-onFocused-borderColor; border-color: $Form-input-onFocused-borderColor;
} }
@ -246,7 +248,10 @@
} }
&-sugItem { &-sugItem {
padding: ($Form-selectOption-height - $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px))/2 px2rem(12px); padding: (
$Form-selectOption-height - $Form-input-lineHeight *
$Form-input-fontSize - px2rem(2px)
)/2 px2rem(12px);
svg { svg {
width: px2rem(16px); width: px2rem(16px);
@ -281,6 +286,7 @@
white-space: normal; white-space: normal;
margin-bottom: -$gap-xs; margin-bottom: -$gap-xs;
> input { > input {
margin-bottom: $gap-xs; margin-bottom: $gap-xs;
} }

View File

@ -2,7 +2,11 @@
border: 1px solid $Form-input-borderColor; border: 1px solid $Form-input-borderColor;
border-radius: $Form-input-borderRadius; border-radius: $Form-input-borderRadius;
line-height: $Form-input-lineHeight; line-height: $Form-input-lineHeight;
padding: px2rem(6px) ($Form-input-height - $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px)); padding: px2rem(6px)
(
$Form-input-height - $Form-input-lineHeight * $Form-input-fontSize -
px2rem(2px)
);
font-size: $Form-input-fontSize; font-size: $Form-input-fontSize;
outline: none; outline: none;
resize: none; resize: none;
@ -13,7 +17,8 @@
border-color: $Form-input-onError-borderColor; border-color: $Form-input-onError-borderColor;
} }
&:focus, &.is-focused { &:focus,
&.is-focused {
border-color: $Form-input-onFocused-borderColor; border-color: $Form-input-onFocused-borderColor;
box-shadow: $Form-input-boxShadow; box-shadow: $Form-input-boxShadow;
} }

View File

@ -1,6 +1,7 @@
.#{$ns}TransferSelectControl { .#{$ns}TransferSelectControl {
display: flex; display: flex;
height: px2rem(300px); height: px2rem(300px);
.#{$ns}TransferSelect { .#{$ns}TransferSelect {
&-allOptions, &-allOptions,
&-selectedOptions { &-selectedOptions {
@ -8,6 +9,7 @@
flex: 1; flex: 1;
border: $borderWidth solid $borderColor; border: $borderWidth solid $borderColor;
overflow: auto; overflow: auto;
.#{$ns}TransferSelect-heading { .#{$ns}TransferSelect-heading {
position: relative; position: relative;
height: px2rem(40px); height: px2rem(40px);
@ -15,16 +17,19 @@
padding-left: px2rem(20px); padding-left: px2rem(20px);
border-bottom: $TransferSelect-heading-borderBottom; border-bottom: $TransferSelect-heading-borderBottom;
} }
.#{$ns}TransferSelect-body { .#{$ns}TransferSelect-body {
table tbody tr td, table tbody tr td,
ul li { ul li {
position: relative; position: relative;
} }
ul { ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
padding-top: px2rem(10px); padding-top: px2rem(10px);
} }
li { li {
height: px2rem(30px); height: px2rem(30px);
line-height: px2rem(30px); line-height: px2rem(30px);
@ -32,6 +37,7 @@
padding-left: px2rem(20px); padding-left: px2rem(20px);
} }
} }
.#{$ns}TransferSelect-selectAll, .#{$ns}TransferSelect-selectAll,
.#{$ns}TransferSelect-clearAll { .#{$ns}TransferSelect-clearAll {
position: absolute; position: absolute;
@ -39,6 +45,7 @@
cursor: pointer; cursor: pointer;
color: $primary; color: $primary;
} }
.#{$ns}TransferSelect-searchWrapper { .#{$ns}TransferSelect-searchWrapper {
i { i {
height: px2rem(17px); height: px2rem(17px);
@ -46,12 +53,14 @@
} }
} }
} }
&-allOptions { &-allOptions {
&--table { &--table {
.#{$ns}TransferSelect-heading { .#{$ns}TransferSelect-heading {
background-color: $TransferSelect--table-heading-bg; background-color: $TransferSelect--table-heading-bg;
display: flex; display: flex;
} }
.#{$ns}TransferSelect-searchWrapper { .#{$ns}TransferSelect-searchWrapper {
display: inline-block; display: inline-block;
padding: px2rem(3px) px2rem(10px); padding: px2rem(3px) px2rem(10px);
@ -59,27 +68,32 @@
margin-left: px2rem(30px); margin-left: px2rem(30px);
} }
} }
&--normal { &--normal {
.#{$ns}TransferSelect-heading { .#{$ns}TransferSelect-heading {
background-color: $TransferSelect--normal-heading-bg; background-color: $TransferSelect--normal-heading-bg;
} }
.#{$ns}TransferSelect-searchWrapper { .#{$ns}TransferSelect-searchWrapper {
padding: px2rem(10px) px2rem(20px); padding: px2rem(10px) px2rem(20px);
} }
} }
} }
&-selectedOptions { &-selectedOptions {
&--table { &--table {
.#{$ns}TransferSelect-heading { .#{$ns}TransferSelect-heading {
background-color: $TransferSelect--table-heading-bg; background-color: $TransferSelect--table-heading-bg;
} }
} }
&--normal { &--normal {
.#{$ns}TransferSelect-heading { .#{$ns}TransferSelect-heading {
background-color: $TransferSelect--normal-heading-bg; background-color: $TransferSelect--normal-heading-bg;
} }
} }
} }
&-option-close { &-option-close {
width: px2rem(12px); width: px2rem(12px);
height: px2rem(12px); height: px2rem(12px);
@ -87,8 +101,10 @@
right: px2rem(20px); right: px2rem(20px);
cursor: pointer; cursor: pointer;
} }
&-action { &-action {
padding: 0 px2rem(20px); padding: 0 px2rem(20px);
.#{$ns}TransferSelect-actionIcon { .#{$ns}TransferSelect-actionIcon {
display: inline-block; display: inline-block;
width: 0; width: 0;

View File

@ -64,7 +64,8 @@
user-select: none; user-select: none;
white-space: nowrap; white-space: nowrap;
vertical-align: middle; vertical-align: middle;
line-height: $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px); line-height: $Form-input-lineHeight * $Form-input-fontSize -
px2rem(2px);
display: inline-block; display: inline-block;
font-size: $Form-selectValue-fontSize; font-size: $Form-selectValue-fontSize;
color: $Form-selectValue-color; color: $Form-selectValue-color;
@ -104,7 +105,7 @@
justify-content: center; justify-content: center;
&:before { &:before {
content: ''; content: "";
border-color: $Form-input-iconColor transparent transparent; border-color: $Form-input-iconColor transparent transparent;
border-style: solid; border-style: solid;
border-width: px2rem(5px) px2rem(5px) px2rem(2.5px); border-width: px2rem(5px) px2rem(5px) px2rem(2.5px);

View File

@ -15,9 +15,9 @@
} }
} }
.#{$ns}Tree { .#{$ns}Tree {
&-list, &-sublist { &-list,
&-sublist {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;

View File

@ -1,4 +1,3 @@
.#{$ns}AsideNav { .#{$ns}AsideNav {
@include clearfix(); @include clearfix();
@ -17,8 +16,6 @@
margin: 0; margin: 0;
} }
&-itemArrow { &-itemArrow {
float: right; float: right;
display: block; display: block;
@ -26,7 +23,6 @@
text-align: center; text-align: center;
line-height: px2rem(17px); line-height: px2rem(17px);
&::before { &::before {
content: $Layout-asideLink-arrowIcon; content: $Layout-asideLink-arrowIcon;
display: inline-block; display: inline-block;
@ -58,7 +54,10 @@
} }
&-itemIcon { &-itemIcon {
margin: ($Layout-nav-height - $lineHeightBase * $Layout-asideLink-fontSize)/-2 px2rem(-10px); margin: (
$Layout-nav-height - $lineHeightBase *
$Layout-asideLink-fontSize
)/-2 px2rem(-10px);
line-height: $Layout-nav-height; line-height: $Layout-nav-height;
width: $Layout-nav-height; width: $Layout-nav-height;
vertical-align: middle; vertical-align: middle;
@ -83,7 +82,7 @@
height: 0; height: 0;
overflow: hidden; overflow: hidden;
margin-left: px2rem(-20px); margin-left: px2rem(-20px);
transition: all .2s ease-in-out 0s; transition: all 0.2s ease-in-out 0s;
background-color: $Layout-aside-onAcitve-bg; background-color: $Layout-aside-onAcitve-bg;
.is-active > &, .is-active > &,
@ -111,14 +110,16 @@
text-transform: none; text-transform: none;
display: block; display: block;
font-size: $Layout-asideLink-fontSize; font-size: $Layout-asideLink-fontSize;
padding: ($Layout-nav-height - $lineHeightBase*$Layout-asideLink-fontSize)/2 px2rem(15px); padding: (
$Layout-nav-height - $lineHeightBase *
$Layout-asideLink-fontSize
)/2 px2rem(15px);
position: relative; position: relative;
transition: background-color .2s ease-in-out 0s; transition: background-color 0.2s ease-in-out 0s;
color: $Layout-asideLink-color; color: $Layout-asideLink-color;
text-decoration: none; text-decoration: none;
user-select: none; user-select: none;
&:hover { &:hover {
color: $Layout-asideLink-onHover-color; color: $Layout-asideLink-onHover-color;
text-decoration: none; text-decoration: none;
@ -162,7 +163,6 @@
display: block; display: block;
} }
} }
} }
&-subHeader { &-subHeader {
@ -172,7 +172,10 @@
cursor: default; cursor: default;
background: transparent; background: transparent;
color: darken($Layout-aside-color, 10%); color: darken($Layout-aside-color, 10%);
padding: ($Layout-nav--folded-height - $lineHeightBase * $Layout-asideLink-fontSize)/2 px2rem(20px); padding: (
$Layout-nav--folded-height - $lineHeightBase *
$Layout-asideLink-fontSize
)/2 px2rem(20px);
&:hover { &:hover {
color: darken($Layout-aside-color, 10%); color: darken($Layout-aside-color, 10%);

View File

@ -38,7 +38,6 @@
// } // }
// } // }
// @mixin calc-grid-column($index, $class, $type) { // @mixin calc-grid-column($index, $class, $type) {
// @if ($type==width) and ($index > 0) { // @if ($type==width) and ($index > 0) {
// .#{$ns}Grid-col--#{$class}#{$index} { // .#{$ns}Grid-col--#{$class}#{$index} {
@ -141,8 +140,6 @@
// @include container-fixed; // @include container-fixed;
// } // }
// @include make-grid-columns; // @include make-grid-columns;
@include make-grid(xs); @include make-grid(xs);

View File

@ -4,6 +4,7 @@
border-spacing: 0; border-spacing: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
& > .#{$ns}Hbox-col { & > .#{$ns}Hbox-col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
@ -15,29 +16,36 @@
.#{$ns}FormHbox { .#{$ns}FormHbox {
margin-left: -15px; margin-left: -15px;
margin-right: -15px; margin-right: -15px;
> .#{$ns}Hbox > .#{$ns}Hbox-col { > .#{$ns}Hbox > .#{$ns}Hbox-col {
padding-left: 15px; padding-left: 15px;
padding-right: 15px; padding-right: 15px;
vertical-align: top; vertical-align: top;
> .#{$ns}Form-group { > .#{$ns}Form-group {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }
> .#{$ns}Form-group:last-child { > .#{$ns}Form-group:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
} }
&.#{$ns}Hbox--xs { &.#{$ns}Hbox--xs {
margin-left: -5px; margin-left: -5px;
margin-right: -5px; margin-right: -5px;
> .#{$ns}Hbox > .#{$ns}Hbox-col { > .#{$ns}Hbox > .#{$ns}Hbox-col {
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
} }
} }
&.#{$ns}Hbox--sm { &.#{$ns}Hbox--sm {
margin-left: -10px; margin-left: -10px;
margin-right: -10px; margin-right: -10px;
> .#{$ns}Hbox > .#{$ns}Hbox-col { > .#{$ns}Hbox > .#{$ns}Hbox-col {
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
@ -48,17 +56,21 @@
@include media-breakpoint-down(md) { @include media-breakpoint-down(md) {
.#{$ns}Hbox--autoSm { .#{$ns}Hbox--autoSm {
display: block; display: block;
& > .#{$ns}Hbox-col { & > .#{$ns}Hbox-col {
width: auto; width: auto;
height: auto; height: auto;
display: block; display: block;
&.show { &.show {
display: block !important; display: block !important;
} }
} }
& .#{$ns}Vbox { & .#{$ns}Vbox {
height: auto; height: auto;
} }
& .cell-inner { & .cell-inner {
position: static !important; position: static !important;
} }
@ -68,14 +80,17 @@
@include media-breakpoint-down(sm) { @include media-breakpoint-down(sm) {
.#{$ns}Hbox--autoXs { .#{$ns}Hbox--autoXs {
display: block; display: block;
& > .#{$ns}Hbox-col { & > .#{$ns}Hbox-col {
width: auto; width: auto;
height: auto; height: auto;
display: block; display: block;
} }
& .#{$ns}Vbox { & .#{$ns}Vbox {
height: auto; height: auto;
} }
& .cell-inner { & .cell-inner {
position: static !important; position: static !important;
} }

View File

@ -1,7 +1,9 @@
html, body { html,
body {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
body { body {
overflow-x: hidden; overflow-x: hidden;
} }
@ -45,7 +47,6 @@ body {
background: $Layout-brand-bg; background: $Layout-brand-bg;
color: $Layout-brandBar-color; color: $Layout-brandBar-color;
> button { > button {
padding: px2rem(10px) px2rem(17px); padding: px2rem(10px) px2rem(17px);
font-size: px2rem(16px); font-size: px2rem(16px);
@ -74,6 +75,7 @@ body {
&:hover { &:hover {
text-decoration: none; text-decoration: none;
} }
img { img {
max-height: $Layout-header-height / 2; max-height: $Layout-header-height / 2;
// margin-top: px2rem(-4px); // margin-top: px2rem(-4px);
@ -109,8 +111,9 @@ body {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
z-index: $zindex-fixed;; z-index: $zindex-fixed;
max-width: $Layout-aside-width; max-width: $Layout-aside-width;
// .app-aside-folded & { // .app-aside-folded & {
// max-width: @app-aside-folded-width; // max-width: @app-aside-folded-width;
// } // }
@ -281,9 +284,11 @@ body {
&::-webkit-scrollbar { &::-webkit-scrollbar {
-webkit-appearance: none; -webkit-appearance: none;
} }
&::-webkit-scrollbar:vertical { &::-webkit-scrollbar:vertical {
width: $scrollbar-width; width: $scrollbar-width;
} }
& > * { & > * {
width: $Layout-aside-width; width: $Layout-aside-width;
} }
@ -405,7 +410,6 @@ body {
} }
} }
} }
} }
@include media-breakpoint-down(sm) { @include media-breakpoint-down(sm) {
@ -414,7 +418,7 @@ body {
} }
.#{$ns}Layout-content { .#{$ns}Layout-content {
transition: transform .2s ease; transition: transform 0.2s ease;
} }
.#{$ns}Layout-aside { .#{$ns}Layout-aside {
@ -456,6 +460,4 @@ body {
padding-top: px2rem(50px); padding-top: px2rem(50px);
} }
} }
} }

View File

@ -5,20 +5,25 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
min-height: 240px; min-height: 240px;
& .row-row { & .row-row {
display: table-row; display: table-row;
height: 100%; height: 100%;
& .#{$ns}Vbox-cell { & .#{$ns}Vbox-cell {
position: relative; position: relative;
height: 100%; height: 100%;
width: 100%; width: 100%;
.ie & { .ie & {
display: table-cell; display: table-cell;
overflow: auto; overflow: auto;
& .cell-inner { & .cell-inner {
overflow: visible !important; overflow: visible !important;
} }
} }
& .cell-inner { & .cell-inner {
position: absolute; position: absolute;
top: 0; top: 0;

View File

@ -1,7 +1,7 @@
@import "../functions"; @import "../functions";
$remFactor: 16px; $remFactor: 16px;
$ns: 'cxd-'; $ns: "cxd-";
$info: #108cee; $info: #108cee;
$primary: #108cee; $primary: #108cee;
@ -12,32 +12,32 @@ $light: #eaf6fe;
$white: #fff; $white: #fff;
$info-bg: #eaf6fe; $info-bg: #eaf6fe;
$success-bg: #F1FDEB; $success-bg: #f1fdeb;
$warning-bg: #FCF7F1; $warning-bg: #fcf7f1;
$danger-bg: #FFF5F5; $danger-bg: #fff5f5;
$body-bg: #E8ECF0; $body-bg: #e8ecf0;
$text-color: #666; $text-color: #666;
$text--muted-color: #999; $text--muted-color: #999;
$text--loud-color: #333; $text--loud-color: #333;
$borderColor: #E8EBEE; $borderColor: #e8ebee;
$link-onHover-decoration: none; $link-onHover-decoration: none;
$Layout-header-boxShadow: none; $Layout-header-boxShadow: none;
$Layout-aside-width: px2rem(180px); $Layout-aside-width: px2rem(180px);
$Layout-aside-bg: #19233c; $Layout-aside-bg: #19233c;
$Layout-brand-bg: #121A2C; $Layout-brand-bg: #121a2c;
$Layout-brand-color: #fff; $Layout-brand-color: #fff;
$Layout-asideLink-color: #fff; $Layout-asideLink-color: #fff;
$Layout-asideLink-onHover-iconSize: px2rem(16px); $Layout-asideLink-onHover-iconSize: px2rem(16px);
$Layout-asideLink-onHover-iconColor: #42AAFA; $Layout-asideLink-onHover-iconColor: #42aafa;
$Layout-asideLink-fontSize: px2rem(12px); $Layout-asideLink-fontSize: px2rem(12px);
$Layout-asideLink-arrowFontSize: px2rem(12px); $Layout-asideLink-arrowFontSize: px2rem(12px);
$Layout-asideLink-arrowVendor: "iconfont"; $Layout-asideLink-arrowVendor: "iconfont";
$Layout-asideLink-arrowIcon: "\e63b"; $Layout-asideLink-arrowIcon: "\e63b";
$Layout-asideLink-arrowColor: #8D99b0; $Layout-asideLink-arrowColor: #8d99b0;
$Layout-asideLink-onHover-arrowColor: #FFF; $Layout-asideLink-onHover-arrowColor: #fff;
$Layout-headerBar-borderBottom: px2rem(1px) solid $body-bg; $Layout-headerBar-borderBottom: px2rem(1px) solid $body-bg;
$Layout-asideDivider-margin: 0 px2rem(10px); $Layout-asideDivider-margin: 0 px2rem(10px);
@ -48,7 +48,6 @@ $Page-content-paddingX: px2rem(20px);
$Page-main-bg: #fff; $Page-main-bg: #fff;
$Page-header-paddingY: px2rem(18px); $Page-header-paddingY: px2rem(18px);
$Form-item-gap: px2rem(20px); $Form-item-gap: px2rem(20px);
$Form-input-height: px2rem(30px); $Form-input-height: px2rem(30px);
$Form-input-onFocused-bg: #f8fbfe; $Form-input-onFocused-bg: #f8fbfe;
@ -81,7 +80,8 @@ $Form-select-caret-icon: "\e605";
$Form-select-caret-iconColor: inherit; $Form-select-caret-iconColor: inherit;
$Form-select-caret-fontSize: px2rem(12px); $Form-select-caret-fontSize: px2rem(12px);
$Form-select-outer-borderWidth: 0; $Form-select-outer-borderWidth: 0;
$Form-select-outer-boxShadow: px2rem(2px) px2rem(4px) px2rem(8px) rgba(0, 0, 0, 0.2); $Form-select-outer-boxShadow: px2rem(2px) px2rem(4px) px2rem(8px)
rgba(0, 0, 0, 0.2);
$Form-select-menu-color: #333; $Form-select-menu-color: #333;
$InputGroup-select-borderWidth: px2rem(1px); $InputGroup-select-borderWidth: px2rem(1px);
@ -187,7 +187,7 @@ $ButtonGroup-divider-color: #fff;
$Button--link-color: $Button--default-color; $Button--link-color: $Button--default-color;
$Button--link-onHover-color: $Button--default-color; $Button--link-onHover-color: $Button--default-color;
$Spinner-bg: url('./spinner-cxd.svg'); $Spinner-bg: url("./spinner-cxd.svg");
$Crud-toolbar-gap: px2rem(10px); $Crud-toolbar-gap: px2rem(10px);
@ -251,7 +251,7 @@ $Modal-title-color: #333;
$Modal-body-paddingY: px2rem(30px); $Modal-body-paddingY: px2rem(30px);
$Modal-body-paddingX: px2rem(30px); $Modal-body-paddingX: px2rem(30px);
$Modal-body-borderTop: none; $Modal-body-borderTop: none;
$Modal-body-borderBottom: px2rem(1px) solid #ECEFF8; $Modal-body-borderBottom: px2rem(1px) solid #eceff8;
$Modal-footer-marginX: px2rem(30px); $Modal-footer-marginX: px2rem(30px);
$Modal-footer-padding: px2rem(15px) 0; $Modal-footer-padding: px2rem(15px) 0;
@ -291,7 +291,6 @@ $Tabs-onHover-borderColor: transparent;
$Tabs-onActive-borderBottomColor: $info; $Tabs-onActive-borderBottomColor: $info;
$Tabs-onActive-borderBottomWidth: px2rem(2px); $Tabs-onActive-borderBottomWidth: px2rem(2px);
// Pagination // Pagination
$Pagination-arrowVendor: "iconfont"; $Pagination-arrowVendor: "iconfont";
$Pagination-prevArrowContent: "\e759"; $Pagination-prevArrowContent: "\e759";
@ -341,7 +340,6 @@ $Alert--success-borderColor: $success-bg;
$Alert--warning-color: $warning; $Alert--warning-color: $warning;
$Alert--warning-borderColor: $warning-bg; $Alert--warning-borderColor: $warning-bg;
// Toast // Toast
$Toast-xs: px2rem(5px); $Toast-xs: px2rem(5px);
@ -468,5 +466,4 @@ $TagControl-sugTip-color: $primary;
@import "../components/form/nested-select"; @import "../components/form/nested-select";
@import "../components/form/icon-picker"; @import "../components/form/icon-picker";
@import "../utilities"; @import "../utilities";

View File

@ -1,5 +1,4 @@
$ns: "a-";
$ns: 'a-';
$primary: #7266ba; $primary: #7266ba;
$info: #23b7e5; $info: #23b7e5;
@ -94,5 +93,4 @@ $Form-input-borderColor: #cfdadd;
@import "../components/form/nested-select"; @import "../components/form/nested-select";
@import "../components/form/icon-picker"; @import "../components/form/icon-picker";
@import "../utilities"; @import "../utilities";