This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(grid): Add utility classes to hide/show at different breakpoint …
…sizes Close #287
- Loading branch information
Gabriel Lovato
committed
Dec 9, 2016
1 parent
915a21e
commit a5a875b
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
docs/demo/materials/02-structure-and-grid/02-grid/10-hide-or-show-elements.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
notes: | | ||
Hide/show elements according to breakpoint size. Combine hide and show classes to make elements only appear in a specific range of screen sizes. | ||
--- | ||
<div class="dc-row"> | ||
<div class="dc-column dc-hide-from-small"> | ||
<div class="dc-column__contents ">This element will <strong class="dc-strong">hide</strong> from small breakpoint size on. | ||
</div> | ||
</div> | ||
<div class="dc-column dc-hide-from-medium"> | ||
<div class="dc-column__contents ">This element will <strong class="dc-strong">hide</strong> from medium breakpoint size on. | ||
</div> | ||
</div> | ||
<div class="dc-column dc-hide-from-large"> | ||
<div class="dc-column__contents ">This element will <strong class="dc-strong">hide</strong> from large breakpoint size on. | ||
</div> | ||
</div> | ||
<div class="dc-column"> | ||
<div class="dc-column__contents dc-hide-from-huge">This element will <strong class="dc-strong">hide</strong> from huge breakpoint size on. | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="dc-row"> | ||
<div class="dc-column dc-show-from-small"> | ||
<div class="dc-column__contents">This element will <strong class="dc-strong">show</strong> from small breakpoint size on. | ||
</div> | ||
</div> | ||
<div class="dc-column dc-show-from-medium"> | ||
<div class="dc-column__contents">This element will <strong class="dc-strong">show</strong> from medium breakpoint size on. | ||
</div> | ||
</div> | ||
<div class="dc-column dc-show-from-large"> | ||
<div class="dc-column__contents">This element will <strong class="dc-strong">show</strong> from large breakpoint size on. | ||
</div> | ||
</div> | ||
<div class="dc-column dc-show-from-huge"> | ||
<div class="dc-column__contents">This element will <strong class="dc-strong">show</strong> from large breakpoint size on. | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="dc-row"> | ||
<div class="dc-column dc-show-from-small dc-hide-from-large"> | ||
<div class="dc-column__contents">This element will <strong class="dc-strong">show</strong> in small and medium breakpoint sizes. | ||
</div> | ||
</div> | ||
<div class="dc-column dc-show-from-medium dc-hide-from-huge"> | ||
<div class="dc-column__contents">This element will <strong class="dc-strong">show</strong> in medium and large breakpoint sizes. | ||
</div> | ||
</div> | ||
<div class="dc-column dc-show-from-small dc-hide-from-large dc-show-from-huge"> | ||
<div class="dc-column__contents">This element will <strong class="dc-strong">show</strong> in small, medium and huge breakpoint sizes. | ||
</div> | ||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters