This commit is contained in:
2019-05-30 18:52:14 +08:00
commit aa360a22bf
341 changed files with 30369 additions and 0 deletions

View File

@ -0,0 +1,19 @@
.back-to-top {
visibility: hidden;
margin: (20px - $sidebar-offset) -10px -20px;
background: $b2t-sidebar-bg-color;
font-size: $b2t-font-size;
opacity: $b2t-opacity;
cursor: pointer;
text-align: center;
&:hover { opacity: $b2t-opacity-hover; }
+tablet-mobile() {
hide() if not hexo-config('sidebar.onmobile');
}
&.back-to-top-on {
visibility: visible;
the-transition();
}
}

View File

@ -0,0 +1,25 @@
.back-to-top {
box-sizing: border-box;
position: fixed;
bottom: $b2t-position-bottom;
right: $b2t-position-right;
z-index: $zindex-5;
padding: 0 6px;
width: hexo-config('back2top.scrollpercent') ? initial : 24px;
background: $b2t-bg-color;
font-size: $b2t-font-size;
opacity: $b2t-opacity;
color: $b2t-color;
cursor: pointer;
text-align: center;
transition-property: bottom;
the-transition();
&.back-to-top-on {
bottom: $b2t-position-bottom-on;
}
+tablet-mobile() {
opacity: $b2t-opacity-hover;
right: $b2t-position-right-mobile;
}
}

View File

@ -0,0 +1,38 @@
.btn {
display: inline-block;
padding: 0 20px;
font-size: $btn-default-font-size;
color: $btn-default-color;
background: $btn-default-bg;
border: $btn-default-border-width solid $btn-default-border-color;
text-decoration: none;
border-radius: $btn-default-radius;
transition-property: background-color;
the-transition();
line-height: 2;
&:hover {
border-color: $btn-default-hover-border-color;
color: $btn-default-hover-color;
background: $btn-default-hover-bg;
}
+.btn {
margin: 0 0 8px 8px;
}
.fa-fw {
width: (18em / 14);
text-align: left;
}
}
.btn-bar {
show();
width: 22px;
height: 2px;
background: $text-color;
border-radius: 1px;
&+.btn-bar { margin-top: 4px; }
}

View File

@ -0,0 +1 @@
.comments { margin: 60px 20px 0; }

View File

@ -0,0 +1,18 @@
@import "highlight";
@import "tags";
@import "buttons";
@import "pagination";
@import "comments";
@import (hexo-config('back2top.sidebar') ? "back-to-top-sidebar" : "back-to-top") if (hexo-config('back2top.enable'));
@import "header";
@import "post";
@import "sidebar";
@import "footer";
@import "third-party";
@import "pages";
@import "rainbow" if hexo-config('safari_rainbow');
@import "scrollbar" if hexo-config('custom_scrollbar');

View File

@ -0,0 +1,30 @@
.footer {
font-size: 14px;
color: $grey-dark;
img { border: none; }
}
.footer-inner { text-align: center; }
@keyframes iconAnimate {
0%, 100% { transform: scale(1); }
10%, 30% { transform: scale(0.9); }
20%, 40%, 60%, 80% { transform: scale(1.1); }
50%, 70% { transform: scale(1.1); }
}
if hexo-config('footer.icon.animated') {
#animate {
animation: iconAnimate 1.33s ease-in-out infinite;
}
}
.with-love {
display: inline-block;
margin: 0 5px;
color: unquote(hexo-config('footer.icon.color'));
}
.powered-by,
.theme-info { display: inline-block; }

View File

@ -0,0 +1,55 @@
@keyframes octocat-wave {
0%, 100% {
transform: rotate(0);
}
20%, 60% {
transform: rotate(-25deg);
}
40%, 80% {
transform: rotate(10deg);
}
}
.github-corner {
scheme = hexo-config('scheme');
bg_color = unquote(hexo-config('android_chrome_color'));
mobile_layout_economy = hexo-config('mobile_layout_economy');
:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
> svg {
fill: bg_color;
color: #fff;
position: absolute;
top: 0;
border: 0;
right: 0;
}
+tablet-mobile() {
> svg {
if (scheme == 'Pisces') || (scheme == 'Gemini') {
fill: #fff;
color: bg_color;
}
}
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}
+mobile() {
> svg {
if (scheme == 'Mist') {
top: inherit;
if mobile_layout_economy {
+mobile-small() {
margin-top: initial;
}
}
}
}
}
}

View File

@ -0,0 +1,9 @@
.header { background: $head-bg; }
.header-inner { position: relative; }
@import "headerband";
@import "site-meta";
@import "site-nav";
@import "menu";
@import "github-banner" if hexo-config('github_banner.enable');

View File

@ -0,0 +1,4 @@
.headband {
height: $headband-height;
background: $headband-bg;
}

View File

@ -0,0 +1,32 @@
// Menu
// --------------------------------------------------
.menu {
margin-top: 20px;
padding-left: 0;
text-align: center;
}
.menu .menu-item {
display: inline-block;
margin: 0 10px;
list-style: none;
+mobile() {
margin-top: 10px;
}
a, span.exturl {
show();
font-size: 13px;
line-height: inherit;
border-bottom: 1px solid $menu-link-border;
transition-property: border-color;
the-transition();
&:hover { border-bottom-color: $menu-link-hover-border; }
}
.fa { margin-right: 5px; }
}
.use-motion .menu-item { opacity: 0; }

View File

@ -0,0 +1,48 @@
.site-meta {
margin: 0;
text-align: $site-meta-text-align;
+mobile() { text-align: center; }
}
.brand {
position: relative;
display: inline-block;
padding: 0 40px;
color: $brand-color;
background: $brand-bg;
border-bottom: none;
&:hover { color: $brand-hover-color; }
}
.logo {
display: inline-block;
margin-right: 5px;
line-height: 36px;
vertical-align: top;
}
.site-title {
display: inline-block;
vertical-align: top;
line-height: 36px;
font-size: $logo-font-size;
font-weight: normal;
font-family: $font-family-logo;
}
.site-subtitle {
margin-top: 10px;
font-size: $subtitle-font-size;
color: $subtitle-color;
}
.use-motion {
.brand { opacity: 0; }
.logo, .site-title, .site-subtitle, .custom-logo-image {
opacity: 0;
position: relative;
top: -10px;
}
}

View File

@ -0,0 +1,28 @@
.site-nav-toggle {
hide();
position: absolute;
top: 10px;
left: 10px;
+mobile() {
show();
}
button {
margin-top: 2px;
padding: 9px 10px;
background: transparent;
border: none;
}
}
.site-nav {
+mobile() {
hide();
margin: 0 -10px;
padding: 0 10px;
clear: both;
border-top: 1px solid $gray-lighter;
}
+tablet() { display: block !important; }
+desktop() { display: block !important; }
}

View File

@ -0,0 +1,8 @@
$highlight_theme = hexo-config("highlight_theme")
if $highlight_theme == "normal"
$highlight-deletion = #fdd
$highlight-addition = #dfd
else
$highlight-deletion = #800000
$highlight-addition = #008000

View File

@ -0,0 +1,182 @@
// https://github.com/chriskempson/tomorrow-theme
@require "theme"
@require "diff"
// Placeholder: $code-block
$code-block {
overflow: auto;
margin: 20px 0;
padding: 0;
font-size $code-font-size;
color: $highlight-foreground;
background: $highlight-background;
line-height: $line-height-code-block;
}
pre, code { font-family: $code-font-family; }
code {
word-wrap();
padding: 2px 4px;
color: $code-foreground;
background: $code-background;
border-radius: $code-border-radius;
font-size: $code-font-size;
}
pre {
@extend $code-block;
padding: 10px;
code {
padding: 0;
color: $highlight-foreground;
background: none;
text-shadow: none;
}
}
.highlight {
@extend $code-block;
// Read values from NexT config and set they as local variables to use as string variables (in any CSS section).
hexo-config('codeblock.border_radius') is a 'unit' ? (cbradius = unit(hexo-config('codeblock.border_radius'), px)) : (cbradius = 1px)
border-radius: cbradius;
pre {
border: none;
margin: 0;
padding: 10px 0;
}
table {
margin: 0;
width: auto;
border: none;
}
td {
border: none;
padding: 0;
}
figcaption {
clearfix();
font-size: 1em;
color: $highlight-foreground;
line-height: 1em;
margin-bottom: 1em;
margin: 0em;
padding: 0.5em;
background: $code-background;
border-bottom: 1px solid #e9e9e9;
a {
float: right;
color: $highlight-foreground;
&:hover { border-bottom-color: $highlight-foreground; }
}
}
.gutter pre {
padding-left: 10px
padding-right: 10px
color: $highlight-gutter.color
text-align: right
background-color: $highlight-gutter.bg-color
}
.code pre {
width: 100%
padding-left: 10px
padding-right: 10px
background-color: $highlight-background
}
.line { height: 20px; }
}
.gutter {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.gist table {
width: auto;
td { border: none; }
}
// For diff highlight
pre .deletion { background: $highlight-deletion; }
pre .addition { background: $highlight-addition; }
pre .meta { color: $highlight-purple; }
pre {
.comment { color: $highlight-comment; }
.variable
.attribute
.tag
.name
.regexp
.ruby .constant
.xml .tag .title
.xml .pi
.xml .doctype
.html .doctype
.css .id
.css .class
.css .pseudo {
color: $highlight-red;
}
.number
.preprocessor
.built_in
.builtin-name
.literal
.params
.constant
.command {
color: $highlight-orange;
}
.ruby .class .title
.css .rules .attribute
.string
.symbol
.value
.inheritance
.header
.ruby .symbol
.xml .cdata
.special
.formula {
color: $highlight-green;
}
.title
.css .hexcolor {
color: $highlight-aqua;
}
.function
.python .decorator
.python .title
.ruby .function .title
.ruby .title .keyword
.perl .sub
.javascript .title
.coffeescript .title {
color: $highlight-blue;
}
.keyword
.javascript .function {
color: $highlight-purple;
}
}

View File

@ -0,0 +1,92 @@
$highlight_theme = hexo-config("highlight_theme")
if $highlight_theme == "normal"
$highlight-background = #f7f7f7
$highlight-current-line = #efefef
$highlight-selection = #d6d6d6
$highlight-foreground = #4d4d4c
$highlight-comment = #8e908c
$highlight-red = #c82829
$highlight-orange = #f5871f
$highlight-yellow = #eab700
$highlight-green = #718c00
$highlight-aqua = #3e999f
$highlight-blue = #4271ae
$highlight-purple = #8959a8
$highlight-gutter = {
color: #869194,
bg-color: #eff2f3
}
if $highlight_theme == "night"
$highlight-background = #1d1f21
$highlight-current-line = #282a2e
$highlight-selection = #373b41
$highlight-foreground = #c5c8c6
$highlight-comment = #969896
$highlight-red = #cc6666
$highlight-orange = #de935f
$highlight-yellow = #f0c674
$highlight-green = #b5bd68
$highlight-aqua = #8abeb7
$highlight-blue = #81a2be
$highlight-purple = #b294bb
$highlight-gutter = {
color: lighten($highlight-background, 50%),
bg-color: darken($highlight-background, 100%)
}
if $highlight_theme == "night eighties"
$highlight-background = #2d2d2d
$highlight-current-line = #393939
$highlight-selection = #515151
$highlight-foreground = #cccccc
$highlight-comment = #999999
$highlight-red = #f2777a
$highlight-orange = #f99157
$highlight-yellow = #ffcc66
$highlight-green = #99cc99
$highlight-aqua = #66cccc
$highlight-blue = #6699cc
$highlight-purple = #cc99cc
$highlight-gutter = {
color: $highlight-comment,
bg-color: darken($highlight-background, 40%)
}
if $highlight_theme == "night blue"
$highlight-background = #002451
$highlight-current-line = #00346e
$highlight-selection = #003f8e
$highlight-foreground = #ffffff
$highlight-comment = #7285b7
$highlight-red = #ff9da4
$highlight-orange = #ffc58f
$highlight-yellow = #ffeead
$highlight-green = #d1f1a9
$highlight-aqua = #99ffff
$highlight-blue = #bbdaff
$highlight-purple = #ebbbff
$highlight-gutter = {
color: $highlight-comment,
bg-color: darken($highlight-background, 60%)
}
if $highlight_theme == "night bright"
$highlight-background = #000000
$highlight-current-line = #2a2a2a
$highlight-selection = #424242
$highlight-foreground = #eaeaea
$highlight-comment = #969896
$highlight-red = #d54e53
$highlight-orange = #e78c45
$highlight-yellow = #e7c547
$highlight-green = #b9ca4a
$highlight-aqua = #70c0b1
$highlight-blue = #7aa6da
$highlight-purple = #c397d8
$highlight-gutter = {
color: lighten($highlight-background, 40%),
bg-color: lighten($highlight-background, 16%)
}

View File

@ -0,0 +1,34 @@
.page-archive {
.archive-page-counter {
position: relative;
top: 3px;
left: 20px;
+mobile() {
top: 5px;
}
}
.posts-collapse {
.archive-move-on {
position: absolute;
top: 11px;
left: 0;
margin-left: -6px;
width: 10px;
height: 10px;
opacity: 0.5;
background: $black-light;
border: 1px solid white;
circle();
}
}
.fa-external-link {
font-size: 15px;
margin-left: 5px;
}
}

View File

@ -0,0 +1,21 @@
ul.breadcrumb {
list-style: none;
margin: 1em 0;
padding: 0 2em;
text-align: center;
font-size: $font-size-small
& li {
display: inline;
}
& li+li:before {
padding: 0.5em;
font-weight: normal;
content: "/\00a0";
}
& li+li:last-child {
font-weight: bold;
}
}

View File

@ -0,0 +1,27 @@
.category-all-page {
.category-all-title { text-align: center; }
.category-all { margin-top: 20px; }
.category-list {
margin: 0;
padding: 0;
list-style: none;
}
.category-list-item { margin: 5px 10px; }
.category-list-count {
color: $grey;
&:before {
display: inline;
content: " ("
}
&:after {
display: inline;
content: ") "
}
}
.category-list-child { padding-left: 10px; }
}

View File

@ -0,0 +1,8 @@
// Page specific styles
@import "archive";
@import "categories";
@import "schedule";
@import "post-detail";
@import "breadcrumb";
@import "tag-cloud";

View File

@ -0,0 +1,6 @@
.page-post-detail {
.sidebar-toggle-line { background: $sidebar-highlight; }
.comments { overflow: hidden; }
}

View File

@ -0,0 +1,114 @@
@keyframes dot-flash {
from { opacity: 1; transform: scale(1.1); }
to { opacity: 0; transform: scale(1); }
}
#event-list {
padding-left: 30px;
hr {
margin: 20px 0 45px 0 !important;
background: #222;
&:after {
display: inline-block;
content: 'NOW';
background: #222;
color: #FFF;
font-weight: bold;
text-align: right;
padding: 0 5px;
}
}
li.event {
margin: 20px 0px;
background: #F9F9F9;
padding-left: 10px;
min-height: 40px;
h2.event-summary {
margin: 0;
padding-bottom: 3px;
&:before {
display: inline-block;
font-family: FontAwesome;
font-size: 8px;
content: '\f111';
vertical-align: middle;
margin-right: 25px;
color: #bbb;
}
}
span.event-relative-time {
display: inline-block;
font-size: 12px;
font-weight: 400;
padding-left: 12px;
color: #bbb;
}
span.event-details {
show();
color: #bbb;
margin-left: 56px;
padding-top: 3px;
padding-bottom: 6px;
text-indent: -24px;
line-height: 18px;
&:before {
text-indent: 0;
display: inline-block;
width: 14px;
font-family: FontAwesome;
text-align: center;
margin-right: 9px;
color: #bbb;
}
&.event-location:before {
content: '\f041';
}
&.event-duration:before {
content: '\f017';
}
}
}
li.event-past {
background: #FCFCFC;
padding: 15px 0 15px 10px;
& > * {
opacity: .9;
}
h2.event-summary {
color: #bbb;
&:before {
color: #DFDFDF;
}
}
}
li.event-now {
background: #222;
color: #FFF;
padding: 15px 0 15px 10px;
h2.event-summary {
&:before {
transform: scale(1.2);
color: #FFF;
animation: dot-flash 1s alternate infinite ease-in-out;
}
}
* {
color: #FFF !important;
}
}
li.event-future {
background: #222;
color: #FFF;
padding: 15px 0 15px 10px;
h2.event-summary {
&:before {
transform: scale(1.2);
color: #FFF;
animation: dot-flash 1s alternate infinite ease-in-out;
}
}
* {
color: #FFF !important;
}
}
}

View File

@ -0,0 +1,12 @@
.tag-cloud {
text-align: center;
a {
display: inline-block;
margin: 10px;
}
a:hover {
color: $link-hover-color !important;
}
}

View File

@ -0,0 +1,57 @@
.pagination {
margin: 120px 0 40px;
text-align: center;
border-top: 1px solid $pagination-border;
}
.page-number-basic {
display: inline-block;
position: relative;
top: -1px;
margin: 0 10px;
padding: 0 11px;
+mobile() { margin: 0 5px; }
}
.pagination {
.prev, .next, .page-number {
@extend .page-number-basic;
border-bottom: 0;
border-top: 1px solid $pagination-link-border;
transition-property: border-color;
the-transition();
&:hover { border-top-color: $pagination-link-hover-border; }
}
.space {
@extend .page-number-basic;
padding: 0;
margin: 0;
}
.prev { margin-left: 0; }
.next { margin-right: 0; }
.page-number.current {
color: $pagination-active-color;
background: $pagination-active-bg;
border-top-color: $pagination-active-border;
}
}
+mobile() {
.pagination { border-top: none; }
.pagination {
.prev, .next, .page-number {
margin-bottom: 10px;
border-top: 0;
border-bottom: 1px solid $pagination-link-border;
padding: 0 10px;
&:hover { border-bottom-color: $pagination-link-hover-border; }
}
}
}

View File

@ -0,0 +1,3 @@
.post-button {
margin-top: 40px;
}

View File

@ -0,0 +1,111 @@
// TODO: Refactor.
+mobile() {
.posts-collapse {
margin: 0 20px;
.post-title, .post-meta {
show();
width: auto;
text-align: left;
}
}
}
.posts-collapse {
position: relative;
z-index: $zindex-1;
&::after {
content: " ";
position: absolute;
top: 20px;
left: 0;
margin-left: -2px;
width: 4px;
height: 100%;
background: $whitesmoke;
z-index: $zindex-bottom;
}
margin-left: $posts-collapse-left;
+mobile() { margin: 0 20px; }
.collection-title {
position: relative;
margin: 60px 0;
h1, h2 { margin-left: 20px; }
small { color: $grey; margin-left: 5px; }
&::before {
content: " ";
position: absolute;
left: 0;
top: 50%;
margin-left: -4px;
margin-top: -4px;
width: 8px;
height: 8px;
background: $grey;
circle();
}
}
.post { margin: 30px 0; }
.post-header {
position: relative;
the-transition();
transition-property: border;
border-bottom: 1px dashed $grey-light;
&::before {
content: " ";
position: absolute;
left: 0;
top: 12px;
width: 6px;
height: 6px;
margin-left: -4px;
background: $grey;
circle();
border: 1px solid white;
the-transition();
transition-property: background;
}
}
.post-header:hover {
border-bottom-color: $grey-dim;
&::before { background: $black-deep; }
}
.post-meta {
position: absolute;
font-size: 12px;
left: 20px;
top: 5px;
}
.post-comments-count { display: none; }
.post-title {
margin-left: 60px;
font-size: 16px;
font-weight: normal;
line-height: inherit;
&::after {
margin-left: 3px;
opacity: 0.6;
}
a, span.exturl {
color: $grey-dim;
border-bottom: none;
}
}
}

View File

@ -0,0 +1,11 @@
.post-copyright {
margin: $post-copyright.margin;
padding: $post-copyright.padding;
border-left: $post-copyright.border.width $post-copyright.border.style $post-copyright.border.color;
background-color: $post-copyright.bg;
list-style: none;
i.fa {
font-size: 15px;
}
}

View File

@ -0,0 +1,15 @@
.posts-expand {
.post-eof {
margin: $post-eof-margin-top auto $post-eof-margin-bottom;
width: 8%;
height: 1px;
background: $grey-light;
text-align: center;
}
}
.post:last-child {
.post-eof {
hide();
}
}

View File

@ -0,0 +1,64 @@
// TODO: Refactor.
.posts-expand {
padding-top: 40px;
}
+mobile() {
.posts-expand {
margin: 0 20px;
}
.post-body {
pre {
.gutter pre {
padding-right: 10px;
}
}
.highlight {
margin-left: 0px;
margin-right: 0px;
padding: 0;
.gutter pre {
padding-right: 10px;
}
}
}
}
.posts-expand .post-body {
+desktop() {
text-align: unquote(hexo-config('text_align.desktop'));
}
+tablet-mobile() {
text-align: unquote(hexo-config('text_align.mobile'));
}
h2, h3, h4, h5, h6 {
padding-top: 10px;
.header-anchor {
float: right;
margin-left: 10px;
color: $grey-light;
border-bottom-style: none;
visibility: hidden;
&:hover {
color: inherit;
}
}
&:hover .header-anchor {
visibility: visible;
}
}
img {
box-sizing: border-box;
margin: 0 auto 25px;
padding: 3px;
border: 1px solid $gray-lighter;
}
}

View File

@ -0,0 +1,27 @@
.post-gallery {
display: table;
table-layout: fixed;
width: 100%;
border-collapse: separate;
}
.post-gallery-row {
display: table-row;
}
.post-gallery .post-gallery-img {
display: table-cell;
text-align: center;
vertical-align: middle;
border: none;
img {
max-width: 100%;
max-height: 100%;
border: none;
}
}
.fancybox-close, .fancybox-close:hover {
border: none;
}

View File

@ -0,0 +1,51 @@
.posts-expand .post-meta {
margin: 3px 0 60px 0;
color: $grey-dark;
font-family: $font-family-posts;
font-size: 12px;
text-align: center;
.post-category-list {
display: inline-block;
margin: 0;
padding: 3px;
}
.post-category-list-link { color: $grey-dark; }
.post-description {
font-size: 14px;
margin-top: 2px;
}
time {
border-bottom: 1px dashed $grey-dark;
cursor: help;
}
}
.post-symbolscount {
if !hexo-config('symbols_count_time.separated_meta') { display: inline-block; }
}
.post-meta-divider {
margin: 0 .5em;
}
.post-meta-item-icon {
margin-right: 3px;
+tablet() {
display: inline-block;
}
+mobile() {
display: inline-block;
}
}
.post-meta-item-text {
+tablet() {
hide();
}
+mobile() {
hide();
}
}

View File

@ -0,0 +1,51 @@
.post-nav {
display: table;
margin-top: 15px;
width: 100%;
border-top: 1px solid $gainsboro;
}
.post-nav-divider {
display: table-cell;
width: 10%;
}
.post-nav-item {
display: table-cell;
padding: 10px 0 0 0;
width: 45%;
vertical-align: top;
a {
position: relative;
show();
line-height: 25px;
font-size: 14px;
color: $link-color;
border-bottom: none;
&:hover {
color: $link-hover-color;
border-bottom: none;
}
&:active { top: 2px; }
}
.fa {
font-size: 12px;
margin-right: 5px;
}
}
.post-nav-next {
a { padding-left: 5px; }
}
.post-nav-prev {
text-align: right;
a { padding-right: 5px; }
.fa { margin-left: 5px; }
}

View File

@ -0,0 +1,10 @@
.reading-progress-bar {
position: fixed;
top: 0;
left: 0;
z-index: 9999;
show();
width: 0;
height: unquote(hexo-config('reading_progress.height'));
background: unquote(hexo-config('reading_progress.color'));
}

View File

@ -0,0 +1,64 @@
#reward-container {
padding: 10px 0;
margin: 20px auto;
width: 90%;
text-align: center;
}
#reward-button {
cursor: pointer;
border: 0;
outline: 0;
display: inline-block;
vertical-align: text-top;
margin: 0;
padding: 0 15px;
border-radius: 5px;
height: $font-size-large * 2;
line-height: $font-size-large * 2;
font-size: $font-size-large;
color: #fff;
background: #F44336;
letter-spacing: normal;
text-transform: none;
text-indent: 0px;
text-shadow: none;
}
#reward-button span:hover {
background: #F7877F;
}
#qr {
padding-top: 20px;
a {
border: 0;
}
img {
width: 180px;
max-width: 100%;
display: inline-block;
margin: 0.8em 2em 0 2em;
}
p {
text-align: center;
}
if hexo-config('reward_settings.animation') {
& > div:hover p {
animation: roll 0.1s infinite linear;
}
@keyframes roll {
from {
transform: rotateZ(30deg);
}
to {
transform: rotateZ(-30deg);
}
}
}
}

View File

@ -0,0 +1,11 @@
.rtl {
&.post-body {
p, a, h1, h2, h3, h4, h5, h6, li, ul, ol {
direction: rtl;
font-family: UKIJ Ekran;
}
}
&.post-title {
font-family: UKIJ Ekran;
}
}

View File

@ -0,0 +1,10 @@
.posts-expand .post-tags {
margin-top: 40px;
text-align: center;
a {
display: inline-block;
margin-right: 10px;
font-size: 13px;
}
}

View File

@ -0,0 +1,54 @@
.posts-expand .post-title {
word-wrap();
text-align: center;
font-weight: $posts-expand-title-font-weight;
if hexo-config('post_edit.enable') {
.post-edit-link {
color: #bbb;
display: inline-block;
float: right;
border-bottom: none;
the-transition-ease-in();
margin-left: -1.2em;
+mobile-small() {
margin-left: initial;
}
&:hover {
color: black;
}
}
}
}
.posts-expand .post-title-link {
display: inline-block;
position: relative;
color: $black-light;
border-bottom: none;
line-height: 1.2;
vertical-align: top;
&::before {
content: "";
position: absolute;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: #000;
visibility: hidden;
transform: scaleX(0);
the-transition();
}
&:hover::before {
visibility: visible;
transform: scaleX(1);
}
.fa {
font-size: 20px;
margin-left: 5px;
}
}

View File

@ -0,0 +1,14 @@
// TODO: Refactor.
.page-home, .page-post-detail {
.post-type-quote {
.post-header,
.post-tags {
hide();
}
blockquote {
@extend .blockquote-center
}
}
}

View File

@ -0,0 +1,50 @@
.post-widgets {
border-top: 1px solid #eee;
padding-top: 9px;
margin-top: 45px;
display: flex;
justify-content: center;
flex-wrap: wrap;
align-items: center;
.post-meta-divider {
height: 25px;
color: $grey-dark;
}
}
.wp_rating {
height: 20px;
margin-right: 10px;
text-align: center;
line-height: 20px;
padding-top: 6px;
}
.social-like {
font-size: 14px;
text-align: center;
display: flex;
justify-content: center;
}
.vk_like {
width: 85px;
height: 21px;
padding-top: 7px;
align-self: center;
}
.fb_like {
height: 30px;
align-self: center;
}
.bdsharebuttonbox {
margin-top: 10px;
display: flex;
justify-content: center;
a { border: none; }
}
.bdshare-slide-button-box a { border: none; }

View File

@ -0,0 +1,61 @@
.post-body {
word-wrap();
font-family: $font-family-posts;
}
.post-body span.exturl {
.fa {
font-size: 14px;
margin-left: 4px;
}
}
.post-body .fancybox img {
display: block !important;
margin: 0 auto;
cursor: pointer;
cursor: zoom-in;
}
.post-body .image-caption,
.post-body .figure .caption {
margin: -20px auto 15px;
text-align: center;
font-size: $font-size-base;
color: $grey-dark;
font-weight: bold;
line-height: 1;
}
.post-sticky-flag {
display: inline-block;
font-size: 16px;
transform: rotate(30deg);
}
.use-motion {
if hexo-config('motion.transition.post_block') {
.post-block,
.pagination,
.comments { opacity: 0; }
}
if hexo-config('motion.transition.post_header') { .post-header { opacity: 0; } }
if hexo-config('motion.transition.post_body') { .post-body { opacity: 0; } }
if hexo-config('motion.transition.coll_header') { .collection-title { opacity: 0; } }
}
@import "post-expand";
@import "post-collapse";
@import "post-type";
@import "post-title";
@import "post-meta";
@import "post-button";
@import "post-tags";
@import "post-nav";
@import "post-eof";
@import "post-gallery";
@import "post-reward" if hexo-config('reward_settings.enable');
@import "post-copyright" if hexo-config('creative_commons.post');
@import "post-widgets" if (hexo-config('facebook_sdk.enable') and hexo-config('facebook_sdk.like_button')) or (hexo-config('vkontakte_api.enable') and hexo-config('vkontakte_api.like')) or hexo-config('rating.enable') or hexo-config('likely.enable') or (hexo-config('needmoreshare2.enable') and hexo-config('needmoreshare2.postbottom.enable')) or hexo-config('baidushare');
@import "post-rtl";
@import "post-reading_progress" if hexo-config('reading_progress.enable');

View File

@ -0,0 +1,43 @@
body {
overscroll-behavior: none;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
body:before {
right: 0;
top: 0;
left: 0;
height: 100px;
z-index: 2147483647;
position: fixed;
content: "";
show();
transform: translateY(-99.99px);
background: linear-gradient(124deg,
#FF0000,
#FF7F00,
#FFFF00,
#7FFF00,
#00FF00,
#00FF7F,
#00FFFF,
#007FFF,
#0000FF,
#7F00FF,
#FF00FF,
#FF007F,
#FF0000);
animation: rainbow 15s ease infinite;
background-size: 1000% 1000%;
}
}
@keyframes rainbow {
0% {
background-position: 0% 80%;
}
50% {
background-position: 100% 20%;
}
100% {
background-position: 0% 80%;
}
}

View File

@ -0,0 +1,31 @@
// scrollbar
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
// track
::-webkit-scrollbar-track {
}
// Handle style
::-webkit-scrollbar-thumb {
border-radius: 10px;
background: rgba(0, 0, 0, 0.2);
}
// inactive style
::-webkit-scrollbar-thumb:window-inactive {
background: rgba(0, 0, 0, 0.1);
}
// hover style
::-webkit-scrollbar-thumb:hover{
background-color: rgba(0, 0, 0, 0.3);
}
// active style
::-webkit-scrollbar-thumb:active{
background-color: rgba(0, 0, 0, 0.4);
}

View File

@ -0,0 +1,24 @@
.links-of-author {
margin-top: 20px;
a, span.exturl {
display: inline-block;
vertical-align: middle;
margin-right: 10px;
margin-bottom: 10px;
border-bottom-color: $black-light;
font-size: 13px;
if hexo-config('social_icons.transition') { the-transition(); }
&:before {
display: inline-block;
vertical-align: middle;
margin-right: 3px;
content: " ";
width: 4px;
height: 4px;
circle();
background: rgb(random-color(0, 255) - 50%, random-color(0, 255) - 50%, random-color(0, 255) - 50%);
}
}
}

View File

@ -0,0 +1,39 @@
.site-author-image {
show();
margin: 0 auto;
padding: $site-author-image-padding;
max-width: $site-author-image-width;
height: $site-author-image-height;
border: $site-author-image-border-width solid $site-author-image-border-color;
opacity: hexo-config('avatar.opacity') is a 'unit' ? hexo-config('avatar.opacity') : 1;
}
if hexo-config('avatar.rounded') {
.site-author-image {
border-radius: 100%;
}
}
if hexo-config('avatar.rotated') {
.site-author-image {
transition: transform 1.0s ease-out;
}
.site-author-image:hover {
transform: rotateZ(360deg);
}
}
.site-author-name {
margin: $site-author-name-margin;
text-align: $site-author-name-align;
color: $site-author-name-color;
font-weight: $site-author-name-weight;
}
.site-description {
margin-top: $site-description-margin-top;
text-align: $site-description-align;
font-size: $site-description-font-size;
color: $site-description-color;
}

View File

@ -0,0 +1,28 @@
.links-of-blogroll {
margin-top: 10px;
font-size: 13px;
}
.links-of-blogroll-title {
margin-top: 0;
font-size: 14px;
font-weight: $font-weight-bold;
}
.links-of-blogroll-list {
margin: 0;
padding: 0;
list-style: none;
}
.links-of-blogroll-item {
padding: 2px 10px;
a, span.exturl {
max-width: 280px;
box-sizing: border-box;
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}

View File

@ -0,0 +1,23 @@
.feed-link, .chat {
margin-top: 10px;
a {
display: inline-block;
padding: 0 15px;
color: rgb(252, 100, 35);
border: 1px solid rgb(252, 100, 35) !important;
border-radius: 4px;
i {
color: rgb(252, 100, 35);
font-size: 14px;
}
&:hover {
color: white;
background: rgb(252, 100, 35);
i { color: white; }
}
}
}

View File

@ -0,0 +1,18 @@
.sidebar-active + #sidebar-dimmer {
+mobile() {
opacity: .7;
transition: opacity .5s;
}
transform: translateX(-100%);
}
#sidebar-dimmer {
show();
position: fixed;
top: 0;
left: 100%;
width: 100%;
height: 100%;
background: #000;
opacity: 0;
}

View File

@ -0,0 +1,30 @@
// Sidebar Navigation
.sidebar-nav {
margin: 0 0 20px;
padding-left: 0;
}
.sidebar-nav li {
display: inline-block;
cursor: pointer;
border-bottom: 1px solid transparent;
font-size: 14px;
color: $sidebar-nav-color;
&:hover { color: $sidebar-nav-hover-color; }
}
.page-post-detail .sidebar-nav-toc { padding: 0 5px; }
.page-post-detail .sidebar-nav-overview { margin-left: 10px; }
.sidebar-nav .sidebar-nav-active {
color: $sidebar-highlight;
border-bottom-color: $sidebar-highlight;
&:hover { color: $sidebar-highlight; }
}
.sidebar-panel { display: none; }
.sidebar-panel-active { display: block; }

View File

@ -0,0 +1,61 @@
.post-toc-empty {
font-size: 14px;
color: $grey-dim;
}
.post-toc-wrap { overflow: hidden; }
.post-toc { overflow: auto; }
.post-toc ol {
margin: 0;
padding: 0 2px 5px 10px;
text-align: left;
list-style: none;
font-size: 14px;
& > ol { padding-left: 0; }
a {
the-transition();
transition-property: all;
color: $toc-link-color;
border-bottom-color: $toc-link-border-color;
&:hover {
color: $toc-link-hover-color;
border-bottom-color: $toc-link-hover-border-color;
}
}
}
.post-toc .nav-item {
overflow: hidden;
text-overflow: ellipsis;
//text-align: justify;
white-space: nowrap if !hexo-config('toc.wrap');
line-height: 1.8;
}
.post-toc .nav .nav-child {
display: hexo-config('toc.expand_all') ? block : none;
}
.post-toc .nav .active > .nav-child { display: block; }
.post-toc .nav .active-current > .nav-child {
show();
& > .nav-item { display: block; }
}
.post-toc .nav .active > a {
color: $toc-link-active-color;
border-bottom-color: $toc-link-active-border-color;
}
.post-toc .nav .active-current > a {
color: $toc-link-active-current-color;
&:hover {
color: $toc-link-active-current-border-color;
}
}

View File

@ -0,0 +1,30 @@
.sidebar-toggle {
position: fixed;
right: $b2t-position-right;
bottom: 45px;
width: 14px;
height: 14px;
padding: 5px;
background: $black-deep;
line-height: 0;
z-index: $zindex-5;
cursor: pointer;
+tablet-mobile() {
opacity: $b2t-opacity-hover;
right: $b2t-position-right-mobile;
hide() if not hexo-config('sidebar.onmobile');
}
}
.sidebar-toggle-line {
position: relative;
display: inline-block;
vertical-align: top;
height: 2px;
width: 100%;
background: white;
margin-top: 3px;
&:first-child { margin-top: 0; }
}

View File

@ -0,0 +1,64 @@
.sidebar {
position: fixed;
right: 0;
top: 0;
bottom: 0;
width: 0;
z-index: $zindex-4;
box-shadow: inset 0 2px 6px black;
background: $black-deep;
a, span.exturl {
color: $grey-dark;
border-bottom-color: $black-light;
&:hover {
color: $gainsboro;
border-bottom-color: $gainsboro;
}
}
+tablet-mobile() {
hide() if not hexo-config('sidebar.onmobile');
}
}
.sidebar-inner {
position: relative;
padding: 20px 10px;
color: $grey-dark;
text-align: center;
}
.site-overview-wrap {
overflow: hidden;
}
.site-overview {
overflow-y: auto;
overflow-x: hidden;
}
.cc-license {
margin-top: 10px;
text-align: center;
.cc-opacity {
opacity: 0.7;
border-bottom: none;
&:hover { opacity: 0.9; }
}
img { display: inline-block; }
}
@import "sidebar-toggle";
@import "sidebar-author";
@import "sidebar-author-links";
@import "sidebar-button";
@import "sidebar-blogroll";
@import "sidebar-nav";
@import "site-state" if hexo-config('site_state');
@import "sidebar-toc" if hexo-config('toc.enable');
@import "sidebar-dimmer" if hexo-config('sidebar.dimmer');

View File

@ -0,0 +1,31 @@
.site-state {
display: flex;
justify-content: center;
overflow: hidden;
line-height: 1.4;
white-space: nowrap;
text-align: $site-state-align;
margin-top: 10px;
}
.site-state-item {
padding: 0 15px;
border-left: 1px solid $site-state-item-border-color;
&:first-child { border-left: none; }
a { border-bottom: none; }
}
.site-state-item-count {
show();
text-align: center;
color: $site-state-item-count-color;
font-weight: $font-weight-bold;
font-size: $site-state-item-count-font-size;
}
.site-state-item-name {
font-size: $site-state-item-name-font-size;
color: $site-state-item-name-color;
}

View File

@ -0,0 +1,33 @@
// Blockquote with all children centered.
.blockquote-center {
position: relative;
margin: 40px 0;
padding: 0;
border-left: none;
text-align: center;
&::before, &::after {
position: absolute;
content: ' ';
show();
width: 100%;
height: 24px;
opacity: 0.2;
background-repeat: no-repeat;
background-position: 0 -6px;
background-size: 22px 22px;
}
&::before {
top: -20px;
background-image: url($center-quote-left);
border-top: 1px solid $grey-light;
}
&::after {
bottom: -20px;
background-image: url($center-quote-right);
border-bottom: 1px solid $grey-light;
background-position: 100% 8px;
}
p, div { text-align: center; }
}

View File

@ -0,0 +1,6 @@
.posts-expand .post-body img.full-image {
border: none;
//max-width: 100%;
//width: auto;
//margin: 20px auto 25px;
}

View File

@ -0,0 +1,35 @@
.post .post-body .group-picture {
img {
box-sizing: border-box;
padding: 0 3px;
border: none;
}
}
.post .group-picture-row {
overflow: hidden;
margin-top: 6px;
&:first-child { margin-top: 0; }
}
.post .group-picture-column { float: left; }
.page-post-detail .post-body .group-picture-column {
float: none;
margin-top: 10px;
width: auto !important;
img { margin: 0 auto; }
}
.page-archive {
.group-picture-container { overflow: hidden; }
.group-picture-row {
float: left;
&:first-child { margin-top: 6px; }
}
.group-picture-column {
max-width: 150px;
max-height: 150px;
}
}

View File

@ -0,0 +1,11 @@
.post-body .label {
display: inline;
padding: 0 2px;
&.default { background-color: $label-default; }
&.primary { background-color: $label-primary; }
&.info { background-color: $label-info; }
&.success { background-color: $label-success; }
&.warning { background-color: $label-warning; }
&.danger { background-color: $label-danger; }
}

View File

@ -0,0 +1,278 @@
.post-body .note {
note_icons = hexo-config('note.icons');
note_style = hexo-config('note.style');
position: relative;
padding: 15px;
margin-bottom: 20px;
if note_style == 'simple' {
border: 1px solid $gainsboro;
border-left-width: 5px;
}
if note_style == 'modern' {
border: 1px solid transparent;
background-color: $whitesmoke;
}
if note_style == 'flat' {
border: initial;
border-left: 3px solid $gainsboro;
background-color: lighten($gainsboro, 65%);
}
border-radius: unit(hexo-config('note.border_radius'), px) if hexo-config('note.border_radius') is a 'unit';
h2, h3, h4, h5, h6 {
if note_icons {
margin-top: 3px;
} else {
margin-top: 0;
}
margin-bottom: 0;
border-bottom: initial;
padding-top: 0 !important;
}
p, ul, ol, table, pre, blockquote {
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
if note_icons {
&:not(.no-icon) {
padding-left: 45px;
&:before {
position: absolute;
font-family: $font-family-icons;
font-size: larger;
top: 13px;
left: 15px;
}
}
}
&.default {
if note_style == 'flat' {
background-color: $note-default-bg;
}
if note_style == 'modern' {
background-color: $note-modern-default-bg;
border-color: $note-modern-default-border;
color: $note-modern-default-text;
a, span.exturl {
&:not(.btn) {
color: $note-modern-default-text;
border-bottom: 1px solid $note-modern-default-text;
&:hover {
color: $note-modern-default-hover;
border-bottom: 1px solid $note-modern-default-hover;
}
}
}
}
if not note_style == 'modern' {
border-left-color: $note-default-border;
h2, h3, h4, h5, h6 {
color: $note-default-text;
}
}
if note_icons {
&:not(.no-icon) {
&:before {
content: $note-default-icon;
if not note_style == 'modern' {
color: $note-default-text;
}
}
}
}
}
&.primary {
if note_style == 'flat' {
background-color: $note-primary-bg;
}
if note_style == 'modern' {
background-color: $note-modern-primary-bg;
border-color: $note-modern-primary-border;
color: $note-modern-primary-text;
a, span.exturl {
&:not(.btn) {
color: $note-modern-primary-text;
border-bottom: 1px solid $note-modern-primary-text;
&:hover {
color: $note-modern-primary-hover;
border-bottom: 1px solid $note-modern-primary-hover;
}
}
}
}
if not note_style == 'modern' {
border-left-color: $note-primary-border;
h2, h3, h4, h5, h6 {
color: $note-primary-text;
}
}
if note_icons {
&:not(.no-icon) {
&:before {
content: $note-primary-icon;
if not note_style == 'modern' {
color : $note-primary-text;
}
}
}
}
}
&.info {
if note_style == 'flat' {
background-color: $note-info-bg;
}
if note_style == 'modern' {
background-color: $note-modern-info-bg;
border-color: $note-modern-info-border;
color: $note-modern-info-text;
a, span.exturl {
&:not(.btn) {
color: $note-modern-info-text;
border-bottom: 1px solid $note-modern-info-text;
&:hover {
color: $note-modern-info-hover;
border-bottom: 1px solid $note-modern-info-hover;
}
}
}
}
if not note_style == 'modern' {
border-left-color: $note-info-border;
h2, h3, h4, h5, h6 {
color: $note-info-text;
}
}
if note_icons {
&:not(.no-icon) {
&:before {
content: $note-info-icon;
if not note_style == 'modern' {
color : $note-info-text;
}
}
}
}
}
&.success {
if note_style == 'flat' {
background-color: $note-success-bg;
}
if note_style == 'modern' {
background-color: $note-modern-success-bg;
border-color: $note-modern-success-border;
color: $note-modern-success-text;
a, span.exturl {
&:not(.btn) {
color: $note-modern-success-text;
border-bottom: 1px solid $note-modern-success-text;
&:hover {
color: $note-modern-success-hover;
border-bottom: 1px solid $note-modern-success-hover;
}
}
}
}
if not note_style == 'modern' {
border-left-color: $note-success-border;
h2, h3, h4, h5, h6 {
color: $note-success-text;
}
}
if note_icons {
&:not(.no-icon) {
&:before {
content: $note-success-icon;
if not note_style == 'modern' {
color : $note-success-text;
}
}
}
}
}
&.warning {
if note_style == 'flat' {
background-color: $note-warning-bg;
}
if note_style == 'modern' {
background-color: $note-modern-warning-bg;
border-color: $note-modern-warning-border;
color: $note-modern-warning-text;
a, span.exturl {
&:not(.btn) {
color: $note-modern-warning-text;
border-bottom: 1px solid $note-modern-warning-text;
&:hover {
color: $note-modern-warning-hover;
border-bottom: 1px solid $note-modern-warning-hover;
}
}
}
}
if not note_style == 'modern' {
border-left-color: $note-warning-border;
h2, h3, h4, h5, h6 {
color: $note-warning-text;
}
}
if note_icons {
&:not(.no-icon) {
&:before {
content: $note-warning-icon;
if not note_style == 'modern' {
color : $note-warning-text;
}
}
}
}
}
&.danger {
if note_style == 'flat' {
background-color: $note-danger-bg;
}
if note_style == 'modern' {
background-color: $note-modern-danger-bg;
border-color: $note-modern-danger-border;
color: $note-modern-danger-text;
a, span.exturl {
&:not(.btn) {
color: $note-modern-danger-text;
border-bottom: 1px solid $note-modern-danger-text;
&:hover {
color: $note-modern-danger-hover;
border-bottom: 1px solid $note-modern-danger-hover;
}
}
}
}
if not note_style == 'modern' {
border-left-color: $note-danger-border;
h2, h3, h4, h5, h6 {
color: $note-danger-text;
}
}
if note_icons {
&:not(.no-icon) {
&:before {
content: $note-danger-icon;
if not note_style == 'modern' {
color : $note-danger-text;
}
}
}
}
}
}

View File

@ -0,0 +1,6 @@
.pdfobject-container {
position: relative;
overflow: auto;
width: 100%;
height: unquote(hexo-config('pdf.height'));
}

View File

@ -0,0 +1,95 @@
.post-body .tabs {
position: relative;
show();
margin-bottom: 20px;
padding-top: 10px;
// Read tabs border_radius from NexT config and set in "tbr px" to use it as string variable in this CSS section.
hexo-config('tabs.border_radius') is a 'unit' ? (tbr = unit(hexo-config('tabs.border_radius'), px)) : (tbr = 0)
ul.nav-tabs {
margin: 0;
padding: 0;
display: flex;
margin-bottom: -1px;
+mobile-smallest() {
show();
margin-bottom: 5px;
}
li.tab {
list-style-type: none !important;
margin: 0 .25em 0 0;
border-top: 3px solid transparent;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
+mobile-smallest() {
margin: initial;
border-top: 1px solid transparent;
border-left: 3px solid transparent;
border-right: 1px solid transparent;
border-bottom: 1px solid transparent;
}
if tbr > 0 {
border-radius: tbr tbr 0 0;
+mobile-smallest() { border-radius: tbr; }
}
if hexo-config('tabs.transition.tabs') { the-transition-ease-out(); }
& a {
outline: 0;
border-bottom: initial;
show();
line-height: 1.8em;
padding: .25em .75em;
& i { width: (18em / 14); }
if hexo-config('tabs.transition.labels') { the-transition-ease-out(); }
}
&.active {
border-top: 3px solid $orange;
border-left: 1px solid $table-border-color;
border-right: 1px solid $table-border-color;
background-color: #fff;
+mobile-smallest() {
border-top: 1px solid $table-border-color;
border-left: 3px solid $orange;
border-right: 1px solid $table-border-color;
border-bottom: 1px solid $table-border-color;
}
& a {
cursor: default;
color: $link-color;
}
}
}
}
.tab-content {
background-color: #fff;
.tab-pane {
border: 1px solid $table-border-color;
padding: 20px 20px 0 20px;
if tbr > 0 { border-radius: tbr; }
&:not(.active) {
hide();
}
&.active {
show();
if tbr > 0 {
&:nth-of-type(1) {
border-radius: 0 tbr tbr tbr;
+mobile-smallest() { border-radius: tbr; }
}
}
}
}
}
}

View File

@ -0,0 +1,7 @@
@import "full-image";
@import "blockquote-center";
@import "group-pictures";
@import "label";
@import "note" if not hexo-config('note.style') == 'disabled';
@import "tabs" if hexo-config('tabs.enable');
@import "pdf" if hexo-config('pdf.enable');

View File

@ -0,0 +1,135 @@
// fix bug using algolia search's CDN
.ais-search-box--magnifier svg {
display: none !important;
}
.ais-search-box--reset svg {
display: none !important;
}
.algolia-pop-overlay
position: fixed
width: 100%
height: 100%
top: 0
left: 0
z-index: 2080
background-color: rgba(0, 0, 0, 0.3)
+mobile()
hide();
.algolia-popup
overflow: hidden
padding: 0
display: none
position: fixed
top: 10%
left: 50%
width: 700px
height: 80%
margin-left: -350px
background: #fff
color: #333
z-index: 9999
border-radius: 5px
+mobile()
padding: 0
top: 0
left: 0
margin: 0
width: 100%
height: 100%
border-radius: 0
.popup-btn-close
position: absolute
right: 14px
color: #4EBD79
font-size: 14px
font-weight: bold
text-transform: uppercase
cursor: pointer
padding-left: 15px
border-left: 1px solid #eee
top: 10px
.fa
color: $grey-dark
font-size: 18px
&:hover .fa
color: $black-deep
.algolia-search
padding: 10px 15px 5px
max-height: 50px
border-bottom: 1px solid #ccc
background: $whitesmoke
border-top-left-radius: 5px
border-top-right-radius: 5px
.algolia-search-input-icon
display: inline-block
width: 20px
.fa
font-size: 18px
.algolia-search-input
display: inline-block
width: calc(90% - 20px)
input
padding: 5px 0
width: 100%
outline: none
border: none
background: transparent
.algolia-powered
float: right
img
display: inline-block
height: 18px
vertical-align: middle
.algolia-results
position: relative
overflow: auto
padding: 10px 30px
height: calc(100% - 50px)
hr
margin: 10px 0
.highlight
font-style: normal
margin: 0
padding: 0 2px
font-size: inherit
color: red
.algolia-hits
margin-top: 20px
.algolia-hit-item
margin: 15px 0
.algolia-hit-item-link
display: block
border-bottom: 1px dashed #ccc
the-transition()
.algolia-pagination
.pagination
margin: 40px 0px
border-top: none
padding: 0
opacity: 1
.pagination-item
display: inline-block
.page-number
border-top: none
&:hover
border-bottom: 1px solid $black-deep
.current .page-number
@extend .pagination .page-number.current
.disabled-item
visibility: hidden

View File

@ -0,0 +1,47 @@
.copy-btn {
display: inline-block;
padding: 6px 12px;
font-size: 13px;
font-weight: 700;
line-height: 20px;
color: #333;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
if hexo-config('codeblock.copy_button.style') == 'flat' {
background-color: #fff;
border: none;
}
else {
background-color: #eee;
background-image: linear-gradient(#fcfcfc, #eee);
border: 1px solid #d5d5d5;
border-radius: 3px;
}
user-select: none;
outline: 0;
}
.highlight-wrap .copy-btn {
transition: opacity .3s ease-in-out;
opacity: 0;
padding: 2px 6px;
position: absolute;
if hexo-config('codeblock.copy_button.style') == 'flat' {
right: 0px;
height: 42px;
}
else {
right: 4px;
top: 8px;
}
}
.highlight-wrap:hover .copy-btn,
.highlight-wrap .copy-btn:focus {
opacity: 1;
}
.highlight-wrap {
position: relative;
}

View File

@ -0,0 +1,4 @@
.gt-header a, .gt-comments a, .gt-popup a
border-bottom: none;
.gt-container .gt-popup .gt-action.is--active:before
top: 0.7em;

View File

@ -0,0 +1,24 @@
#gitment-display-button {
display: inline-block;
padding: 0 15px;
color: #0a9caf;
cursor: pointer;
font-size: 14px;
border: 1px solid #0a9caf;
border-radius: 4px;
}
#gitment-display-button:hover {
color: #fff;
background: #0a9caf;
}
#gitment-container a {
border-bottom: none;
}
if hexo-config('gitment.cleanly') {
a.gitment-editor-footer-tip, .gitment-container.gitment-footer-container {
hide();
}
}

View File

@ -0,0 +1,3 @@
i.fa {
font-family: FontAwesome !important;
}

View File

@ -0,0 +1,101 @@
.local-search-pop-overlay
position: fixed
width: 100%
height: 100%
top: 0
left: 0
z-index: 2080
background-color: rgba(0, 0, 0, 0.3)
.local-search-popup
display: none
position: fixed
top: 10%
left: 50%
margin-left: -350px
width: 700px
height: 80%
padding: 0
background: #fff
color: #333
z-index: 9999
border-radius: 5px
+mobile()
padding: 0
top: 0
left: 0
margin: 0
width: 100%
height: 100%
border-radius: 0
ul.search-result-list
padding: 0
margin: 0 5px
p.search-result
border-bottom: 1px dashed #ccc
padding: 5px 0
a.search-result-title
font-weight: bold
font-size: 16px
.search-keyword
border-bottom: 1px dashed #f00
font-weight: bold
color: #f00
.local-search-header
padding: 5px
height: 36px
background: #f5f5f5
border-top-left-radius: 5px
border-top-right-radius: 5px
#local-search-result
overflow: auto
position: relative
padding: 5px 25px
height: calc(100% - 55px)
.local-search-input-wrapper
display: inline-block
width: calc(100% - 90px)
height: 36px
line-height: 36px
padding: 0 5px
.local-search-input-wrapper input
padding: 8px 0
height: 20px
display: block
width: 100%
outline: none
border: none
background: transparent
vertical-align: middle
.search-icon, .popup-btn-close
display: inline-block
font-size: 18px
color: #999
height: 36px
width: 18px
padding-left: 10px
padding-right: 10px
.search-icon
float: left
.popup-btn-close
border-left: 1px solid #eee
float: right
cursor: pointer
#no-result
position: absolute
left: 50%
top: 50%
transform: translate(-50%, -50%)
color: #ccc

View File

@ -0,0 +1,4 @@
.has-jax {
overflow-x: auto;
overflow-y: hidden;
}

View File

@ -0,0 +1,27 @@
#needsharebutton-postbottom {
position: relative;
cursor: pointer;
height: 26px;
.btn {
display: initial;
padding: 1px 4px;
border: 1px solid $btn-default-border-color;
border-radius: 3px;
}
}
#needsharebutton-float {
position: fixed;
bottom: 38px;
left: -8px;
z-index: 9999;
cursor: pointer;
.btn {
//display: initial;
padding: 0 10px 0 14px;
border: 1px solid $btn-default-border-color;
border-radius: 4px;
}
}

View File

@ -0,0 +1,22 @@
.popular-posts-header {
margin-top: $post-eof-margin-bottom;
margin-bottom: 10px;
font-size: $font-size-headings-base;
border-bottom: 1px solid $gainsboro;
show();
}
ul.popular-posts {
padding: 0;
.popular-posts-item {
// list-style: none;
margin-left: 2em;
.popular-posts-title {
font-weight: normal;
font-size: $font-size-base;
margin: 0;
line-height: $line-height-base * 1.2;
}
}
}

View File

@ -0,0 +1,9 @@
@import "gitment" if hexo-config('gitment.enable');
@import "gitalk" if hexo-config('gitalk.enable');
@import "han" if hexo-config('han');
@import "localsearch";
@import "algolia-search" if hexo-config('algolia_search.enable');
@import "needsharebutton" if hexo-config('needmoreshare2.enable');
@import "related-posts" if hexo-config('related_posts.enable');
@import "copy-code" if hexo-config('codeblock.copy_button.enable');
@import "math" if hexo-config('math.enable') and hexo-config('math.engine') == 'mathjax';

View File

@ -0,0 +1,62 @@
//
// Layout
// Note: Must name this file "outline" instead of "layout"
// Or Hexo will use it as template layout.
// =================================================
html, body { height: 100%; }
.container {
position: relative;
}
// Header Section
// --------------------------------------------------
.header-inner {
margin: 0 auto;
padding: 100px 0 70px;
width: $content-desktop;
+desktop-large() {
.container & { width: $content-desktop-large; }
}
+desktop-largest() {
.container & { width: $content-desktop-largest; }
}
}
// Main Section
// --------------------------------------------------
.main-inner {
margin: 0 auto;
width: $content-desktop;
+desktop-large() {
.container & { width: $content-desktop-large; }
}
+desktop-largest() {
.container & { width: $content-desktop-largest; }
}
}
// Footer Section
// --------------------------------------------------
.footer {
padding: 20px 0;
}
.footer-inner {
box-sizing: border-box;
margin: 0px auto;
width: $content-desktop;
+desktop-large() {
.container & { width: $content-desktop-large; }
}
+desktop-largest() {
.container & { width: $content-desktop-largest; }
}
}

View File

@ -0,0 +1,120 @@
::selection {
background: $selection-bg;
color: $selection-color;
}
body {
position: relative; // Required by scrollspy
font-family: $font-family-base;
font-size: $font-size-base;
line-height: $line-height-base;
color: $text-color;
background: $body-bg-color;
+tablet-mobile() { padding-right: 0 !important; }
+desktop-large() { font-size: $font-size-large; }
}
h1, h2, h3, h4, h5, h6 {
margin: 20px 0 15px;
padding: 0;
font-weight: bold;
line-height: 1.5;
font-family: $font-family-headings;
}
for headline in (1..6) {
h{headline} {
font-size: $font-size-headings-base - $font-size-headings-step * headline;
code {
font-size: 1em;
}
}
+mobile() {
h{headline} {
font-size: $font-size-headings-base - $font-size-headings-step * headline - 4px;
code {
font-size: 1em;
}
}
}
}
p { margin: 0 0 20px 0; }
a, span.exturl {
word-wrap();
// Remove the gray background color from active links in IE 10.
background-color: transparent;
color: $link-color;
text-decoration: none;
outline: none;
border-bottom: 1px solid $link-decoration-color;
&:hover {
color: $link-hover-color;
border-bottom-color: $link-decoration-hover-color;
}
// For spanned external links.
cursor: pointer;
}
video {
max-width: 100%;
show();
margin-left: auto;
margin-right: auto;
}
img {
show();
margin: auto;
max-width: 100%;
height: auto;
}
hr {
margin: 40px 0;
height: 3px;
border: none;
background-color: $gray-lighter;
background-image: repeating-linear-gradient(
-45deg,
white,
white 4px,
transparent 4px,
transparent 8px
);
}
blockquote {
margin: 0;
padding: 0 15px;
color: $grey-dim;
border-left: 4px solid $gray-lighter;
cite::before {
content: "-";
padding: 0 5px;
}
}
dt { font-weight: $font-weight-bolder; }
dd {
margin: 0;
padding: 0;
}
kbd {
border: 1px solid $grey-light;
border-radius: 0.2em;
box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.1);
background-color: #f9f9f9;
font-family: inherit;
background-image: linear-gradient(top, #eee, white, #eee);
padding: 0.1em 0.3em;
white-space: nowrap;
}

View File

@ -0,0 +1,68 @@
//
// Helpers
// =================================================
// Alignment
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-nowrap { white-space: nowrap; }
// Transformation
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
// Center-align a block level element.
.center-block {
show();
margin-left: auto;
margin-right: auto;
}
// Clearfix. http://nicolasgallagher.com/micro-clearfix-hack/
.clearfix {
clearfix();
}
.pullquote {
width: 45%;
&.left {
float: left;
margin-left: 5px;
margin-right: 10px;
}
&.right {
float: right;
margin-left: 10px;
margin-right: 5px;
}
}
.affix {
position: fixed;
}
.translation {
margin-top: -20px;
font-size: 14px;
color: $grey-dark;
}
// https://davidwalsh.name/detect-scrollbar-width
.scrollbar-measure {
width: 100px;
height: 100px;
overflow: scroll;
position: absolute;
top: -9999px;
}
.use-motion .motion-element { opacity: 0; }

View File

@ -0,0 +1,141 @@
/*
// > 1600px
+desktop-large() {
}
// > 992px
+desktop() {
}
// > 768px & < 991px
+tablet() {
}
// < 767px
+mobile() {
}
*/
// < 567px
+mobile-small() {
// For Muse & Mist schemes only vertical economy.
.header-inner {
margin-bottom: initial !important;
}
.main-inner {
margin-top: initial !important;
}
// For Pisces & Gemini schemes only wider width (remove main blocks in Gemini).
.content-wrap {
padding: initial !important;
}
// For all schemes wider width.
.posts-expand {
padding-top: $content-mobile-padding !important;
// For Muse & Mist & Pisces schemes only wider width.
margin: initial !important;
.post-header {
padding: 0 18px;
}
.post-meta {
margin: 3px 0 10px 0 !important;
}
}
.post-block {
// Inside posts blocks content padding (default 40px).
padding: $content-mobile-padding 0 !important;
margin-top: initial !important;
}
.post-body {
// For headers narrow width.
h1, h2, h3, h4, h5, h6 {
margin: 10px 18px 8px;
}
// Rewrite paddings & margins inside tags.
.note, .tabs .tab-content .tab-pane {
h1, h2, h3, h4, h5, h6 {
margin: 0 5px;
}
}
// For paragraphs narrow width.
> p {
margin: 0 0 10px 0;
padding: 0 18px;
}
// For lists narrow width.
> ul {
margin-inline-end: 1em;
}
// For blockquotes.
> blockquote {
margin: 0 18px;
}
// For external links alignment.
> span.exturl {
margin-left: 18px;
}
// For Mist more button alignment.
> div.post-button a {
margin-left: 18px;
}
// Rewrite paddings & margins inside tags.
.note > p, .tabs .tab-content .tab-pane > p {
padding: 0 5px;
}
.video-container .fluid-vids {
margin-bottom: 10px !important;
}
.note {
padding: 10px !important;
margin-bottom: 10px !important;
if hexo-config('note.icons') {
&:not(.no-icon) {
padding-left: 35px !important;
&:before {
top: 8px !important;
left: 12px !important;
}
}
}
}
.tabs .tab-content .tab-pane {
padding: 10px 10px 0 10px !important;
}
}
// Need to refactor into flex.
.post-nav {
padding-bottom: 2px;
//padding: 2px 8px;
}
}
/*
// < 413px
+mobile-smallest() {
}
*/

View File

@ -0,0 +1,349 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}

View File

@ -0,0 +1,9 @@
//
// Scaffolding
// =================================================
@import "normalize";
@import "base";
@import "helpers";
@import "tables";
@import "mobile" if hexo-config('mobile_layout_economy');

View File

@ -0,0 +1,42 @@
.table-container {
margin: 20px 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.highlight .table-container {
margin: 0px;
}
table {
width: $table-width;
border-collapse: collapse;
border-spacing: 0;
font-size: $table-font-size;
}
table > tbody > tr {
&:nth-of-type(odd) { background-color: $table-row-odd-bg-color; }
&:hover { background-color: $table-row-hover-bg-color; }
}
caption, th, td {
padding: $table-cell-padding;
text-align: $table-content-alignment;
vertical-align: $table-content-vertical;
font-weight: normal;
}
th, td {
border: 1px solid $table-border-color;
border-bottom: 3px solid $table-cell-border-bottom-color;
}
th {
padding-bottom: 10px;
font-weight: $table-th-font-weight;
}
td {
border-bottom-width: 1px;
}

View File

@ -0,0 +1 @@
// Custom styles.

View File

@ -0,0 +1 @@
@import "Pisces.styl";

View File

View File

View File

@ -0,0 +1,16 @@
sidebar-inline-links-item() {
margin: 5px 0 0;
if !hexo-config('social_icons.icons_only') { width: 50%; }
& a, span.exturl {
max-width: 216px;
box-sizing: border-box;
display: inline-block;
margin-right: 0;
margin-bottom: 0;
padding: 0 5px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}

View File

@ -0,0 +1,105 @@
the-transition() {
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
transition-delay: 0s;
}
the-transition-ease-in() {
transition-duration: 0.2s;
transition-timing-function: ease-in;
transition-delay: 0s;
}
the-transition-ease-out() {
transition-duration: 0.2s;
transition-timing-function: ease-out;
transition-delay: 0s;
}
mobile-smallest() {
@media (max-width: 413px) {
{block}
}
}
mobile-small() {
@media (max-width: 567px) {
{block}
}
}
mobile() {
@media (max-width: 767px) {
{block}
}
}
tablet-mobile() {
@media (max-width: 991px) {
{block}
}
}
tablet() {
@media (min-width: 768px) and (max-width: 991px) {
{block}
}
}
desktop() {
@media (min-width: 992px) {
{block}
}
}
desktop-large() {
@media (min-width: 1200px) {
{block}
}
}
desktop-largest() {
@media (min-width: 1600px) {
{block}
}
}
circle() {
border-radius: 50%;
}
hide() {
display: none;
}
show() {
display: block;
}
random-color($min, $max) {
return floor(math(0, 'random') * ($max - $min + 1) + $min);
}
// Clearfix. http://nicolasgallagher.com/micro-clearfix-hack/
clearfix() {
&:before,
&:after {
content: " ";
display: table;
}
&:after { clear: both; }
}
word-wrap() {
overflow-wrap: break-word;
word-wrap: break-word;
}
disable-touch-hover() {
// To prevent hover on external links with touch devices after click.
@media (hover:none) {
&:hover {
background: none;
}
}
}

View File

@ -0,0 +1,278 @@
@import "../Pisces/_layout";
@import "../Pisces/_brand";
@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 `source/css/_variables/custom.styl`.
// So, it will 12px in Desktop, 10px in Tablets and 8px in Mobiles for all possible paddings.
// =================================================
// Read values from NexT config and set they as local variables to use as string variables (in any CSS section).
use_seo = hexo-config('seo');
// =================================================
// Desktop layout styles.
// =================================================
// Post blocks.
.content-wrap {
padding: initial;
background: initial;
box-shadow: initial;
border-radius: initial;
}
// Post & Comments blocks.
.post-block {
padding: $content-desktop-padding;
background: white;
box-shadow: $box-shadow-inner;
border-radius: $border-radius-inner;
}
// When blocks are siblings (homepage).
#posts > article + article {
.post-block {
margin-top: $sidebar-offset;
// Rewrite shadows & borders because all blocks have offsets.
box-shadow: $box-shadow;
border-radius: $border-radius;
}
}
// Comments blocks.
.comments {
padding: $content-desktop-padding;
margin: auto;
margin-top: $sidebar-offset;
background: white;
box-shadow: $box-shadow;
border-radius: $border-radius;
}
// Top main padding from header to posts (default 40px).
.posts-expand {
padding-top: initial;
}
// Post navigation items.
.post-nav-divider {
width: 4%;
}
.post-nav-item {
width: 48%;
}
// Post delimiters.
.post-eof {
hide();
}
// Pagination.
.pagination {
.prev, .next, .page-number {
margin-bottom: initial;
top: initial;
}
margin: $sidebar-offset 0 0;
border-top: initial;
background: white;
box-shadow: $box-shadow;
border-radius: $border-radius;
padding: 10px 0 10px;
}
// Footer alignment.
.main {
padding-bottom: initial;
}
.footer {
bottom: auto;
}
// Sub-menu(s).
.sub-menu {
border-bottom: initial !important;
box-shadow: $box-shadow-inner;
// Adapt submenu(s) with post-blocks.
&+ #content > #posts {
.post-block {
box-shadow: $box-shadow;
margin-top: $sidebar-offset;
+tablet() {
margin-top: $content-tablet-padding;
}
+mobile() {
margin-top: $content-mobile-padding;
}
}
}
}
// =================================================
// Headers.
// =================================================
// No need anymore?
.post-header {
h1, h2 {
margin: initial;
}
}
.posts-expand .post-title-link {
line-height: inherit;
}
.posts-expand .post-title {
font-size: 1.7em;
}
.post-body {
h1 {
font-size: 1.6em;
border-bottom: 1px solid $body-bg-color;
code {
font-size: 1em;
}
}
h2 {
font-size: 1.45em;
border-bottom: 1px solid $body-bg-color;
code {
font-size: 1em;
}
}
h3 {
font-size: 1.3em;
code {
font-size: 1em;
}
if use_seo {
border-bottom: 1px solid $body-bg-color;
} else {
border-bottom: 1px dotted $body-bg-color;
}
}
h4 {
font-size: 1.2em;
code {
font-size: 1em;
}
if use_seo {
border-bottom: 1px dotted $body-bg-color;
}
}
h5 {
font-size: 1.07em;
code {
font-size: 1em;
}
}
h6 {
font-size: 1.03em;
code {
font-size: 1em;
}
}
}
// =================================================
// > 768px & < 991px
// =================================================
+tablet() {
// Posts in blocks.
.content-wrap {
padding: $content-tablet-padding;
}
.posts-expand {
margin: initial;
// 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);
// Rewrite shadows & borders because all blocks have offsets.
box-shadow: $box-shadow;
border-radius: $border-radius;
}
// Only if blocks are siblings need bottom margin (homepage).
#posts > article + article {
.post-block {
margin-top: $content-tablet-padding;
}
}
.comments {
margin-top: $content-tablet-padding;
padding: $content-tablet-padding ($content-tablet-padding * 2);
//padding: initial;
//padding-top: $content-tablet-padding;
}
.pagination {
margin: $content-tablet-padding 0 0;
}
}
// =================================================
// < 767px
// =================================================
+mobile() {
// Posts in blocks.
.content-wrap {
padding: $content-mobile-padding;
}
.posts-expand {
margin: initial;
// Components inside Posts.
.post-button {
margin: $sidebar-offset 0px;
}
img {
padding: initial !important;
}
}
.post-block {
// Inside posts blocks content padding (default 40px).
padding: $sidebar-offset;
min-height: auto;
// Rewrite shadows & borders because all blocks have offsets.
box-shadow: $box-shadow;
border-radius: $border-radius;
}
// Only if blocks are siblings need bottom margin (homepage).
#posts > article + article {
.post-block {
margin-top: $content-mobile-padding;
}
}
.comments {
margin-top: $content-mobile-padding;
padding: 0 $sidebar-offset;
}
.pagination {
margin: $content-mobile-padding 0 0;
}
}

View File

@ -0,0 +1,9 @@
// Tags
// --------------------------------------------------
a { border-bottom-color: $grey-light; }
hr {
margin: 20px 0;
height: 2px;
}

View File

@ -0,0 +1,65 @@
// Header
// --------------------------------------------------
.header { background: $whitesmoke; }
.header-inner {
clearfix();
padding: 20px 0;
display: flex;
align-items: center;
justify-content: center;
+mobile() {
show();
width: auto;
padding: 10px;
}
}
.site-meta {
float: left;
margin-left: -20px;
line-height: normal;
+mobile() {
margin-left: 10px;
}
.brand {
padding: 2px 1px;
background: none;
+mobile() { display: block; }
}
.logo { display: none; }
.site-title {
font-size: 22px;
font-weight: bolder;
+mobile() { line-height: 34px; }
}
}
.logo-line-before,
.logo-line-after {
show();
overflow: hidden;
margin: 0 auto;
width: 75%;
+mobile() { display: none; }
i {
position: relative;
show();
height: 2px;
background: $black-deep;
+mobile() { height: 3px; }
}
}
.use-motion {
.logo-line-before i { left: -100%; }
.logo-line-after i { right: -100%; }
}

View File

@ -0,0 +1 @@
.site-subtitle { display: none; }

View File

@ -0,0 +1,83 @@
// Menu
// --------------------------------------------------
.site-brand-wrapper {
flex-shrink: 0;
}
.site-nav-toggle {
position: static;
float: right;
}
.site-nav {
flex-grow: 1;
+mobile() {
transform: translateY(10px);
}
}
.menu-item-active a {
background: #e1e1e1;
}
.menu {
//float: right;
margin: 0;
+mobile() {
margin: 10px 0;
padding: 0;
}
br { display: none; }
.menu-item {
margin: 0;
+mobile() {
show();
margin-top: 5px;
}
.badge {
display: inline-block;
padding: 1px 4px;
margin-left: 5px;
font-weight: 700;
line-height: 1;
color: $black-light;
text-align: center;
white-space: nowrap;
background-color: #fff;
border-radius: 10px;
text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
+mobile() {
float: right;
margin: 0.35em 0 0 0;
}
}
a, span.exturl {
padding: 0 10px;
border: none;
border-radius: 2px;
transition-property: background;
+mobile() {
text-align: left;
}
&:hover {
@extend .menu-item-active a;
}
disable-touch-hover();
}
}
a::before {
hide();
+mobile() { display: block; }
}
+mobile() { float: none; }
}

View File

@ -0,0 +1,66 @@
// Post Expanded
// --------------------------------------------------
.posts-expand {
padding-top: 0;
.post-title,
.post-meta {
text-align: $site-meta-text-align;
+mobile() { text-align: center; }
}
.post-eof { display: none; }
.post { margin-top: 120px; }
.post:first-child { margin-top: 0; }
.post-meta {
margin-top: 5px;
margin-bottom: 20px;
}
.post-title {
position: relative;
font-size: $font-size-headings-base;
font-weight: 400;
+mobile() { font-size: $font-size-headings-small; }
+desktop-large() { font-size: $font-size-headings-large; }
}
.post-title:hover:before { background: $black-deep; }
.post-body {
+mobile() { font-size: $font-size-base; }
}
.post-body img { margin: 0; }
.post-tags {
text-align: left;
a {
padding: 1px 5px;
background: $whitesmoke;
border-bottom: none;
}
a:hover { background: $grey-light; }
}
.post-nav { margin-top: 40px; }
}
.post-button {
margin-top: 20px;
text-align: left;
a {
padding: 0;
font-size: $font-size-base;
//color: $grey-dim;
background: none;
border: none;
border-bottom: 2px solid $grey-dim;
transition-property: border;
+mobile() { font-size: $font-size-small; }
+desktop-large() { font-size: $font-size-large; }
&:hover { border-bottom-color: $black-deep; }
}
}

View File

@ -0,0 +1,5 @@
// Search
// --------------------------------------------------
.site-search form {
hide();
}

View File

@ -0,0 +1,86 @@
//
// Mist scheme
// =================================================
@import "_base";
@import "outline/outline";
@import "_header";
@import "_logo";
@import "_menu";
@import "_search.styl";
@import "_posts-expanded";
@import "sidebar/sidebar-blogroll";
// Components
// --------------------------------------------------
.btn {
padding: 0 10px;
border-width: 2px;
border-radius: 0;
}
.headband { display: none; }
// Search
// --------------------------------------------------
.site-search {
position: relative;
float: right;
margin-top: 5px;
padding-top: 3px;
+mobile() {
float: none;
padding: 0 10px;
}
}
// Page - Container
// --------------------------------------------------
.container .main-inner {
+mobile() { width: auto; }
}
// Page - Post details
// --------------------------------------------------
.page-post-detail {
.post-title,
.post-meta { text-align: center; }
.post-title:before { display: none; }
.post-meta { margin-bottom: 60px; }
}
// Pagination
// --------------------------------------------------
.pagination {
margin: 120px 0 0;
text-align: left;
+mobile() {
margin: 80px 10px 0;
text-align: center;
}
}
// Footer
// --------------------------------------------------
.footer {
margin-top: 80px;
padding: 10px 0;
background: $whitesmoke;
color: $grey-dim;
}
.footer-inner {
margin: 0 auto;
text-align: left;
+mobile() {
width: auto;
text-align: center;
}
}
// Helpers
// --------------------------------------------------

View File

@ -0,0 +1 @@
.main-inner { margin-top: 80px; }

View File

@ -0,0 +1 @@
.links-of-blogroll-inline .links-of-blogroll-item { display: inline-block; }

View File

@ -0,0 +1,9 @@
.header-inner, .container .main-inner, .footer-inner {
+mobile() { width: auto; }
}
// embed tag
embed {
show();
margin: 0px auto 25px auto;
}

View File

@ -0,0 +1,25 @@
.custom-logo {
.site-meta-headline {
text-align: center;
}
.brand {
background: none;
}
.site-title {
margin: 10px auto 0;
font-size: 24px;
color: $black-deep;
a {
border: none;
}
}
}
.custom-logo-image {
margin: 0 auto;
padding: 5px;
max-width: 150px;
background: white;
}

View File

@ -0,0 +1,78 @@
.site-nav {
+mobile() {
position: absolute;
left: 0;
top: 52px;
margin: 0;
width: 100%;
padding: 0;
background: white;
border-bottom: 1px solid $gray-lighter;
z-index: $zindex-3;
}
}
.menu {
+mobile() { text-align: left; }
}
.menu-item-active a {
border-bottom-color: $menu-link-hover-border !important;
color: $black-deep;
+mobile() {
border-bottom: 1px dotted $gray-lighter !important;
}
}
.menu .menu-item {
+mobile() {
show();
margin: 0 10px;
vertical-align: top;
}
.badge {
display: inline-block;
padding: 1px 4px;
margin-left: 5px;
font-weight: 700;
line-height: 1;
text-align: center;
white-space: nowrap;
background-color: $gainsboro;
+mobile() {
float: right;
margin: 0.35em 0 0 0;
}
}
br {
+mobile() { display: none; }
}
a, span.exturl {
+mobile() {
padding: 5px 10px;
}
&:hover {
@extend .menu-item-active a;
}
// To prevent hover on external links with touch devices after click.
@media (hover:none) {
&:hover {
border-bottom-color: transparent !important;
}
}
}
.fa {
+tablet() {
width: 100%;
}
+desktop() {
width: 100%;
}
}
}

View File

@ -0,0 +1,5 @@
// Search
// --------------------------------------------------
.site-search form {
hide();
}

View File

@ -0,0 +1,5 @@
@import "_layout.styl";
@import "_logo.styl";
@import "_menu.styl";
@import "_search.styl";
@import "sidebar/sidebar-blogroll";

View File

@ -0,0 +1 @@
.links-of-blogroll-inline .links-of-blogroll-item { display: inline-block; }

View File

@ -0,0 +1,38 @@
.site-brand-wrapper {
position: relative;
}
.site-meta {
padding: 20px 0;
color: white;
background: $black-deep;
+tablet-mobile() {
box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}
}
.brand {
padding: 0;
background: none;
&:hover {
color: white;
}
}
.site-subtitle {
margin: 10px 10px 0;
font-weight: initial;
}
.custom-logo-image {
margin-top: 20px;
+tablet-mobile() {
hide();
}
}
.site-search form {
hide();
}

Some files were not shown because too many files have changed in this diff Show More