Skip to content

Commit

Permalink
v5: Drop remaining deprecated mixins (#28461)
Browse files Browse the repository at this point in the history
- Deletes mixin mentions from float docs
- Deletes mixin mention from visibility docs
- Deletes the image-replacement page for text-hide
  • Loading branch information
mdo authored and XhmikosR committed Mar 14, 2019
1 parent c16532c commit 837ff0c
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 105 deletions.
3 changes: 0 additions & 3 deletions scss/_mixins.scss
Expand Up @@ -16,9 +16,7 @@
@import "mixins/screen-reader";
@import "mixins/reset-text";
@import "mixins/text-emphasis";
@import "mixins/text-hide";
@import "mixins/text-truncate";
@import "mixins/visibility";

// // Components
@import "mixins/alert";
Expand All @@ -42,4 +40,3 @@
@import "mixins/clearfix";
@import "mixins/grid-framework";
@import "mixins/grid";
@import "mixins/float";
14 changes: 0 additions & 14 deletions scss/mixins/_float.scss

This file was deleted.

11 changes: 0 additions & 11 deletions scss/mixins/_text-hide.scss

This file was deleted.

8 changes: 0 additions & 8 deletions scss/mixins/_visibility.scss

This file was deleted.

4 changes: 0 additions & 4 deletions scss/utilities/_text.scss
Expand Up @@ -56,10 +56,6 @@

// Misc

.text-hide {
@include text-hide($ignore-warning: true);
}

.text-decoration-none { text-decoration: none !important; }

.text-break {
Expand Down
20 changes: 0 additions & 20 deletions site/content/docs/4.3/utilities/float.md
Expand Up @@ -10,32 +10,12 @@ toc: true

These utility classes float an element to the left or right, or disable floating, based on the current viewport size using the [CSS `float` property](https://developer.mozilla.org/en-US/docs/Web/CSS/float). `!important` is included to avoid specificity issues. These use the same viewport breakpoints as our grid system. Please be aware float utilities have no affect on flex items.

## Classes

Toggle a float with a class:

{{< example >}}
<div class="float-left">Float left on all viewport sizes</div><br>
<div class="float-right">Float right on all viewport sizes</div><br>
<div class="float-none">Don't float on all viewport sizes</div>
{{< /example >}}

## Mixins

Or by Sass mixin:

{{< highlight scss >}}
.element {
@include float-left;
}
.another-element {
@include float-right;
}
.one-more {
@include float-none;
}
{{< /highlight >}}

## Responsive

Responsive variations also exist for each `float` value.
Expand Down
35 changes: 0 additions & 35 deletions site/content/docs/4.3/utilities/image-replacement.md

This file was deleted.

9 changes: 0 additions & 9 deletions site/content/docs/4.3/utilities/visibility.md
Expand Up @@ -22,13 +22,4 @@ Apply `.visible` or `.invisible` as needed.
.invisible {
visibility: hidden !important;
}

// Usage as a mixin
// Warning: The `invisible()` mixin has been deprecated as of v4.3.0. It will be removed entirely in v5.
.element {
@include invisible(visible);
}
.element {
@include invisible(hidden);
}
{{< /highlight >}}
1 change: 0 additions & 1 deletion site/data/nav.yml
Expand Up @@ -63,7 +63,6 @@
- title: Embed
- title: Flex
- title: Float
- title: Image replacement
- title: Overflow
- title: Position
- title: Screen readers
Expand Down

0 comments on commit 837ff0c

Please sign in to comment.