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

Rebrand admin flash notifications #604

Merged
merged 3 commits into from
Dec 23, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Prepend icon to admin flash notifications
  • Loading branch information
Sinetheta committed Dec 18, 2015
commit c5fcdd4a3daf592cddf52359af19df5db248aa32
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@

&.success {
@include flash-variant($color-success);
@include prepend-icon($character-check);
}

&.error {
@include flash-variant($color-error);
@include prepend-icon($character-exclamation);
}

&:before {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,8 @@ $width-sidebar-flyout: 225px !default;
// Stacking
//--------------------------------------------------------------
$z-index-navbar-flyout: 1000;

// Characters
//--------------------------------------------------------------
$character-check: "\f00c";
$character-exclamation: "\f12a";
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@mixin prepend-icon($character) {
&:before {
@extend .fa;
content: $character;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@import 'spree/backend/globals/variables';

@import 'spree/backend/globals/mixins/caret';
@import 'spree/backend/globals/mixins/prepend_icon';

@import 'spree/backend/shared/typography';
@import 'spree/backend/shared/tables';
Expand Down