jekyll-theme-persephone 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +52 -0
  4. data/_includes/assets.html +14 -0
  5. data/_includes/comment.html +35 -0
  6. data/_includes/comments.html +18 -0
  7. data/_includes/contact.html +7 -0
  8. data/_includes/footer.html +5 -0
  9. data/_includes/head.html +10 -0
  10. data/_includes/header.html +24 -0
  11. data/_includes/header_nav.html +10 -0
  12. data/_includes/icons.html +42 -0
  13. data/_includes/icons/ellipsis.html +5 -0
  14. data/_includes/icons/facebook.html +2 -0
  15. data/_includes/icons/github.html +3 -0
  16. data/_includes/icons/instagram.html +5 -0
  17. data/_includes/icons/left.html +3 -0
  18. data/_includes/icons/link.html +4 -0
  19. data/_includes/icons/linkedin.html +5 -0
  20. data/_includes/icons/mail.html +4 -0
  21. data/_includes/icons/right.html +3 -0
  22. data/_includes/icons/rss.html +5 -0
  23. data/_includes/icons/smile.html +6 -0
  24. data/_includes/icons/twitter.html +3 -0
  25. data/_includes/icons/user.html +4 -0
  26. data/_includes/icons/weibo.html +3 -0
  27. data/_includes/loading.html +4 -0
  28. data/_includes/new_comment.html +50 -0
  29. data/_includes/pagination.html +29 -0
  30. data/_includes/slides.html +53 -0
  31. data/_includes/smiley.html +12 -0
  32. data/_includes/summary.html +30 -0
  33. data/_includes/title.html +7 -0
  34. data/_layouts/404.html +8 -0
  35. data/_layouts/archive.html +33 -0
  36. data/_layouts/blog.html +29 -0
  37. data/_layouts/book.html +28 -0
  38. data/_layouts/chapter.html +32 -0
  39. data/_layouts/default.html +7 -0
  40. data/_layouts/home.html +6 -0
  41. data/_layouts/list.html +33 -0
  42. data/_layouts/page.html +17 -0
  43. data/_layouts/post.html +42 -0
  44. data/_sass/persephone.scss +29 -0
  45. data/_sass/persephone/_archive.scss +140 -0
  46. data/_sass/persephone/_blog.scss +190 -0
  47. data/_sass/persephone/_book.scss +120 -0
  48. data/_sass/persephone/_chapter.scss +192 -0
  49. data/_sass/persephone/_comments.scss +208 -0
  50. data/_sass/persephone/_common.scss +110 -0
  51. data/_sass/persephone/_content.scss +278 -0
  52. data/_sass/persephone/_error.scss +16 -0
  53. data/_sass/persephone/_header.scss +140 -0
  54. data/_sass/persephone/_keyframes.scss +11 -0
  55. data/_sass/persephone/_list.scss +105 -0
  56. data/_sass/persephone/_minxins.scss +68 -0
  57. data/_sass/persephone/_post.scss +169 -0
  58. data/_sass/persephone/_slides.scss +264 -0
  59. data/_sass/persephone/_summary.scss +101 -0
  60. data/_sass/persephone/_variables.scss +15 -0
  61. data/assets/css/tomorrow.css +72 -0
  62. data/assets/js/highlight.js +2 -0
  63. data/assets/js/main.js +161 -0
  64. data/assets/main.scss +4 -0
  65. metadata +149 -0
@@ -0,0 +1,190 @@
1
+ .post__top_navs {
2
+ margin-bottom: 2rem;
3
+ }
4
+ .post__archive__header {
5
+ margin: 5rem 0 5rem 0;
6
+ @include flex();
7
+ flex-direction: column;
8
+ align-items: center;
9
+ h1 {
10
+ font-weight: 300;
11
+ display: inline-block;
12
+ margin: 0 auto;
13
+ position: relative;
14
+ text-transform: capitalize;
15
+ &:before, &:after {
16
+ @include pseudo();
17
+ width: 30px;
18
+ height: 1px;
19
+ top: 50%;
20
+ background-color: var(--gray);
21
+ }
22
+ &:before {
23
+ left: -40px;
24
+ }
25
+ &:after {
26
+ right: -40px;
27
+ }
28
+ }
29
+ p {
30
+ color: var(--gray);
31
+ }
32
+ }
33
+ .post__entry {
34
+ margin: 0 0 3rem 0;
35
+ .post__link {
36
+ display: block;
37
+ }
38
+ h2 {
39
+ margin-bottom: 0.75rem;
40
+ }
41
+ .post__meta {
42
+ font-size: 0.875rem;
43
+ color: var(--gray);
44
+ margin: 0.5rem 0 1rem 0;
45
+ }
46
+ .post__excerpt {
47
+ color: var(--gray);
48
+ margin: 0.5rem 0 0 0;
49
+ p {
50
+ line-height: 1.5rem;
51
+ }
52
+ }
53
+ .post__more_arrow {
54
+ margin-top: 2rem;
55
+ width: 30%;
56
+ height: 1px;
57
+ background-color: var(--light);
58
+ position: relative;
59
+ transition: all 0.35s ease-out;
60
+ display: inline-block;
61
+ &:after, &:before {
62
+ content: "";
63
+ position: absolute;
64
+ width: 15px;
65
+ height: 1px;
66
+ background-color: var(--light);
67
+ right: -2.5px;
68
+ opacity: 0;
69
+ transition: all 0.35s ease-out;
70
+ }
71
+ &:after {
72
+ transform: rotate(45deg);
73
+ top: -5px;
74
+ }
75
+ &:before {
76
+ transform: rotate(-45deg);
77
+ top: 5px;
78
+ }
79
+ }
80
+ .post__entry__link {
81
+ display: block;
82
+ }
83
+ .post__entry__link:hover {
84
+ .post__more_arrow {
85
+ width: 30px;
86
+ background-color: var(--gray);
87
+ &:before, &:after {
88
+ opacity: 1;
89
+ background-color: var(--gray);
90
+ }
91
+ }
92
+ }
93
+ .post-link.emit {
94
+ .more-arrow {
95
+ margin-left: 30%;
96
+ opacity: 0;
97
+ }
98
+ }
99
+ }
100
+ .paginiation {
101
+ text-align: center;
102
+ li {
103
+ list-style: none;
104
+ display: inline-block;
105
+ margin: 0 5px;
106
+ .pagi__link, .pagi__icon {
107
+ width: 40px;
108
+ height: 40px;
109
+ line-height: 40px;
110
+ text-align: center;
111
+ vertical-align: bottom;
112
+ display: inline-block;
113
+ position: relative;
114
+ }
115
+ .pagi__link {
116
+ &:after {
117
+ @include pseudo();
118
+ left: 0;
119
+ bottom: -1px;
120
+ width: 0;
121
+ height: 1px;
122
+ transition: all 0.35s ease-out;
123
+ background-color: var(--gray);
124
+ }
125
+ &.active {
126
+ color: var(--gray);
127
+ border-color: var(--gray);
128
+ }
129
+ &:hover {
130
+ border-color: var(--gray-light);
131
+ &:after {
132
+ width: 100%;
133
+ }
134
+ }
135
+ }
136
+ .pagi__icon {
137
+ border-radius: 50%;
138
+ .circle-progress {
139
+ stroke: var(--gray);
140
+ stroke-width: 1;
141
+ }
142
+ &:hover .circle-progress {
143
+ stroke-dasharray: 120 120;
144
+ }
145
+ .pagi__icon_arrow {
146
+ position: absolute;
147
+ width: 60%;
148
+ height: 1px;
149
+ top: calc(50% - 1px);
150
+ left: 20%;
151
+ background-color: var(--gray);
152
+ transition: all 0.25s ease-in;
153
+ &:before, &:after {
154
+ @include pseudo();
155
+ width: 50%;
156
+ height: 1px;
157
+ background-color: var(--gray);
158
+ }
159
+ }
160
+ &.next .pagi__icon_arrow {
161
+ &:before, &:after {
162
+ right: 0;
163
+ top: 0;
164
+ }
165
+ &:before {
166
+ transform-origin: bottom right;
167
+ transform: rotate(45deg);
168
+ }
169
+ &:after {
170
+ transform-origin: top right;
171
+ transform: rotate(-45deg);
172
+ }
173
+ }
174
+ &.prev .pagi__icon_arrow {
175
+ &:before, &:after {
176
+ left: 0;
177
+ top: 0;
178
+ }
179
+ &:before {
180
+ transform-origin: bottom left;
181
+ transform: rotate(45deg);
182
+ }
183
+ &:after {
184
+ transform-origin: top left;
185
+ transform: rotate(-45deg);
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
@@ -0,0 +1,120 @@
1
+ .book {
2
+ margin-left: 0;
3
+ width: 100vw;
4
+ height: 100vh;
5
+ }
6
+ .book__cover {
7
+ height: 100vh;
8
+ width: 40%;
9
+ overflow: hidden;
10
+ position: fixed;
11
+ left: 0;
12
+ top: 0;
13
+ }
14
+ .book__img {
15
+ height: 100vh;
16
+ width: auto;
17
+ }
18
+ .book__content {
19
+ width: 60%;
20
+ min-height: 100%;
21
+ margin-left: 40%;
22
+ @include flex();
23
+ @include flex-column();
24
+ //justify-content: center;
25
+ flex-wrap: nowrap;
26
+ }
27
+ .book__content_inner {
28
+ padding: 2.5rem 10%;
29
+ width: 100%;
30
+ flex: 1;
31
+ @include flex();
32
+ @include flex-column();
33
+ justify-content: center;
34
+ flex-wrap: nowrap;
35
+ }
36
+ .book__title {
37
+ margin: 2.5rem 0;
38
+ color: var(--dark);
39
+ font-size: 2.85rem;
40
+ }
41
+ .book__desc {
42
+ color: var(--dark-light);
43
+ line-height: 2rem;
44
+ }
45
+ .book__meta {
46
+ margin: 0 0 1.5rem 0;
47
+ color: var(--gray);
48
+ font-size: 0.875rem;
49
+ }
50
+ .book__icon {
51
+ display: inline-block;
52
+ width: 80px;
53
+ height: 80px;
54
+ border-radius: 50%;
55
+ position: relative;
56
+ cursor: pointer;
57
+ margin: 1.5rem 0;
58
+ }
59
+ .book__icon .circle-progress {
60
+ stroke-dasharray: 0 226;
61
+ }
62
+ .book__icon:hover .circle-progress {
63
+ stroke-dasharray: 226 226;
64
+ }
65
+ .book__icon_arrow {
66
+ position: absolute;
67
+ width: 60%;
68
+ height: 2px;
69
+ top: calc(50% - 1px);
70
+ left: 20%;
71
+ background-color: var(--gray-light);
72
+ transition: all 0.25s ease-in;
73
+ &:before, &:after {
74
+ @include pseudo();
75
+ width: 50%;
76
+ height: 2px;
77
+ background-color: var(--gray-light);
78
+ right: 0;
79
+ top: 0;
80
+ }
81
+ &:before {
82
+ transform-origin: bottom right;
83
+ transform: rotate(45deg);
84
+ }
85
+ &:after {
86
+ transform-origin: top right;
87
+ transform: rotate(-45deg);
88
+ }
89
+ }
90
+
91
+ @media screen and (max-width: 750px) {
92
+ .book {
93
+ @include flex-column;
94
+ height: auto;
95
+ min-height: 100vh;
96
+ position: relative;
97
+ }
98
+ .book__cover, .book__content {
99
+ width: 100%;
100
+ }
101
+ .book__cover {
102
+ height: 35%;
103
+ position: static;
104
+ .book__img {
105
+ width: 100%;
106
+ height: auto;
107
+ margin-top: -35%;
108
+ }
109
+ }
110
+ .book__content {
111
+ margin-left: 0;
112
+ }
113
+ .book__content_inner {
114
+ padding: 1rem 10%;
115
+ }
116
+ .book__more {
117
+ display: block;
118
+ text-align: center;
119
+ }
120
+ }
@@ -0,0 +1,192 @@
1
+ .book__wrapper {
2
+ position: relative;
3
+ min-height: 100vh;
4
+ width: 100%;
5
+ }
6
+ .book-header {
7
+ position: fixed;
8
+ top: 0;
9
+ right: 0;
10
+ width: 100%;
11
+ z-index: 7;
12
+ }
13
+ .with-summary .book-header {
14
+ width: calc(100% - 300px);
15
+ }
16
+ .book-header h1 {
17
+ margin: 0px;
18
+ font-size: 20px;
19
+ font-weight: 200;
20
+ text-align: center;
21
+ opacity: 0;
22
+ padding-left: 200px;
23
+ padding-right: 200px;
24
+ overflow: hidden;
25
+ text-overflow: ellipsis;
26
+ white-space: nowrap;
27
+ margin-top: 1.5rem;
28
+ @include transition(opacity ease 0.4s);
29
+ }
30
+ .book-header h1 a,
31
+ .book-header h1 a:hover {
32
+ color: inherit;
33
+ text-decoration: none;
34
+ }
35
+ .summary__toggler {
36
+ position: absolute;
37
+ top: 1.5rem;
38
+ left: 3rem;
39
+ width: 30px;
40
+ height: 30px;
41
+ z-index: 8;
42
+ transition: transform 0.25s linear;
43
+ transform-origin: top left;
44
+ color: var(--gray);
45
+ }
46
+ .summary__toggler.active {
47
+ transform: rotate(90deg);
48
+ }
49
+ @media (max-width: 1000px) {
50
+ .book-header h1 {
51
+ display: none;
52
+ }
53
+ }
54
+ .book-header h1 i {
55
+ display: none;
56
+ }
57
+ .book-header:hover h1 {
58
+ opacity: 1;
59
+ }
60
+ /*SUMMARY*/
61
+ .book__body {
62
+ position: absolute;
63
+ top: 0px;
64
+ right: 0px;
65
+ left: 0px;
66
+ bottom: 0px;
67
+ overflow-y: auto;
68
+ @include transition(left 250ms ease);
69
+ }
70
+ .book__body .body__inner {
71
+ position: absolute;
72
+ top: 0px;
73
+ right: 0px;
74
+ left: 0px;
75
+ bottom: 0px;
76
+ overflow-y: auto;
77
+ }
78
+ .book__wrapper.with-summary .book-summary {
79
+ left: 0px;
80
+ }
81
+ .book__wrapper.with-summary .book__body {
82
+ left: 300px;
83
+ }
84
+ @media (max-width: 1240px) {
85
+ .book__body {
86
+ @include transition(transform 250ms ease);
87
+ padding-bottom: 20px;
88
+ }
89
+ .book__body .body__inner {
90
+ position: static;
91
+ min-height: calc(100% - 50px);
92
+ }
93
+ }
94
+ @media (max-width: 600px) {
95
+ .book__wrapper.with-summary {
96
+ overflow: hidden;
97
+ }
98
+ .book__wrapper.with-summary .book__body {
99
+ left: calc(100% - 60px);
100
+ right: calc(60px - 100%);
101
+ }
102
+ .book__wrapper.with-summary .sidebar__toggler {
103
+ display: none;
104
+ }
105
+ }
106
+ .chapter__wrapper {
107
+ position: relative;
108
+ outline: none;
109
+ padding-top: 5rem;
110
+ min-height: 100vh;
111
+ @include flex();
112
+ @include flex-column();
113
+ .site-footer {
114
+ margin-top: 2.5rem;
115
+ }
116
+ }
117
+ .chapter__inner {
118
+ position: relative;
119
+ max-width: 800px;
120
+ margin: 0px auto;
121
+ padding: 1.5rem 1rem;
122
+ max-width: var(--content-width);
123
+ flex: 1;
124
+ }
125
+ /*
126
+ Right/Left buttons to change page
127
+ */
128
+ .navigation {
129
+ position: absolute;
130
+ top: 50px;
131
+ bottom: 0px;
132
+ margin: 0;
133
+ max-width: 150px;
134
+ min-width: 90px;
135
+ @include flex();
136
+ @include flex-column();
137
+ justify-content: center;
138
+ align-content: center;
139
+ align-items: center;
140
+ font-size: 40px;
141
+ color: var(--gray-light);
142
+ text-align: center;
143
+ @include transition(all 0.35s ease);
144
+ }
145
+ .navigation:hover {
146
+ text-decoration: none;
147
+ color: var(--gray);
148
+ }
149
+ .navigation.navigation-next {
150
+ right: 20px;
151
+ }
152
+ .navigation.navigation-prev {
153
+ left: 0px;
154
+ }
155
+ @media (max-width: 1240px) {
156
+ .navigation {
157
+ position: static;
158
+ top: auto;
159
+ max-width: 50%;
160
+ width: 50%;
161
+ display: inline-block;
162
+ float: left;
163
+ }
164
+ .navigation.navigation-unique {
165
+ max-width: 100%;
166
+ width: 100%;
167
+ }
168
+ }
169
+
170
+ @media screen and (max-width: 768px) {
171
+ .book__wrapper.sidebar-right .logo, .book_wrapper.sidebar-right.logo {
172
+ left: 50%;
173
+ margin-left: -20px;
174
+ }
175
+ .book-summary {
176
+ z-index: 12;
177
+ }
178
+ .summary__toggler {
179
+ left: 1.5rem;
180
+ top: 2rem;
181
+ position: absolute;
182
+ }
183
+ }
184
+ @media screen and (max-width: 600px) {
185
+ .summary__toggler.active {
186
+ left: 45px;
187
+ }
188
+ .book-header {
189
+ right: auto;
190
+ }
191
+
192
+ }