mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Optimize Gemini & highlight style
This commit is contained in:
parent
ae21b8b8e0
commit
e01a2043b7
@ -32,6 +32,7 @@ pre, code {
|
|||||||
code {
|
code {
|
||||||
@extend $code-inline;
|
@extend $code-inline;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
font-size: $table-font-size;
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
word-wrap();
|
word-wrap();
|
||||||
}
|
}
|
||||||
@ -99,7 +100,6 @@ kbd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.code pre {
|
.code pre {
|
||||||
background: var(--highlight-background);
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@ -120,7 +120,6 @@ pre {
|
|||||||
|
|
||||||
code {
|
code {
|
||||||
background: none;
|
background: none;
|
||||||
font-size: $table-font-size;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,9 +19,6 @@
|
|||||||
// P.S. If u want to change this paddings u may set this variables into `custom_file_path.variable` (in theme _config.yml).
|
// P.S. If u want to change this paddings u may set this variables into `custom_file_path.variable` (in theme _config.yml).
|
||||||
|
|
||||||
// So, it will 12px in Desktop, 10px in Tablets and 8px in Mobiles for all possible paddings.
|
// 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.
|
// Desktop layout styles.
|
||||||
@ -82,15 +79,6 @@ $use-seo = hexo-config('seo');
|
|||||||
padding: 10px 0 10px;
|
padding: 10px 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Footer alignment.
|
|
||||||
.main {
|
|
||||||
padding-bottom: initial;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
bottom: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sub-menu(s).
|
// Sub-menu(s).
|
||||||
.sub-menu {
|
.sub-menu {
|
||||||
border-bottom: initial;
|
border-bottom: initial;
|
||||||
@ -120,17 +108,7 @@ $use-seo = hexo-config('seo');
|
|||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
if ($use-seo) {
|
border-bottom: 1px dotted $body-bg-color;
|
||||||
border-bottom: 1px solid $body-bg-color;
|
|
||||||
} else {
|
|
||||||
border-bottom: 1px dotted $body-bg-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
if ($use-seo) {
|
|
||||||
border-bottom: 1px dotted $body-bg-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user