0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00
Bootstrap/docs/assets/css/bootstrap-responsive.css

584 lines
10 KiB
CSS
Raw Normal View History

2012-01-29 19:04:26 -08:00
/*!
2012-09-05 10:00:57 -07:00
* Bootstrap Responsive v2.1.2
2012-01-29 19:04:26 -08:00
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
display: table;
line-height: 0;
content: "";
}
.clearfix:after {
clear: both;
}
.hide-text {
font: 0/0 a;
color: transparent;
2012-04-16 15:09:05 -07:00
text-shadow: none;
background-color: transparent;
2012-04-16 15:09:05 -07:00
border: 0;
}
.input-block-level {
display: block;
width: 100%;
min-height: 30px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.hidden {
display: none;
visibility: hidden;
}
.visible-phone {
display: none !important;
}
.visible-tablet {
display: none !important;
}
.hidden-desktop {
display: none !important;
}
.visible-desktop {
display: inherit !important;
}
@media (min-width: 768px) and (max-width: 979px) {
.hidden-desktop {
display: inherit !important;
}
.visible-desktop {
display: none !important ;
}
.visible-tablet {
display: inherit !important;
}
.hidden-tablet {
display: none !important;
}
}
@media (max-width: 767px) {
.hidden-desktop {
2012-06-25 16:25:50 -07:00
display: inherit !important;
}
.visible-desktop {
2012-06-25 16:25:50 -07:00
display: none !important;
}
.visible-phone {
2012-06-25 16:25:50 -07:00
display: inherit !important;
}
.hidden-phone {
2012-06-25 16:25:50 -07:00
display: none !important;
}
}
2012-06-25 16:25:50 -07:00
@media (min-width: 1200px) {
.container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 1170px;
}
.row {
margin-right: -15px;
margin-left: -15px;
*zoom: 1;
}
.row:before,
.row:after {
display: table;
line-height: 0;
content: "";
}
.row:after {
clear: both;
}
[class*="span"] {
float: left;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.span12 {
width: 100%;
}
.span11 {
width: 91.66666666666666%;
}
.span10 {
width: 83.33333333333334%;
}
.span9 {
width: 75%;
}
.span8 {
width: 66.66666666666666%;
}
.span7 {
width: 58.333333333333336%;
}
.span6 {
width: 50%;
}
.span5 {
width: 41.66666666666667%;
}
.span4 {
width: 33.33333333333333%;
}
.span3 {
width: 25%;
}
.span2 {
width: 16.666666666666664%;
}
.span1 {
width: 8.333333333333332%;
}
.offset12 {
margin-left: 100%;
}
.offset11 {
margin-left: 91.66666666666666%;
}
.offset10 {
margin-left: 83.33333333333334%;
}
.offset9 {
margin-left: 75%;
}
.offset8 {
margin-left: 66.66666666666666%;
}
.offset7 {
margin-left: 58.333333333333336%;
}
.offset6 {
margin-left: 50%;
}
.offset5 {
margin-left: 41.66666666666667%;
}
.offset4 {
margin-left: 33.33333333333333%;
}
.offset3 {
margin-left: 25%;
}
.offset2 {
margin-left: 16.666666666666664%;
}
.offset1 {
margin-left: 8.333333333333332%;
2012-06-25 16:25:50 -07:00
}
.thumbnails {
margin-left: -30px;
}
.thumbnails > li {
margin-left: 30px;
}
}
2012-06-25 16:25:50 -07:00
@media (min-width: 768px) and (max-width: 979px) {
.row {
margin-right: -10px;
margin-left: -10px;
*zoom: 1;
}
.row:before,
.row:after {
display: table;
line-height: 0;
content: "";
}
.row:after {
clear: both;
}
[class*="span"] {
float: left;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.span12 {
width: 100%;
}
.span11 {
width: 91.66666666666666%;
}
.span10 {
width: 83.33333333333334%;
}
.span9 {
width: 75%;
}
.span8 {
width: 66.66666666666666%;
}
.span7 {
width: 58.333333333333336%;
}
.span6 {
width: 50%;
}
.span5 {
width: 41.66666666666667%;
}
.span4 {
width: 33.33333333333333%;
}
.span3 {
width: 25%;
}
.span2 {
width: 16.666666666666664%;
}
.span1 {
width: 8.333333333333332%;
}
.offset12 {
margin-left: 100%;
}
.offset11 {
margin-left: 91.66666666666666%;
}
.offset10 {
margin-left: 83.33333333333334%;
}
.offset9 {
margin-left: 75%;
}
.offset8 {
margin-left: 66.66666666666666%;
}
.offset7 {
margin-left: 58.333333333333336%;
}
.offset6 {
margin-left: 50%;
}
.offset5 {
margin-left: 41.66666666666667%;
}
.offset4 {
margin-left: 33.33333333333333%;
}
.offset3 {
margin-left: 25%;
}
.offset2 {
margin-left: 16.666666666666664%;
}
.offset1 {
margin-left: 8.333333333333332%;
2012-06-25 16:25:50 -07:00
}
}
@media (max-width: 767px) {
body {
padding-right: 20px;
padding-left: 20px;
}
.navbar-fixed-top,
.navbar-fixed-bottom,
.navbar-static-top {
2012-06-25 16:25:50 -07:00
margin-right: -20px;
margin-left: -20px;
}
.container-fluid {
padding: 0;
}
.dl-horizontal dt {
float: none;
width: auto;
clear: none;
text-align: left;
}
.dl-horizontal dd {
margin-left: 0;
}
.container {
width: auto;
}
2012-06-25 16:25:50 -07:00
.row-fluid {
width: 100%;
}
.row,
.thumbnails {
2012-06-25 16:25:50 -07:00
margin-left: 0;
}
2012-07-09 21:13:33 -07:00
.thumbnails > li {
float: none;
2012-08-20 11:31:24 -07:00
margin-left: 0;
2012-07-09 21:13:33 -07:00
}
2012-06-25 16:25:50 -07:00
[class*="span"],
.row-fluid [class*="span"] {
display: block;
float: none;
width: 100%;
2012-06-25 16:25:50 -07:00
margin-left: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.span12,
.row-fluid .span12 {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.row-fluid [class*="offset"]:first-child {
margin-left: 0;
}
2012-06-25 16:25:50 -07:00
.input-large,
.input-xlarge,
.input-xxlarge,
input[class*="span"],
select[class*="span"],
textarea[class*="span"],
.uneditable-input {
display: block;
width: 100%;
min-height: 30px;
2012-06-25 16:25:50 -07:00
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.input-prepend input,
.input-append input,
.input-prepend input[class*="span"],
.input-append input[class*="span"] {
display: inline-block;
width: auto;
}
.controls-row [class*="span"] + [class*="span"] {
margin-left: 0;
}
.modal {
position: fixed;
top: 20px;
right: 20px;
left: 20px;
width: auto;
margin: 0;
}
.modal.fade.in {
top: auto;
}
2012-06-25 16:25:50 -07:00
}
@media (max-width: 480px) {
.nav-collapse {
-webkit-transform: translate3d(0, 0, 0);
}
.page-header h1 small {
display: block;
2012-07-05 15:11:54 -07:00
line-height: 20px;
2012-06-25 16:25:50 -07:00
}
input[type="checkbox"],
input[type="radio"] {
border: 1px solid #ccc;
}
.form-horizontal .control-label {
2012-06-25 16:25:50 -07:00
float: none;
width: auto;
padding-top: 0;
text-align: left;
}
.form-horizontal .controls {
2012-04-01 01:05:00 -07:00
margin-left: 0;
}
2012-06-25 16:25:50 -07:00
.form-horizontal .control-list {
padding-top: 0;
}
.form-horizontal .form-actions {
padding-right: 10px;
padding-left: 10px;
}
.modal {
top: 10px;
right: 10px;
left: 10px;
}
.modal-header .close {
padding: 10px;
margin: -10px;
}
.carousel-caption {
position: static;
}
}
@media (max-width: 979px) {
body {
padding-top: 0;
}
.navbar-fixed-top,
.navbar-fixed-bottom {
position: static;
}
.navbar-fixed-top {
2012-07-05 15:11:54 -07:00
margin-bottom: 20px;
}
.navbar-fixed-bottom {
2012-07-05 15:11:54 -07:00
margin-top: 20px;
}
.navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner {
padding: 5px;
}
.navbar .container {
width: auto;
padding: 0;
}
.navbar .brand {
padding-right: 10px;
padding-left: 10px;
margin: 0 0 0 -5px;
}
.nav-collapse {
clear: both;
}
.nav-collapse .nav {
float: none;
2012-07-05 15:11:54 -07:00
margin: 0 0 10px;
}
.nav-collapse .nav > li {
float: none;
}
.nav-collapse .nav > li > a {
margin-bottom: 2px;
}
.nav-collapse .nav > .divider-vertical {
display: none;
}
.nav-collapse .nav .nav-header {
color: #777777;
text-shadow: none;
}
.nav-collapse .nav > li > a,
.nav-collapse .dropdown-menu a {
padding: 9px 15px;
font-weight: bold;
color: #777777;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.nav-collapse .btn {
padding: 4px 10px 4px;
font-weight: normal;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.nav-collapse .dropdown-menu li + li a {
margin-bottom: 2px;
}
.nav-collapse .nav > li > a:hover,
.nav-collapse .dropdown-menu a:hover {
2012-07-29 00:30:15 -07:00
background-color: #f2f2f2;
}
.navbar-inverse .nav-collapse .nav > li > a:hover,
.navbar-inverse .nav-collapse .dropdown-menu a:hover {
background-color: #111111;
}
.nav-collapse.in .btn-group {
padding: 0;
margin-top: 5px;
}
.nav-collapse .dropdown-menu {
position: static;
top: auto;
left: auto;
display: block;
float: none;
max-width: none;
padding: 0;
margin: 0 15px;
background-color: transparent;
border: none;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.nav-collapse .dropdown-menu:before,
.nav-collapse .dropdown-menu:after {
display: none;
}
.nav-collapse .dropdown-menu .divider {
display: none;
}
.nav-collapse .nav > li > .dropdown-menu:before,
.nav-collapse .nav > li > .dropdown-menu:after {
display: none;
}
.nav-collapse .navbar-form,
.nav-collapse .navbar-search {
float: none;
2012-07-05 15:11:54 -07:00
padding: 10px 15px;
margin: 10px 0;
2012-07-29 00:30:15 -07:00
border-top: 1px solid #f2f2f2;
border-bottom: 1px solid #f2f2f2;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
}
.navbar-inverse .nav-collapse .navbar-form,
.navbar-inverse .nav-collapse .navbar-search {
border-top-color: #111111;
border-bottom-color: #111111;
}
.navbar .nav-collapse .nav.pull-right {
float: none;
margin-left: 0;
}
2012-03-25 13:33:36 -07:00
.nav-collapse,
.nav-collapse.collapse {
height: 0;
overflow: hidden;
}
.navbar .btn-navbar {
display: block;
}
.navbar-static .navbar-inner {
padding-right: 10px;
padding-left: 10px;
}
}
@media (min-width: 980px) {
.nav-collapse.collapse {
height: auto !important;
overflow: visible !important;
}
}