| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403 |
- @import "../../themes/ionic.globals.wp";
-
- // Windows Button
- // --------------------------------------------------
-
- // deprecated
- $button-wp-margin: null !default;
-
- /// @prop - Margin top of the button
- $button-wp-margin-top: .4rem !default;
-
- /// @prop - Margin end of the button
- $button-wp-margin-end: .2rem !default;
-
- /// @prop - Margin bottom of the button
- $button-wp-margin-bottom: .4rem !default;
-
- /// @prop - Margin start of the button
- $button-wp-margin-start: .2rem !default;
-
- // deprecated
- $button-wp-padding: null !default;
-
- /// @prop - Padding top of the button
- $button-wp-padding-top: 0 !default;
-
- /// @prop - Padding end of the button
- $button-wp-padding-end: 1.1em !default;
-
- /// @prop - Padding bottom of the button
- $button-wp-padding-bottom: $button-wp-padding-top !default;
-
- /// @prop - Padding start of the button
- $button-wp-padding-start: $button-wp-padding-end !default;
-
- /// @prop - Height of the button
- $button-wp-height: 3.6rem !default;
-
- /// @prop - Border width of the button
- $button-wp-border-width: 3px !default;
-
- /// @prop - Border style of the button
- $button-wp-border-style: solid !default;
-
- /// @prop - Border color of the button
- $button-wp-border-color: transparent !default;
-
- /// @prop - Border radius of the button
- $button-wp-border-radius: 0 !default;
-
- /// @prop - Font size of the button text
- $button-wp-font-size: 1.4rem !default;
-
- /// @prop - Background color of the button
- $button-wp-background-color: color($colors-wp, primary) !default;
-
- /// @prop - Text color of the button
- $button-wp-text-color: color-contrast($colors-wp, $button-wp-background-color) !default;
-
- /// @prop - Background color of the activated button
- $button-wp-background-color-activated: color-shade($button-wp-background-color) !default;
-
-
- // Windows Large Button
- // --------------------------------------------------
-
- // deprecated
- $button-wp-large-padding: null !default;
-
- /// @prop - Padding top of the large button
- $button-wp-large-padding-top: 0 !default;
-
- /// @prop - Padding end of the large button
- $button-wp-large-padding-end: 1em !default;
-
- /// @prop - Padding bottom of the large button
- $button-wp-large-padding-bottom: $button-wp-large-padding-top !default;
-
- /// @prop - Padding start of the large button
- $button-wp-large-padding-start: $button-wp-large-padding-end !default;
-
- /// @prop - Height of the large button
- $button-wp-large-height: 2.8em !default;
-
- /// @prop - Font size of the large button
- $button-wp-large-font-size: 2rem !default;
-
-
- // Windows Small Button
- // --------------------------------------------------
-
- // deprecated
- $button-wp-small-padding: null !default;
-
- /// @prop - Padding top of the small button
- $button-wp-small-padding-top: 0 !default;
-
- /// @prop - Padding end of the small button
- $button-wp-small-padding-end: .9em !default;
-
- /// @prop - Padding bottom of the small button
- $button-wp-small-padding-bottom: $button-wp-small-padding-top !default;
-
- /// @prop - Padding start of the small button
- $button-wp-small-padding-start: $button-wp-small-padding-end !default;
-
- /// @prop - Height of the small button
- $button-wp-small-height: 2.1em !default;
-
- /// @prop - Font size of the small button
- $button-wp-small-font-size: 1.3rem !default;
-
- /// @prop - Font size of an icon in the small button
- $button-wp-small-icon-font-size: 1.4em !default;
-
-
- // Windows Outline Button
- // --------------------------------------------------
-
- /// @prop - Border width of the outline button
- $button-wp-outline-border-width: 1px !default;
-
- /// @prop - Border style of the outline button
- $button-wp-outline-border-style: solid !default;
-
- /// @prop - Border color of the outline button
- $button-wp-outline-border-color: $button-wp-background-color !default;
-
- /// @prop - Text color of the outline button
- $button-wp-outline-text-color: $button-wp-background-color !default;
-
- /// @prop - Background color of the outline button
- $button-wp-outline-background-color: transparent !default;
-
- /// @prop - Background color of the activated outline button
- $button-wp-outline-background-color-activated: $button-wp-background-color !default;
-
- /// @prop - Opacity of the background color of the activated outline button
- $button-wp-outline-background-color-opacity-activated: .16 !default;
-
-
- // Windows Clear Button
- // --------------------------------------------------
-
- /// @prop - Text color of the clear button
- $button-wp-clear-text-color: $button-wp-background-color !default;
-
- /// @prop - Background color of the clear button
- $button-wp-clear-background-color: transparent !default;
-
- /// @prop - Background color of the activated clear button
- $button-wp-clear-background-color-activated: rgba(158, 158, 158, .2) !default;
-
- /// @prop - Background color of the clear button on hover
- $button-wp-clear-background-color-hover: rgba(158, 158, 158, .1) !default;
-
-
- // Windows Round Button
- // --------------------------------------------------
-
- // deprecated
- $button-wp-round-padding: null !default;
-
- /// @prop - Padding top of the round button
- $button-wp-round-padding-top: $button-round-padding-top !default;
-
- /// @prop - Padding end of the round button
- $button-wp-round-padding-end: $button-round-padding-end !default;
-
- /// @prop - Padding bottom of the round button
- $button-wp-round-padding-bottom: $button-round-padding-bottom !default;
-
- /// @prop - Padding start of the round button
- $button-wp-round-padding-start: $button-round-padding-start !default;
-
- /// @prop - Border radius of the round button
- $button-wp-round-border-radius: $button-round-border-radius !default;
-
-
- // Material Design Decorator Button
- // --------------------------------------------------
-
- /// @prop - Font weight of the strong button
- $button-wp-strong-font-weight: bold !default;
-
-
- // Windows Default Button
- // --------------------------------------------------
-
- .button-wp {
- @include border-radius($button-wp-border-radius);
-
- height: $button-wp-height;
-
- border: $button-wp-border-width $button-wp-border-style $button-wp-border-color;
-
- font-size: $button-wp-font-size;
-
- color: $button-wp-text-color;
- background-color: $button-wp-background-color;
-
- @include deprecated-variable(margin, $button-wp-margin) {
- @include margin($button-wp-margin-top, $button-wp-margin-end, $button-wp-margin-bottom, $button-wp-margin-start);
- }
-
- @include deprecated-variable(padding, $button-wp-padding) {
- @include padding($button-wp-padding-top, $button-wp-padding-end, $button-wp-padding-bottom, $button-wp-padding-start);
- }
- }
-
- .button-wp:hover:not(.disable-hover) {
- border-color: $button-wp-background-color-activated;
- background-color: $button-wp-background-color;
- }
-
- .button-wp.activated {
- background-color: $button-wp-background-color-activated;
- }
-
-
- // Windows Default Button Color Mixin
- // --------------------------------------------------
-
- @mixin wp-button-default($color-name, $color-base, $color-contrast) {
- $bg-color: $color-base;
- $bg-color-activated: color-shade($bg-color);
- $fg-color: $color-contrast;
-
- .button-wp-#{$color-name} {
- color: $fg-color;
- background-color: $bg-color;
- }
-
- .button-wp-#{$color-name}:hover:not(.disable-hover) {
- border-color: $bg-color-activated;
- background-color: $bg-color;
- }
-
- .button-wp-#{$color-name}.activated {
- background-color: $bg-color-activated;
- }
- }
-
-
- // Windows Button Sizes
- // --------------------------------------------------
-
- .button-large-wp {
- height: $button-wp-large-height;
-
- font-size: $button-wp-large-font-size;
-
- @include deprecated-variable(padding, $button-wp-large-padding) {
- @include padding($button-wp-large-padding-top, $button-wp-large-padding-end, $button-wp-large-padding-bottom, $button-wp-large-padding-start);
- }
- }
-
- .button-small-wp {
- height: $button-wp-small-height;
-
- font-size: $button-wp-small-font-size;
-
- @include deprecated-variable(padding, $button-wp-small-padding) {
- @include padding($button-wp-small-padding-top, $button-wp-small-padding-end, $button-wp-small-padding-bottom, $button-wp-small-padding-start);
- }
- }
-
- .button-small-wp[icon-only] ion-icon {
- font-size: $button-wp-small-icon-font-size;
- }
-
- // Windows Block Button
- // --------------------------------------------------
-
- .button-block-wp {
- @include margin-horizontal(0);
- }
-
- // Windows Full Button
- // --------------------------------------------------
-
- .button-full-wp {
- @include margin-horizontal(0);
- @include border-radius(0);
-
- border-right-width: 0;
- border-left-width: 0;
- }
-
- // Windows Outline Button
- // --------------------------------------------------
-
- .button-outline-wp {
- border-width: $button-wp-outline-border-width;
- border-style: $button-wp-outline-border-style;
- border-color: $button-wp-outline-border-color;
- color: $button-wp-outline-text-color;
- background-color: $button-wp-outline-background-color;
- }
-
- .button-outline-wp:hover:not(.disable-hover) {
- background-color: $button-wp-clear-background-color-hover;
- }
-
- .button-outline-wp.activated {
- background-color: rgba($button-wp-outline-background-color-activated, $button-wp-outline-background-color-opacity-activated);
- }
-
-
- // Windows Outline Button Color Mixin
- // --------------------------------------------------
-
- @mixin wp-button-outline($color-name, $color-base, $color-contrast) {
- $fg-color: color-shade($color-base, 5%);
-
- .button-outline-wp-#{$color-name} {
- border-color: $fg-color;
- color: $fg-color;
- background-color: $button-wp-outline-background-color;
- }
-
- .button-outline-wp-#{$color-name}:hover:not(.disable-hover) {
- border-color: $fg-color;
- background-color: $button-wp-clear-background-color-hover;
- }
-
- .button-outline-wp-#{$color-name}.activated {
- background-color: rgba($fg-color, $button-wp-outline-background-color-opacity-activated);
- }
- }
-
-
- // Windows Clear Button
- // --------------------------------------------------
-
- .button-clear-wp {
- color: $button-wp-clear-text-color;
- background-color: $button-wp-clear-background-color;
- }
-
- .button-clear-wp.activated {
- background-color: $button-wp-clear-background-color-activated;
- }
-
- .button-clear-wp:hover:not(.disable-hover) {
- background-color: $button-wp-clear-background-color-hover;
- }
-
-
- // Windows Clear Button Color Mixin
- // --------------------------------------------------
-
- @mixin wp-button-clear($color-name, $color-base, $color-contrast) {
- $fg-color: $color-base;
-
- .button-clear-wp-#{$color-name} {
- color: $fg-color;
- background-color: $button-wp-clear-background-color;
- }
-
- .button-clear-wp-#{$color-name}.activated {
- background-color: $button-wp-clear-background-color-activated;
- }
-
- .button-clear-wp-#{$color-name}:hover:not(.disable-hover) {
- color: $fg-color;
- }
- }
-
-
- // Windows Round Button
- // --------------------------------------------------
-
- .button-round-wp {
- @include border-radius($button-wp-round-border-radius);
-
- @include deprecated-variable(padding, $button-wp-round-padding) {
- @include padding($button-wp-round-padding-top, $button-wp-round-padding-end, $button-wp-round-padding-bottom, $button-wp-round-padding-start);
- }
- }
-
- .button-wp [icon-only] {
- @include padding(0);
- }
-
-
- // Generate Windows Button Colors
- // --------------------------------------------------
-
- @each $color-name, $color-base, $color-contrast in get-colors($colors-wp) {
- @include wp-button-default($color-name, $color-base, $color-contrast);
- @include wp-button-outline($color-name, $color-base, $color-contrast);
- @include wp-button-clear($color-name, $color-base, $color-contrast);
- }
-
-
- // WP strong Button
- // --------------------------------------------------
-
- .button-strong-wp {
- font-weight: $button-wp-strong-font-weight;
- }
|