-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(angular): render components as row (#5)
- Loading branch information
1 parent
936f66d
commit 73beb2e
Showing
7 changed files
with
131 additions
and
41 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/** *** ADDON HTML STRUCTURE: | ||
//Wrapper | ||
<div class="pseudo-states-addon__container"> | ||
//n story containers | ||
<div className="pseudo-states-addon__story pseudo-states-addon__story--Normal"> | ||
<div className="pseudo-states-addon__story__header">Normal:</div> | ||
<div className="pseudo-states-addon__story__container">{story}</div> | ||
</div> | ||
// closing wrapper | ||
</div> | ||
*/ | ||
|
||
export const container = ` | ||
.pseudo-states-addon__container { | ||
display: flex; | ||
flex: 1 1 auto; | ||
flex-direction: column; | ||
} | ||
.pseudo-states-addon__container.row { | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
} | ||
`; | ||
|
||
export const story = ` | ||
.pseudo-states-addon__story { | ||
flex: 1 1 100%; | ||
margin: 0 0 10px 0; | ||
} | ||
.pseudo-states-addon__story.row { | ||
flex: 1 1 100%; | ||
margin: 0 15px 15px 0; | ||
} | ||
`; | ||
|
||
export const storyHeader = ` | ||
.pseudo-states-addon__story__header { | ||
margin-bottom: 5px; | ||
} | ||
.pseudo-states-addon__story__header::first-letter { | ||
text-transform: uppercase; | ||
} | ||
`; | ||
|
||
export const storyContainer = ` | ||
.pseudo-states-addon__story__container:not(.addonDisabled) { | ||
padding: 0 0 0 0; | ||
} | ||
`; | ||
|
||
export const styles = ` | ||
${container}, | ||
${story}, | ||
${storyHeader}, | ||
${storyContainer} | ||
`; | ||
|
||
export default styles; |
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