-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(typography): adjust breakpoints and add margins (#5009)
* Reworks the typography mappings to avoid excessively large headers. Previously the `display-*` breakpoints were mapped to `h*` elements, which was inaccurate. Now the `display-*` breakpoints aren't mapped to anything and the headers start from the `headline` breakpoint. * Replaces the `subheader` breakpoint with `subheader-2` and `subheader-1`. `subheader-2` correspond to the old `subheader`. * Adds margins to the headers and paragraphs. * Adds aliases that correspond exactly to the terminology from the spec.
- Loading branch information
1 parent
3ad80e4
commit 63db51f
Showing
7 changed files
with
125 additions
and
92 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 |
---|---|---|
@@ -1,37 +1,40 @@ | ||
<!-- via https://en.wikipedia.org/wiki/Pangram --> | ||
<h1 class="mat-h0">How vexingly quick daft zebras jump!</h1> | ||
<h1 class="mat-h1">Jackdaws love my big sphinx of quartz.</h1> | ||
<h2 class="mat-h2">The five boxing wizards jump quickly.</h2> | ||
<h3 class="mat-h3">Pack my box with five dozen liquor jugs.</h3> | ||
<h4 class="mat-h4">Bright vixens jump; dozy fowl quack.</h4> | ||
<h5 class="mat-h5">Sphinx of black quartz, judge my vow.</h5> | ||
<h6 class="mat-h6">The quick brown fox jumps over the lazy dog.</h6> | ||
<div class="mat-typography"> | ||
<h1 class="mat-display-4">How vexingly quick daft zebras jump!</h1> | ||
<h1 class="mat-display-3">The wizard quickly jinxed the gnomes before they vaporized.</h1> | ||
<h1 class="mat-display-2">The quick brown fox jumps over the lazy dog.</h1> | ||
<h1 class="mat-display-1">Grumpy wizards make toxic brew for the evil queen and jack.</h1> | ||
<h1>Jackdaws love my big sphinx of quartz.</h1> | ||
<h2>The five boxing wizards jump quickly.</h2> | ||
<h3>Pack my box with five dozen liquor jugs.</h3> | ||
<h4>Bright vixens jump; dozy fowl quack.</h4> | ||
|
||
<div class="mat-body"> | ||
<p> | ||
Lucas ipsum dolor sit amet coruscant fisto hutt dantooine darth binks amidala kessel grievous | ||
mara. Ackbar mandalore skywalker calamari. Calrissian binks tusken raider kit. Darth binks | ||
chewbacca skywalker. Moff baba padmé antilles darth ponda twi'lek darth. Dagobah naboo mara | ||
jawa dagobah ackbar ackbar darth. Mara mace r2-d2 mon naboo darth dantooine leia. Droid | ||
chewbacca mace han. Wampa hutt qui-gon solo jango secura tusken raider yoda. Droid boba mon | ||
mandalore jinn han binks. Maul darth kit wedge mace utapau darth darth fett. | ||
</p> | ||
<div class="mat-body"> | ||
<p> | ||
Lucas ipsum dolor sit amet coruscant fisto hutt dantooine darth binks amidala kessel grievous | ||
mara. Ackbar mandalore skywalker calamari. Calrissian binks tusken raider kit. Darth binks | ||
chewbacca skywalker. Moff baba padmé antilles darth ponda twi'lek darth. Dagobah naboo mara | ||
jawa dagobah ackbar ackbar darth. Mara mace r2-d2 mon naboo darth dantooine leia. Droid | ||
chewbacca mace han. Wampa hutt qui-gon solo jango secura tusken raider yoda. Droid boba mon | ||
mandalore jinn han binks. Maul darth kit wedge mace utapau darth darth fett. | ||
</p> | ||
|
||
<p> | ||
Antilles antilles secura yavin. Leia luke owen hutt baba yoda hoth obi-wan. Moff thrawn solo | ||
jango mon. Antilles lobot hutt tusken raider moff jade kessel binks. Moff ewok sidious naboo | ||
darth ventress tusken raider. Bothan yavin moff fett organa binks jade binks. Mara moff darth | ||
jade sidious. Darth binks obi-wan padmé dagobah hutt ponda antilles ackbar. Fett gamorrean | ||
obi-wan sidious hutt maul. Organa darth k-3po kessel aayla. Hoth c-3po amidala biggs kenobi | ||
twi'lek twi'lek ahsoka. Obi-wan ackbar windu wicket kit c-3po. | ||
</p> | ||
<p> | ||
Antilles antilles secura yavin. Leia luke owen hutt baba yoda hoth obi-wan. Moff thrawn solo | ||
jango mon. Antilles lobot hutt tusken raider moff jade kessel binks. Moff ewok sidious naboo | ||
darth ventress tusken raider. Bothan yavin moff fett organa binks jade binks. Mara moff darth | ||
jade sidious. Darth binks obi-wan padmé dagobah hutt ponda antilles ackbar. Fett gamorrean | ||
obi-wan sidious hutt maul. Organa darth k-3po kessel aayla. Hoth c-3po amidala biggs kenobi | ||
twi'lek twi'lek ahsoka. Obi-wan ackbar windu wicket kit c-3po. | ||
</p> | ||
|
||
<p> | ||
Hutt naboo greedo skywalker hutt luuke ben. Hutt chewbacca jabba solo calrissian jade yoda | ||
amidala zabrak. Solo luke antilles c-3p0. Sith darth skywalker fett solo hutt skywalker c-3p0 | ||
skywalker. Skywalker skywalker solo kessel darth fett. Skywalker skywalker c-3po jango. | ||
Alderaan darth boba calamari. Wicket alderaan darth darth chewbacca jango. Darth darth | ||
chewbacca ponda solo grievous hutt calrissian lando. Darth mon watto vader chewbacca. | ||
Lando mace luke yavin darth wookiee c-3po. Moff kessel skywalker yoda c-3po yavin. | ||
</p> | ||
<p> | ||
Hutt naboo greedo skywalker hutt luuke ben. Hutt chewbacca jabba solo calrissian jade yoda | ||
amidala zabrak. Solo luke antilles c-3p0. Sith darth skywalker fett solo hutt skywalker c-3p0 | ||
skywalker. Skywalker skywalker solo kessel darth fett. Skywalker skywalker c-3po jango. | ||
Alderaan darth boba calamari. Wicket alderaan darth darth chewbacca jango. Darth darth | ||
chewbacca ponda solo grievous hutt calrissian lando. Darth mon watto vader chewbacca. | ||
Lando mace luke yavin darth wookiee c-3po. Moff kessel skywalker yoda c-3po yavin. | ||
</p> | ||
</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
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 |
---|---|---|
|
@@ -42,5 +42,6 @@ | |
.mat-toolbar h5, | ||
.mat-toolbar h6 { | ||
@include mat-typography-level-to-styles($config, title); | ||
margin: 0; | ||
} | ||
} |