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(page): Add dc-page and dc-container. Close #226.
- Loading branch information
Gabriel Lovato
committed
Nov 10, 2016
1 parent
7c76d97
commit 4312620
Showing
29 changed files
with
61 additions
and
27 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
6 changes: 6 additions & 0 deletions
6
docs/demo/materials/02-structure-and-grid/01-page-structure.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,6 @@ | ||
--- | ||
notes: | | ||
Use `dc-page` to set up the page space. It applies the default page padding for several screen sizes. | ||
|
||
Use `dc-container` to create the main content container. Your content and cards should go inside of this container. Use `dc-container--contained` to limit the maximum size of the container. | ||
--- |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
--- | ||
fabricator: true | ||
--- | ||
|
||
<h1 class="dc-h1" data-f-toggle="labels">Page Structure and Grid</h1> | ||
|
||
{{#each materials.02-structure-and-grid.items}} | ||
|
||
{{> f-item this}} | ||
|
||
{{/each}} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,35 @@ | ||
@mixin dc-page { | ||
|
||
padding: $dc-space75; | ||
|
||
@include breakpoint($dc-large-width) { | ||
padding: $dc-space100; | ||
} | ||
|
||
@include breakpoint($dc-huge-width) { | ||
padding: $dc-space150; | ||
} | ||
|
||
@include breakpoint($dc-giant-width) { | ||
padding: $dc-space150 $dc-space250; | ||
} | ||
} | ||
|
||
@mixin dc-container { | ||
margin: 0 auto; | ||
|
||
&--limited { | ||
max-width: 120rem; | ||
} | ||
} | ||
|
||
|
||
@mixin dc-structure-selectors { | ||
.dc-page { | ||
@include dc-page; | ||
} | ||
|
||
.dc-container { | ||
@include dc-container; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/styles/grid/_grid.scss → src/styles/structure/_structure.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import "grid-variables"; | ||
@import "grid-mixins"; | ||
@import "grid-classes"; | ||
@import "page-container"; |