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:
authorShaform <shaform@gmail.com>2018-11-17 22:18:02 +0300
committerShaform <shaform@gmail.com>2018-11-17 22:31:43 +0300
commitebfc3056a44ea0051a3e9008c572459d829d3c13 (patch)
treebb22725191f2c80b4730c17809425eaddabbb7c4 /assets
parent45fc3e7ceb6621b97b3ea41ad91431b0dd4f6cc9 (diff)
add author info section
Diffstat (limited to 'assets')
-rw-r--r--assets/sass/_partial/_author_info.scss70
-rw-r--r--assets/sass/jane.scss1
2 files changed, 71 insertions, 0 deletions
diff --git a/assets/sass/_partial/_author_info.scss b/assets/sass/_partial/_author_info.scss
new file mode 100644
index 0000000..5220ef1
--- /dev/null
+++ b/assets/sass/_partial/_author_info.scss
@@ -0,0 +1,70 @@
+// ==============================
+// Author Info
+// ==============================
+
+.author-info {
+ margin: 0 5em 3em 5em;
+ background-color: white;
+ padding: 2em 5em 2em 5em;
+ text-align: center;
+
+ .author-box {
+ .author-image img {
+ margin: 1em auto 1em auto;
+ border-radius: 50%;
+ border: 1px solid #999;
+ float: left;
+ }
+ .author-content {
+ padding-left: 200px;
+ text-align: left;
+
+ .author-title {
+ color: #aaa;
+ margin-bottom: 0.1em;
+ font-size: 14px;
+ }
+ .author-name {
+ font-weight: bold;
+ margin-top: 0em;
+ margin-bottom: 0.5em;
+ }
+ .author-desc {
+ font-size: 16px;
+ }
+ }
+ .author-bottom {
+ clear: both;
+ }
+ }
+}
+@media screen and (min-width: 900px) and (max-width: 1080px) {
+ .author-info {
+ margin: 0 2em 2em 2em;
+ }
+}
+
+@media screen and (min-width: 504px) and (max-width: 899px) {
+ .author-info {
+ margin: 0 1em 2em 1em;
+ padding-left: 1em;
+ padding-right: 1em;
+ }
+}
+
+@media screen and (max-width: 504px) {
+ .author-info {
+ margin: 0 0 2em 0;
+ padding: 1em;
+
+ .author-box {
+ .author-image img {
+ float: none;
+ }
+ .author-content {
+ padding-left: 0;
+ text-align: center;
+ }
+ }
+ }
+}
diff --git a/assets/sass/jane.scss b/assets/sass/jane.scss
index 1be203c..73b7928 100644
--- a/assets/sass/jane.scss
+++ b/assets/sass/jane.scss
@@ -17,3 +17,4 @@
@import "_partial/mobile";
@import "_partial/back-to-top";
@import "_partial/404";
+@import "_partial/author_info";