-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[minor] Enable shorten css names for generators (#878)
* Enable shorten CSS class names for generator * temporary eslint-disable-line
- Loading branch information
Showing
6 changed files
with
32 additions
and
433 deletions.
There are no files selected for viewing
20 changes: 10 additions & 10 deletions
20
packages/generator-electrode/generators/app/templates/src/client/components/demo-buttons.jsx
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import React from "react"; | ||
import custom from "../styles/custom.css"; | ||
import milligram from "milligram"; | ||
import custom from "../styles/custom.css"; // eslint-disable-line no-unused-vars | ||
import milligram from "milligram/dist/milligram.css"; // eslint-disable-line no-unused-vars | ||
|
||
/* | ||
* Demostrates a simple pure functional component | ||
*/ | ||
|
||
export const DemoButtons = () => ( | ||
<div> | ||
<h6 className={custom["docs-header"]}> | ||
<h6 styleName={"custom.docs-header"}> | ||
demo CSS modules with buttons from <a href="https://milligram.io/">milligram</a> | ||
</h6> | ||
<div className={custom["docs-example"]}> | ||
<a className={milligram.button} href="#"> | ||
<div styleName={"custom.docs-example"}> | ||
<a styleName={"milligram.button"} href="#"> | ||
Anchor button | ||
</a> | ||
<button>Button element</button> | ||
<input type="submit" value="submit input" /> | ||
<input type="button" value="button input" /> | ||
</div> | ||
<div className={custom["docs-example"]}> | ||
<a className={`${milligram.button} ${milligram["button-outline"]}`} href="#"> | ||
<div styleName={"custom.docs-example"}> | ||
<a styleName={"milligram.button milligram.button-outline"} href="#"> | ||
Anchor button | ||
</a> | ||
<button className={milligram["button-outline"]}>Button element</button> | ||
<input className={milligram["button-outline"]} type="submit" value="submit input" /> | ||
<input className={milligram["button-outline"]} type="button" value="button input" /> | ||
<button styleName={"milligram.button-outline"}>Button element</button> | ||
<input styleName={"milligram.button-outline"} type="submit" value="submit input" /> | ||
<input styleName={"milligram.button-outline"} type="button" value="button input" /> | ||
</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
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
Oops, something went wrong.