pi-www-theme-soho/static/css/hyde.css

277 lines
4.0 KiB
CSS
Raw Normal View History

2014-04-27 01:25:13 +03:00
/*
* __ __
* /\ \ /\ \
* \ \ \___ __ __ \_\ \ __
* \ \ _ `\/\ \/\ \ /'_` \ /'__`\
* \ \ \ \ \ \ \_\ \/\ \_\ \/\ __/
* \ \_\ \_\/`____ \ \___,_\ \____\
* \/_/\/_/`/___/> \/__,_ /\/____/
* /\___/
* \/__/
*
* Designed, built, and released under MIT license by @mdo. Learn more at
* https://github.com/poole/hyde.
*/
2014-04-27 01:25:13 +03:00
/*
* Contents
*
* Global resets
* Sidebar
2014-04-27 01:25:13 +03:00
* Container
* Reverse layout
2014-04-27 01:25:13 +03:00
* Themes
*/
/*
* Global resets
2014-04-27 01:25:13 +03:00
*
* Update the foundational and global aspects of the page.
*/
html {
2020-02-10 20:38:11 +02:00
font-family: 'Open Sans', 'Roboto', Helvetica, Arial, sans-serif;
2014-04-27 01:25:13 +03:00
}
@media (min-width: 48em) {
html {
font-size: 16px;
2014-04-27 01:25:13 +03:00
}
}
@media (min-width: 58em) {
html {
font-size: 20px;
2014-04-27 01:25:13 +03:00
}
}
/*
* Sidebar
2014-04-27 01:25:13 +03:00
*
* Flexible banner for housing site name, intro, and "footer" content. Starts
* out above content in mobile and later moves to the side with wider viewports.
2014-04-27 01:25:13 +03:00
*/
.sidebar {
text-align: center;
padding: 2rem 1rem;
color: rgba(255,255,255,.5);
background-color: #202020;
2014-04-27 01:25:13 +03:00
}
@media (min-width: 48em) {
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 18rem;
}
2020-05-25 23:34:28 +03:00
footer {
padding-left: 18rem;
}
2014-04-27 01:25:13 +03:00
}
/* Sidebar links */
.sidebar a {
2014-04-27 01:25:13 +03:00
color: #fff;
}
/* About section */
.sidebar-about h1 {
2014-04-27 01:25:13 +03:00
color: #fff;
margin-top: 0;
2020-02-10 20:38:11 +02:00
font-size: 2.25rem;
font-weight: 400;
2014-04-27 01:25:13 +03:00
}
/* Sidebar nav */
.sidebar-nav {
2014-04-27 01:25:13 +03:00
padding-left: 0;
list-style: none;
}
.sidebar-nav-item {
display: block;
2014-04-27 01:25:13 +03:00
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
text-decoration: underline;
2014-04-27 01:25:13 +03:00
}
.sidebar-nav-item.active {
font-weight: bold;
}
2014-04-27 01:25:13 +03:00
/* Container
*
* Align the contents of the site above the proper threshold with some margin-fu
* with a 25%-wide `.sidebar`.
2014-04-27 01:25:13 +03:00
*/
.content {
2020-02-10 20:38:11 +02:00
padding-top: 2rem;
padding-bottom: 2rem;
min-height: 50%;
}
html,
body {
height: 100%;
width: 100%;
2014-04-27 01:25:13 +03:00
}
2020-02-18 23:10:16 +02:00
footer {
2020-02-10 20:38:11 +02:00
font-size: .7rem;
text-align: center;
height: 40px;
}
@media (min-width: 48em) {
2014-04-27 01:25:13 +03:00
.content {
max-width: 38rem;
margin-left: 20rem;
margin-right: 2rem;
2020-02-10 20:38:11 +02:00
margin-bottom: -40px;
min-height: 100%;
2014-04-27 01:25:13 +03:00
}
}
@media (min-width: 64em) {
.content {
margin-left: 22rem;
margin-right: 4rem;
2014-04-27 01:25:13 +03:00
}
}
2020-02-10 20:38:11 +02:00
.img-circle {
border-radius: 50%;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
.img-headshot {
border: 6px solid #fff;
height: 180px;
width: 180px;
}
2020-02-10 20:38:11 +02:00
.center {
display: block;
margin-left: auto;
margin-right: auto;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
.sidebar {
background-color: #49757a;
color: #fff;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
.sidebar a,
.sidebar-about h1 {
color: #fff;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
footer a,
.content a,
.related-posts li a:hover {
color: #49757a;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
.read-more-link {
margin-top: 1rem;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
.read-more-link a {
padding: 8px 16px;
border: 1px solid;
border-color: #49757a;
border-radius: 4px;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
.read-more-link a:hover {
text-decoration: none;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
.pull-right {
float: right;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
ul.posts {
list-style: none;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
.social-icons,
.sidebar nav {
margin-top: 1rem;
2014-04-27 01:25:13 +03:00
}
2020-02-10 20:38:11 +02:00
.social-icons a,
.social-icons a:hover,
.social-icons a:focus {
text-decoration: none !important;
2014-04-27 01:25:13 +03:00
}
2020-05-25 23:34:28 +03:00
.pagination {
justify-content: center;
display: flex;
2020-06-15 20:52:15 +03:00
margin: 1em 0 2rem 0;
2020-05-25 23:34:28 +03:00
padding: 0;
}
.pagination ul {
margin: 0;
padding: 0;
list-style-type: none;
}
.pagination li {
display: block;
float: left;
margin-left: -1px;
}
.pagination li a {
display: block;
margin-bottom: 0.25em;
padding: 0.5em 1em;
font-size: 14px;
font-weight: bold;
line-height: 1.5;
text-align: center;
text-decoration: none;
color: #49757a;
border: 1px solid #49757a;
border-radius: 0;
}
.pagination li a:hover {
color: #fff;
2020-05-26 00:04:57 +03:00
background-color: #49757a;
opacity: 0.75;
2020-05-25 23:34:28 +03:00
}
.pagination li.active a {
color: #fff;
2020-05-26 00:04:57 +03:00
background-color: #49757a;
2020-05-25 23:34:28 +03:00
}
.pagination li.disabled a {
color: rgba(67, 118, 122, 0.5);
pointer-events: none;
cursor: not-allowed;
}
.pagination li:first-child {
margin-left: 0;
}
.pagination li:first-child a {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.pagination li:last-child a {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}