MinimalBible.github.io/assets/less/page.less
2013-08-23 16:19:28 -04:00

362 lines
5.9 KiB
Plaintext

body {
margin: 0;
padding: 0;
width: 100%;
background-color: @body-color;
}
// Main
// --------------------------------------------------
.entry,
.hentry {
.clearfix();
}
.entry-content {
.font-size(16);
// Dotted line underlines for links
p > a,
li > a {
border-bottom: 1px dotted lighten(@link-color, 50);
&:hover {
border-bottom-style: solid;
}
}
}
// Entry Header
// --------------------------------------------------
.entry-header {
width: 100%;
overflow: hidden;
}
.header-title {
text-align: center;
margin: 30px 0 0;
padding: 0 20px;
h1 {
margin: 10px 20px;
font-weight: 700;
.font-rem(28);
color: lighten(@base-color,20);
@media @medium {
.font-rem(48);
}
@media @large {
.font-rem(80);
}
}
h2 {
margin: 0;
.font-rem(18);
text-transform: uppercase;
color: lighten(@base-color,40);
@media @medium {
.font-rem(32);
}
}
}
.feature .header-title {
@media @medium {
position: absolute;
top: 0;
display: table;
margin-top: 0;
width: 100%;
height: 440px;
overflow: hidden;
.header-title-wrap {
display: table-cell;
vertical-align: middle;
margin: 0 auto;
text-align: center;
}
}
h1 {
margin: 10px 60px;
font-weight: 700;
@media @medium {
color: @white;
.font-rem(60);
text-shadow: 1px 1px 4px fade(@base-color,60);
a {
color: @white;
}
}
@media @large {
.font-rem(100);
}
}
h2 {
margin: 0;
.font-rem(18);
text-transform: uppercase;
@media @medium {
.font-rem(30);
color: @white;
a {
color: @white;
}
}
}
}
.entry-image {
position: relative;
width: auto;
height: 100%;
max-height: 440px;
&:after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: fade(@base-color,30);
}
img {
width: 100%;
}
}
.image-credit {
position: absolute;
bottom: 0;
right: 0;
padding: 10px 15px;
color: @white;
background-color: fade(@base-color,50);
.font-rem(12);
text-align: right;
.border-radius(3px,0,0,3px);
z-index: 10;
a {
color: @white;
text-decoration: none;
}
}
// Single Post and Page
// --------------------------------------------------
.entry-meta {
.font-rem(12);
text-transform: uppercase;
color: lighten(@base-color,60);
a {
color: lighten(@base-color,60);
}
.vcard {
&:before {
content: " by ";
}
}
.tag {
display: inline-block;
margin: 4px;
padding: 2px 6px;
background-color: lighten(@base-color,60);
color: @white;
.rounded(3px);
color: @white;
span {
vertical-align: super;
.font-rem(10);
}
&:hover {
background-color: lighten(@base-color,50);
}
&:active {
.translate(0, 1px);
.box-shadow(0 0 1px fade(@base-color, 20));
}
}
}
#post,
#page {
.entry-content {
margin: 40px 2px 20px 2px;
padding: 10px 15px;
background-color: @white;
box-shadow: 0 0 0 1px fade(@border-color,10), 0 6px 12px fade(@black,10);
.rounded(3px);
@media @medium {
margin-left: 10px;
margin-right: 10px;
padding: 20px 30px;
}
@media @large {
max-width: 800px;
padding: 50px 80px;
margin: 50px auto 30px auto;
> p:first-child {
.font-size(20);
}
}
}
#disqus_thread {
margin-left: 10px;
margin-right: 10px;
margin-bottom: 20px;
padding: 25px 40px;
background-color: @white;
box-shadow: 0 0 0 1px fade(@border-color,10), 0 6px 12px fade(@black,10);
.rounded(3px);
@media @large {
max-width: 800px;
padding: 50px 80px;
margin: 0 auto 30px auto;
}
}
.entry-meta {
margin: 50px 30px 30px;
text-align: center;
}
}
.entry-tags {
display: block;
margin-bottom: 6px;
}
// Post Pagination Module
.pagination {
margin: 20px 10px;
text-align: center;
ul {
display: inline;
margin-left: 10px;
margin-right: 10px;
}
li {
padding-left: 4px;
padding-right: 4px;
}
.current-page {
font-weight: 700;
}
}
// Read More Module
.read-more {
position: relative;
margin: 50px 10px 20px 10px;
padding: 50px 40px 25px;
background-color: @white;
box-shadow: 0 0 0 1px fade(@border-color,10), 0 6px 12px fade(@black,10);
.rounded(3px);
@media @large {
max-width: 800px;
padding: 50px 80px;
margin: 60px auto;
}
text-align: center;
.clearfix();
}
.read-more-header {
position: absolute;
top: -20px;
left: 0;
right: 0;
height: 35px;
a {
.btn();
}
}
.read-more-content {
.font-size(16);
// Dotted line underlines for links
p > a,
li > a {
border-bottom: 1px dotted lighten(@link-color, 50);
&:hover {
border-bottom-style: solid;
}
}
h3 {
margin: 0;
.font-rem(28);
a {
color: @primary;
}
@media @medium {
.font-rem(36);
}
}
}
// Post Index
// --------------------------------------------------
#post-index {
#main {
margin-top: 40px;
margin-left: 20px;
margin-right: 20px;
@media @large {
max-width: 800px;
margin-top: 50px;
margin-left: auto;
margin-right: auto;
}
}
article {
background-color: @white;
box-shadow: 0 0 0 1px fade(@base-color,10), 0 6px 12px fade(@base-color,10);
.rounded(3px);
margin-bottom: 20px;
padding: 25px 40px;
@media @large {
margin-bottom: 30px;
padding: 50px 80px;
}
}
}
// Footer
// --------------------------------------------------
.footer-wrapper {
.clearfix();
margin: 2em auto;
text-align: center;
color: lighten(@text-color,20);
a {
color: lighten(@text-color,20);
}
}
// Social Icons
// --------------------------------------------------
// Browser Upgrade
// --------------------------------------------------
.upgrade {
padding: 10px;
text-align: center;
}
// Google Search
// --------------------------------------------------
#goog-fixurl {
ul {
list-style: none;
margin-left: 0;
padding-left: 0;
li {
list-style-type: none;
}
}
}
#goog-wm-qt {
width: auto;
margin-right: 10px;
margin-bottom: 20px;
padding: 8px 20px;
display: inline-block;
.font-rem(14);
background-color: @white;
color: @primary;
border-width: 2px !important;
border-style: solid !important;
border-color: lighten(@primary,50);
.rounded(3px);
}
#goog-wm-sb {
.btn();
}