0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-30 12:24:19 +01:00
Bootstrap/docs/examples/cover/cover.css

161 lines
2.3 KiB
CSS
Raw Normal View History

2013-12-08 08:23:41 +01:00
/*
* Globals
*/
/* Links */
a,
a:focus,
a:hover {
color: #fff;
}
/* Custom default button */
2014-07-09 02:14:14 +02:00
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
2013-12-08 08:23:41 +01:00
color: #333;
text-shadow: none; /* Prevent inheritance from `body` */
2013-12-08 08:23:41 +01:00
background-color: #fff;
2014-12-04 23:02:38 +01:00
border: .05rem solid #fff;
2013-12-08 08:23:41 +01:00
}
/*
* Base structure
*/
html,
body {
height: 100%;
background-color: #333;
}
body {
color: #fff;
text-align: center;
2014-12-04 23:02:38 +01:00
text-shadow: 0 .05rem .1rem rgba(0,0,0,.5);
2013-12-08 08:23:41 +01:00
}
/* Extra markup and styles for table-esque vertical and horizontal centering */
.site-wrapper {
display: table;
width: 100%;
2013-12-18 20:45:30 +01:00
height: 100%; /* For at least Firefox */
2013-12-08 08:23:41 +01:00
min-height: 100%;
2014-12-04 23:02:38 +01:00
-webkit-box-shadow: inset 0 0 5rem rgba(0,0,0,.5);
box-shadow: inset 0 0 5rem rgba(0,0,0,.5);
2013-12-08 08:23:41 +01:00
}
.site-wrapper-inner {
display: table-cell;
vertical-align: top;
}
.cover-container {
margin-right: auto;
2014-01-31 13:20:33 +01:00
margin-left: auto;
2013-12-08 08:23:41 +01:00
}
/* Padding for spacing */
.inner {
2014-12-04 23:02:38 +01:00
padding: 2rem;
2013-12-08 08:23:41 +01:00
}
/*
* Header
*/
2014-12-04 23:02:38 +01:00
.masthead {
margin-bottom: 2rem;
2013-12-08 08:23:41 +01:00
}
2014-12-04 23:02:38 +01:00
.masthead-brand {
margin-bottom: 0;
2013-12-08 08:23:41 +01:00
}
2014-12-04 23:02:38 +01:00
.nav-masthead .nav-link {
padding: .25rem 0;
2013-12-08 08:23:41 +01:00
font-weight: bold;
2014-12-04 23:02:38 +01:00
color: rgba(255,255,255,.5);
2013-12-08 08:23:41 +01:00
background-color: transparent;
2014-12-04 23:02:38 +01:00
border-bottom: .25rem solid transparent;
2013-12-08 08:23:41 +01:00
}
2014-12-04 23:02:38 +01:00
.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
border-bottom-color: rgba(255,255,255,.25);
}
2014-12-04 23:02:38 +01:00
.nav-masthead .nav-link + .nav-link {
margin-left: 1rem;
}
.nav-masthead .active {
2013-12-08 08:23:41 +01:00
color: #fff;
border-bottom-color: #fff;
}
2014-12-04 23:02:38 +01:00
@media (min-width: 48em) {
2013-12-08 08:23:41 +01:00
.masthead-brand {
float: left;
}
2014-12-04 23:02:38 +01:00
.nav-masthead {
2013-12-08 08:23:41 +01:00
float: right;
}
}
/*
* Cover
*/
.cover {
2014-12-04 23:02:38 +01:00
padding: 0 1.5rem;
2013-12-08 08:23:41 +01:00
}
.cover .btn-lg {
2014-12-04 23:02:38 +01:00
padding: .75rem 1.25rem;
2013-12-08 08:23:41 +01:00
font-weight: bold;
}
/*
* Footer
*/
.mastfoot {
color: rgba(255,255,255,.5);
}
/*
* Affix and center
*/
2014-12-04 23:02:38 +01:00
@media (min-width: 40em) {
2013-12-08 08:23:41 +01:00
/* Pull out the header and footer */
.masthead {
position: fixed;
top: 0;
}
.mastfoot {
position: fixed;
bottom: 0;
}
/* Start the vertical centering */
.site-wrapper-inner {
vertical-align: middle;
}
/* Handle the widths */
.masthead,
.mastfoot,
.cover-container {
width: 100%; /* Must be percentage or pixels for horizontal alignment */
}
}
2014-12-04 23:02:38 +01:00
@media (min-width: 62em) {
2013-12-08 08:23:41 +01:00
.masthead,
.mastfoot,
.cover-container {
2014-12-04 23:02:38 +01:00
width: 42rem;
2013-12-08 08:23:41 +01:00
}
}