source: css/mini/_input_control_mixins.scss@ 5c9a606

Last change on this file since 5c9a606 was 5c9a606, checked in by w96k <w96k.ru@…>, on May 5, 2019 at 2:16:42 AM

Delete Hugo; Add basic haunt blog

  • Property mode set to 100644
File size: 2.3 KB
Line 
1// Input_control module's mixin definitions are here. For the module itself
2// check `_input_control.scss`.
3// Button color variant mixin:
4// $button-alt-name: The name of the class used for the button variant.
5// $button-alt-back-color: Background color for button variant.
6// $button-alt-hover-back-color: Background color for button variant (hover).
7// $button-alt-fore-color: Text color for button variant.
8// $button-alt-border-color: Border color for button variant.
9// $button-alt-hover-border-color: Border color for button variant (hover).
10@mixin make-button-alt-color ($button-alt-name, $button-alt-back-color : $button-back-color,
11 $button-alt-hover-back-color : $button-hover-back-color, $button-alt-fore-color : $button-fore-color,
12 $button-alt-border-color : $button-border-color, $button-alt-hover-border-color : $button-hover-border-color) {
13 button, [type="button"], [type="submit"], [type="reset"], .#{$button-class-name}, [role="button"] {
14 &.#{$button-alt-name} {
15 @if $button-alt-back-color != $button-back-color {
16 #{$button-back-color-var}: $button-alt-back-color;
17 }
18 @if $button-alt-fore-color != $button-fore-color{
19 #{$button-fore-color-var}: $button-alt-fore-color;
20 }
21 @if $button-alt-border-color != $button-border-color{
22 #{$button-border-color-var}: $button-alt-border-color;
23 }
24 &:hover, &:focus {
25 @if $button-alt-hover-back-color != $button-hover-back-color{
26 #{$button-hover-back-color-var}: $button-alt-hover-back-color;
27 }
28 @if $button-alt-hover-border-color != $button-hover-border-color{
29 #{$button-hover-border-color-var}: $button-alt-hover-border-color;
30 }
31 }
32 }
33 }
34}
35// Button size variant mixin:
36// $button-alt-name: The name of the class used for the button variant.
37// $button-alt-padding: The padding of the button variant.
38// $button-alt-margin The margin of the button variant.
39@mixin make-button-alt-size ($button-alt-name, $button-alt-padding, $button-alt-margin) {
40 button, [type="button"], [type="submit"], [type="reset"], .#{$button-class-name}, [role="button"] {
41 &.#{$button-alt-name} {
42 padding: $button-alt-padding;
43 margin: $button-alt-margin;
44 }
45 }
46}
Note: See TracBrowser for help on using the repository browser.