2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

add [hidden] utility for hiding any html element (see #15274 for more context)

This commit is contained in:
Mark Otto
2014-12-23 04:10:59 -08:00
parent 2b16cb921c
commit f9aec74124
9 changed files with 30 additions and 15 deletions
+8 -4
View File
@@ -4625,7 +4625,7 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
bottom: -11px; bottom: -11px;
left: 50%; left: 50%;
margin-left: -11px; margin-left: -11px;
border-top-color: fadein(rgba(0, 0, 0, .2), 5%); border-top-color: rgba(0, 0, 0, .25);
border-bottom-width: 0; border-bottom-width: 0;
} }
.popover.top > .arrow:after { .popover.top > .arrow:after {
@@ -4639,7 +4639,7 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
top: 50%; top: 50%;
left: -11px; left: -11px;
margin-top: -11px; margin-top: -11px;
border-right-color: fadein(rgba(0, 0, 0, .2), 5%); border-right-color: rgba(0, 0, 0, .25);
border-left-width: 0; border-left-width: 0;
} }
.popover.right > .arrow:after { .popover.right > .arrow:after {
@@ -4654,7 +4654,7 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
left: 50%; left: 50%;
margin-left: -11px; margin-left: -11px;
border-top-width: 0; border-top-width: 0;
border-bottom-color: fadein(rgba(0, 0, 0, .2), 5%); border-bottom-color: rgba(0, 0, 0, .25);
} }
.popover.bottom > .arrow:after { .popover.bottom > .arrow:after {
top: 1px; top: 1px;
@@ -4668,7 +4668,7 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
right: -11px; right: -11px;
margin-top: -11px; margin-top: -11px;
border-right-width: 0; border-right-width: 0;
border-left-color: fadein(rgba(0, 0, 0, .2), 5%); border-left-color: rgba(0, 0, 0, .25);
} }
.popover.left > .arrow:after { .popover.left > .arrow:after {
right: 1px; right: 1px;
@@ -4936,6 +4936,10 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
display: block !important; display: block !important;
} }
[hidden] {
display: none !important;
}
.invisible { .invisible {
visibility: hidden; visibility: hidden;
} }
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+8 -4
View File
@@ -4625,7 +4625,7 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
bottom: -11px; bottom: -11px;
left: 50%; left: 50%;
margin-left: -11px; margin-left: -11px;
border-top-color: fadein(rgba(0, 0, 0, .2), 5%); border-top-color: rgba(0, 0, 0, .25);
border-bottom-width: 0; border-bottom-width: 0;
} }
.popover.top > .arrow:after { .popover.top > .arrow:after {
@@ -4639,7 +4639,7 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
top: 50%; top: 50%;
left: -11px; left: -11px;
margin-top: -11px; margin-top: -11px;
border-right-color: fadein(rgba(0, 0, 0, .2), 5%); border-right-color: rgba(0, 0, 0, .25);
border-left-width: 0; border-left-width: 0;
} }
.popover.right > .arrow:after { .popover.right > .arrow:after {
@@ -4654,7 +4654,7 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
left: 50%; left: 50%;
margin-left: -11px; margin-left: -11px;
border-top-width: 0; border-top-width: 0;
border-bottom-color: fadein(rgba(0, 0, 0, .2), 5%); border-bottom-color: rgba(0, 0, 0, .25);
} }
.popover.bottom > .arrow:after { .popover.bottom > .arrow:after {
top: 1px; top: 1px;
@@ -4668,7 +4668,7 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
right: -11px; right: -11px;
margin-top: -11px; margin-top: -11px;
border-right-width: 0; border-right-width: 0;
border-left-color: fadein(rgba(0, 0, 0, .2), 5%); border-left-color: rgba(0, 0, 0, .25);
} }
.popover.left > .arrow:after { .popover.left > .arrow:after {
right: 1px; right: 1px;
@@ -4936,6 +4936,10 @@ a.list-group-item-state.active, a.list-group-item-state.active:hover, a.list-gro
display: block !important; display: block !important;
} }
[hidden] {
display: none !important;
}
.invisible { .invisible {
visibility: hidden; visibility: hidden;
} }
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -58,7 +58,7 @@
</div> </div>
</section> </section>
<section class="album text-muted"> <div class="album text-muted">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
@@ -103,7 +103,7 @@
</div> </div>
</div> </div>
</section> </div>
<footer class="text-muted"> <footer class="text-muted">
<div class="container"> <div class="container">
+7
View File
@@ -51,9 +51,16 @@
.show { .show {
display: block !important; display: block !important;
} }
// Always hide an element with the `hidden` HTML attribute (from PureCSS).
[hidden] {
display: none !important;
}
.invisible { .invisible {
visibility: hidden; visibility: hidden;
} }
.text-hide { .text-hide {
@include text-hide(); @include text-hide();
} }