Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Fix #716.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Aug 19, 2016
1 parent fd62115 commit 44f96a1
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 22 deletions.
3 changes: 2 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ New in 3.0.1.8
==============
- FIX: Issue #710: Wrong profile image used.
- FIX: Issue #711: Space when blocks are docked.
- FIX: Issue #718: Affix top offset height when reload down page..
- FIX: Issue #716: Information alert close difficult to see.
- FIX: Issue #718: Affix top offset height when reload down page.

New in 3.0.1.7
==============
Expand Down
6 changes: 3 additions & 3 deletions layout/frontpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<!-- Alert #1 -->
<?php if ($enable1alert) { ?>
<div class="useralerts alert alert-<?php echo \theme_essential\toolbox::get_setting('alert1type'); ?>">
<a class="close" data-dismiss="alert" href="#"><span aria-hidden="true" class="fa fa-times-circle"></span></a>
<button type="button" class="close" data-dismiss="alert"><span class="fa fa-times-circle" aria-hidden="true"></span></button>
<?php
$alert1icon = 'alert' . \theme_essential\toolbox::get_setting('alert1type');
echo $$alert1icon.'<span class="title">'.\theme_essential\toolbox::get_setting('alert1title', true);
Expand All @@ -79,7 +79,7 @@
<!-- Alert #2 -->
<?php if ($enable2alert) { ?>
<div class="useralerts alert alert-<?php echo \theme_essential\toolbox::get_setting('alert2type'); ?>">
<a class="close" data-dismiss="alert" href="#"><span aria-hidden="true" class="fa fa-times-circle"></span></a>
<button type="button" class="close" data-dismiss="alert"><span class="fa fa-times-circle" aria-hidden="true"></span></button>
<?php
$alert2icon = 'alert' . \theme_essential\toolbox::get_setting('alert2type');
echo $$alert2icon.'<span class="title">'.\theme_essential\toolbox::get_setting('alert2title', true);
Expand All @@ -92,7 +92,7 @@
<!-- Alert #3 -->
<?php if ($enable3alert) { ?>
<div class="useralerts alert alert-<?php echo \theme_essential\toolbox::get_setting('alert3type'); ?>">
<a class="close" data-dismiss="alert" href="#"><span aria-hidden="true" class="fa fa-times-circle"></span></a>
<button type="button" class="close" data-dismiss="alert"><span class="fa fa-times-circle" aria-hidden="true"></span></button>
<?php
$alert3icon = 'alert' . \theme_essential\toolbox::get_setting('alert3type');
echo $$alert3icon.'<span class="title">'.\theme_essential\toolbox::get_setting('alert3title', true);
Expand Down
4 changes: 4 additions & 0 deletions less/essential/frontpage.less
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
}

/* @group Alerts */
.useralerts .close {
margin-top: 4px;
margin-bottom: 0;
}

.useralerts [class^="fa-stack"] {
margin-right: 5px;
Expand Down
6 changes: 3 additions & 3 deletions less/essential/settings/alerts.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
color: ~"[[setting:themenavcolor]]";
}
}
&.alert-info a.close {
&.alert-info .close {
.@{fa-css-prefix} {
color: @infoText;
}
Expand All @@ -27,7 +27,7 @@
}
}
}
&.alert-error a.close {
&.alert-error .close {
.@{fa-css-prefix} {
color: @errorText;
}
Expand All @@ -37,7 +37,7 @@
}
}
}
&.alert-success a.close {
&.alert-success .close {
.@{fa-css-prefix} {
color: @successText;
}
Expand Down
2 changes: 1 addition & 1 deletion style/essential-rtl.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions style/essential-rtl_ie9.css

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions style/essential-settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@
.alert .fa-bullhorn:focus {
color: [[setting:themenavcolor]];
}
.alert.alert-info a.close .fa {
.alert.alert-info .close .fa {
color: #3a87ad;
}
.alert.alert-info a.close:hover .fa,
.alert.alert-info a.close:focus .fa {
.alert.alert-info .close:hover .fa,
.alert.alert-info .close:focus .fa {
color: #3a87ad;
}
.alert.alert-error a.close .fa {
.alert.alert-error .close .fa {
color: #b94a48;
}
.alert.alert-error a.close:hover .fa,
.alert.alert-error a.close:focus .fa {
.alert.alert-error .close:hover .fa,
.alert.alert-error .close:focus .fa {
color: #b94a48;
}
.alert.alert-success a.close .fa {
.alert.alert-success .close .fa {
color: #468847;
}
.alert.alert-success a.close:hover .fa,
.alert.alert-success a.close:focus .fa {
.alert.alert-success .close:hover .fa,
.alert.alert-success .close:focus .fa {
color: #468847;
}
/* @end */
Expand Down
2 changes: 1 addition & 1 deletion style/essential.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions style/essential_ie9.css

Large diffs are not rendered by default.

0 comments on commit 44f96a1

Please sign in to comment.