-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(): winex修改为winfe * feat(): 修改babel-loader作用目录 * feat(): 增加公共样式文件 Co-authored-by: huzhiwei <865953771@qq.com>
- Loading branch information
Showing
13 changed files
with
2,127 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
@import "./var"; | ||
@mixin button-plain($color) { | ||
color: $color; | ||
background: mix($--color-white, $color, 90%); | ||
border-color: mix($--color-white, $color, 60%); | ||
|
||
&:hover, | ||
&:focus { | ||
background: $color; | ||
border-color: $color; | ||
color: $--color-white; | ||
} | ||
|
||
&:active { | ||
background: mix($--color-black, $color, $--button-active-shade-percent); | ||
border-color: mix($--color-black, $color, $--button-active-shade-percent); | ||
color: $--color-white; | ||
outline: none; | ||
} | ||
|
||
&.is-disabled { | ||
&, | ||
&:hover, | ||
&:focus, | ||
&:active { | ||
color: mix($--color-white, $color, 40%); | ||
background-color: mix($--color-white, $color, 90%); | ||
border-color: mix($--color-white, $color, 80%); | ||
} | ||
} | ||
} | ||
|
||
@mixin button-variant($color, $background-color, $border-color) { | ||
color: $color; | ||
background-color: $background-color; | ||
border-color: $border-color; | ||
|
||
&:hover, | ||
&:focus { | ||
// background: mix( | ||
// $--color-white, | ||
// $background-color, | ||
// $--button-hover-tint-percent | ||
// ); | ||
// border-color: mix( | ||
// $--color-white, | ||
// $border-color, | ||
// $--button-hover-tint-percent | ||
// ); | ||
// color: $color; | ||
} | ||
|
||
&:active { | ||
// background: mix( | ||
// $--color-black, | ||
// $background-color, | ||
// $--button-active-shade-percent | ||
// ); | ||
// border-color: mix( | ||
// $--color-black, | ||
// $border-color, | ||
// $--button-active-shade-percent | ||
// ); | ||
// color: $color; | ||
// outline: none; | ||
} | ||
|
||
&.is-active { | ||
// background: mix( | ||
// $--color-black, | ||
// $background-color, | ||
// $--button-active-shade-percent | ||
// ); | ||
// border-color: mix( | ||
// $--color-black, | ||
// $border-color, | ||
// $--button-active-shade-percent | ||
// ); | ||
// color: $color; | ||
} | ||
|
||
&.is-disabled { | ||
&, | ||
&:hover, | ||
&:focus, | ||
&:active { | ||
color: $--color-white; | ||
background-color: mix($background-color, $--color-white); | ||
border-color: mix($border-color, $--color-white); | ||
} | ||
} | ||
|
||
&.is-plain { | ||
@include button-plain($background-color); | ||
} | ||
} | ||
@mixin button-size( | ||
$padding-vertical, | ||
$padding-horizontal, | ||
$font-size, | ||
$border-radius | ||
) { | ||
padding: $padding-vertical $padding-horizontal; | ||
font-size: $font-size; | ||
border-radius: $border-radius; | ||
&.is-round { | ||
padding: $padding-vertical $padding-horizontal; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$namespace: 'el'; | ||
$winingspace: 'win'; | ||
$element-separator: '__'; | ||
$modifier-separator: '--'; | ||
$state-prefix: 'is-'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@import "config"; | ||
|
||
/* BEM support Func | ||
-------------------------- */ | ||
@function selectorToString($selector) { | ||
$selector: inspect($selector); | ||
$selector: str-slice($selector, 2, -2); | ||
@return $selector; | ||
} | ||
|
||
@function containsModifier($selector) { | ||
$selector: selectorToString($selector); | ||
|
||
@if str-index($selector, $modifier-separator) { | ||
@return true; | ||
} @else { | ||
@return false; | ||
} | ||
} | ||
|
||
@function containWhenFlag($selector) { | ||
$selector: selectorToString($selector); | ||
|
||
@if str-index($selector, '.' + $state-prefix) { | ||
@return true | ||
} @else { | ||
@return false | ||
} | ||
} | ||
|
||
@function containPseudoClass($selector) { | ||
$selector: selectorToString($selector); | ||
|
||
@if str-index($selector, ':') { | ||
@return true | ||
} @else { | ||
@return false | ||
} | ||
} | ||
|
||
@function hitAllSpecialNestRule($selector) { | ||
|
||
@return containsModifier($selector) or containWhenFlag($selector) or containPseudoClass($selector); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@import "./button.scss"; | ||
@import "./config.scss"; | ||
@import "./function.scss"; | ||
@import "./mixins.scss"; | ||
@import "./popup.scss"; | ||
@import "./transition.scss"; | ||
@import "./utils.scss"; | ||
@import "./var.scss"; |
Oops, something went wrong.