0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-12 00:08:59 +01:00
Bootstrap/docs/4.0/examples/cover/cover.css

157 lines
2.2 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;
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%;
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;
2017-10-02 20:54:47 +02:00
font-weight: 700;
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;
2017-10-02 20:54:47 +02:00
font-weight: 700;
2013-12-08 08:23:41 +01:00
}
/*
* Footer
*/
.mastfoot {
color: rgba(255, 255, 255, .5);
2013-12-08 08:23:41 +01:00
}
/*
* 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;
}
2017-10-02 20:54:47 +02:00
2013-12-08 08:23:41 +01:00
/* Start the vertical centering */
.site-wrapper-inner {
vertical-align: middle;
}
2017-10-02 20:54:47 +02:00
2013-12-08 08:23:41 +01:00
/* 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
}
}