mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
update heading margins
This commit is contained in:
38
dist/css/ionic.css
vendored
38
dist/css/ionic.css
vendored
@ -2373,15 +2373,41 @@ h1, h2, h3, h4, h5, h6,
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 1; }
|
line-height: 1; }
|
||||||
|
|
||||||
h1,
|
h1, .h1,
|
||||||
h2,
|
h2, .h2,
|
||||||
h3 {
|
h3, .h3 {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-bottom: 10px; }
|
margin-bottom: 10px; }
|
||||||
|
h1:first-child, .h1:first-child,
|
||||||
|
h2:first-child, .h2:first-child,
|
||||||
|
h3:first-child, .h3:first-child {
|
||||||
|
margin-top: 0; }
|
||||||
|
h1 + h1, h1 + .h1,
|
||||||
|
h1 + h2, h1 + .h2,
|
||||||
|
h1 + h3, h1 + .h3, .h1 + h1, .h1 + .h1,
|
||||||
|
.h1 + h2, .h1 + .h2,
|
||||||
|
.h1 + h3, .h1 + .h3,
|
||||||
|
h2 + h1,
|
||||||
|
h2 + .h1,
|
||||||
|
h2 + h2,
|
||||||
|
h2 + .h2,
|
||||||
|
h2 + h3,
|
||||||
|
h2 + .h3, .h2 + h1, .h2 + .h1,
|
||||||
|
.h2 + h2, .h2 + .h2,
|
||||||
|
.h2 + h3, .h2 + .h3,
|
||||||
|
h3 + h1,
|
||||||
|
h3 + .h1,
|
||||||
|
h3 + h2,
|
||||||
|
h3 + .h2,
|
||||||
|
h3 + h3,
|
||||||
|
h3 + .h3, .h3 + h1, .h3 + .h1,
|
||||||
|
.h3 + h2, .h3 + .h2,
|
||||||
|
.h3 + h3, .h3 + .h3 {
|
||||||
|
margin-top: 10px; }
|
||||||
|
|
||||||
h4,
|
h4, .h4,
|
||||||
h5,
|
h5, .h5,
|
||||||
h6 {
|
h6, .h6 {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 10px; }
|
margin-bottom: 10px; }
|
||||||
|
|
||||||
|
|||||||
@ -44,15 +44,25 @@ h1, h2, h3, h4, h5, h6,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1, .h1,
|
||||||
h2,
|
h2, .h2,
|
||||||
h3 {
|
h3, .h3 {
|
||||||
margin-top: $line-height-computed;
|
margin-top: $line-height-computed;
|
||||||
margin-bottom: ($line-height-computed / 2);
|
margin-bottom: ($line-height-computed / 2);
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ h1, + .h1,
|
||||||
|
+ h2, + .h2,
|
||||||
|
+ h3, + .h3 {
|
||||||
|
margin-top: ($line-height-computed / 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
h4,
|
h4, .h4,
|
||||||
h5,
|
h5, .h5,
|
||||||
h6 {
|
h6, .h6 {
|
||||||
margin-top: ($line-height-computed / 2);
|
margin-top: ($line-height-computed / 2);
|
||||||
margin-bottom: ($line-height-computed / 2);
|
margin-bottom: ($line-height-computed / 2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user