🏗️ First time sync the css & js files from hexo theme NexT
This commit is contained in:
130
assets/css/_schemes/Gemini/index.scss
Normal file
130
assets/css/_schemes/Gemini/index.scss
Normal file
@@ -0,0 +1,130 @@
|
||||
@import '../Pisces/_layout';
|
||||
@import '../Pisces/_header';
|
||||
@import '../Pisces/_menu';
|
||||
@import '../Pisces/_sub-menu';
|
||||
@import '../Pisces/_sidebar';
|
||||
|
||||
// ==================================================
|
||||
// Rewrite _layout.styl
|
||||
// ==================================================
|
||||
// Sidebar padding used as main desktop content padding for sidebar padding and post blocks padding too.
|
||||
|
||||
// In `source/css/_variables/Pisces.styl` there are variable for main offset:
|
||||
// $sidebar-offset : 12px;
|
||||
// This value alse can be changed in main NexT config as `sidebar: offset: 12` option.
|
||||
|
||||
// In `source/css/_variables/base.styl` there are variables for other resolutions:
|
||||
// $content-tablet-padding : 10px;
|
||||
// $content-mobile-padding : 8px;
|
||||
// P.S. If u want to change this paddings u may set this variables into `custom_file_path.variable` (in theme _config.yml).
|
||||
|
||||
// So, it will 12px in Desktop, 10px in Tablets and 8px in Mobiles for all possible paddings.
|
||||
|
||||
// ==================================================
|
||||
// Desktop layout styles.
|
||||
// ==================================================
|
||||
// Post blocks.
|
||||
.main-inner > {
|
||||
.sub-menu, .post-block, .tabs-comment, .comments, .pagination {
|
||||
background: var(--content-bg-color);
|
||||
border-radius: $border-radius-inner;
|
||||
box-shadow: $box-shadow-inner;
|
||||
|
||||
&:not(:first-child):not(.sub-menu) {
|
||||
border-radius: $border-radius;
|
||||
box-shadow: $box-shadow;
|
||||
margin-top: $sidebar-offset;
|
||||
|
||||
@include tablet() {
|
||||
margin-top: $content-tablet-padding;
|
||||
}
|
||||
|
||||
@include mobile() {
|
||||
margin-top: $content-mobile-padding;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Post & Comments blocks.
|
||||
.post-block, .comments {
|
||||
padding: $content-desktop-padding;
|
||||
}
|
||||
|
||||
// Post delimiters.
|
||||
.post-eof {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Pagination.
|
||||
.pagination {
|
||||
border-top: initial;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
// ==================================================
|
||||
// Headers.
|
||||
// ==================================================
|
||||
.post-body {
|
||||
h1, h2 {
|
||||
border-bottom: 1px solid $body-bg-color;
|
||||
}
|
||||
|
||||
h3 {
|
||||
border-bottom: 1px dotted $body-bg-color;
|
||||
}
|
||||
}
|
||||
|
||||
// ==================================================
|
||||
// > 768px & < 991px
|
||||
// ==================================================
|
||||
@include tablet() {
|
||||
// Posts in blocks.
|
||||
.main-inner {
|
||||
padding: $content-tablet-padding;
|
||||
}
|
||||
|
||||
.posts-expand {
|
||||
// Components inside Posts.
|
||||
.post-button {
|
||||
margin-top: ($content-tablet-padding * 2);
|
||||
}
|
||||
}
|
||||
|
||||
.post-block {
|
||||
// Inside posts blocks content padding (default 40px).
|
||||
padding: ($content-tablet-padding * 2);
|
||||
}
|
||||
|
||||
.comments {
|
||||
padding: $content-tablet-padding ($content-tablet-padding * 2);
|
||||
// padding: initial;
|
||||
// padding-top: $content-tablet-padding;
|
||||
}
|
||||
}
|
||||
|
||||
// ==================================================
|
||||
// < 767px
|
||||
// ==================================================
|
||||
@include mobile() {
|
||||
// Posts in blocks.
|
||||
.main-inner {
|
||||
padding: $content-mobile-padding;
|
||||
}
|
||||
|
||||
.posts-expand {
|
||||
// Components inside Posts.
|
||||
.post-button {
|
||||
margin: $sidebar-offset 0;
|
||||
}
|
||||
}
|
||||
|
||||
.post-block {
|
||||
// Inside posts blocks content padding (default 40px).
|
||||
padding: $sidebar-offset;
|
||||
}
|
||||
|
||||
.comments {
|
||||
padding: 10px $sidebar-offset;
|
||||
}
|
||||
}
|
||||
56
assets/css/_schemes/Mist/_header.scss
Normal file
56
assets/css/_schemes/Mist/_header.scss
Normal file
@@ -0,0 +1,56 @@
|
||||
// Header
|
||||
// --------------------------------------------------
|
||||
.header-inner {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
padding: 20px 0;
|
||||
|
||||
@include mobile() {
|
||||
display: block;
|
||||
padding: 10px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.site-meta {
|
||||
line-height: normal;
|
||||
|
||||
.brand {
|
||||
padding: 2px 1px;
|
||||
|
||||
@include mobile() {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.site-title {
|
||||
font-weight: bolder;
|
||||
}
|
||||
}
|
||||
|
||||
.logo-line {
|
||||
background: var(--brand-color);
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: 0 auto;
|
||||
width: 75%;
|
||||
|
||||
@include mobile() {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.use-motion {
|
||||
.logo-line:first-of-type {
|
||||
transform: scaleX(0);
|
||||
transform-origin: left;
|
||||
}
|
||||
|
||||
.logo-line:last-of-type {
|
||||
transform: scaleX(0);
|
||||
transform-origin: right;
|
||||
}
|
||||
}
|
||||
|
||||
.site-subtitle {
|
||||
display: none;
|
||||
}
|
||||
43
assets/css/_schemes/Mist/_layout.scss
Normal file
43
assets/css/_schemes/Mist/_layout.scss
Normal file
@@ -0,0 +1,43 @@
|
||||
// Tags
|
||||
// --------------------------------------------------
|
||||
hr {
|
||||
height: 2px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
// Components
|
||||
// --------------------------------------------------
|
||||
.btn {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.headband {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Pagination
|
||||
// --------------------------------------------------
|
||||
.pagination {
|
||||
text-align: left;
|
||||
|
||||
@include mobile() {
|
||||
margin: 80px 0 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
// Footer
|
||||
// --------------------------------------------------
|
||||
.footer {
|
||||
background: var(--content-bg-color);
|
||||
color: var(--text-color);
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
text-align: left;
|
||||
|
||||
@include mobile() {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
45
assets/css/_schemes/Mist/_menu.scss
Normal file
45
assets/css/_schemes/Mist/_menu.scss
Normal file
@@ -0,0 +1,45 @@
|
||||
// Menu
|
||||
// --------------------------------------------------
|
||||
.site-nav {
|
||||
flex-grow: 1;
|
||||
|
||||
@include mobile() {
|
||||
padding: 0 10px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.main-menu {
|
||||
@include mobile() {
|
||||
padding-top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.menu {
|
||||
padding: 0;
|
||||
|
||||
.menu-item {
|
||||
margin: 0;
|
||||
|
||||
@include mobile() {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
a {
|
||||
border-radius: 2px;
|
||||
padding: 0 10px;
|
||||
transition-property: background;
|
||||
|
||||
@include mobile() {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.badge {
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
color: $black-light;
|
||||
padding: 1px 4px;
|
||||
text-shadow: 1px 1px 0 rgba(0, 0, 0, .1);
|
||||
}
|
||||
}
|
||||
}
|
||||
72
assets/css/_schemes/Mist/_posts-expand.scss
Normal file
72
assets/css/_schemes/Mist/_posts-expand.scss
Normal file
@@ -0,0 +1,72 @@
|
||||
// Post Expand
|
||||
// --------------------------------------------------
|
||||
.posts-expand {
|
||||
&.index {
|
||||
.post-header {
|
||||
text-align: left;
|
||||
|
||||
@include mobile() {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.post-meta-container {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
justify-content: flex-start;
|
||||
|
||||
@include mobile() {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post-eof {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.post-block:not(:first-of-type) {
|
||||
margin-top: 120px;
|
||||
}
|
||||
|
||||
.post-header {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.post-tags {
|
||||
text-align: left;
|
||||
|
||||
a {
|
||||
background: var(--content-bg-color);
|
||||
border-bottom: 0;
|
||||
padding: 1px 5px;
|
||||
|
||||
&:hover {
|
||||
background: var(--menu-item-bg-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post-nav {
|
||||
margin-top: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.post-button {
|
||||
margin-top: 20px;
|
||||
text-align: left;
|
||||
|
||||
.btn {
|
||||
background: none;
|
||||
border: 0;
|
||||
border-bottom: 2px solid var(--btn-default-border-color);
|
||||
padding: 0;
|
||||
transition-property: border;
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: var(--btn-default-hover-border-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
10
assets/css/_schemes/Mist/index.scss
Normal file
10
assets/css/_schemes/Mist/index.scss
Normal file
@@ -0,0 +1,10 @@
|
||||
//
|
||||
// Mist scheme
|
||||
// ==================================================
|
||||
@import '_layout';
|
||||
@import '_header';
|
||||
@import '_menu';
|
||||
@import '_posts-expand';
|
||||
@import '../Muse/_layout';
|
||||
@import '../Muse/_sidebar';
|
||||
@import '../Muse/_sub-menu';
|
||||
18
assets/css/_schemes/Muse/_header.scss
Normal file
18
assets/css/_schemes/Muse/_header.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
.custom-logo-image {
|
||||
background: white;
|
||||
margin: 0 auto 10px;
|
||||
max-width: 150px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
background: var(--btn-default-bg);
|
||||
}
|
||||
|
||||
.header-inner {
|
||||
padding-top: 100px;
|
||||
|
||||
@include mobile() {
|
||||
padding-top: 50px;
|
||||
}
|
||||
}
|
||||
28
assets/css/_schemes/Muse/_layout.scss
Normal file
28
assets/css/_schemes/Muse/_layout.scss
Normal file
@@ -0,0 +1,28 @@
|
||||
.main-inner {
|
||||
@include main-container();
|
||||
|
||||
@include mobile() {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.header-inner, .main-inner, .footer-inner {
|
||||
@include mobile() {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// Page - Container
|
||||
// --------------------------------------------------
|
||||
.main-inner {
|
||||
padding-bottom: $content-padding-bottom;
|
||||
}
|
||||
|
||||
.post-block:first-of-type {
|
||||
padding-top: $posts-first-padding;
|
||||
|
||||
@include mobile() {
|
||||
padding-top: $posts-first-padding-mobile;
|
||||
}
|
||||
}
|
||||
56
assets/css/_schemes/Muse/_menu.scss
Normal file
56
assets/css/_schemes/Muse/_menu.scss
Normal file
@@ -0,0 +1,56 @@
|
||||
.site-nav {
|
||||
@include mobile() {
|
||||
padding-top: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.main-menu {
|
||||
@include mobile() {
|
||||
border-bottom: 1px solid $grey-lighter;
|
||||
border-top: 1px solid $grey-lighter;
|
||||
}
|
||||
}
|
||||
|
||||
.menu {
|
||||
@include mobile() {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.menu .menu-item {
|
||||
@include mobile() {
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
a {
|
||||
border-bottom: 1px solid transparent;
|
||||
|
||||
@include mobile() {
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
&:hover, &.menu-item-active {
|
||||
background: transparent;
|
||||
border-bottom: 1px solid var(--link-hover-color);
|
||||
|
||||
@include mobile() {
|
||||
border-bottom: 1px dotted $grey-lighter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.fa, .fab, .far, .fas {
|
||||
@include tablet-desktop() {
|
||||
display: block;
|
||||
line-height: 2;
|
||||
margin-right: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.badge {
|
||||
background: $gainsboro;
|
||||
color: $black-light;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
}
|
||||
94
assets/css/_schemes/Muse/_sidebar.scss
Normal file
94
assets/css/_schemes/Muse/_sidebar.scss
Normal file
@@ -0,0 +1,94 @@
|
||||
@if hexo-config('sidebar.position') == 'right' {
|
||||
.sidebar-active {
|
||||
@include desktop() {
|
||||
padding-right: $sidebar-desktop;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
right: 0 - $sidebar-desktop;
|
||||
|
||||
.sidebar-active & {
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
} @else {
|
||||
.sidebar-active {
|
||||
@include desktop() {
|
||||
padding-left: $sidebar-desktop;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
left: 0 - $sidebar-desktop;
|
||||
|
||||
.sidebar-active & {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background: $black-deep;
|
||||
bottom: 0;
|
||||
@if not hexo-config('back2top.sidebar') {
|
||||
box-shadow: inset 0 2px 6px black;
|
||||
}
|
||||
position: fixed;
|
||||
top: 0;
|
||||
transition: all $transition-ease-out;
|
||||
width: $sidebar-desktop;
|
||||
z-index: $zindex-2;
|
||||
|
||||
a {
|
||||
border-bottom-color: $black-light;
|
||||
color: $grey-dark;
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: $gainsboro;
|
||||
color: $gainsboro;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.links-of-author {
|
||||
&:not(:first-child) {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
a {
|
||||
border-bottom-color: $black-light;
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
margin-right: 10px;
|
||||
vertical-align: middle;
|
||||
|
||||
@if hexo-config('social_icons.transition') {
|
||||
transition: all $transition-ease;
|
||||
}
|
||||
|
||||
&::before {
|
||||
background: rgb(random(255), random(255), random(255));
|
||||
display: inline-block;
|
||||
margin-right: 3px;
|
||||
transform: translateY(-2px);
|
||||
@include round-icon(4px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.links-of-blogroll-item {
|
||||
@if hexo-config('links_settings.layout') == 'inline' {
|
||||
display: inline-block;
|
||||
}
|
||||
padding: 2px 10px;
|
||||
|
||||
a {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
max-width: 280px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
7
assets/css/_schemes/Muse/_sub-menu.scss
Normal file
7
assets/css/_schemes/Muse/_sub-menu.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
.sub-menu {
|
||||
margin: 10px 0;
|
||||
|
||||
.menu-item {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
5
assets/css/_schemes/Muse/index.scss
Normal file
5
assets/css/_schemes/Muse/index.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
@import '_layout';
|
||||
@import '_header';
|
||||
@import '_menu';
|
||||
@import '_sub-menu';
|
||||
@import '_sidebar';
|
||||
35
assets/css/_schemes/Pisces/_header.scss
Normal file
35
assets/css/_schemes/Pisces/_header.scss
Normal file
@@ -0,0 +1,35 @@
|
||||
.site-brand-container {
|
||||
background: var(--theme-color);
|
||||
|
||||
.site-nav-on & {
|
||||
@include tablet-mobile() {
|
||||
box-shadow: 0 0 16px rgba(0, 0, 0, .5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-meta {
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.brand {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.site-subtitle {
|
||||
margin: 10px 10px 0;
|
||||
}
|
||||
|
||||
.site-nav-toggle, .site-nav-right {
|
||||
@include tablet() {
|
||||
@include flex-column();
|
||||
}
|
||||
|
||||
.toggle {
|
||||
color: white;
|
||||
|
||||
.toggle-line {
|
||||
background: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
54
assets/css/_schemes/Pisces/_layout.scss
Normal file
54
assets/css/_schemes/Pisces/_layout.scss
Normal file
@@ -0,0 +1,54 @@
|
||||
.header-inner {
|
||||
background: var(--content-bg-color);
|
||||
border-radius: $border-radius-inner;
|
||||
box-shadow: $box-shadow-inner;
|
||||
width: $sidebar-desktop;
|
||||
|
||||
@include tablet-mobile() {
|
||||
border-radius: initial;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.main {
|
||||
// Make sure that .header and .main-inner are the same height
|
||||
// Required for .sidebar `position: sticky;`
|
||||
align-items: stretch;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@include main-container();
|
||||
|
||||
@if hexo-config('sidebar.position') == 'right' {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
@include tablet-mobile() {
|
||||
display: block;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.main-inner {
|
||||
border-radius: $border-radius-inner;
|
||||
box-sizing: border-box;
|
||||
width: $content-wrap;
|
||||
|
||||
@include tablet-mobile() {
|
||||
border-radius: initial;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
@if hexo-config('sidebar.position') == 'right' {
|
||||
padding-right: $sidebar-desktop + $sidebar-offset;
|
||||
} @else {
|
||||
padding-left: $sidebar-desktop + $sidebar-offset;
|
||||
}
|
||||
|
||||
@include tablet-mobile() {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
46
assets/css/_schemes/Pisces/_menu.scss
Normal file
46
assets/css/_schemes/Pisces/_menu.scss
Normal file
@@ -0,0 +1,46 @@
|
||||
.site-nav {
|
||||
@include tablet() {
|
||||
@include site-nav-hide-by-default();
|
||||
}
|
||||
}
|
||||
|
||||
.menu .menu-item {
|
||||
display: block;
|
||||
margin: 0;
|
||||
|
||||
a {
|
||||
padding: 5px 20px;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
transition-property: background-color;
|
||||
}
|
||||
|
||||
@include tablet-mobile() {
|
||||
&.menu-item-search {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.badge {
|
||||
background: $grey-light;
|
||||
border-radius: 10px;
|
||||
color: var(--content-bg-color);
|
||||
float: right;
|
||||
padding: 2px 5px;
|
||||
text-shadow: 1px 1px 0 rgba(0, 0, 0, .1);
|
||||
}
|
||||
}
|
||||
|
||||
@if not hexo-config('menu_settings.badges') {
|
||||
.main-menu .menu-item-active::after {
|
||||
background: $grey;
|
||||
border-radius: 50%;
|
||||
content: ' ';
|
||||
height: 6px;
|
||||
margin-top: -3px;
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 50%;
|
||||
width: 6px;
|
||||
}
|
||||
}
|
||||
92
assets/css/_schemes/Pisces/_sidebar.scss
Normal file
92
assets/css/_schemes/Pisces/_sidebar.scss
Normal file
@@ -0,0 +1,92 @@
|
||||
.sidebar {
|
||||
margin-top: $sidebar-offset;
|
||||
// https://caniuse.com/css-sticky
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: $sidebar-offset;
|
||||
width: $sidebar-desktop;
|
||||
|
||||
@include tablet-mobile() {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@if hexo-config('motion.enable') and hexo-config('motion.transition.sidebar') {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-inner {
|
||||
background: var(--content-bg-color);
|
||||
border-radius: $border-radius;
|
||||
box-shadow: $box-shadow;
|
||||
box-sizing: border-box;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.site-state-item {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-button {
|
||||
border-bottom: 1px dotted $grey-light;
|
||||
border-top: 1px dotted $grey-light;
|
||||
|
||||
button {
|
||||
border: 0;
|
||||
color: $orange;
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
||||
&:hover {
|
||||
background: none;
|
||||
border: 0;
|
||||
color: darken($orange, 20%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.links-of-author {
|
||||
@include flex-wrap();
|
||||
}
|
||||
|
||||
.links-of-author-item {
|
||||
@include sidebar-inline-links-item();
|
||||
|
||||
@if not hexo-config('social_icons.icons_only') {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
a {
|
||||
border-bottom: 0;
|
||||
border-radius: 4px;
|
||||
display: block;
|
||||
|
||||
&:hover {
|
||||
background: var(--body-bg-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.links-of-blogroll-item {
|
||||
@if hexo-config('links_settings.layout') == 'inline' {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
@include sidebar-inline-links-item();
|
||||
}
|
||||
}
|
||||
|
||||
@if hexo-config('back2top.sidebar') {
|
||||
// Only when back2top.sidebar is true, apply the following styles
|
||||
.back-to-top {
|
||||
background: var(--body-bg-color);
|
||||
margin: 8px - $sidebar-offset -10px -18px;
|
||||
|
||||
&.back-to-top-on {
|
||||
margin-top: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
28
assets/css/_schemes/Pisces/_sub-menu.scss
Normal file
28
assets/css/_schemes/Pisces/_sub-menu.scss
Normal file
@@ -0,0 +1,28 @@
|
||||
.sub-menu {
|
||||
margin: 0;
|
||||
padding: 6px 0;
|
||||
|
||||
.menu-item {
|
||||
display: inline-block;
|
||||
|
||||
a {
|
||||
background: transparent;
|
||||
margin: 5px 10px;
|
||||
padding: initial;
|
||||
|
||||
&:hover {
|
||||
background: transparent;
|
||||
color: $sidebar-highlight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-item-active {
|
||||
border-bottom-color: $sidebar-highlight;
|
||||
color: $sidebar-highlight;
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: $sidebar-highlight;
|
||||
}
|
||||
}
|
||||
}
|
||||
30
assets/css/_schemes/Pisces/index.scss
Normal file
30
assets/css/_schemes/Pisces/index.scss
Normal file
@@ -0,0 +1,30 @@
|
||||
@import '_layout';
|
||||
@import '_header';
|
||||
@import '_menu';
|
||||
@import '_sub-menu';
|
||||
@import '_sidebar';
|
||||
|
||||
.main-inner {
|
||||
background: var(--content-bg-color);
|
||||
box-shadow: $box-shadow-inner;
|
||||
padding: $content-desktop-padding;
|
||||
|
||||
@include tablet-mobile() {
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
// Sub-menu(s).
|
||||
.sub-menu {
|
||||
border-bottom: 1px solid $table-border-color;
|
||||
}
|
||||
|
||||
.post-block:first-of-type {
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
@include mobile() {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user