cosy-jekyll-theme 1.0.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/License +1 -1
- data/README.md +48 -21
- data/_includes/buy-me-coffee.html +1 -1
- data/_includes/footer.html +36 -49
- data/_includes/gitalk.html +4 -0
- data/_includes/head.html +54 -43
- data/_includes/header.html +2 -2
- data/_includes/read-more.html +1 -1
- data/_layouts/home.html +1 -7
- data/_layouts/page.html +2 -9
- data/_layouts/post.html +3 -27
- data/_sass/_404.scss +215 -0
- data/_sass/_gitalk.scss +1186 -0
- data/_sass/_mixins.scss +8 -1
- data/_sass/_page.scss +87 -84
- data/_sass/_reset.scss +2 -2
- data/_sass/_typography.scss +0 -1
- data/_sass/_variables.scss +1 -1
- metadata +25 -17
data/_sass/_mixins.scss
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
// --------------------
|
6
6
|
// For clearing floats like a boss h5bp.com/q
|
7
7
|
@mixin clearfix {
|
8
|
-
|
8
|
+
zoom: 1;
|
9
9
|
&:before,
|
10
10
|
&:after {
|
11
11
|
display: table;
|
@@ -19,6 +19,13 @@
|
|
19
19
|
}
|
20
20
|
}
|
21
21
|
|
22
|
+
|
23
|
+
@mixin need-dotted{
|
24
|
+
border-bottom: 1px dotted lighten($link-color, 50);
|
25
|
+
&:hover {
|
26
|
+
border-bottom-style: solid;
|
27
|
+
}
|
28
|
+
}
|
22
29
|
// Webkit-style focus
|
23
30
|
// --------------------
|
24
31
|
@mixin tab-focus() {
|
data/_sass/_page.scss
CHANGED
@@ -6,12 +6,22 @@ body {
|
|
6
6
|
overflow-x: hidden;
|
7
7
|
}
|
8
8
|
|
9
|
+
iframe {
|
10
|
+
border: 0;
|
11
|
+
}
|
9
12
|
// Main
|
10
13
|
// --------------------------------------------------
|
11
14
|
.entry,
|
12
15
|
.hentry {
|
13
16
|
@include clearfix;
|
14
|
-
h1,
|
17
|
+
h1,
|
18
|
+
h2,
|
19
|
+
h3,
|
20
|
+
h4,
|
21
|
+
h5,
|
22
|
+
h6,
|
23
|
+
p,
|
24
|
+
li {
|
15
25
|
word-wrap: break-word;
|
16
26
|
}
|
17
27
|
}
|
@@ -34,14 +44,15 @@ body {
|
|
34
44
|
margin: 0 20px;
|
35
45
|
}
|
36
46
|
.qr-text {
|
37
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAA9ElEQVRYR9VXWw7DIAwbN+Yo3HjTJqUfqSI/FNaWvwpIjeOYMOac75cw1lrjuzz2xXeEUOMNdcM2APkkmRR0YgSsincwcBsAOSXVyVRGgoEc78TAYwBk1SOm2hnYBqCyhJxzVgMonl0F7QBYM6ycL2uAjWc7IdIADYBdyDqjGu93sTij0oAaqzQiVNeVdaNqyfPXA6jEhHKunrRaf2gA5bTrh6fLSBWNygxab1cB8gFWpLYRdaXkPgB2tWSIKfs2ZDUgA3BbMreM23rCvwNwU5B9wWZgGwDUw7EvICS+mLerwM15+TBh7wS2J2T7CdsJXQ1k5j7FF35r3ynsoAAAAABJRU5ErkJggg==)
|
47
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAA9ElEQVRYR9VXWw7DIAwbN+Yo3HjTJqUfqSI/FNaWvwpIjeOYMOac75cw1lrjuzz2xXeEUOMNdcM2APkkmRR0YgSsincwcBsAOSXVyVRGgoEc78TAYwBk1SOm2hnYBqCyhJxzVgMonl0F7QBYM6ycL2uAjWc7IdIADYBdyDqjGu93sTij0oAaqzQiVNeVdaNqyfPXA6jEhHKunrRaf2gA5bTrh6fLSBWNygxab1cB8gFWpLYRdaXkPgB2tWSIKfs2ZDUgA3BbMreM23rCvwNwU5B9wWZgGwDUw7EvICS+mLerwM15+TBh7wS2J2T7CdsJXQ1k5j7FF35r3ynsoAAAAABJRU5ErkJggg==)
|
48
|
+
no-repeat;
|
38
49
|
background-size: 16px 16px;
|
39
50
|
width: 16px;
|
40
51
|
height: 16px;
|
41
52
|
display: none;
|
42
53
|
position: relative;
|
43
54
|
&::before {
|
44
|
-
content:
|
55
|
+
content: "";
|
45
56
|
position: absolute;
|
46
57
|
top: -20px;
|
47
58
|
right: -20px;
|
@@ -52,7 +63,7 @@ body {
|
|
52
63
|
.qr-code {
|
53
64
|
width: 128px;
|
54
65
|
opacity: 1;
|
55
|
-
@include transform(none)
|
66
|
+
@include transform(none);
|
56
67
|
}
|
57
68
|
}
|
58
69
|
}
|
@@ -62,16 +73,16 @@ body {
|
|
62
73
|
@include transition(0.3s all ease-in-out);
|
63
74
|
@include transform(scale(0) perspective(60px) rotateX(50deg));
|
64
75
|
width: 0;
|
65
|
-
left
|
66
|
-
top
|
76
|
+
left: -4px;
|
77
|
+
top: -4px;
|
67
78
|
z-index: 10;
|
68
|
-
>img{
|
79
|
+
> img {
|
69
80
|
box-shadow: 0 0 0 0, 0 6px 12px rgba($black, 0.5);
|
70
81
|
padding: 4px;
|
71
82
|
background-color: #fff;
|
72
83
|
}
|
73
84
|
}
|
74
|
-
@media #{$medium}{
|
85
|
+
@media #{$medium} {
|
75
86
|
@include font-size(16);
|
76
87
|
.qr-text {
|
77
88
|
display: inline-block;
|
@@ -80,13 +91,14 @@ body {
|
|
80
91
|
}
|
81
92
|
p > a,
|
82
93
|
li > a {
|
83
|
-
|
84
|
-
&:hover {
|
85
|
-
border-bottom-style: solid;
|
86
|
-
}
|
94
|
+
@include need-dotted();
|
87
95
|
}
|
88
96
|
}
|
89
97
|
|
98
|
+
.need_dotted {
|
99
|
+
@include need-dotted();
|
100
|
+
}
|
101
|
+
|
90
102
|
///sections
|
91
103
|
.content-header-title {
|
92
104
|
text-align: center;
|
@@ -117,37 +129,11 @@ body {
|
|
117
129
|
}
|
118
130
|
}
|
119
131
|
|
120
|
-
// Feature Image Caption
|
121
|
-
.image-credit {
|
122
|
-
position: absolute;
|
123
|
-
bottom: 0;
|
124
|
-
right: 0;
|
125
|
-
margin: 0 auto;
|
126
|
-
max-width: 440px;
|
127
|
-
padding: 10px 15px;
|
128
|
-
background-color: rgba($base-color, 0.5);
|
129
|
-
color: $white;
|
130
|
-
@include font-rem(12);
|
131
|
-
text-align: right;
|
132
|
-
@include border-radius(3px, 0, 0, 3px);
|
133
|
-
z-index: 10;
|
134
|
-
@media #{$medium} {
|
135
|
-
max-width: 760px;
|
136
|
-
}
|
137
|
-
@media #{$large} {
|
138
|
-
max-width: 960px;
|
139
|
-
}
|
140
|
-
a {
|
141
|
-
color: $white;
|
142
|
-
text-decoration: none;
|
143
|
-
}
|
144
|
-
}
|
145
|
-
|
146
132
|
// Single Post and Page
|
147
133
|
// --------------------------------------------------
|
148
134
|
.entry-meta {
|
149
135
|
@include font-rem(12);
|
150
|
-
margin-
|
136
|
+
margin-top: 0;
|
151
137
|
color: lighten($base-color, 60);
|
152
138
|
a {
|
153
139
|
color: lighten($base-color, 60);
|
@@ -193,9 +179,9 @@ body {
|
|
193
179
|
}
|
194
180
|
}
|
195
181
|
}
|
196
|
-
#
|
182
|
+
#gitalk-container {
|
197
183
|
margin: 20px 2px;
|
198
|
-
padding:
|
184
|
+
padding: 15px;
|
199
185
|
background-color: $white;
|
200
186
|
box-shadow: 0 0 0 1px rgba($border-color, 0.1), 0 6px 12px rgba($black, 0.1);
|
201
187
|
@include rounded(3px);
|
@@ -308,10 +294,7 @@ body {
|
|
308
294
|
}
|
309
295
|
p > a,
|
310
296
|
li > a {
|
311
|
-
|
312
|
-
&:hover {
|
313
|
-
border-bottom-style: solid;
|
314
|
-
}
|
297
|
+
@include need-dotted();
|
315
298
|
}
|
316
299
|
h3 {
|
317
300
|
margin: 0;
|
@@ -370,20 +353,6 @@ body {
|
|
370
353
|
}
|
371
354
|
}
|
372
355
|
|
373
|
-
.entry-image-index {
|
374
|
-
margin: -25px -15px 10px -15px;
|
375
|
-
position: relative;
|
376
|
-
@media #{$medium} {
|
377
|
-
margin: -30px -30px 15px -30px;
|
378
|
-
}
|
379
|
-
@media #{$large} {
|
380
|
-
margin: -50px -80px 20px -80px;
|
381
|
-
}
|
382
|
-
img {
|
383
|
-
@include border-radius(3px, 0, 0, 3px); // round image corners
|
384
|
-
}
|
385
|
-
}
|
386
|
-
|
387
356
|
// Footer
|
388
357
|
// --------------------------------------------------
|
389
358
|
.footer-wrapper {
|
@@ -394,13 +363,13 @@ body {
|
|
394
363
|
@include font-rem(14);
|
395
364
|
@media #{$medium} {
|
396
365
|
margin: 8px auto 35px auto;
|
366
|
+
@include font-rem(16);
|
397
367
|
}
|
398
368
|
a {
|
399
369
|
color: lighten($text-color, 20);
|
400
370
|
}
|
401
371
|
}
|
402
372
|
|
403
|
-
|
404
373
|
// Browser Upgrade
|
405
374
|
// --------------------------------------------------
|
406
375
|
.upgrade {
|
@@ -430,8 +399,8 @@ body {
|
|
430
399
|
@include font-rem(14);
|
431
400
|
background-color: $white;
|
432
401
|
color: $text-color;
|
433
|
-
border-width: 2px
|
434
|
-
border-style: solid
|
402
|
+
border-width: 2px;
|
403
|
+
border-style: solid;
|
435
404
|
border-color: lighten($primary, 50);
|
436
405
|
@include rounded(3px);
|
437
406
|
}
|
@@ -508,7 +477,8 @@ body {
|
|
508
477
|
color: $text-color;
|
509
478
|
}
|
510
479
|
}
|
511
|
-
&.active,
|
480
|
+
&.active,
|
481
|
+
&:hover {
|
512
482
|
a {
|
513
483
|
color: $header-active;
|
514
484
|
}
|
@@ -543,7 +513,7 @@ body {
|
|
543
513
|
padding-left: 5px;
|
544
514
|
vertical-align: middle;
|
545
515
|
height: $menu-height;
|
546
|
-
@media #{$medium}{
|
516
|
+
@media #{$medium} {
|
547
517
|
display: table-cell;
|
548
518
|
}
|
549
519
|
}
|
@@ -575,40 +545,40 @@ body {
|
|
575
545
|
}
|
576
546
|
}
|
577
547
|
|
578
|
-
.coffee{
|
548
|
+
.coffee {
|
579
549
|
width: 100%;
|
580
550
|
@include flexbox();
|
581
551
|
@include flex-direction(column);
|
582
552
|
@include align-items(center);
|
583
|
-
margin:
|
584
|
-
|
585
|
-
|
553
|
+
margin: 40px 0 10px;
|
554
|
+
position: relative;
|
555
|
+
@media #{$large} {
|
556
|
+
margin-bottom: -20px;
|
586
557
|
}
|
587
|
-
.buy-me-coffee{
|
558
|
+
.buy-me-coffee {
|
588
559
|
@extend .btn;
|
589
560
|
margin: 0 auto;
|
590
561
|
position: relative;
|
591
562
|
height: 36px;
|
592
|
-
width:
|
593
|
-
padding-left:
|
594
|
-
|
595
|
-
line-height: 18px;
|
563
|
+
width: 158px;
|
564
|
+
padding-left: 36px;
|
565
|
+
line-height: 17px;
|
596
566
|
text-align: center;
|
597
567
|
@include text-overflow(clip);
|
598
568
|
cursor: pointer;
|
599
569
|
@include user-select(none);
|
600
|
-
&:hover{
|
570
|
+
&:hover {
|
601
571
|
background-color: #222;
|
602
572
|
color: #fff;
|
603
573
|
}
|
604
|
-
&.active{
|
574
|
+
&.active {
|
605
575
|
background-color: #fff;
|
606
576
|
color: #222;
|
607
577
|
}
|
608
|
-
&::after{
|
578
|
+
&::after {
|
609
579
|
content: "";
|
610
580
|
position: absolute;
|
611
|
-
top:
|
581
|
+
top: 11px;
|
612
582
|
left: 10px;
|
613
583
|
width: 20px;
|
614
584
|
height: 13px;
|
@@ -616,16 +586,49 @@ body {
|
|
616
586
|
background-size: 20px 13px;
|
617
587
|
}
|
618
588
|
}
|
619
|
-
.my-pay-img{
|
620
|
-
width:
|
589
|
+
.my-pay-img {
|
590
|
+
width: 300px;
|
591
|
+
height: 0;
|
621
592
|
display: block;
|
622
593
|
overflow: hidden;
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
594
|
+
box-shadow: 0 0 0 0, 0 6px 12px rgba($black, 0.5);
|
595
|
+
margin: 0 auto;
|
596
|
+
position: absolute;
|
597
|
+
top: 34px;
|
598
|
+
left: 0;
|
599
|
+
right: 0;
|
600
|
+
z-index: 101;
|
601
|
+
@include transition(0.4s all ease-in-out);
|
602
|
+
@include transform(scale(0) perspective(600px) rotateX(45deg));
|
603
|
+
&.active {
|
604
|
+
height: 300px;
|
605
|
+
top: 38px;
|
628
606
|
@include transform(none);
|
629
607
|
}
|
630
608
|
}
|
631
609
|
}
|
610
|
+
|
611
|
+
.img-zoom {
|
612
|
+
cursor: -webkit-zoom-in;
|
613
|
+
cursor: -moz-zoom-in;
|
614
|
+
cursor: zoom-in;
|
615
|
+
}
|
616
|
+
|
617
|
+
.lazyload,
|
618
|
+
.lazyloading {
|
619
|
+
-webkit-filter: blur(5px);
|
620
|
+
filter: blur(5px);
|
621
|
+
transition: filter 400ms, -webkit-filter 400ms;
|
622
|
+
}
|
623
|
+
|
624
|
+
.lazyloaded {
|
625
|
+
-webkit-filter: blur(0);
|
626
|
+
filter: blur(0);
|
627
|
+
}
|
628
|
+
|
629
|
+
.share-img {
|
630
|
+
margin: 0 auto;
|
631
|
+
width: 0px;
|
632
|
+
height: 0px;
|
633
|
+
overflow: hidden;
|
634
|
+
}
|
data/_sass/_reset.scss
CHANGED
@@ -81,7 +81,7 @@ blockquote {
|
|
81
81
|
|
82
82
|
// Img border in a's and image quality
|
83
83
|
// -------------------------
|
84
|
-
img {
|
84
|
+
img,video {
|
85
85
|
/* Responsive images (ensure images don't scale beyond their parents) */
|
86
86
|
max-width: 100%; /* Part 1: Set a maxium relative to the parent */
|
87
87
|
width: auto\9; /* IE7-8 need help adjusting responsive images */
|
@@ -153,4 +153,4 @@ input[type="search"]::-webkit-search-cancel-button {
|
|
153
153
|
textarea {
|
154
154
|
overflow: auto; // Remove vertical scrollbar in IE6-9
|
155
155
|
vertical-align: top; // Readability and alignment cross-browser
|
156
|
-
}
|
156
|
+
}
|
data/_sass/_typography.scss
CHANGED
data/_sass/_variables.scss
CHANGED
metadata
CHANGED
@@ -1,57 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cosy-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tw93
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.3'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '3.3'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - ~>
|
37
|
+
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: '1.12'
|
34
40
|
type: :development
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- - ~>
|
44
|
+
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: '1.12'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rake
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ">="
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
53
|
+
version: 12.3.3
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- -
|
58
|
+
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
60
|
+
version: 12.3.3
|
55
61
|
description:
|
56
62
|
email:
|
57
63
|
- tangweiyuanyou@gmail.com
|
@@ -65,6 +71,7 @@ files:
|
|
65
71
|
- _includes/feed-footer.html
|
66
72
|
- _includes/footer.html
|
67
73
|
- _includes/gallery
|
74
|
+
- _includes/gitalk.html
|
68
75
|
- _includes/head.html
|
69
76
|
- _includes/header.html
|
70
77
|
- _includes/pagination.html
|
@@ -72,9 +79,11 @@ files:
|
|
72
79
|
- _layouts/home.html
|
73
80
|
- _layouts/page.html
|
74
81
|
- _layouts/post.html
|
82
|
+
- _sass/_404.scss
|
75
83
|
- _sass/_animations.scss
|
76
84
|
- _sass/_coderay.scss
|
77
85
|
- _sass/_elements.scss
|
86
|
+
- _sass/_gitalk.scss
|
78
87
|
- _sass/_grid.scss
|
79
88
|
- _sass/_mixins.scss
|
80
89
|
- _sass/_page.scss
|
@@ -87,25 +96,24 @@ homepage: https://github.com/tw93/tw93.github.io
|
|
87
96
|
licenses:
|
88
97
|
- MIT
|
89
98
|
metadata: {}
|
90
|
-
post_install_message:
|
99
|
+
post_install_message: Thanks for installing! You can view the live demo on http://tw93.github.io
|
91
100
|
rdoc_options: []
|
92
101
|
require_paths:
|
93
102
|
- lib
|
94
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
95
104
|
requirements:
|
96
|
-
- -
|
105
|
+
- - ">="
|
97
106
|
- !ruby/object:Gem::Version
|
98
107
|
version: '0'
|
99
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
109
|
requirements:
|
101
|
-
- -
|
110
|
+
- - ">="
|
102
111
|
- !ruby/object:Gem::Version
|
103
112
|
version: '0'
|
104
113
|
requirements: []
|
105
|
-
|
106
|
-
rubygems_version: 2.6.8
|
114
|
+
rubygems_version: 3.0.3
|
107
115
|
signing_key:
|
108
116
|
specification_version: 4
|
109
|
-
summary: cosy
|
110
|
-
No jQuery,And More concise,More geeks and Faster than other jekyll theme.
|
117
|
+
summary: cosy jekyll theme is a responsive blog template providing a good reading
|
118
|
+
experience. No jQuery,And More concise,More geeks and Faster than other jekyll theme.
|
111
119
|
test_files: []
|