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

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorChen Xianmin <xianmin12@gmail.com>2018-11-07 09:52:42 +0300
committerChen Xianmin <xianmin12@gmail.com>2018-11-07 09:52:42 +0300
commit588d5bfbe356e2f678593a9e5d0609e88a045191 (patch)
tree5ae709f9ac344c68e4fda33afc6a43ecad0adfff /assets
parentc1f7ae4710bfa1415b7b4274d28afbadaecedc0e (diff)
style: better <blockquote> style for mobile
Diffstat (limited to 'assets')
-rw-r--r--assets/sass/_partial/_post/_blockquote.scss42
-rw-r--r--assets/sass/_partial/_post/_content.scss33
2 files changed, 43 insertions, 32 deletions
diff --git a/assets/sass/_partial/_post/_blockquote.scss b/assets/sass/_partial/_post/_blockquote.scss
new file mode 100644
index 0000000..41f8fd2
--- /dev/null
+++ b/assets/sass/_partial/_post/_blockquote.scss
@@ -0,0 +1,42 @@
+// ==============================
+// Post blockquote
+// ==============================
+
+blockquote {
+ margin: 1em auto;
+ color: #555555;
+ background-color: #F6F6F6;
+ border-left: 4px solid #999;
+ position: relative;
+ line-height: 1.6;
+ font-family: Open Sans;
+
+ @include min-screen() {
+ padding: 0.2em 2em 0.2em 3em;
+
+ &::before {
+ font-family: Arial;
+ content: "\201C";
+ color: #999;
+ font-size: 4em;
+ position: absolute;
+ left: 10px;
+ top: -10px;
+ }
+ }
+
+ @include max-screen() {
+ padding: 0.2em 1em;
+ }
+
+ footer {
+ color: #333333;
+ margin-bottom: 1em;
+ }
+
+ cite:before {
+ content: '\2014';
+ padding-right: .3em;
+ padding-left: .3em;
+ }
+}
diff --git a/assets/sass/_partial/_post/_content.scss b/assets/sass/_partial/_post/_content.scss
index 169819b..2c3fa3c 100644
--- a/assets/sass/_partial/_post/_content.scss
+++ b/assets/sass/_partial/_post/_content.scss
@@ -37,38 +37,6 @@
}
}
- blockquote {
- margin: 1em auto;
- padding: 0.2em 2em 0.2em 3em;
- color: #555555;
- background-color: #F6F6F6;
- border-left: 4px solid #999;
- position: relative;
- line-height: 1.6;
- font-family: Open Sans;
-
- &::before {
- font-family: Arial;
- content: "\201C";
- color: #999;
- font-size: 4em;
- position: absolute;
- left: 10px;
- top: -10px;
- }
-
- footer {
- color: #333333;
- margin-bottom: 1em;
- }
-
- cite:before {
- content: '\2014';
- padding-right: .3em;
- padding-left: .3em;
- }
- }
-
iframe {
margin: 0 auto;
display: block;
@@ -142,6 +110,7 @@
@import 'code';
@import 'image';
+ @import 'blockquote';
}
.header-link {