0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Bootstrap/docs/examples/justified-nav/justified-nav.css

114 lines
2.7 KiB
CSS
Raw Normal View History

body {
padding-top: 20px;
}
.footer {
2013-08-16 19:58:28 +02:00
padding-top: 40px;
padding-bottom: 40px;
2014-01-31 13:20:33 +01:00
margin-top: 40px;
border-top: 1px solid #eee;
}
/* Main marketing message and sign up button */
.jumbotron {
text-align: center;
background-color: transparent;
}
.jumbotron .btn {
padding: 14px 24px;
2014-01-31 13:20:33 +01:00
font-size: 21px;
}
2016-01-01 17:17:22 +01:00
/* add .nav-justified, see: https://github.com/twbs/bootstrap/issues/18653 */
.nav-justified {
width: 100%;
}
.nav-item {
float: none;
}
.nav-link {
width: 100%;
2016-01-06 23:07:13 +01:00
margin-bottom: 5px;
text-align: center;
2016-01-01 17:17:22 +01:00
}
@media (min-width: 768px) {
2016-01-06 23:07:13 +01:00
.nav-item {
2016-01-01 17:17:22 +01:00
display: table-cell;
width: 1%;
}
.nav-link {
margin-bottom: 0;
}
}
/* Customize the nav-justified links to be fill the entire space of the .navbar */
.nav-justified {
background-color: #eee;
border: 1px solid #ccc;
2014-01-31 13:20:33 +01:00
border-radius: 5px;
}
2016-01-01 17:17:22 +01:00
.nav-link {
padding-top: 15px;
padding-bottom: 15px;
2014-01-31 13:20:33 +01:00
margin-bottom: 0;
font-weight: bold;
2014-01-31 13:20:33 +01:00
color: #777;
text-align: center;
background-color: #e5e5e5; /* Old browsers */
2014-02-22 11:17:58 +01:00
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e5e5e5));
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%);
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%);
2015-11-15 04:46:15 +01:00
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5),to(#e5e5e5));
background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%);
background-image: -o-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%);
background-image: linear-gradient(to bottom, #f5f5f5 0%,#e5e5e5 100%);
2014-01-31 13:03:42 +01:00
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
2014-01-31 13:20:33 +01:00
background-repeat: repeat-x; /* Repeat the gradient */
border-bottom: 1px solid #d5d5d5;
}
2016-01-01 17:17:22 +01:00
.nav-link.active,
.nav-link.active:hover,
.nav-link.active:focus {
background-color: #ddd;
background-image: none;
2014-02-22 11:17:58 +01:00
-webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
}
2016-01-01 17:17:22 +01:00
.nav-item:first-child .nav-link {
border-radius: 5px 5px 0 0;
}
2016-01-01 17:17:22 +01:00
.nav-item:last-child .nav-link {
border-radius: 0 0 5px 5px;
}
@media (min-width: 768px) {
.nav-justified {
max-height: 52px;
}
2016-01-01 17:17:22 +01:00
.nav-link {
border-right: 1px solid #d5d5d5;
2014-01-31 13:20:33 +01:00
border-left: 1px solid #fff;
}
2016-01-01 17:17:22 +01:00
.nav-item:first-child .nav-link {
border-left: 0;
border-radius: 5px 0 0 5px;
}
2016-01-01 17:17:22 +01:00
.nav-item:last-child .nav-link {
border-right: 0;
2014-01-31 13:20:33 +01:00
border-radius: 0 5px 5px 0;
}
}
/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
/* Remove the padding we set earlier */
.masthead,
.marketing,
.footer {
padding-right: 0;
2014-01-31 13:20:33 +01:00
padding-left: 0;
}
}