theme-lx
Version:
A simle & clear & elegant hexo theme
569 lines (567 loc) • 10.8 kB
text/stylus
@charset "UTF-8";
@import "base"
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
*:before, *:after {
box-sizing: border-box;
}
html {
text-size-adjust: 100%;
}
body {
margin: 0;
font-weight: 400;
font-size: 16px;
line-height: 1.7;
color: $black-s;
background: $white-l;
}
#page {
position: relative;
width: 100%;
height: 100%;
transition: 0.5s;
}
a {
color: $a-post;
text-decoration: none;
transition: 0.5s;
}
a:hover, a:active, a:focus {
color: $a-hover-post;
outline: none;
text-decoration: none;
}
p {
font-size: 15px;
line-height: 24px;
margin-bottom: 15px;
}
h1, h2, h3, h4, h5, figure {
color: $black-l;
font-weight: 400;
margin-top: 15px;
margin-bottom: 5px;
}
h2.pagehead{
padding: 20px 0px 0px 60px;
color: $black;
}
h2.title {
padding-left: 8px;
border-left: 4px solid $deep-red;
}
h2.title a{
color: $black-g;
}
::selection {
color: $selection-color;
background: $selection-bg;
}
.lx-navigation {
max-width: 960px;
padding: 0 10px 0 10px;
margin: 0 auto;
}
.lx-navigation .prev {
transition: 0.5s;
text-align: right;
border-radius: 0 15px 15px 0;
}
.lx-navigation .prev:hover {
padding-right: 30px;
}
.lx-navigation .next {
transition: 0.5s;
text-align: left;
border-radius: 15px 0 0 15px;
}
.lx-navigation .next:hover {
padding-left: 30px;
}
.lx-navigation .lx-cover {
width: 50%;
height: 132px;
margin-bottom: 15px;
float: left;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
position: relative;
}
.lx-navigation .lx-cover .overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 1;
}
.lx-navigation .next .overlay {
border-radius: 15px 0 0 15px;
}
.lx-navigation .prev .overlay {
border-radius: 0 15px 15px 0;
}
.lx-navigation .lx-cover .copy {
position: relative;
z-index: 2;
display: block;
}
.lx-navigation .lx-cover .copy .display-t, .lx-navigation .lx-cover .copy .display-tc {
height: 132px;
display: table;
width: 100%;
}
.lx-navigation .lx-cover .copy .display-tc {
display: table-cell;
vertical-align: middle;
}
.lx-navigation .lx-cover .copy .display-tc div {
padding: 30px;
}
.lx-navigation .lx-cover .copy .display-tc div span {
display: block;
margin-bottom: 5px;
color: $white-t-5;
text-transform: uppercase;
font-size: 15px;
letter-spacing: .05em;
}
.lx-navigation .lx-cover .copy .display-tc div h3 {
margin-bottom: 0;
color: $white;
font-weight: 300;
}
#lx-aside {
width: 38.2%;
top: 0;
left: 0;
bottom: 0;
position: fixed;
height: 100%;
z-index: 3;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}
.single #lx-aside {
position: relative;
height: 375px;
width: 100%;
border-radius: 15px;
}
.single #lx-aside .overlay {
border-radius: 15px;
}
#lx-aside a {
color: rgba(255, 255, 255, 0.7);
}
#lx-aside a:hover {
color: $white;
}
#lx-aside .overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
background: $black-t-5;
}
.single #lx-aside .page-title {
right: 0;
left: 0;
}
#lx-aside .page-title {
z-index: 2;
padding: 30px;
}
#lx-aside .featured{
z-index: 2;
margin: auto;
margin-top: 35%;
width: 85%;
text-align: center;
}
.single #lx-aside .page-title {
margin: 0 auto;
text-align: center;
}
#lx-aside .featured h1 {
color: $white;
font-weight: 400;
}
#lx-aside .page-title h2 {
color: $white;
font-weight: 300;
}
.single #lx-aside .featured h2,
.single #lx-aside .page-title h2 {
font-size: 52px;
}
#lx-aside .featured > span,
#lx-aside .page-title > span {
display: block;
color: rgba(255, 255, 255, 0.8);
font-size: 15px;
letter-spacing: .05em;
margin-bottom: 0;
}
#lx-aside .featured .avatar img,
#lx-aside .page-title .avatar img {
margin-bottom: 0;
width: 80px;
border-radius: 50%;
z-index: 19;
}
.popup-trigger{
position: fixed;
top: 40px;
left: 33%;
color: $white;
font-size: 20px;
border-radius: 50%;
z-index: 5;
}
.single .popup-trigger {
position: absolute;
left: 90%;
}
.local-search-pop-overlay {
background-color: $black-t-2;
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 2080;
}
.local-search-popup {
background: $white;
border-radius: 0;
color: $black-s-h;
display: none;
height: 80%;
left: 50%;
margin-left: -350px;
padding: 0;
position: fixed;
top: 10%;
width: 700px;
z-index: 9999;
}
.local-search-popup ul.search-result-list {
margin: 0 5px;
padding: 0;
}
.local-search-popup p.search-result {
border-bottom: 1px dashed $grey-l;
padding: 5px 0;
}
.local-search-popup a.search-result-title {
font-weight: bold;
}
.local-search-popup .search-keyword {
border-bottom: 1px dashed $red-l;
color: $red-l;
font-weight: bold;
}
.local-search-popup .local-search-header {
background: $white;
border-top-left-radius: 0;
border-top-right-radius: 0;
height: 50px;
padding: 5px;
}
.local-search-popup #local-search-result {
height: calc(100% - 55px);
overflow: auto;
padding: 5px 25px;
position: relative;
}
ul.search-result-list li a {
color: $black-s-h;
}
.local-search-popup .local-search-input-wrapper {
display: inline-block;
height: 36px;
line-height: 36px;
padding: 0 5px;
position: absolute;
width: calc(100% - 90px);
}
.local-search-popup .local-search-input-wrapper input {
font-size: 18px;
background: transparent;
border: none;
height: 40px;
outline: none;
padding: 8px 0;
vertical-align: middle;
width: 100%;
}
.local-search-popup .search-icon,
.local-search-popup .popup-btn-close {
color: $grey-c;
display: inline-block;
font-size: 20px;
padding-left: 10px;
padding-right: 10px;
}
.local-search-popup .search-icon {
float: left;
}
.local-search-popup .popup-btn-close {
border-left: 1px solid $white;
cursor: pointer;
float: right;
}
.local-search-popup #no-result {
color: $grey-l;
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
}
.social-links i{
width: 25px;
height: 25px;
line-height: 25px;
margin: 5px 2px;
padding: 0;
color: $white;
background: radial-gradient($black, $white);
font-size: 15px;
border-radius: 50%;
z-index: 2;
}
.tags {
color: $tags;
}
footer {
clear: both;
font-size: 12px;
padding: 20px 60px;
}
.single .header {
padding: 10px 10px 0 10px;
max-width: 960px;
margin: 0 auto;
}
.single footer > div {
max-width: 960px;
margin: 0 auto;
text-align: center;
}
#lx-main-content {
margin-left: 38.1966%;
position: relative;
z-index: 4;
}
.single #lx-main-content {
margin-left: 0;
max-width: 960px;
margin: 0 auto;
}
.lx-post-detail {
color: $grey-s;
margin-bottom: 10px;
display: block;
text-transform: uppercase;
font-weight: 100;
letter-spacing: .05em;
border-left: 4px solid $red-s-t;
padding-left: 10px;
}
a.category-link {
font-size: 14px;
}
.padding {
padding: 20px 60px 30px 60px;
}
.lx-post{
padding: 10px;
word-wrap: break-word;
}
.lx-post .lx-entry {
float: left;
width: 100%;
border: none;
border-radius: 15px;
margin-bottom: 15px;
background: $white;
box-shadow: 0 0.5em 1em -0.125em rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.02);
}
.single .lx-post .lx-entry {
border: 1px solid $grey-w;
box-shadow: none;
}
.lx-post .lx-entry > div {
width: 100%;
float: left;
margin-top: 0px;
}
.single .lx-post .lx-entry > div {
margin-right: 0;
width: 100%;
}
.post-button{
text-align: right;
margin-top: 20px;
}
.lx-entry video {
max-width: 100%;
display: block;
margin-left: auto;
margin-right: auto;
}
.lx-entry img {
box-sizing: border-box;
margin: auto;
max-width: 100%;
padding: 3px;
border-radius: 10px;
height: auto;
}
.single .lx-post .lx-entry > div h2 {
margin-bottom: 10px;
font-weight: 100;
border-bottom: 0.5px solid $grey-w;
}
.lx-entry > div p:last-child {
margin-bottom: 0;
}
.lx-entry ul, .lx-entry ol {
margin-left: 17.97px;
}
#pagination {
text-align: center;
overflow: hidden;
margin-top: 1rem;
width: 100%;
}
#pagination .page-number.current {
background: $green-classic;
border: none;
border-radius: 50%;
color: $white;
cursor: default;
}
#pagination .page-number {
display: inline-block;
margin: 0 .2rem;
min-width: 1.2rem;
height: 1.2rem;
text-align: center;
line-height: 1.2rem;
cursor: pointer;
}
.comment{
padding: 10px;
margin-left: 0;
max-width: 960px;
margin: 0 auto;
}
.v .vwrap{
background: $white;
}
.gototop {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 4;
opacity: 0;
visibility: hidden;
transition: 0.5s;
}
.gototop.active {
opacity: 1;
visibility: visible;
}
.gototop a {
width: 30px;
height: 30px;
display: table;
background: $black-t-5;
color: $white;
text-align: center;
border-radius: 4px;
}
.gototop a i {
display: table-cell;
vertical-align: middle;
}
.gototop a:hover, .gototop a:active, .gototop a:focus {
text-decoration: none;
outline: none;
}
@media screen and (max-width: 768px) {
#lx-aside {
width: 100%;
position: relative;
z-index: 4;
height: 375px;
}
#lx-aside {
border-radius: 15px;
}
#lx-aside .featured {
margin-top: 10%;
}
#lx-aside .overlay {
border-radius: 15px;
}
.header {
padding: 10px 10px 0 10px;
max-width: 960px;
margin: 0 auto;
}
#lx-main-content {
margin-left: 0;
}
.padding {
padding: 30px;
}
.lx-post .lx-entry > div {
width: 100%;
margin-right: 0;
}
.lx-post .lx-entry > div h2 {
font-size: 24px;
}
.single #lx-aside .page-title h2 {
font-size: 40px;
}
h2.pagehead {
padding: 20px 0px 0px 30px;
}
.lx-navigation .lx-cover .copy .display-tc div span {
margin-bottom: 0;
font-size: .8em;
}
.lx-navigation .lx-cover .copy .display-tc div h3 {
margin: 0;
font-size: .7em;
}
footer {
padding: 20px 30px;
}
.local-search-popup {
height: 100%;
left: 0;
margin: 0;
top: 0;
width: 100%;
}
.popup-trigger {
position: absolute;
left: 90%;
}
}
@import "menu/menu";
@import "page_style/page_style";