Skip to content

Commit

Permalink
fix(component): alert padding
Browse files Browse the repository at this point in the history
20px padding
dedicated scss file
close button positionning
  • Loading branch information
ygatesoupe committed Jan 18, 2017
1 parent 4686421 commit b6b3891
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,8 @@ $modal-transition: transform .3s ease-out !default;
//
// Define alert colors, border radius, and padding.

$alert-padding-x: 15px;
$alert-padding-y: 15px;
$alert-padding-x: 1.25rem;
$alert-padding-y: 1.25rem;
$alert-margin-bottom: $spacer;
$alert-border-radius: $border-radius;
$alert-link-font-weight: $font-weight-bold;
Expand Down
17 changes: 17 additions & 0 deletions scss/_o-alert.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Alerts
//
//

.alert {
border: 0;
line-height: $close-font-size;
}

.alert-dismissible {
.close {
position: relative;
top: -1.125rem;
right: -1.125rem;
padding: 1.125rem;
}
}
1 change: 1 addition & 0 deletions scss/boosted.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
@import "utilities";

// boosted mod
@import "o-alert";
@import "o-buttons";
@import "o-card";
@import "o-switches";
Expand Down

0 comments on commit b6b3891

Please sign in to comment.