mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 07:37:27 +02:00
clean up responsive media queries and docs css
This commit is contained in:
Binary file not shown.
10
docs/assets/css/bootstrap-responsive.css
vendored
10
docs/assets/css/bootstrap-responsive.css
vendored
@@ -12,6 +12,9 @@
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
|
.nav-collapse {
|
||||||
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
.page-header h1 small {
|
.page-header h1 small {
|
||||||
display: block;
|
display: block;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
@@ -99,7 +102,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) and (max-width: 940px) {
|
@media (min-width: 768px) and (max-width: 980px) {
|
||||||
.row {
|
.row {
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
*zoom: 1;
|
*zoom: 1;
|
||||||
@@ -275,7 +278,7 @@
|
|||||||
width: 714px;
|
width: 714px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 940px) {
|
@media (max-width: 980px) {
|
||||||
body {
|
body {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
@@ -373,10 +376,9 @@
|
|||||||
.nav-collapse {
|
.nav-collapse {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 0;
|
height: 0;
|
||||||
-webkit-transform: translate3d(0, 0, 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 940px) {
|
@media (min-width: 980px) {
|
||||||
.nav-collapse.collapse {
|
.nav-collapse.collapse {
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
4
docs/assets/css/bootstrap.css
vendored
4
docs/assets/css/bootstrap.css
vendored
@@ -1112,7 +1112,7 @@ table .span12 {
|
|||||||
width: 924px;
|
width: 924px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
[class*="icon-"] {
|
[class^="icon-"] {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
@@ -1122,7 +1122,7 @@ table .span12 {
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
*margin-right: .3em;
|
*margin-right: .3em;
|
||||||
}
|
}
|
||||||
[class*="icon-"]:last-child {
|
[class^="icon-"]:last-child {
|
||||||
*margin-left: 0;
|
*margin-left: 0;
|
||||||
}
|
}
|
||||||
.icon-white {
|
.icon-white {
|
||||||
|
@@ -61,17 +61,13 @@ hr.soften {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.jumbotron h1 {
|
.jumbotron h1 {
|
||||||
margin-bottom: 9px;
|
|
||||||
font-size: 81px;
|
font-size: 81px;
|
||||||
letter-spacing: -1px;
|
letter-spacing: -1px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
.jumbotron p {
|
.jumbotron p {
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
font-size: 25px;
|
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
line-height: 36px;
|
|
||||||
color: #333;
|
|
||||||
}
|
}
|
||||||
.jumbotron .btn-large {
|
.jumbotron .btn-large {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@@ -82,10 +78,6 @@ hr.soften {
|
|||||||
-moz-border-radius: 6px;
|
-moz-border-radius: 6px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
.jumbotron .download-info {
|
|
||||||
font-size: 16px;
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Masthead (docs home) */
|
/* Masthead (docs home) */
|
||||||
.masthead {
|
.masthead {
|
||||||
@@ -100,7 +92,8 @@ hr.soften {
|
|||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
}
|
}
|
||||||
.masthead p {
|
.masthead p {
|
||||||
margin: 0 5% 18px;
|
margin-left: 5%;
|
||||||
|
margin-right: 5%;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
}
|
}
|
||||||
@@ -111,11 +104,7 @@ hr.soften {
|
|||||||
/* supporting docs pages */
|
/* supporting docs pages */
|
||||||
.subhead {
|
.subhead {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
border-bottom: 0;
|
margin-bottom: 9px;
|
||||||
}
|
|
||||||
.subhead h1,
|
|
||||||
.subhead p {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
}
|
||||||
.subhead h1 {
|
.subhead h1 {
|
||||||
font-size: 54px;
|
font-size: 54px;
|
||||||
@@ -184,8 +173,8 @@ hr.soften {
|
|||||||
border-radius: 0 0 4px 4px;
|
border-radius: 0 0 4px 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fixed subnav on scroll, but only for 940px and up (sorry IE!) */
|
/* Fixed subnav on scroll, but only for 980px and up (sorry IE!) */
|
||||||
@media (min-width: 940px) {
|
@media (min-width: 980px) {
|
||||||
.subnav-fixed {
|
.subnav-fixed {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 40px;
|
top: 40px;
|
||||||
@@ -228,12 +217,6 @@ hr.soften {
|
|||||||
.quick-links li {
|
.quick-links li {
|
||||||
display: inline;
|
display: inline;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
}
|
|
||||||
.quick-links .divider {
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
.quick-links strong {
|
|
||||||
font-weight: normal;
|
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
.quick-links .github-btn,
|
.quick-links .github-btn,
|
||||||
@@ -638,10 +621,6 @@ form.well {
|
|||||||
.quick-links {
|
.quick-links {
|
||||||
margin: 40px 0 0;
|
margin: 40px 0 0;
|
||||||
}
|
}
|
||||||
.quick-links li {
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
/* hide the bullets on mobile since our horizontal space is limited */
|
/* hide the bullets on mobile since our horizontal space is limited */
|
||||||
.quick-links .divider {
|
.quick-links .divider {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -654,7 +633,7 @@ form.well {
|
|||||||
.example-sites > li {
|
.example-sites > li {
|
||||||
float: none;
|
float: none;
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 300px;
|
max-width: 280px;
|
||||||
margin: 0 auto 18px;
|
margin: 0 auto 18px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@@ -687,6 +666,11 @@ form.well {
|
|||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Jumbotron buttons */
|
||||||
|
.jumbotron .btn {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Subnav */
|
/* Subnav */
|
||||||
.subnav {
|
.subnav {
|
||||||
position: static;
|
position: static;
|
||||||
@@ -715,7 +699,6 @@ form.well {
|
|||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Popovers */
|
/* Popovers */
|
||||||
.large-bird {
|
.large-bird {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -729,11 +712,6 @@ form.well {
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Space out the getting started sections */
|
|
||||||
.getting-started .span4 {
|
|
||||||
margin-bottom: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Unfloat the back to top link in footer */
|
/* Unfloat the back to top link in footer */
|
||||||
.footer .pull-right {
|
.footer .pull-right {
|
||||||
float: none;
|
float: none;
|
||||||
@@ -751,11 +729,6 @@ form.well {
|
|||||||
.jumbotron h1 {
|
.jumbotron h1 {
|
||||||
font-size: 54px;
|
font-size: 54px;
|
||||||
}
|
}
|
||||||
.masthead p {
|
|
||||||
font-size: 25px;
|
|
||||||
line-height: 36px;
|
|
||||||
}
|
|
||||||
.jumbotron h1,
|
|
||||||
.jumbotron p {
|
.jumbotron p {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
@@ -764,7 +737,7 @@ form.well {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media (min-width: 768px) and (max-width: 940px) {
|
@media (min-width: 768px) and (max-width: 980px) {
|
||||||
|
|
||||||
/* Remove any padding from the body */
|
/* Remove any padding from the body */
|
||||||
body {
|
body {
|
||||||
@@ -779,7 +752,7 @@ form.well {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 940px) {
|
@media (max-width: 980px) {
|
||||||
|
|
||||||
/* Unfloat brand */
|
/* Unfloat brand */
|
||||||
.navbar-fixed-top .brand {
|
.navbar-fixed-top .brand {
|
||||||
@@ -789,6 +762,12 @@ form.well {
|
|||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Inline-block quick links for more spacing */
|
||||||
|
.quick-links li {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -38,6 +38,11 @@
|
|||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
|
|
||||||
|
// Smooth out the collapsing/expanding nav
|
||||||
|
.nav-collapse {
|
||||||
|
-webkit-transform: translate3d(0, 0, 0); // activate the GPU
|
||||||
|
}
|
||||||
|
|
||||||
// Block level the page header small tag for readability
|
// Block level the page header small tag for readability
|
||||||
.page-header h1 small {
|
.page-header h1 small {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -149,7 +154,7 @@
|
|||||||
// PORTRAIT TABLET TO DEFAULT DESKTOP
|
// PORTRAIT TABLET TO DEFAULT DESKTOP
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
||||||
@media (min-width: 768px) and (max-width: 940px) {
|
@media (min-width: 768px) and (max-width: 980px) {
|
||||||
|
|
||||||
// Fixed grid
|
// Fixed grid
|
||||||
#gridSystem > .generate(12, 42px, 20px);
|
#gridSystem > .generate(12, 42px, 20px);
|
||||||
@@ -166,7 +171,7 @@
|
|||||||
|
|
||||||
// TABLETS AND BELOW
|
// TABLETS AND BELOW
|
||||||
// -----------------
|
// -----------------
|
||||||
@media (max-width: 940px) {
|
@media (max-width: 980px) {
|
||||||
|
|
||||||
// UNFIX THE TOPBAR
|
// UNFIX THE TOPBAR
|
||||||
// ----------------
|
// ----------------
|
||||||
@@ -277,7 +282,6 @@
|
|||||||
.nav-collapse {
|
.nav-collapse {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 0;
|
height: 0;
|
||||||
-webkit-transform: translate3d(0, 0, 0); // activate the GPU
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -286,7 +290,7 @@
|
|||||||
// DEFAULT DESKTOP
|
// DEFAULT DESKTOP
|
||||||
// ---------------
|
// ---------------
|
||||||
|
|
||||||
@media (min-width: 940px) {
|
@media (min-width: 980px) {
|
||||||
.nav-collapse.collapse {
|
.nav-collapse.collapse {
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
// For the white version of the icons, just add the .icon-white class:
|
// For the white version of the icons, just add the .icon-white class:
|
||||||
// <i class="i icon-inbox icon-white"></i>
|
// <i class="i icon-inbox icon-white"></i>
|
||||||
|
|
||||||
[class*="icon-"] {
|
[class^="icon-"] {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
|
Reference in New Issue
Block a user