Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing mixins and removed obsolete parameter #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/assets/scss/core/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
// Size variations
&.btn-lg,
.btn-group-lg & {
@include button-size($input-btn-padding-y-lg, $input-btn-padding-x-lg, $bmd-btn-font-size, $btn-lg-line-height, $border-radius-sm);
@include button-size($input-btn-padding-y-lg, $input-btn-padding-x-lg, $bmd-btn-font-size, $border-radius-sm);
}
&.btn-sm,
.btn-group-sm & {
@include button-size($input-btn-padding-y-sm, $input-btn-padding-x-sm, $bmd-btn-font-size-sm, $line-height-sm, $border-radius-sm);
@include button-size($input-btn-padding-y-sm, $input-btn-padding-x-sm, $bmd-btn-font-size-sm, $border-radius-sm);
}

&.btn-round {
Expand Down
27 changes: 27 additions & 0 deletions src/assets/scss/core/mixins/_hover.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
@mixin hover() {
&:hover { @content; }
}

@mixin hover-focus() {
&:hover,
&:focus {
@content;
}
}

@mixin plain-hover-focus() {
&,
&:hover,
&:focus {
@content;
}
}

@mixin hover-focus-active() {
&:hover,
&:focus,
&:active {
@content;
}
}

@mixin bmd-hover-focus-active {
// add the .active to the whole mix of hover-focus-active
&.active {
Expand Down