Skip to content

Commit 78f7ad9

Browse files
committed
fixes twbs#5542: move '.hero-unit p' font-styles to '.hero-unit' so they apply to all elements, including ul and ol, within the component.
1 parent bf78333 commit 78f7ad9

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

docs/assets/css/bootstrap.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5847,6 +5847,10 @@ a.badge:hover {
58475847
.hero-unit {
58485848
padding: 60px;
58495849
margin-bottom: 30px;
5850+
font-size: 18px;
5851+
font-weight: 200;
5852+
line-height: 30px;
5853+
color: inherit;
58505854
background-color: #eeeeee;
58515855
-webkit-border-radius: 6px;
58525856
-moz-border-radius: 6px;
@@ -5861,11 +5865,8 @@ a.badge:hover {
58615865
color: inherit;
58625866
}
58635867

5864-
.hero-unit p {
5865-
font-size: 18px;
5866-
font-weight: 200;
5868+
.hero-unit li {
58675869
line-height: 30px;
5868-
color: inherit;
58695870
}
58705871

58715872
.pull-right {

less/hero-unit.less

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
.hero-unit {
77
padding: 60px;
88
margin-bottom: 30px;
9+
font-size: 18px;
10+
font-weight: 200;
11+
line-height: @baseLineHeight * 1.5;
12+
color: @heroUnitLeadColor;
913
background-color: @heroUnitBackground;
1014
.border-radius(6px);
1115
h1 {
@@ -15,10 +19,7 @@
1519
color: @heroUnitHeadingColor;
1620
letter-spacing: -1px;
1721
}
18-
p {
19-
font-size: 18px;
20-
font-weight: 200;
21-
line-height: @baseLineHeight * 1.5;
22-
color: @heroUnitLeadColor;
22+
li {
23+
line-height: @baseLineHeight * 1.5; // Reset since we specify in type.less
2324
}
2425
}

0 commit comments

Comments
 (0)