Reset heading styles in preflight
Set all headings to inherit the parent font size and reset the font weight to normal. This prevents you from accidentally using browser default sizes in your designs and deviating from your design system.
This commit is contained in:
parent
2219dfd814
commit
c3886066cc
3 changed files with 30 additions and 0 deletions
|
|
@ -478,6 +478,16 @@ table {
|
|||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -478,6 +478,16 @@ table {
|
|||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,3 +123,13 @@ button,
|
|||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue