-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(HelperMixins): renamed to helper mixins, hide-at-breakpoint
- Loading branch information
Showing
5 changed files
with
48 additions
and
29 deletions.
There are no files selected for viewing
26 changes: 0 additions & 26 deletions
26
packages/react/src/components/Helpers/HelperClasses.stories.js
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...mponents/Helpers/HelperClasses-story.scss → ...eAtBreakpoint/HideAtBreakpoint-story.scss
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
46 changes: 46 additions & 0 deletions
46
packages/react/src/components/HideAtBreakpoint/HideAtBreakpoint.stories.js
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,46 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import './HideAtBreakpoint-story.scss'; | ||
import React from 'react'; | ||
|
||
export default { | ||
title: 'Helpers/HideAtBreakpoint', | ||
component: HideAtBreakpoint, | ||
}; | ||
|
||
export const HideAtBreakpoint = () => { | ||
return ( | ||
<> | ||
<div className="hide-at-sm"> | ||
<code>@include hide-at-sm</code> <br /> | ||
<br /> | ||
Only hidden on sm breakpoint | ||
</div> | ||
<div className="hide-at-md"> | ||
<code>@include hide-at-md</code> <br /> | ||
<br /> | ||
Only hidden on md breakpoint | ||
</div> | ||
<div className="hide-at-lg"> | ||
<code>@include hide-at-lg</code> <br /> | ||
<br /> | ||
Only hidden on lg breakpoint | ||
</div> | ||
<div className="hide-at-xlg"> | ||
<code>@include hide-at-xlg</code> <br /> | ||
<br /> | ||
Only hidden on xlg breakpoint | ||
</div> | ||
<div className="hide-at-max"> | ||
<code>@include hide-at-max</code> <br /> | ||
<br /> | ||
Only hidden on max breakpoint | ||
</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
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