From ad9579376400942276edd9678b44a64549a15426 Mon Sep 17 00:00:00 2001 From: yangchch6 Date: Wed, 16 Jan 2019 14:59:26 +0800 Subject: [PATCH] =?UTF-8?q?Button=E5=A2=9E=E5=8A=A0secondary=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/minxin-mixins.scss | 3 +- scss/minxin-themeColors-hxlh.scss | 48 +++++++++++++++++++ scss/minxin-themeColors-ncc.scss | 50 ++++++++++++++++++++ scss/minxin-themeColors-yxy.scss | 50 ++++++++++++++++++++ scss/minxin-themeColors.scss | 26 ++++++++--- scss/minxin-variables.scss | 76 ++++++++++++++++++------------- 6 files changed, 214 insertions(+), 39 deletions(-) create mode 100644 scss/minxin-themeColors-hxlh.scss create mode 100644 scss/minxin-themeColors-ncc.scss create mode 100644 scss/minxin-themeColors-yxy.scss diff --git a/scss/minxin-mixins.scss b/scss/minxin-mixins.scss index bd80fab..1e4869e 100644 --- a/scss/minxin-mixins.scss +++ b/scss/minxin-mixins.scss @@ -318,8 +318,9 @@ @mixin border-button-styles-variant($text-color,$bg-color,$bg-hover-color,$bg-active-color) { color: $text-color; - border:1px $bg-color solid; background-color: #fff; + border:1px $bg-color solid; + &.focus, &:focus, &:hover { background-color: $bg-hover-color; border-color: $bg-hover-color; diff --git a/scss/minxin-themeColors-hxlh.scss b/scss/minxin-themeColors-hxlh.scss new file mode 100644 index 0000000..b5e14cc --- /dev/null +++ b/scss/minxin-themeColors-hxlh.scss @@ -0,0 +1,48 @@ +@import "minxin-colors"; + +// 默认色 +$default-color: $palette-grey-300; +$default-color-dark: $palette-grey-400; +$default-color-light: $palette-grey-200; + +// 主题色 +$color-primary: "7,72,166" !default; +$color-primary-dark: "3,61,143" !default; +$color-primary-light: "24,87,178" !default; + +// 次按钮 +$secondary-color: $palette-red-300 !default; +$secondary-color-dark: $palette-red-400 !default; +$secondary-color-light: $palette-red-200 !default; + +// 字体 +$font-family-primary: "Open Sans", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif !default; +// 主字号 +$font-size-base: 14px !default; +// 主文本色 +$text-color-base: $color-dark-contrast !default; +// 边框色 +$border-color: $palette-grey-400 !default; + +// Button 细化样式变量: +// 1.次按钮背景色 +$button-secondary-bg-color: $color-dark-contrast !default; +// 2.次按钮边框色 +$button-secondary-border-color: $palette-u-gray-700 !default; +// 3.次按钮文本色 +$button-secondary-text-color: $color-primary !default; + +// 辅色 +$color-accent: $palette-green-600 !default; +$color-accent-dark: $palette-green-800 !default; +$color-accent-light: $palette-green-400 !default; + +// cyan主题 +//$color-primary: $palette-cyan-500 !default; +//$color-primary-dark: $palette-cyan-700 !default; +//$color-accent: $palette-light-blue-500 !default; + +// orange主题 +//$color-primary: $palette-orange-500 !default; +//$color-primary-dark: $palette-orange-700 !default; +//$color-accent: $palette-deep-orange-500 !default; diff --git a/scss/minxin-themeColors-ncc.scss b/scss/minxin-themeColors-ncc.scss new file mode 100644 index 0000000..aa42d87 --- /dev/null +++ b/scss/minxin-themeColors-ncc.scss @@ -0,0 +1,50 @@ +@import "minxin-colors"; + +// 默认色 +$default-color: $palette-grey-300; +$default-color-dark: $palette-grey-400; +$default-color-light: $palette-grey-200; + +// 主题色 +$color-primary: "231,0,18" !default; +$color-primary-dark: "200,0,16" !default; +$color-primary-light: "233,71,84" !default; + +// 次按钮 +$secondary-color: "235,236,240" !default; +$secondary-color-dark: $palette-red-400 !default; +$secondary-color-light: $palette-red-200 !default; + +// 字体 +$font-family-primary: "Open Sans", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif !default; +// 主字号 +$font-size-base: 14px !default; +// 主文本色 +$text-color-base: $color-dark-contrast !default; +// 边框色 +$border-color: $palette-grey-400 !default; + +// 辅色 +$color-accent: $palette-green-600 !default; +$color-accent-dark: $palette-green-800 !default; +$color-accent-light: $palette-green-400 !default; + +// Button 细化样式变量: +// 1.次按钮背景色 +$button-secondary-bg-color: $color-dark-contrast !default; +// 2.次按钮边框色 +$button-secondary-border-color: $palette-u-gray-700 !default; +// 3.次按钮文本色 +$button-secondary-text-color: $color-primary !default; + + + +// cyan主题 +//$color-primary: $palette-cyan-500 !default; +//$color-primary-dark: $palette-cyan-700 !default; +//$color-accent: $palette-light-blue-500 !default; + +// orange主题 +//$color-primary: $palette-orange-500 !default; +//$color-primary-dark: $palette-orange-700 !default; +//$color-accent: $palette-deep-orange-500 !default; diff --git a/scss/minxin-themeColors-yxy.scss b/scss/minxin-themeColors-yxy.scss new file mode 100644 index 0000000..aa42d87 --- /dev/null +++ b/scss/minxin-themeColors-yxy.scss @@ -0,0 +1,50 @@ +@import "minxin-colors"; + +// 默认色 +$default-color: $palette-grey-300; +$default-color-dark: $palette-grey-400; +$default-color-light: $palette-grey-200; + +// 主题色 +$color-primary: "231,0,18" !default; +$color-primary-dark: "200,0,16" !default; +$color-primary-light: "233,71,84" !default; + +// 次按钮 +$secondary-color: "235,236,240" !default; +$secondary-color-dark: $palette-red-400 !default; +$secondary-color-light: $palette-red-200 !default; + +// 字体 +$font-family-primary: "Open Sans", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif !default; +// 主字号 +$font-size-base: 14px !default; +// 主文本色 +$text-color-base: $color-dark-contrast !default; +// 边框色 +$border-color: $palette-grey-400 !default; + +// 辅色 +$color-accent: $palette-green-600 !default; +$color-accent-dark: $palette-green-800 !default; +$color-accent-light: $palette-green-400 !default; + +// Button 细化样式变量: +// 1.次按钮背景色 +$button-secondary-bg-color: $color-dark-contrast !default; +// 2.次按钮边框色 +$button-secondary-border-color: $palette-u-gray-700 !default; +// 3.次按钮文本色 +$button-secondary-text-color: $color-primary !default; + + + +// cyan主题 +//$color-primary: $palette-cyan-500 !default; +//$color-primary-dark: $palette-cyan-700 !default; +//$color-accent: $palette-light-blue-500 !default; + +// orange主题 +//$color-primary: $palette-orange-500 !default; +//$color-primary-dark: $palette-orange-700 !default; +//$color-accent: $palette-deep-orange-500 !default; diff --git a/scss/minxin-themeColors.scss b/scss/minxin-themeColors.scss index cc072e0..288d732 100644 --- a/scss/minxin-themeColors.scss +++ b/scss/minxin-themeColors.scss @@ -1,21 +1,28 @@ @import "minxin-colors"; -// 主色 +// 默认色 +$default-color: $palette-grey-300; +$default-color-dark: $palette-grey-400; +$default-color-light: $palette-grey-200; + +// 主题色 $color-primary: $palette-blue-600 !default; $color-primary-dark: $palette-blue-800 !default; $color-primary-light: $palette-blue-400 !default; +// 次按钮 +$secondary-color: $palette-grey-300 !default; +$secondary-color-dark: $palette-red-400 !default; +$secondary-color-light: $palette-red-200 !default; + // 字体 $font-family-primary: "Open Sans", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif !default; // 主字号 $font-size-base: 14px !default; // 主文本色 -$text-color-base: $color-dark-contrast !default; - -// 辅色 -$color-accent: $palette-green-600 !default; -$color-accent-dark: $palette-green-800 !default; -$color-accent-light: $palette-green-400 !default; +$text-color-base: $color-dark-contrast !default; +// 边框色 +$border-color: $palette-grey-400 !default; // Button 细化样式变量: // 1.次按钮背景色 @@ -25,6 +32,11 @@ $button-secondary-border-color: $palette-u-gray-700 !default; // 3.次按钮文本色 $button-secondary-text-color: $color-primary !default; +// 辅色 +$color-accent: $palette-green-600 !default; +$color-accent-dark: $palette-green-800 !default; +$color-accent-light: $palette-green-400 !default; + // cyan主题 //$color-primary: $palette-cyan-500 !default; diff --git a/scss/minxin-variables.scss b/scss/minxin-variables.scss index 2a87877..6f43e2c 100644 --- a/scss/minxin-variables.scss +++ b/scss/minxin-variables.scss @@ -61,7 +61,8 @@ $gray-light: unquote("rgb(#{$palette-grey-400})") !default; $gray-lighter: unquote("rgb(#{$palette-grey-300})") !default; $gray-lightest:unquote("rgb(#{$palette-grey-200})") !default; $inverse: unquote("rgb(#{$color-white})") !default; -$border-color-base: $gray-lighter; +// $border-color-base: $gray-lighter; +$border-color-base: unquote("rgb(#{$border-color})") !default; $line-height-base: 1.57142857; @@ -145,17 +146,21 @@ $link-hover-color: $hover-color-base; $link-active-color: $active-color-base; // 品牌色 -// $brand-default: $gray-lighter; -// $brand-default-hover: $gray-lightest; -// $brand-default-active: $gray-light; -$brand-default: unquote("rgb(#{$color-primary})"); -$brand-default-hover: unquote("rgb(#{$color-primary-light})"); -$brand-default-active: unquote("rgb(#{$color-primary-dark})"); +$brand-default: $gray-lighter; +$brand-default-hover: $gray-lightest; +$brand-default-active: $gray-light; +// $brand-default: unquote("rgb(#{$color-primary})"); +// $brand-default-hover: unquote("rgb(#{$color-primary-light})"); +// $brand-default-active: unquote("rgb(#{$color-primary-dark})"); $brand-primary : unquote("rgb(#{$color-primary})") !default; $brand-primary-hover: unquote("rgb(#{$color-primary-light})") !default; $brand-primary-active: unquote("rgb(#{$color-primary-dark})") !default; +$brand-secondary : unquote("rgb(#{$secondary-color})") !default; +$brand-secondary-hover: unquote("rgb(#{$secondary-color-light})") !default; +$brand-secondary-active: unquote("rgb(#{$secondary-color-dark})") !default; + $brand-success: unquote("rgb(#{$palette-green-500})") !default; $brand-success-hover: unquote("rgb(#{$palette-green-300})") !default; $brand-success-active: unquote("rgb(#{$palette-green-700})") !default; @@ -203,37 +208,25 @@ $default-border-radius: 4px; // UButton // Button 基础背景色. -// 主按钮 -$button-default-color: $brand-default; -$button-default-color-IE8: $brand-default; -// 次按钮 -$button-bg-color: unquote("rgb(#{$button-secondary-bg-color})"); +// 默认按钮() +$button-default-color: unquote("rgb(#{$default-color})"); +$button-default-color-IE8: unquote("rgb(#{$default-color})"); + +// 边框按钮(shape:'border') +$button-border-bg-color: unquote("rgb(#{$color-dark-contrast})"); // Button 不同状态下的背景色 :hover、active、focus状态. -$button-hover-color: $brand-default-hover; -$button-active-color: $brand-default-active; -$button-focus-color: $brand-default-active; - -// Button 文字颜色. -// 主按钮 -$button-default-text-color: unquote("rgb(#{$text-color-base})") !default; -// 次按钮 -$button-text-color: unquote("rgb(#{$button-secondary-text-color})") !default; - -// Button 边框样式及颜色. -$button-border-style:unquote("solid") !default; -$button-border-color:unquote("rgb(#{$button-secondary-border-color})") !default; -$button-default-border-color:$brand-default !default; - -// Button 不同状态下的边框颜色 :hover、active、focus状态. -$button-hover-border-color: $brand-default-hover; -$button-active-border-color: $brand-default-active; -$button-focus-border-color: $brand-default-active; +$button-hover-color: unquote("rgb(#{$default-color-light})"); +$button-active-color: unquote("rgb(#{$default-color-dark})"); +$button-focus-color: unquote("rgb(#{$default-color-dark})"); // Button 配置不同colors属性时的背景色. $button-primary-color: $brand-primary; $button-primary-active-color: $brand-primary-active; $button-primary-hover-color: $brand-primary-hover; +$button-secondary-color: $brand-secondary; +$button-secondary-active-color: $brand-secondary-active; +$button-secondary-hover-color: $brand-secondary-hover; $button-success-color: $brand-success; $button-success-active-color: $brand-success-active; $button-success-hover-color: $brand-success-hover; @@ -250,6 +243,27 @@ $button-dark-color: $brand-dark; $button-dark-active-color: $brand-dark-active; $button-dark-hover-color: $brand-dark-hover; +// Button 文字颜色. +// 主按钮(colors:'primary') +$button-primary-text-color: unquote("rgb(#{$text-color-base})") !default; +$button-text-color: $button-primary-text-color; +// 次按钮(colors:'secondary') +$button-secondary-text-color: unquote("rgb(#{$button-secondary-text-color})") !default; +// 默认按钮() +$button-default-text-color: unquote("rgb(#{$color-light-contrast})") !default; +// 边框按钮(shape:'border') +$button-border-text-color: unquote("rgb(#{$color-primary})") !default; + +// Button 边框样式及颜色. +$button-border-style: unquote("solid") !default; +$button-border-color: $border-color-base; +$button-default-border-color: $button-default-color !default; + +// Button 不同状态下的边框颜色 :hover、active、focus状态. +$button-hover-border-color: $brand-default-hover; +$button-active-border-color: $brand-default-active; +$button-focus-border-color: $brand-default-active; + // FAB colors and sizes. $button-fab-color-alt: unquote("rgb(#{$color-accent})") !default; $button-fab-hover-color-alt: unquote("rgb(#{$color-accent-light})") !default;