Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Galante <agalante@gmail.com>2017-08-25 04:11:36 +0300
committerMark Otto <markd.otto@gmail.com>2017-10-01 09:32:39 +0300
commitf02f545e0eb4cc8fca282465ccdf54f29d0a1acc (patch)
treec47b11f367083345f5def7cb7afb9bda7f304df6 /scss/_alert.scss
parent4e2ed6890c778d3407dd8a5cd016164b2472d67a (diff)
changes the order of the close btn on alerts to improve accecibility
Diffstat (limited to 'scss/_alert.scss')
-rw-r--r--scss/_alert.scss7
1 files changed, 4 insertions, 3 deletions
diff --git a/scss/_alert.scss b/scss/_alert.scss
index 3dfd13f56a..66fba24ead 100644
--- a/scss/_alert.scss
+++ b/scss/_alert.scss
@@ -3,6 +3,7 @@
//
.alert {
+ position: relative;
padding: $alert-padding-y $alert-padding-x;
margin-bottom: $alert-margin-bottom;
border: $alert-border-width solid transparent;
@@ -28,9 +29,9 @@
.alert-dismissible {
// Adjust close link position
.close {
- position: relative;
- top: -$alert-padding-y;
- right: -$alert-padding-x;
+ position: absolute;
+ top: 0;
+ right: 0;
padding: $alert-padding-y $alert-padding-x;
color: inherit;
}