jekyll-theme-abd3lraouf 5.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +105 -0
  4. data/_config.yml +206 -0
  5. data/_data/assets/cross_origin.yml +62 -0
  6. data/_data/assets/self_host.yml +51 -0
  7. data/_data/authors.yml +17 -0
  8. data/_data/contact.yml +30 -0
  9. data/_data/locales/bg-BG.yml +83 -0
  10. data/_data/locales/en.yml +83 -0
  11. data/_data/locales/es-ES.yml +79 -0
  12. data/_data/locales/fr-FR.yml +79 -0
  13. data/_data/locales/hu-HU.yml +81 -0
  14. data/_data/locales/id-ID.yml +79 -0
  15. data/_data/locales/ko-KR.yml +79 -0
  16. data/_data/locales/my-MM.yml +79 -0
  17. data/_data/locales/pt-BR.yml +79 -0
  18. data/_data/locales/ru-RU.yml +79 -0
  19. data/_data/locales/tr-TR.yml +79 -0
  20. data/_data/locales/uk-UA.yml +79 -0
  21. data/_data/locales/vi-VN.yml +77 -0
  22. data/_data/locales/zh-CN.yml +78 -0
  23. data/_data/share.yml +27 -0
  24. data/_includes/assets-origin.html +12 -0
  25. data/_includes/comments/disqus.html +54 -0
  26. data/_includes/comments/giscus.html +56 -0
  27. data/_includes/comments/utterances.html +51 -0
  28. data/_includes/comments.html +5 -0
  29. data/_includes/datetime.html +21 -0
  30. data/_includes/favicons.html +17 -0
  31. data/_includes/footer.html +36 -0
  32. data/_includes/google-analytics.html +14 -0
  33. data/_includes/head.html +116 -0
  34. data/_includes/js-selector.html +104 -0
  35. data/_includes/jsdelivr-combine.html +32 -0
  36. data/_includes/lang.html +8 -0
  37. data/_includes/language-alias.html +70 -0
  38. data/_includes/mermaid.html +57 -0
  39. data/_includes/mode-toggle.html +129 -0
  40. data/_includes/no-linenos.html +10 -0
  41. data/_includes/post-nav.html +30 -0
  42. data/_includes/post-paginator.html +88 -0
  43. data/_includes/post-sharing.html +27 -0
  44. data/_includes/read-time.html +30 -0
  45. data/_includes/refactor-content.html +282 -0
  46. data/_includes/related-posts.html +103 -0
  47. data/_includes/search-loader.html +46 -0
  48. data/_includes/search-results.html +11 -0
  49. data/_includes/sidebar.html +93 -0
  50. data/_includes/toc.html +16 -0
  51. data/_includes/topbar.html +70 -0
  52. data/_includes/trending-tags.html +50 -0
  53. data/_includes/update-list.html +40 -0
  54. data/_layouts/archives.html +48 -0
  55. data/_layouts/categories.html +120 -0
  56. data/_layouts/category.html +24 -0
  57. data/_layouts/compress.html +10 -0
  58. data/_layouts/default.html +74 -0
  59. data/_layouts/home.html +103 -0
  60. data/_layouts/page.html +64 -0
  61. data/_layouts/post.html +159 -0
  62. data/_layouts/tag.html +23 -0
  63. data/_layouts/tags.html +23 -0
  64. data/_plugins/posts-lastmod-hook.rb +14 -0
  65. data/_sass/addon/commons.scss +1680 -0
  66. data/_sass/addon/module.scss +151 -0
  67. data/_sass/addon/syntax.scss +289 -0
  68. data/_sass/addon/variables.scss +34 -0
  69. data/_sass/colors/dark-syntax.scss +88 -0
  70. data/_sass/colors/dark-typography.scss +157 -0
  71. data/_sass/colors/light-syntax.scss +84 -0
  72. data/_sass/colors/light-typography.scss +94 -0
  73. data/_sass/jekyll-theme-abd3lraouf.scss +24 -0
  74. data/_sass/layout/archives.scss +147 -0
  75. data/_sass/layout/categories.scss +67 -0
  76. data/_sass/layout/category-tag.scss +73 -0
  77. data/_sass/layout/home.scss +184 -0
  78. data/_sass/layout/post.scss +369 -0
  79. data/_sass/layout/tags.scss +19 -0
  80. data/_sass/variables-hook.scss +3 -0
  81. data/_tabs/about.md +8 -0
  82. data/_tabs/archives.md +7 -0
  83. data/_tabs/categories.md +6 -0
  84. data/_tabs/tags.md +6 -0
  85. data/assets/404.html +16 -0
  86. data/assets/css/style.scss +12 -0
  87. data/assets/feed.xml +61 -0
  88. data/assets/img/favicons/android-chrome-192x192.png +0 -0
  89. data/assets/img/favicons/android-chrome-512x512.png +0 -0
  90. data/assets/img/favicons/apple-touch-icon.png +0 -0
  91. data/assets/img/favicons/browserconfig.xml +13 -0
  92. data/assets/img/favicons/favicon-16x16.png +0 -0
  93. data/assets/img/favicons/favicon-32x32.png +0 -0
  94. data/assets/img/favicons/favicon.ico +0 -0
  95. data/assets/img/favicons/mstile-150x150.png +0 -0
  96. data/assets/img/favicons/site.webmanifest +26 -0
  97. data/assets/js/data/search.json +18 -0
  98. data/assets/js/data/swcache.js +55 -0
  99. data/assets/js/dist/categories.min.js +6 -0
  100. data/assets/js/dist/commons.min.js +6 -0
  101. data/assets/js/dist/home.min.js +6 -0
  102. data/assets/js/dist/misc.min.js +6 -0
  103. data/assets/js/dist/page.min.js +6 -0
  104. data/assets/js/dist/post.min.js +6 -0
  105. data/assets/js/dist/pvreport.min.js +6 -0
  106. data/assets/js/pwa/app.js +47 -0
  107. data/assets/js/pwa/sw.js +89 -0
  108. data/assets/js/pwa/unregister.js +12 -0
  109. data/assets/robots.txt +10 -0
  110. data/index.html +4 -0
  111. metadata +243 -0
@@ -0,0 +1,84 @@
1
+ /*
2
+ * The syntax light mode code snippet colors.
3
+ */
4
+
5
+ @mixin light-syntax {
6
+ /* see: <https://raw.githubusercontent.com/jwarby/pygments-css/master/github.css> */
7
+ .highlight .hll { background-color: #ffffcc; }
8
+ .highlight .c { color: #999988; font-style: italic; } /* Comment */
9
+ .highlight .err { color: #a61717; background-color: #e3d2d2; } /* Error */
10
+ .highlight .k { color: #000000; font-weight: bold; } /* Keyword */
11
+ .highlight .o { color: #000000; font-weight: bold; } /* Operator */
12
+ .highlight .cm { color: #999988; font-style: italic; } /* Comment.Multiline */
13
+ .highlight .cp { color: #999999; font-weight: bold; font-style: italic; } /* Comment.Preproc */
14
+ .highlight .c1 { color: #999988; font-style: italic; } /* Comment.Single */
15
+ .highlight .cs { color: #999999; font-weight: bold; font-style: italic; } /* Comment.Special */
16
+ .highlight .gd { color: #d01040; background-color: #ffdddd; } /* Generic.Deleted */
17
+ .highlight .ge { color: #000000; font-style: italic; } /* Generic.Emph */
18
+ .highlight .gr { color: #aa0000; } /* Generic.Error */
19
+ .highlight .gh { color: #999999; } /* Generic.Heading */
20
+ .highlight .gi { color: #008080; background-color: #ddffdd; } /* Generic.Inserted */
21
+ .highlight .go { color: #888888; } /* Generic.Output */
22
+ .highlight .gp { color: #555555; } /* Generic.Prompt */
23
+ .highlight .gs { font-weight: bold; } /* Generic.Strong */
24
+ .highlight .gu { color: #aaaaaa; } /* Generic.Subheading */
25
+ .highlight .gt { color: #aa0000; } /* Generic.Traceback */
26
+ .highlight .kc { color: #000000; font-weight: bold; } /* Keyword.Constant */
27
+ .highlight .kd { color: #000000; font-weight: bold; } /* Keyword.Declaration */
28
+ .highlight .kn { color: #000000; font-weight: bold; } /* Keyword.Namespace */
29
+ .highlight .kp { color: #000000; font-weight: bold; } /* Keyword.Pseudo */
30
+ .highlight .kr { color: #000000; font-weight: bold; } /* Keyword.Reserved */
31
+ .highlight .kt { color: #445588; font-weight: bold; } /* Keyword.Type */
32
+ .highlight .m { color: #009999; } /* Literal.Number */
33
+ .highlight .s { color: #d01040; } /* Literal.String */
34
+ .highlight .na { color: #008080; } /* Name.Attribute */
35
+ .highlight .nb { color: #0086b3; } /* Name.Builtin */
36
+ .highlight .nc { color: #445588; font-weight: bold; } /* Name.Class */
37
+ .highlight .no { color: #008080; } /* Name.Constant */
38
+ .highlight .nd { color: #3c5d5d; font-weight: bold; } /* Name.Decorator */
39
+ .highlight .ni { color: #800080; } /* Name.Entity */
40
+ .highlight .ne { color: #990000; font-weight: bold; } /* Name.Exception */
41
+ .highlight .nf { color: #990000; font-weight: bold; } /* Name.Function */
42
+ .highlight .nl { color: #990000; font-weight: bold; } /* Name.Label */
43
+ .highlight .nn { color: #555555; } /* Name.Namespace */
44
+ .highlight .nt { color: #000080; } /* Name.Tag */
45
+ .highlight .nv { color: #008080; } /* Name.Variable */
46
+ .highlight .ow { color: #000000; font-weight: bold; } /* Operator.Word */
47
+ .highlight .w { color: #bbbbbb; } /* Text.Whitespace */
48
+ .highlight .mf { color: #009999; } /* Literal.Number.Float */
49
+ .highlight .mh { color: #009999; } /* Literal.Number.Hex */
50
+ .highlight .mi { color: #009999; } /* Literal.Number.Integer */
51
+ .highlight .mo { color: #009999; } /* Literal.Number.Oct */
52
+ .highlight .sb { color: #d01040; } /* Literal.String.Backtick */
53
+ .highlight .sc { color: #d01040; } /* Literal.String.Char */
54
+ .highlight .sd { color: #d01040; } /* Literal.String.Doc */
55
+ .highlight .s2 { color: #d01040; } /* Literal.String.Double */
56
+ .highlight .se { color: #d01040; } /* Literal.String.Escape */
57
+ .highlight .sh { color: #d01040; } /* Literal.String.Heredoc */
58
+ .highlight .si { color: #d01040; } /* Literal.String.Interpol */
59
+ .highlight .sx { color: #d01040; } /* Literal.String.Other */
60
+ .highlight .sr { color: #009926; } /* Literal.String.Regex */
61
+ .highlight .s1 { color: #d01040; } /* Literal.String.Single */
62
+ .highlight .ss { color: #990073; } /* Literal.String.Symbol */
63
+ .highlight .bp { color: #999999; } /* Name.Builtin.Pseudo */
64
+ .highlight .vc { color: #008080; } /* Name.Variable.Class */
65
+ .highlight .vg { color: #008080; } /* Name.Variable.Global */
66
+ .highlight .vi { color: #008080; } /* Name.Variable.Instance */
67
+ .highlight .il { color: #009999; } /* Literal.Number.Integer.Long */
68
+
69
+ /* --- custom light colors --- */
70
+ --highlight-bg-color: #f7f7f7;
71
+ --highlighter-rouge-color: #2f2f2f;
72
+ --highlight-lineno-color: #c2c6cc;
73
+ --inline-code-bg: #f3f3f3;
74
+ --code-header-text-color: #a3a3b1;
75
+ --code-header-muted-color: #ebebeb;
76
+ --code-header-icon-color: #d1d1d1;
77
+ --clipboard-checked-color: #43c743;
78
+
79
+ [class^=prompt-] {
80
+ --inline-code-bg: #fbfafa;
81
+ --highlighter-rouge-color: rgb(82 82 82);
82
+ }
83
+
84
+ } /* light-syntax */
@@ -0,0 +1,94 @@
1
+ /*
2
+ * The syntax light mode typography colors
3
+ */
4
+
5
+ @mixin light-scheme {
6
+ /* Framework color */
7
+ --body-bg: #fafafa;
8
+ --mask-bg: #c1c3c5;
9
+ --main-wrapper-bg: white;
10
+ --main-border-color: #f3f3f3;
11
+
12
+ /* Common color */
13
+ --text-color: #34343c;
14
+ --text-muted-color: gray;
15
+ --heading-color: black;
16
+ --blockquote-border-color: #eee;
17
+ --blockquote-text-color: #9a9a9a;
18
+ --link-color: #2a408e;
19
+ --link-underline-color: #dee2e6;
20
+ --button-bg: #fff;
21
+ --btn-border-color: #e9ecef;
22
+ --btn-backtotop-color: #686868;
23
+ --btn-backtotop-border-color: #f1f1f1;
24
+ --btn-box-shadow: #eaeaea;
25
+ --checkbox-color: #c5c5c5;
26
+ --checkbox-checked-color: #07a8f7;
27
+
28
+ /* Sidebar */
29
+ --sidebar-bg: #eeeeee;
30
+ --sidebar-muted-color: #a2a19f;
31
+ --sidebar-active-color: #424242;
32
+ --nav-cursor-color: #757575;
33
+ --sidebar-btn-bg: white;
34
+
35
+ /* Topbar */
36
+ --topbar-text-color: rgb(78, 78, 78);
37
+ --topbar-wrapper-bg: white;
38
+ --search-wrapper-bg: rgb(245 245 245 / 50%);
39
+ --search-wrapper-border-color: rgb(245 245 245);
40
+ --search-tag-bg: #f8f9fa;
41
+ --search-icon-color: #c2c6cc;
42
+ --input-focus-border-color: var(--btn-border-color);
43
+
44
+ /* Home page */
45
+ --post-list-text-color: dimgray;
46
+ --btn-patinator-text-color: #555555;
47
+ --btn-paginator-hover-color: var(--sidebar-bg);
48
+ --btn-paginator-border-color: var(--sidebar-bg);
49
+ --btn-text-color: #676666;
50
+ --pin-bg: #f5f5f5;
51
+ --pin-color: #999fa4;
52
+
53
+ /* Posts */
54
+ --btn-share-hover-color: var(--link-color);
55
+ --card-border-color: #f1f1f1;
56
+ --card-box-shadow: rgba(234, 234, 234, 0.7686274509803922);
57
+ --label-color: #616161;
58
+ --relate-post-date: rgba(30, 55, 70, 0.4);
59
+ --footnote-target-bg: lightcyan;
60
+ --tag-bg: rgba(0, 0, 0, 0.075);
61
+ --tag-border: #dee2e6;
62
+ --tag-shadow: var(--btn-border-color);
63
+ --tag-hover: rgb(222, 226, 230);
64
+ --tb-odd-bg: #fbfcfd;
65
+ --tb-border-color: #eaeaea;
66
+ --dash-color: silver;
67
+ --preview-img-bg: radial-gradient(circle, rgb(255 255 255) 0%, rgb(249 249 249) 100%);
68
+ --kbd-wrap-color: #bdbdbd;
69
+ --kbd-text-color: var(--text-color);
70
+ --kbd-bg-color: white;
71
+ --prompt-text-color: rgb(46 46 46 / 77%);
72
+ --prompt-tip-bg: rgb(123 247 144 / 20%);
73
+ --prompt-tip-icon-color: #03b303;
74
+ --prompt-info-bg: #e1f5fe;
75
+ --prompt-info-icon-color: #0070cb;
76
+ --prompt-warning-bg: rgb(255 243 205);
77
+ --prompt-warning-icon-color: #ef9c03;
78
+ --prompt-danger-bg: rgb(248 215 218 / 56%);
79
+ --prompt-danger-icon-color: #df3c30;
80
+
81
+ [class^=prompt-] {
82
+ --link-underline-color: rgb(219 216 216);
83
+ }
84
+
85
+ /* Categories */
86
+ --categories-hover-bg: var(--btn-border-color);
87
+ --categories-icon-hover-color: darkslategray;
88
+
89
+ /* Archive */
90
+ --timeline-color: rgba(0, 0, 0, 0.075);
91
+ --timeline-node-bg: #c2c6cc;
92
+ --timeline-year-dot-color: #ffffff;
93
+
94
+ } /* light-scheme */
@@ -0,0 +1,24 @@
1
+ /*!
2
+ * The styles for Jekyll theme Chirpy
3
+ *
4
+ * Chirpy v5.2.3 (https://github.com/abd3lraouf/jekyll-theme-abd3lraouf)
5
+ * © 2019 Cotes Chung
6
+ * MIT Licensed
7
+ */
8
+
9
+ @import
10
+ "colors/light-typography",
11
+ "colors/dark-typography",
12
+
13
+ "addon/module",
14
+ "addon/variables",
15
+ "variables-hook",
16
+ "addon/syntax",
17
+ "addon/commons",
18
+
19
+ "layout/home",
20
+ "layout/post",
21
+ "layout/tags",
22
+ "layout/archives",
23
+ "layout/categories",
24
+ "layout/category-tag";
@@ -0,0 +1,147 @@
1
+ /*
2
+ Style for Archives
3
+ */
4
+
5
+ %date-timeline {
6
+ content: "";
7
+ width: 4px;
8
+ left: 75px;
9
+ display: inline-block;
10
+ float: left;
11
+ position: relative;
12
+ background-color: var(--timeline-color);
13
+ }
14
+
15
+ #archives {
16
+ letter-spacing: 0.03rem;
17
+
18
+ span.lead {
19
+ font-size: 1.5rem;
20
+ position: relative;
21
+ left: 8px;
22
+
23
+ &::after { /* Year dot */
24
+ content: "";
25
+ display: block;
26
+ position: relative;
27
+ -webkit-border-radius: 50%;
28
+ -moz-border-radius: 50%;
29
+ border-radius: 50%;
30
+ width: 12px;
31
+ height: 12px;
32
+ top: -26px;
33
+ left: 63px;
34
+ border: 3px solid;
35
+ background-color: var(--timeline-year-dot-color);
36
+ border-color: var(--timeline-node-bg);
37
+ box-shadow: 0 0 2px 0 #c2c6cc;
38
+ z-index: 1;
39
+ }
40
+
41
+ &:not(:first-child) {
42
+ position: relative;
43
+ left: 4px;
44
+
45
+ &::after {
46
+ left: 67px;
47
+ }
48
+ }
49
+
50
+ } // #archives span.lead
51
+
52
+ ul {
53
+ li {
54
+ font-size: 1.1rem;
55
+ line-height: 3rem;
56
+
57
+ div {
58
+ white-space: nowrap;
59
+ overflow: hidden;
60
+ text-overflow: ellipsis;
61
+
62
+ a {
63
+ /* post title in Archvies */
64
+ margin-left: 2.5rem;
65
+ position: relative;
66
+ top: 0.1rem;
67
+ }
68
+ }
69
+
70
+ &:nth-child(odd) {
71
+ background-color: var(--main-wrapper-bg, #fff);
72
+ background-image: linear-gradient(to left, #fff, #fbfbfb, #fbfbfb, #fbfbfb, #fff);
73
+ }
74
+
75
+ &::after {
76
+ @extend %date-timeline;
77
+
78
+ height: 2.8rem;
79
+ top: -1.3rem;
80
+ }
81
+
82
+ &:first-child::before {
83
+ @extend %date-timeline;
84
+
85
+ height: 3.06rem;
86
+ top: -1.61rem;
87
+ }
88
+ }
89
+
90
+ &:not(:last-child) > li:last-child::after {
91
+ height: 3.4rem;
92
+ }
93
+
94
+ &:last-child > li:last-child::after {
95
+ display: none;
96
+ }
97
+ } // #archives ul
98
+
99
+ .date {
100
+ white-space: nowrap;
101
+ display: inline-block;
102
+
103
+ &.month {
104
+ width: 1.4rem;
105
+ text-align: center;
106
+
107
+ ~ a::before {
108
+ /* A dot for Month and Day */
109
+ content: "";
110
+ display: inline-block;
111
+ position: relative;
112
+ -webkit-border-radius: 50%;
113
+ -moz-border-radius: 50%;
114
+ border-radius: 50%;
115
+ width: 8px;
116
+ height: 8px;
117
+ float: left;
118
+ top: 1.35rem;
119
+ left: 69px;
120
+ background-color: var(--timeline-node-bg);
121
+ box-shadow: 0 0 3px 0 #c2c6cc;
122
+ z-index: 1;
123
+ }
124
+ }
125
+
126
+ &.day {
127
+ font-size: 85%;
128
+ font-family: 'Lato', sans-serif;
129
+ text-align: center;
130
+ margin-right: -2px;
131
+ width: 1.2rem;
132
+ position: relative;
133
+ left: -0.15rem;
134
+ }
135
+ } // #archives .date
136
+
137
+ } // #archives
138
+
139
+ @media all and (max-width: 576px) {
140
+ #archives {
141
+ margin-top: -1rem;
142
+
143
+ ul {
144
+ letter-spacing: 0;
145
+ }
146
+ }
147
+ }
@@ -0,0 +1,67 @@
1
+ /*
2
+ Style for Tab Categories
3
+ */
4
+
5
+ %category-icon-color {
6
+ color: gray;
7
+ }
8
+
9
+ .categories {
10
+ margin-bottom: 2rem;
11
+
12
+ .card-header {
13
+ padding-right: 12px;
14
+ }
15
+
16
+ i {
17
+ @extend %category-icon-color;
18
+
19
+ font-size: 86%; // fontawesome icons
20
+ }
21
+
22
+ .list-group-item {
23
+ border-left: none;
24
+ border-right: none;
25
+ padding-left: 2rem;
26
+
27
+ &:first-child {
28
+ border-top-left-radius: 0;
29
+ border-top-right-radius: 0;
30
+ }
31
+
32
+ }
33
+
34
+ } // .categories
35
+
36
+ .category-trigger {
37
+ width: 1.7rem;
38
+ height: 1.7rem;
39
+ border-radius: 50%;
40
+ text-align: center;
41
+ color: #6c757d !important;
42
+
43
+ &:hover {
44
+ i {
45
+ color: var(--categories-icon-hover-color);
46
+ }
47
+ }
48
+
49
+ i {
50
+ position: relative;
51
+ height: 0.7rem;
52
+ width: 1rem;
53
+ transition: transform 300ms ease;
54
+ }
55
+ }
56
+
57
+ @media (hover: hover) { // only works on desktop
58
+ .category-trigger:hover {
59
+ background-color: var(--categories-hover-bg);
60
+ }
61
+ }
62
+
63
+ .rotate {
64
+ -ms-transform: rotate(-90deg); /* IE 9 */
65
+ -webkit-transform: rotate(-90deg); /* Safari 3-8 */
66
+ transform: rotate(-90deg);
67
+ }
@@ -0,0 +1,73 @@
1
+ /*
2
+ Style for page Category and Tag
3
+ */
4
+
5
+ .dash {
6
+ margin: 0 0.5rem 0.6rem 0.5rem;
7
+ border-bottom: 2px dotted var(--dash-color);
8
+ }
9
+
10
+ #page-category,
11
+ #page-tag {
12
+ ul > li {
13
+ line-height: 1.5rem;
14
+ padding: 0.6rem 0;
15
+
16
+ &::before { // dot
17
+ background: #999;
18
+ width: 5px;
19
+ height: 5px;
20
+ border-radius: 50%;
21
+ display: block;
22
+ content: "";
23
+ position: relative;
24
+ top: 0.6rem;
25
+ margin-right: 0.5rem;
26
+ }
27
+
28
+ > a { /* post's title */
29
+ @extend %no-bottom-border;
30
+
31
+ font-size: 1.1rem;
32
+ }
33
+
34
+ > span:last-child {
35
+ white-space: nowrap;
36
+ } /* post's date */
37
+ }
38
+ }
39
+
40
+ #page-tag h1 > i { // tag icon
41
+ font-size: 1.2rem;
42
+ }
43
+
44
+ #page-category h1 > i {
45
+ font-size: 1.25rem;
46
+ }
47
+
48
+ #page-category,
49
+ #page-tag,
50
+ #access-lastmod {
51
+ a:hover {
52
+ @extend %link-hover;
53
+
54
+ margin-bottom: -1px; // Avoid jumping
55
+ }
56
+ }
57
+
58
+ @media all and (max-width: 576px) {
59
+ #page-category,
60
+ #page-tag {
61
+ ul > li {
62
+ &::before {
63
+ margin: 0 0.5rem;
64
+ }
65
+
66
+ > a {
67
+ white-space: nowrap;
68
+ overflow: hidden;
69
+ text-overflow: ellipsis;
70
+ }
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,184 @@
1
+ /*
2
+ Style for Homepage
3
+ */
4
+
5
+ .pagination {
6
+ color: var(--btn-patinator-text-color);
7
+ font-family: 'Lato', sans-serif;
8
+
9
+ a:hover {
10
+ text-decoration: none;
11
+ }
12
+
13
+ .page-item {
14
+ .page-link {
15
+ color: inherit;
16
+ width: 2.5rem;
17
+ height: 2.5rem;
18
+ padding: 0;
19
+ display: -webkit-box;
20
+ -webkit-box-pack: center;
21
+ -webkit-box-align: center;
22
+ border-radius: 50%;
23
+ border: 1px solid var(--btn-paginator-border-color);
24
+ background-color: var(--button-bg);
25
+
26
+ &:hover {
27
+ background-color: var(--btn-paginator-hover-color);
28
+ }
29
+ }
30
+
31
+ &.active {
32
+ .page-link {
33
+ background-color: var(--btn-paginator-hover-color);
34
+ color: var(--btn-text-color);
35
+ }
36
+ }
37
+
38
+ &.disabled {
39
+ cursor: not-allowed;
40
+
41
+ .page-link {
42
+ color: rgba(108, 117, 125, 0.57);
43
+ border-color: var(--btn-paginator-border-color);
44
+ background-color: var(--button-bg);
45
+ }
46
+ }
47
+
48
+ &:first-child .page-link,
49
+ &:last-child .page-link {
50
+ border-radius: 50%;
51
+ }
52
+ } // .page-item
53
+
54
+ } // .pagination
55
+
56
+ #post-list {
57
+ margin-top: 1rem;
58
+ padding-right: 0.5rem;
59
+
60
+ .post-preview {
61
+ padding-top: 1.5rem;
62
+ padding-bottom: 1rem;
63
+ border-bottom: 1px solid var(--main-border-color);
64
+
65
+ a:hover {
66
+ @extend %link-hover;
67
+ }
68
+
69
+ h1 {
70
+ font-size: 1.4rem;
71
+ margin: 0;
72
+ }
73
+
74
+ .post-meta {
75
+ i {
76
+ font-size: 0.73rem;
77
+
78
+ &:not(:first-child) {
79
+ margin-left: 1.2rem;
80
+ }
81
+ }
82
+
83
+ em {
84
+ @extend %normal-font-style;
85
+ }
86
+ }
87
+
88
+ .post-content {
89
+ margin-top: 0.6rem;
90
+ margin-bottom: 0.6rem;
91
+ color: var(--post-list-text-color);
92
+
93
+ > p {
94
+ /* Make preview shorter on the homepage */
95
+ margin: 0;
96
+ overflow: hidden;
97
+ text-overflow: ellipsis;
98
+ display: -webkit-box;
99
+ -webkit-line-clamp: 2;
100
+ -webkit-box-orient: vertical;
101
+ }
102
+ }
103
+
104
+ .pin {
105
+ > i {
106
+ transform: rotate(45deg);
107
+ padding-left: 3px;
108
+ color: var(--pin-color);
109
+ }
110
+
111
+ > span {
112
+ display: none;
113
+ }
114
+ }
115
+
116
+ } // .post-preview
117
+ } // #post-list
118
+
119
+ /* Hide SideBar and TOC */
120
+ @media all and (max-width: 830px) {
121
+ .pagination {
122
+ justify-content: space-evenly;
123
+
124
+ .page-item {
125
+ &:not(:first-child):not(:last-child) {
126
+ display: none;
127
+ }
128
+
129
+ }
130
+
131
+ }
132
+ }
133
+
134
+ /* Sidebar is visible */
135
+ @media all and (min-width: 831px) {
136
+ #post-list {
137
+ margin-top: 1.5rem;
138
+
139
+ .post-preview .post-meta {
140
+ .pin {
141
+ background: var(--pin-bg);
142
+ border-radius: 5px;
143
+ line-height: 1.4rem;
144
+ height: 1.3rem;
145
+ margin-top: 3px;
146
+ padding-left: 1px;
147
+ padding-right: 6px;
148
+
149
+ > span {
150
+ display: inline;
151
+ }
152
+ }
153
+ }
154
+ }
155
+
156
+ .pagination {
157
+ font-size: 0.85rem;
158
+
159
+ .page-item {
160
+ &:not(:last-child) {
161
+ margin-right: 0.7rem;
162
+ }
163
+
164
+ .page-link {
165
+ width: 2rem;
166
+ height: 2rem;
167
+ }
168
+
169
+ }
170
+
171
+ .page-index {
172
+ display: none;
173
+ }
174
+
175
+ } // .pagination
176
+
177
+ }
178
+
179
+ /* Pannel hidden */
180
+ @media all and (max-width: 1200px) {
181
+ #post-list {
182
+ padding-right: 0;
183
+ }
184
+ }