aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-01-16 15:07:57 -0800
committerMark Otto <[email protected]>2013-01-16 15:07:57 -0800
commit1288304e9199b8cd2be06faaece97dc0c878d9e7 (patch)
tree325b43a033118f7372a456e3003fda2203ffe412
parentcf693b56321c457ce35e1ebb72a2a5f3606fc563 (diff)
downloadbootstrap-1288304e9199b8cd2be06faaece97dc0c878d9e7.tar.xz
bootstrap-1288304e9199b8cd2be06faaece97dc0c878d9e7.zip
Make jumbotron mo responsive
-rw-r--r--docs/assets/css/bootstrap.css20
-rw-r--r--less/jumbotron.less21
2 files changed, 27 insertions, 14 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index b5cea261d..b9865ee09 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -4589,9 +4589,9 @@ a.badge:hover {
}
.jumbotron {
- padding: 60px;
+ padding: 30px;
margin-bottom: 30px;
- font-size: 18px;
+ font-size: 21px;
font-weight: 200;
line-height: 30px;
color: inherit;
@@ -4600,15 +4600,21 @@ a.badge:hover {
}
.jumbotron h1 {
- margin-bottom: 0;
- font-size: 60px;
line-height: 1;
- letter-spacing: -1px;
color: inherit;
}
-.jumbotron li {
- line-height: 30px;
+.jumbotron p {
+ line-height: 1.4;
+}
+
+@media screen and (min-width: 768px) {
+ .jumbotron {
+ padding: 50px 60px;
+ }
+ .jumbotron h1 {
+ font-size: 60px;
+ }
}
.clearfix:before,
diff --git a/less/jumbotron.less b/less/jumbotron.less
index add431969..18de623fd 100644
--- a/less/jumbotron.less
+++ b/less/jumbotron.less
@@ -4,22 +4,29 @@
.jumbotron {
- padding: 60px;
+ padding: 30px;
margin-bottom: 30px;
- font-size: 18px;
+ font-size: 21px;
font-weight: 200;
line-height: @line-height-base * 1.5;
color: @jumbotron-lead-color;
background-color: @jumbotron-background;
border-radius: 6px;
h1 {
- margin-bottom: 0;
- font-size: 60px;
line-height: 1;
color: @jumbotron-heading-color;
- letter-spacing: -1px;
}
- li {
- line-height: @line-height-base * 1.5; // Reset since we specify in type.less
+ p {
+ line-height: 1.4;
+ }
+}
+
+@media screen and (min-width: 768px) {
+ .jumbotron {
+ padding: 50px 60px;
+
+ h1 {
+ font-size: 60px;
+ }
}
}