mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
Code style update
This commit is contained in:
parent
6c94cfb45f
commit
20002f2d2a
@ -13,6 +13,10 @@ function resolve(name, file = '') {
|
|||||||
return `${dir}/${file}`;
|
return `${dir}/${file}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function parse(line, attr) {
|
||||||
|
return line.split(attr)[1].replace(';', '').trim();
|
||||||
|
}
|
||||||
|
|
||||||
function highlightTheme(name) {
|
function highlightTheme(name) {
|
||||||
const file = resolve('highlight.js', `styles/${name}.css`);
|
const file = resolve('highlight.js', `styles/${name}.css`);
|
||||||
const css = fs.readFileSync(file).toString();
|
const css = fs.readFileSync(file).toString();
|
||||||
@ -24,9 +28,9 @@ function highlightTheme(name) {
|
|||||||
return match;
|
return match;
|
||||||
});
|
});
|
||||||
rule.split('\n').forEach(line => {
|
rule.split('\n').forEach(line => {
|
||||||
if (line.includes('background:')) background = line.split('background:')[1];
|
if (line.includes('background:')) background = parse(line, 'background:');
|
||||||
else if (line.includes('background-color:')) background = line.split('background-color:')[1];
|
else if (line.includes('background-color:')) background = parse(line, 'background-color:');
|
||||||
else if (line.includes('color:')) foreground = line.split('color:')[1];
|
else if (line.includes('color:')) foreground = parse(line, 'color:');
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
file,
|
file,
|
||||||
|
|||||||
@ -86,7 +86,7 @@
|
|||||||
display: inline;
|
display: inline;
|
||||||
|
|
||||||
a, span.exturl {
|
a, span.exturl {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
color: var(--link-color);
|
color: var(--link-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
if (hexo-config('post_edit.enable')) {
|
if (hexo-config('post_edit.enable')) {
|
||||||
.post-edit-link {
|
.post-edit-link {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
color: $grey;
|
color: $grey;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: right;
|
float: right;
|
||||||
@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.posts-expand .post-title-link {
|
.posts-expand .post-title-link {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
color: var(--link-color);
|
color: var(--link-color);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
display: block;
|
display: block;
|
||||||
font-size: $font-size-small;
|
font-size: $font-size-small;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
.gt-header a, .gt-comments a, .gt-popup a {
|
.gt-header a, .gt-comments a, .gt-popup a {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gt-container .gt-popup .gt-action.is--active::before {
|
.gt-container .gt-popup .gt-action.is--active::before {
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
mjx-container[jax="CHTML"][display="true"], .has-jax {
|
mjx-container[jax="CHTML"][display="true"], .has-jax {
|
||||||
overflow: auto hidden;
|
overflow: auto hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
mjx-container[display="true"] + br {
|
mjx-container[display="true"] + br {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
.book-mark-link {
|
.book-mark-link {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
transition: top .3s;
|
transition: top .3s;
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.brand {
|
.brand {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
color: var(--brand-color);
|
color: var(--brand-color);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0 40px;
|
padding: 0 40px;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
.cc-license {
|
.cc-license {
|
||||||
.cc-opacity {
|
.cc-opacity {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
opacity: .7;
|
opacity: .7;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -9,7 +9,7 @@
|
|||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,6 +38,8 @@ p {
|
|||||||
a, span.exturl {
|
a, span.exturl {
|
||||||
border-bottom: 1px solid $link-decoration-color;
|
border-bottom: 1px solid $link-decoration-color;
|
||||||
color: var(--link-color);
|
color: var(--link-color);
|
||||||
|
// For spanned external links.
|
||||||
|
cursor: pointer;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
word-wrap();
|
word-wrap();
|
||||||
@ -46,9 +48,6 @@ a, span.exturl {
|
|||||||
border-bottom-color: var(--link-hover-color);
|
border-bottom-color: var(--link-hover-color);
|
||||||
color: var(--link-hover-color);
|
color: var(--link-hover-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
// For spanned external links.
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
iframe, img, video, embed {
|
iframe, img, video, embed {
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
for $type in $note-types {
|
for $type in $note-types {
|
||||||
&.{$type} {
|
&.{$type} {
|
||||||
background: lookup('$label-' + $type);
|
background: $label[$type];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,33 +71,43 @@
|
|||||||
0% {
|
0% {
|
||||||
transform: translate(1pt, 1pt) rotate(0deg);
|
transform: translate(1pt, 1pt) rotate(0deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
10% {
|
10% {
|
||||||
transform: translate(-1pt, -2pt) rotate(-1deg);
|
transform: translate(-1pt, -2pt) rotate(-1deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
20% {
|
20% {
|
||||||
transform: translate(-3pt, 0pt) rotate(1deg);
|
transform: translate(-3pt, 0pt) rotate(1deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
30% {
|
30% {
|
||||||
transform: translate(3pt, 2pt) rotate(0deg);
|
transform: translate(3pt, 2pt) rotate(0deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
40% {
|
40% {
|
||||||
transform: translate(1pt, -1pt) rotate(1deg);
|
transform: translate(1pt, -1pt) rotate(1deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
transform: translate(-1pt, 2pt) rotate(-1deg);
|
transform: translate(-1pt, 2pt) rotate(-1deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
60% {
|
60% {
|
||||||
transform: translate(-3pt, 1pt) rotate(0deg);
|
transform: translate(-3pt, 1pt) rotate(0deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
70% {
|
70% {
|
||||||
transform: translate(3pt, 1pt) rotate(-1deg);
|
transform: translate(3pt, 1pt) rotate(-1deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
80% {
|
80% {
|
||||||
transform: translate(-1pt, -1pt) rotate(1deg);
|
transform: translate(-1pt, -1pt) rotate(1deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
90% {
|
90% {
|
||||||
transform: translate(1pt, 2pt) rotate(0deg);
|
transform: translate(1pt, 2pt) rotate(0deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
transform: translate(1pt, -2pt) rotate(-1deg);
|
transform: translate(1pt, -2pt) rotate(-1deg);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -64,46 +64,46 @@
|
|||||||
for $type in $note-types {
|
for $type in $note-types {
|
||||||
&.{$type} {
|
&.{$type} {
|
||||||
if ($note-style == 'flat') {
|
if ($note-style == 'flat') {
|
||||||
background: lookup('$note-bg-' + $type);
|
background: $note-bg[$type];
|
||||||
if (hexo-config('darkmode')) {
|
if (hexo-config('darkmode')) {
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
background: mix(lookup('$note-bg-' + $type), $body-bg-color-dark, 10%);
|
background: mix($note-bg[$type], $body-bg-color-dark, 10%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($note-style == 'modern') {
|
if ($note-style == 'modern') {
|
||||||
background: lookup('$note-modern-bg-' + $type);
|
background: $note-modern-bg[$type];
|
||||||
border-color: lookup('$note-modern-border-' + $type);
|
border-color: $note-modern-border[$type];
|
||||||
color: lookup('$note-modern-text-' + $type);
|
color: $note-modern-text[$type];
|
||||||
|
|
||||||
a, span.exturl {
|
a, span.exturl {
|
||||||
&:not(.btn) {
|
&:not(.btn) {
|
||||||
border-bottom-color: lookup('$note-modern-text-' + $type);
|
border-bottom-color: $note-modern-text[$type];
|
||||||
color: lookup('$note-modern-text-' + $type);
|
color: $note-modern-text[$type];
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-bottom-color: lookup('$note-modern-hover-' + $type);
|
border-bottom-color: $note-modern-hover[$type];
|
||||||
color: lookup('$note-modern-hover-' + $type);
|
color: $note-modern-hover[$type];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($note-style != 'modern') {
|
if ($note-style != 'modern') {
|
||||||
border-left-color: lookup('$note-border-' + $type);
|
border-left-color: $note-border[$type];
|
||||||
|
|
||||||
h2, h3, h4, h5, h6 {
|
h2, h3, h4, h5, h6 {
|
||||||
color: lookup('$note-text-' + $type);
|
color: $note-text[$type];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($note-icons) {
|
if ($note-icons) {
|
||||||
&:not(.no-icon)::before {
|
&:not(.no-icon)::before {
|
||||||
font-family-icons(lookup('$note-icon-' + $type));
|
font-family-icons($note-icon[$type]);
|
||||||
|
|
||||||
if ($note-style != 'modern') {
|
if ($note-style != 'modern') {
|
||||||
color: lookup('$note-text-' + $type);
|
color: $note-text[$type];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
border-bottom: 1px solid $grey-lighter;
|
border-bottom: 1px solid $grey-lighter;
|
||||||
border-left: 1px solid transparent;
|
border-left: 1px solid transparent;
|
||||||
border-right: 1px solid transparent;
|
border-right: 1px solid transparent;
|
||||||
|
border-radius: $tbr $tbr 0 0;
|
||||||
border-top: 3px solid transparent;
|
border-top: 3px solid transparent;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
@ -31,8 +32,6 @@
|
|||||||
border-top: 1px solid transparent;
|
border-top: 1px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
border-radius: $tbr $tbr 0 0;
|
|
||||||
|
|
||||||
+mobile-smallest() {
|
+mobile-smallest() {
|
||||||
border-radius: $tbr;
|
border-radius: $tbr;
|
||||||
}
|
}
|
||||||
@ -79,8 +78,8 @@
|
|||||||
|
|
||||||
.tab-content {
|
.tab-content {
|
||||||
border: 1px solid $table-border-color;
|
border: 1px solid $table-border-color;
|
||||||
border-top-color: transparent;
|
|
||||||
border-radius: 0 0 $tbr $tbr;
|
border-radius: 0 0 $tbr $tbr;
|
||||||
|
border-top-color: transparent;
|
||||||
|
|
||||||
+mobile-smallest() {
|
+mobile-smallest() {
|
||||||
border-radius: $tbr;
|
border-radius: $tbr;
|
||||||
|
|||||||
@ -41,13 +41,13 @@
|
|||||||
|
|
||||||
.use-motion {
|
.use-motion {
|
||||||
.logo-line:first-of-type {
|
.logo-line:first-of-type {
|
||||||
transform-origin: left;
|
|
||||||
transform: scaleX(0);
|
transform: scaleX(0);
|
||||||
|
transform-origin: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo-line:last-of-type {
|
.logo-line:last-of-type {
|
||||||
transform-origin: right;
|
|
||||||
transform: scaleX(0);
|
transform: scaleX(0);
|
||||||
|
transform-origin: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
background: var(--content-bg-color);
|
background: var(--content-bg-color);
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
padding: 1px 5px;
|
padding: 1px 5px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
a, span.exturl {
|
a, span.exturl {
|
||||||
border-bottom: none;
|
border-bottom: 0;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
@import $scheme;
|
|
||||||
@ -279,89 +279,100 @@ $post-eof-margin-bottom = 60px; // or 120px for less white space;
|
|||||||
|
|
||||||
$post-card-margin = 1em 0 0;
|
$post-card-margin = 1em 0 0;
|
||||||
|
|
||||||
|
|
||||||
// Note colors
|
// Note colors
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// Read note light_bg_offset from NexT config and set in '$lbg%' to use it as string variable.
|
// Read note light_bg_offset from NexT config and set in '$lbg%' to use it as string variable.
|
||||||
$lbg = hexo-config('note.light_bg_offset') is a 'unit' ? unit(hexo-config('note.light_bg_offset'), '%') : 0;
|
$lbg = hexo-config('note.light_bg_offset') is a 'unit' ? unit(hexo-config('note.light_bg_offset'), '%') : 0;
|
||||||
$note-types = 'default' 'primary' 'info' 'success' 'warning' 'danger';
|
$note-types = 'default' 'primary' 'info' 'success' 'warning' 'danger';
|
||||||
|
|
||||||
// Default
|
|
||||||
$note-border-radius = 3px;
|
$note-border-radius = 3px;
|
||||||
|
|
||||||
$note-border-default = #777;
|
$note-border = {
|
||||||
$note-bg-default = lighten(spin($note-border-default, 0), 94% + $lbg);
|
default : #777,
|
||||||
$note-text-default = $note-border-default;
|
primary : #6f42c1,
|
||||||
$note-icon-default = '\f0a9';
|
info : #428bca,
|
||||||
|
success : #5cb85c,
|
||||||
|
warning : #f0ad4e,
|
||||||
|
danger : #d9534f
|
||||||
|
};
|
||||||
|
|
||||||
$note-modern-border-default = #e1e1e1;
|
$note-bg = {
|
||||||
$note-modern-bg-default = lighten(spin($note-modern-border-default, 10), 60% + ($lbg * 4));
|
default : lighten(spin($note-border.default, 0), 94% + $lbg),
|
||||||
$note-modern-text-default = $grey-dim;
|
primary : lighten(spin($note-border.primary, 10), 92% + $lbg),
|
||||||
$note-modern-hover-default = darken(spin($note-modern-text-default, -10), 32%);
|
info : lighten(spin($note-border.info, -10), 91% + $lbg),
|
||||||
|
success : lighten(spin($note-border.success, 10), 90% + $lbg),
|
||||||
|
warning : lighten(spin($note-border.warning, 10), 88% + $lbg),
|
||||||
|
danger : lighten(spin($note-border.danger, -10), 92% + $lbg)
|
||||||
|
};
|
||||||
|
|
||||||
// Primary
|
$note-text = {
|
||||||
$note-border-primary = #6f42c1;
|
default : $note-border.default,
|
||||||
$note-bg-primary = lighten(spin($note-border-primary, 10), 92% + $lbg);
|
primary : $note-border.primary,
|
||||||
$note-text-primary = $note-border-primary;
|
info : $note-border.info,
|
||||||
$note-icon-primary = '\f055';
|
success : $note-border.success,
|
||||||
|
warning : $note-border.warning,
|
||||||
|
danger : $note-border.danger
|
||||||
|
};
|
||||||
|
|
||||||
$note-modern-border-primary = #e1c2ff;
|
$note-icon = {
|
||||||
$note-modern-bg-primary = lighten(spin($note-modern-border-primary, 10), 40% + ($lbg * 4));
|
default : '\f0a9',
|
||||||
$note-modern-text-primary = #6f42c1;
|
primary : '\f055',
|
||||||
$note-modern-hover-primary = darken(spin($note-modern-text-primary, -10), 22%);
|
info : '\f05a',
|
||||||
|
success : '\f058',
|
||||||
|
warning : '\f06a',
|
||||||
|
danger : '\f056'
|
||||||
|
};
|
||||||
|
|
||||||
// Info
|
$note-modern-border = {
|
||||||
$note-border-info = #428bca;
|
default : #e1e1e1,
|
||||||
$note-bg-info = lighten(spin($note-border-info, -10), 91% + $lbg);
|
primary : #e1c2ff,
|
||||||
$note-text-info = $note-border-info;
|
info : #b3e5ef,
|
||||||
$note-icon-info = '\f05a';
|
success : #d0e6be,
|
||||||
|
warning : #fae4cd,
|
||||||
|
danger : #ebcdd2
|
||||||
|
};
|
||||||
|
|
||||||
$note-modern-border-info = #b3e5ef;
|
$note-modern-bg = {
|
||||||
$note-modern-bg-info = lighten(spin($note-modern-border-info, 10), 50% + ($lbg * 4));
|
default : lighten(spin($note-modern-border.default, 10), 60% + ($lbg * 4)),
|
||||||
$note-modern-text-info = #31708f;
|
primary : lighten(spin($note-modern-border.primary, 10), 40% + ($lbg * 4)),
|
||||||
$note-modern-hover-info = darken(spin($note-modern-text-info, -10), 32%);
|
info : lighten(spin($note-modern-border.info, 10), 50% + ($lbg * 4)),
|
||||||
|
success : lighten(spin($note-modern-border.success, 10), 40% + ($lbg * 4)),
|
||||||
|
warning : lighten(spin($note-modern-border.warning, 10), 43% + ($lbg * 4)),
|
||||||
|
danger : lighten(spin($note-modern-border.danger, 10), 35% + ($lbg * 4))
|
||||||
|
};
|
||||||
|
|
||||||
// Success
|
$note-modern-text = {
|
||||||
$note-border-success = #5cb85c;
|
default : $grey-dim,
|
||||||
$note-bg-success = lighten(spin($note-border-success, 10), 90% + $lbg);
|
primary : #6f42c1,
|
||||||
$note-text-success = $note-border-success;
|
info : #31708f,
|
||||||
$note-icon-success = '\f058';
|
success : #3c763d,
|
||||||
|
warning : #8a6d3b,
|
||||||
|
danger : #a94442
|
||||||
|
};
|
||||||
|
|
||||||
$note-modern-border-success = #d0e6be;
|
$note-modern-hover = {
|
||||||
$note-modern-bg-success = lighten(spin($note-modern-border-success, 10), 40% + ($lbg * 4));
|
default : darken(spin($note-modern-text.default, -10), 32%),
|
||||||
$note-modern-text-success = #3c763d;
|
primary : darken(spin($note-modern-text.primary, -10), 22%),
|
||||||
$note-modern-hover-success = darken(spin($note-modern-text-success, -10), 27%);
|
info : darken(spin($note-modern-text.info, -10), 32%),
|
||||||
|
success : darken(spin($note-modern-text.success, -10), 27%),
|
||||||
|
warning : darken(spin($note-modern-text.warning, -10), 18%),
|
||||||
|
danger : darken(spin($note-modern-text.danger, -10), 22%)
|
||||||
|
};
|
||||||
|
|
||||||
// Warning
|
|
||||||
$note-border-warning = #f0ad4e;
|
|
||||||
$note-bg-warning = lighten(spin($note-border-warning, 10), 88% + $lbg);
|
|
||||||
$note-text-warning = $note-border-warning;
|
|
||||||
$note-icon-warning = '\f06a';
|
|
||||||
|
|
||||||
$note-modern-border-warning = #fae4cd;
|
|
||||||
$note-modern-bg-warning = lighten(spin($note-modern-border-warning, 10), 43% + ($lbg * 4));
|
|
||||||
$note-modern-text-warning = #8a6d3b;
|
|
||||||
$note-modern-hover-warning = darken(spin($note-modern-text-warning, -10), 18%);
|
|
||||||
|
|
||||||
// Danger
|
|
||||||
$note-border-danger = #d9534f;
|
|
||||||
$note-bg-danger = lighten(spin($note-border-danger, -10), 92% + $lbg);
|
|
||||||
$note-text-danger = $note-border-danger;
|
|
||||||
$note-icon-danger = '\f056';
|
|
||||||
|
|
||||||
$note-modern-border-danger = #ebcdd2;
|
|
||||||
$note-modern-bg-danger = lighten(spin($note-modern-border-danger, 10), 35% + ($lbg * 4));
|
|
||||||
$note-modern-text-danger = #a94442;
|
|
||||||
$note-modern-hover-danger = darken(spin($note-modern-text-danger, -10), 22%);
|
|
||||||
|
|
||||||
// Tabs border radius
|
// Tabs border radius
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
$tbr = 0;
|
$tbr = 0;
|
||||||
|
|
||||||
|
|
||||||
// Label colors
|
// Label colors
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
$label-default = lighten(spin($note-border-default, 0), 89% + $lbg);
|
$label = {
|
||||||
$label-primary = lighten(spin($note-border-primary, 10), 87% + $lbg);
|
default : lighten(spin($note-border.default, 0), 89% + $lbg),
|
||||||
$label-info = lighten(spin($note-border-info, -10), 86% + $lbg);
|
primary : lighten(spin($note-border.primary, 10), 87% + $lbg),
|
||||||
$label-success = lighten(spin($note-border-success, 10), 85% + $lbg);
|
info : lighten(spin($note-border.info, -10), 86% + $lbg),
|
||||||
$label-warning = lighten(spin($note-border-warning, 10), 83% + $lbg);
|
success : lighten(spin($note-border.success, 10), 85% + $lbg),
|
||||||
$label-danger = lighten(spin($note-border-danger, -10), 87% + $lbg);
|
warning : lighten(spin($note-border.warning, 10), 83% + $lbg),
|
||||||
|
danger : lighten(spin($note-border.danger, -10), 87% + $lbg)
|
||||||
|
};
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
$variables = base $scheme;
|
|
||||||
|
|
||||||
for $variable in $variables
|
|
||||||
@import $variable;
|
|
||||||
@ -6,7 +6,8 @@ $scheme = hexo-config('scheme') ? hexo-config('scheme') : 'Muse';
|
|||||||
|
|
||||||
// Variables Layer
|
// Variables Layer
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
@import '_variables';
|
@import '_variables/base';
|
||||||
|
@import '_variables/' + $scheme;
|
||||||
for $inject_variable in hexo-config('injects.variable')
|
for $inject_variable in hexo-config('injects.variable')
|
||||||
@import $inject_variable;
|
@import $inject_variable;
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ for $inject_mixin in hexo-config('injects.mixin')
|
|||||||
|
|
||||||
// Schemes Layer
|
// Schemes Layer
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
@import '_schemes';
|
@import '_schemes/' + $scheme;
|
||||||
|
|
||||||
|
|
||||||
// Custom Layer
|
// Custom Layer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user