/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
/*
* skin style
*
* @author Liyuan Li
* @version 0.1.0.0, Mar 26, 2019
*/
@import "../../../scss/reset";
@import "../../../scss/usite";
@import "../../../scss/toc";
@import "../../../scss/function";
@import "../../../scss/nprogress";
@import "vditor/src/assets/scss/classic";
$fade-lighter: rgba(255, 255, 255, .8) !default;
$gray: #738a94 !default;
$black: #15171a !default;
body {
background-color: #f4f8fb;
}
.wrapper {
max-width: 1040px;
margin: 0 auto;
padding: 0 10px;
}
.header {
color: #fff;
position: relative;
&--index {
&:before {
content: "";
height: 100%;
position: absolute;
background: url("../images/header-bg.jpg") no-repeat center center;
width: 100%;
top: 0;
background-size: cover;
filter: brightness(38%);
}
}
&__title {
position: relative;
text-align: center;
}
&__h1 {
font-size: 30px;
padding-top: 140px;
font-weight: normal;
img {
height: 32px;
width: 32px;
margin-right: 10px;
}
a {
color: #fff;
&:hover {
text-decoration: none;
color: $fade-lighter;
}
}
}
&__h2 {
font-size: 20px;
font-weight: 300;
margin: 5px 0 70px;
color: $fade-lighter;
}
&__nav {
position: relative;
a {
font-size: 13px;
float: left;
line-height: 24px;
color: $fade-lighter;
margin: 0 20px 90px 0;
&:hover {
color: #fff;
text-decoration: none;
}
}
img {
height: 14px;
width: 14px;
margin-right: 5px;
}
svg {
margin-top: 5px;
}
}
}
.footer {
font-size: 13px;
padding: 20px 0;
background-color: #000;
color: #fff;
a {
color: $fade-lighter;
&:hover {
text-decoration: none;
color: #fff;
}
}
.fn__right {
text-align: right;
}
}
.articles {
top: -70px;
position: relative;
display: flex;
flex-wrap: wrap;
margin: 0 -20px;
.item {
flex: 1 1 300px;
overflow: hidden;
margin: 0 20px 40px;
min-height: 300px;
border-radius: 5px;
box-shadow: 8px 14px 38px rgba(39, 44, 49, .06), 1px 3px 8px rgba(39, 44, 49, .03);
transition: all .5s ease;
display: flex;
flex-direction: column;
background-color: #fff;
&--large {
flex-direction: row;
flex: 1 1 100%;
.item__cover {
flex: 1;
height: auto;
}
.item__main {
padding: 30px 40px;
width: 357px;
flex: unset;
}
}
&:hover {
box-shadow: 8px 28px 50px rgba(39, 44, 49, .07), 1px 6px 12px rgba(39, 44, 49, .04);
transform: translate3D(0, -1px, 0) scale(1.02);
}
&__cover {
background-size: cover;
background-position: center center;
height: 200px;
}
&__main {
padding: 25px;
box-sizing: border-box;
display: flex;
flex-direction: column;
flex: 1;
}
&__tag {
display: inline-block;
margin-bottom: 4px;
color: $gray;
font-size: 12px;
line-height: 14px;
font-weight: 500;
letter-spacing: .5px;
text-transform: uppercase;
&:hover {
text-decoration: none;
color: rgba($gray, 0.8);
}
}
&__title {
margin-bottom: 10px;
a {
color: $black;
font-size: 18px;
line-height: 24px;
&:hover {
text-decoration: none;
color: rgba($black, 0.8);
}
}
sup {
font-size: 12px;
font-weight: normal;
color: rgba($gray, 0.8);
}
}
&__abstract {
line-height: 24px;
color: $black;
flex: 1;
&:hover {
text-decoration: none;
color: rgba($black, 0.8);
}
}
&__meta {
float: right;
margin-top: 18px;
color: $gray;
&:hover {
text-decoration: none;
color: rgba($gray, 0.8);
}
}
&__avatar {
margin-top: 10px;
float: left;
img {
height: 32px;
width: 32px;
}
}
}
}
.pagination {
text-align: center;
margin-top: -70px;
&__item {
width: 30px;
height: 30px;
background: $black;
border-radius: 50%;
display: inline-block;
color: #fff;
line-height: 30px;
font-size: 12px;
margin: 0 5px 40px;
&:hover {
opacity: 0.8;
text-decoration: none;
}
&--active {
background: #88acdb;
&:hover {
opacity: 1;
}
}
&--omit {
background-color: transparent;
color: $black;
}
}
}