Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-03-08 16:02:21 +0300
committerDillon <dillonzq@outlook.com>2020-03-08 16:02:21 +0300
commit296424cded8ad1d548f7e3f891ef1f492b3f85b6 (patch)
tree242e33b08f2538e4c5341e39d730d1a6f479de8e /assets
parentb1f2de1987507c5c9f757b6da7bfb0593ebd3804 (diff)
feature(doc): complete all Chinese and English documents and fix many bugs
Diffstat (limited to 'assets')
-rw-r--r--assets/css/_core/_media.scss2
-rw-r--r--assets/css/_page/_single.scss19
-rw-r--r--assets/css/_partial/_single/_admonition.scss15
-rw-r--r--assets/css/_partial/_single/_code.scss4
4 files changed, 20 insertions, 20 deletions
diff --git a/assets/css/_core/_media.scss b/assets/css/_core/_media.scss
index f33b05e..dbcade8 100644
--- a/assets/css/_core/_media.scss
+++ b/assets/css/_core/_media.scss
@@ -48,7 +48,7 @@
}
}
-@media only screen and (max-width: 560px) {
+@media only screen and (max-width: 720px) {
#header-desktop {
display: none;
}
diff --git a/assets/css/_page/_single.scss b/assets/css/_page/_single.scss
index cd2b03c..a7cd994 100644
--- a/assets/css/_page/_single.scss
+++ b/assets/css/_page/_single.scss
@@ -88,6 +88,7 @@
a {
word-break: break-all;
+ word-break: break-word;
color: $single-link-color;
.dark-theme & {
@@ -181,20 +182,20 @@
line-height: 1.7;
}
+ img {
+ display: block;
+ max-width: 96%;
+ height: auto;
+ margin: 0 auto;
+ overflow: hidden;
+ transition: all 0.2s ease-in-out;
+ }
+
a.lightgallery:hover img {
transform: scale(1.02);
}
}
- img {
- display: block;
- max-width: 96%;
- height: auto;
- margin: 0 auto;
- overflow: hidden;
- transition: all 0.2s ease-in-out;
- }
-
.lazyloading {
object-fit: none;
}
diff --git a/assets/css/_partial/_single/_admonition.scss b/assets/css/_partial/_single/_admonition.scss
index 96d28fa..69a7913 100644
--- a/assets/css/_partial/_single/_admonition.scss
+++ b/assets/css/_partial/_single/_admonition.scss
@@ -8,10 +8,9 @@
.admonition-title {
margin: 0 -0.75rem;
- padding: .5rem .75rem .5rem 2.5rem;
- border-bottom: .1rem solid map-get($admonition-background-color-map, 'note');
+ padding: .2rem .75rem .2rem 1.8rem;
+ border-bottom: .05rem solid map-get($admonition-background-color-map, 'note');
background-color: map-get($admonition-background-color-map, 'note');
- font-weight: 700;
}
.admonition-content {
@@ -19,12 +18,12 @@
}
i.icon {
- font-size: 16px;
+ font-size: 0.85rem;
color: map-get($admonition-color-map, 'note');
cursor: auto;
position: absolute;
- left: .75rem;
- top: .75rem;
+ left: .6rem;
+ top: .6rem;
}
@each $type, $color in $admonition-color-map {
@@ -65,8 +64,8 @@ details.admonition {
i.details {
position: absolute;
- top: .75rem;
- right: .75rem;
+ top: .5rem;
+ right: .5rem;
color: $global-font-color;
.dark-theme & {
diff --git a/assets/css/_partial/_single/_code.scss b/assets/css/_partial/_single/_code.scss
index e45b0b9..1bcdb7b 100644
--- a/assets/css/_partial/_single/_code.scss
+++ b/assets/css/_partial/_single/_code.scss
@@ -19,7 +19,6 @@ code, pre, .highlight table, .highlight tr, .highlight td {
.highlight > .chroma {
margin: 1rem 0;
- line-height: round($code-font-size * 1.4);
code, pre {
margin: 0;
@@ -30,7 +29,6 @@ code, pre, .highlight table, .highlight tr, .highlight td {
display: block;
padding: .4rem;
font-family: $global-font-family;
- font-size: $code-font-size;
font-weight: bold;
color: $code-info-color;
background: darken($code-background-color, 3%);
@@ -88,6 +86,8 @@ code, pre, .highlight table, .highlight tr, .highlight td {
.highlight {
font-family: $code-font-family;
+ font-size: $code-font-size;
+ line-height: round($code-font-size * 1.4);
/* Comment */ .c,
/* CommentHashbang */ .ch,
/* CommentMultiline */ .cm,