0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-14 02:24:00 +01:00
Bootstrap/docs/examples/blog/blog.css

171 lines
2.4 KiB
CSS
Raw Normal View History

2013-12-12 01:45:41 +01:00
/*
* Globals
*/
@media (min-width: 48em) {
html {
font-size: 18px;
}
}
2013-12-12 01:45:41 +01:00
body {
2013-12-15 20:33:06 +01:00
font-family: Georgia, "Times New Roman", Times, serif;
color: #555;
2013-12-12 01:45:41 +01:00
}
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
2014-01-31 13:20:33 +01:00
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
2014-01-31 23:05:05 +01:00
color: #333;
2013-12-12 01:45:41 +01:00
}
2013-12-15 20:33:06 +01:00
2013-12-12 01:45:41 +01:00
/*
* Override Bootstrap's default container.
*/
.container {
max-width: 60rem;
2013-12-12 01:45:41 +01:00
}
/*
* Masthead for nav
*/
.blog-masthead {
margin-bottom: 3rem;
2013-12-12 01:45:41 +01:00
background-color: #428bca;
2014-12-05 00:20:55 +01:00
-webkit-box-shadow: inset 0 -.1rem .25rem rgba(0,0,0,.1);
box-shadow: inset 0 -.1rem .25rem rgba(0,0,0,.1);
2013-12-12 01:45:41 +01:00
}
/* Nav links */
.nav-link {
2013-12-12 01:45:41 +01:00
position: relative;
padding: 1rem;
2013-12-12 01:45:41 +01:00
font-weight: 500;
color: #cdddeb;
}
.nav-link:hover,
.nav-link:focus {
2013-12-12 01:45:41 +01:00
color: #fff;
background-color: transparent;
2013-12-12 01:45:41 +01:00
}
/* Active state gets a caret at the bottom */
.nav-link.active {
2013-12-12 01:45:41 +01:00
color: #fff;
}
.nav-link.active:after {
2013-12-12 01:45:41 +01:00
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 0;
margin-left: -.3rem;
2013-12-12 01:45:41 +01:00
vertical-align: middle;
content: "";
border-right: .3rem solid transparent;
border-bottom: .3rem solid;
border-left: .3rem solid transparent;
2013-12-12 01:45:41 +01:00
}
/*
* Blog name and description
*/
.blog-header {
padding-bottom: 1.25rem;
2014-12-05 00:20:55 +01:00
margin-bottom: 2rem;
border-bottom: .05rem solid #eee;
2013-12-12 01:45:41 +01:00
}
.blog-title {
margin-bottom: 0;
font-size: 2rem;
2013-12-12 01:45:41 +01:00
font-weight: normal;
}
.blog-description {
font-size: 1.1rem;
2013-12-12 01:45:41 +01:00
color: #999;
}
@media (min-width: 40em) {
.blog-title {
font-size: 3.5rem;
}
}
2013-12-12 01:45:41 +01:00
/*
* Main column and sidebar layout
*/
/* Sidebar modules for boxing content */
.sidebar-module {
padding: 1rem;
/*margin: 0 -1rem 1rem;*/
2013-12-12 01:45:41 +01:00
}
.sidebar-module-inset {
padding: 1rem;
2013-12-12 01:45:41 +01:00
background-color: #f5f5f5;
border-radius: .25rem;
2013-12-12 01:45:41 +01:00
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
margin-bottom: 0;
}
/* Pagination */
.pager {
margin-bottom: 4rem;
2013-12-12 01:45:41 +01:00
text-align: left;
}
.pager > li > a {
width: 8rem;
padding: .75rem 1.25rem;
2013-12-12 01:45:41 +01:00
text-align: center;
border-radius: 2rem;
2013-12-12 01:45:41 +01:00
}
/*
* Blog posts
*/
.blog-post {
margin-bottom: 4rem;
2013-12-12 01:45:41 +01:00
}
.blog-post-title {
margin-bottom: .25rem;
font-size: 2.5rem;
2013-12-12 01:45:41 +01:00
}
.blog-post-meta {
margin-bottom: 1.25rem;
2013-12-12 01:45:41 +01:00
color: #999;
}
/*
* Footer
*/
.blog-footer {
padding: 2.5rem 0;
2013-12-12 01:45:41 +01:00
color: #999;
text-align: center;
background-color: #f9f9f9;
border-top: .05rem solid #e5e5e5;
2013-12-12 01:45:41 +01:00
}
.blog-footer p:last-child {
margin-bottom: 0;
}