forked from pure-css/pure-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit improves grid docs by simplifying the examples, adding a section on fixing github.com/pure-css/pure/issues/41/, and distinguishing examples from the page.
- Loading branch information
Showing
8 changed files
with
101 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
dl { | ||
line-height: 1.6em; | ||
} | ||
|
||
.grid-example { | ||
background: #333; | ||
color: #ddd; | ||
border-radius: 5px; | ||
} | ||
|
||
.grid-example h3 { | ||
color: #fff; | ||
} |
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,16 @@ | ||
<style> | ||
/* Putting the font-family to Arial makes sure the | ||
letter and word spacing collapsing works */ | ||
.pure-g, | ||
.pure-g-r { | ||
font-family: "Helvetica", "Arial", sans-serif; | ||
} | ||
/* Declaring the font-family on the children ensures | ||
that the grid doesn't flow to a new line. */ | ||
.pure-g [class *= "pure-u"], | ||
.pure-g-r [class *= "pure-u"] { | ||
font-family: "YOUR_CUSTOM_FONT"; | ||
} | ||
</style> |
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
<div class="pure-g"> | ||
<div class="pure-u-1-3"> | ||
<!-- | ||
By default, grid units don't have any margin/padding. | ||
If you want to add these, put them in a child container. | ||
--> | ||
<p>Thirds</p> | ||
</div> | ||
<body> | ||
<div class="pure-g"> | ||
<div class="pure-u-1-3"> | ||
<!-- | ||
By default, grid units don't have any margin/padding. | ||
If you want to add these, put them in a child container. | ||
--> | ||
<p>Thirds</p> | ||
</div> | ||
|
||
<div class="pure-u-1-3"> | ||
<p>Thirds</p> | ||
</div> | ||
<div class="pure-u-1-3"> | ||
<p>Thirds</p> | ||
</div> | ||
|
||
<div class="pure-u-1-3"> | ||
<p>Thirds</p> | ||
<div class="pure-u-1-3"> | ||
<p>Thirds</p> | ||
</div> | ||
</div> | ||
</div> | ||
</body> |
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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<style> | ||
.pure-g > div { | ||
box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
.sidebar { | ||
padding: 0.5em; | ||
border-right: 2px solid #777; | ||
} | ||
.main { | ||
padding: 0.75em 0.5em; | ||
.l-box { | ||
padding: 1em; | ||
} | ||
</style> | ||
|
||
... | ||
|
||
<div class="pure-g"> | ||
|
||
<div class="pure-u-1-2 sidebar"> ... </div> | ||
<div class="pure-u-1-2 main"> ... </div> | ||
<div class="pure-u-1-2 l-box"> ... </div> | ||
<div class="pure-u-1-2 l-box"> ... </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