type-on-strap 1.0.1 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6a9692d82ebd698111c199c686d23edeeaf64530
4
- data.tar.gz: 706429b6444e3c9312fa4ba3fba17fd61cd1a29c
2
+ SHA256:
3
+ metadata.gz: 3973f6671476c1f0a46256f0c259cc0dc7e7c25022037db4c988e55472181d5d
4
+ data.tar.gz: de702031f075277c855a40684ea8671a3ff2a8d802c3ada781b28ea469d013ad
5
5
  SHA512:
6
- metadata.gz: 58a1dd5eb49983e001770284626da5f6f3253a8da6c10e7de78371215d875bb7f5380eef84801fd765d26640f9ea9e99788f72eb3f2deb4b510b57279bcf064c
7
- data.tar.gz: fe83d3f3fa0da9014be6eba6b0af06da1403bfd171edf45214bd1cdd93f8413516f6bbcc1ac5c7a2a3bede6cbc17f30cb60d9d62bbf299587b48bc5397cfac00
6
+ metadata.gz: 42ea6467c15b771ec1e306a853cf1068c1a78f05023fbc8ee1784d460f60d21190c43a9e107bb1ae9d023825f0e0289183879d38089bc3aa78918f66c293ff09
7
+ data.tar.gz: a729300a306ccd65de050ff63515c1a7d3e3c2301a8029419efbb43c2aebd6d51faf534aaaf939a34c0a3858d48245fdb791b8c881f6655a5c5c6e8bc9fdf481
data/_includes/blog.html CHANGED
@@ -25,47 +25,4 @@
25
25
  {% endfor %}
26
26
  </div>
27
27
 
28
- {% if paginator.total_pages > 1 %}
29
- <div class="pagination" style="display: inline-block;">
30
- <div style="position: absolute; left: 35%;">
31
- {% if paginator.previous_page %}
32
- <!-- << -->
33
- {% if paginator.previous_page != 1 %}
34
- <a alt="{{ site.theme_settings.str_previous_page }}"
35
- href="{{ '/' | relative_url }}" style="margin-right:0" class="button">
36
- <i class="fa fa-angle-double-left"></i>
37
- </a>
38
- {% endif %}
39
- <!-- < previous -->
40
- <a href="{{ paginator.previous_page_path | relative_url }}" {% if paginator.previous_page != 1 %}style="margin-left:0"{% endif %} class="button">
41
- <i class="fa fa-chevron-left"></i>
42
- {{ site.theme_settings.str_previous_page }}
43
- </a>
44
- {% endif %}
45
- </div>
46
-
47
- <!-- Centering not working well on all format
48
- <div style="position: absolute; left: 50%;">
49
- <div style="position: relative; left: -50%;">
50
- {{ paginator.page }} / {{ paginator.total_pages }}
51
- </div>
52
- </div> -->
53
-
54
- <div style="position: absolute; right: 35%;">
55
- {% if paginator.next_page %}
56
- <!-- next > -->
57
- <a alt="{{ site.theme_settings.str_next_page }}"
58
- href="{{ paginator.next_page_path | relative_url }}" {% if paginator.next_page != paginator.total_pages %}style="margin-right:0"{% endif %} class="button">
59
- {{ site.theme_settings.str_next_page }}
60
- <i class="fa fa-chevron-right"></i>
61
- </a>
62
- <!-- >> -->
63
- {% if paginator.next_page != paginator.total_pages %}
64
- <a href="{{ site.paginate_path | relative_url | replace: ':num', paginator.total_pages }}" style="margin-left:0" class="button">
65
- <i class="fa fa-angle-double-right"></i>
66
- </a>
67
- {% endif %}
68
- {% endif %}
69
- </div>
70
- </div>
71
- {% endif %}
28
+ {% include blog_nav.html %}
@@ -0,0 +1,40 @@
1
+ {% if paginator.total_pages > 1 %}
2
+ <div class="pagination">
3
+ <div class="previous">
4
+
5
+ {% if paginator.previous_page and paginator.previous_page != 1%}
6
+ <!-- << -->
7
+ <a alt="{{ site.theme_settings.str_previous_page }}" href="{{ '/' | relative_url }}" style="margin-right:0.1em" class="button">
8
+ <i class="fa fa-angle-double-left"></i>
9
+ </a>
10
+ {% endif %}
11
+
12
+ <!-- < previous -->
13
+ <a href="{{ paginator.previous_page_path | relative_url }}" {% unless paginator.previous_page %}style="visibility:hidden"{% endunless %} class="button">
14
+ <i class="fa fa-chevron-left"></i>
15
+ {{ site.theme_settings.str_previous_page }}
16
+ </a>
17
+ </div>
18
+
19
+ <div class="page_number">
20
+ {{ paginator.page }} / {{ paginator.total_pages }}
21
+ </div>
22
+
23
+ <div class="next">
24
+
25
+ <!-- next > -->
26
+ <a alt="{{ site.theme_settings.str_next_page }}" href="{{ paginator.next_page_path | relative_url }}" {% unless paginator.next_page %}style="visibility:hidden"{% endunless %} class="button">
27
+ {{ site.theme_settings.str_next_page }}
28
+ <i class="fa fa-chevron-right"></i>
29
+ </a>
30
+
31
+ {% if paginator.next_page and paginator.next_page != paginator.total_pages %}
32
+ <!-- >> -->
33
+ <a href="{{ site.paginate_path | relative_url | replace: ':num', paginator.total_pages }}" style="margin-left:0.1em" class="button">
34
+ <i class="fa fa-angle-double-right"></i>
35
+ </a>
36
+ {% endif %}
37
+
38
+ </div>
39
+ </div>
40
+ {% endif %}
@@ -12,13 +12,12 @@ html { overflow-y: scroll; }
12
12
  <div class="gutter-sizer"></div>
13
13
  {% for image in site.static_files %}
14
14
  {% if image.path contains include.gallery_path %}
15
-
15
+ {% unless image.path contains '.md' %}
16
16
  <img src="{{ image.path | relative_url }}" alt="" class="grid-item" style="padding: 0;">
17
-
17
+ {% endunless %}
18
18
  {% endif %}
19
19
  {% endfor %}
20
20
  </div>
21
21
 
22
- <!-- Require JQuery >= 3.2.1 Requireas well -->
23
- <script src="{{ "/assets/js/vendor/masonry.pkgd.min.js" | relative_url }}" type="text/javascript"></script>
24
- <script src="{{ "/assets/js/vendor/imagesloaded.min.js" | relative_url }}" type="text/javascript"></script>
22
+ <script src="{{ "/assets/js/vendor/imagesloaded.min.js" | relative_url }}" type="text/javascript"></script>
23
+ <script src="{{ "/assets/js/vendor/masonry.pkgd.min.js" | relative_url }}" type="text/javascript"></script>
data/_includes/head.html CHANGED
@@ -35,10 +35,13 @@
35
35
 
36
36
  <!-- Google Fonts -->
37
37
  {% if site.theme_settings.google_fonts %}
38
- <link href="//fonts.googleapis.com/css?family={{ site.theme_settings.google_fonts }}" rel="stylesheet" type="text/css">
38
+ <link href="//fonts.googleapis.com/css?family={{ site.theme_settings.google_fonts }}" rel="stylesheet" type="text/css">
39
+ {% else %}
40
+ <link rel="stylesheet" href="{{ '/assets/css/vendor/google_fonts.min.css' | relative_url }}">
39
41
  {% endif %}
40
42
 
41
43
  <!-- KaTeX 0.8.3 -->
44
+ <!-- if you have any issue check https://github.com/KaTeX/KaTeX -->
42
45
  {% if site.theme_settings.katex %}
43
46
  <link rel="stylesheet" type="text/css" href="{{ '/assets/css/vendor/katex.min.css' | relative_url }}">
44
47
  <script src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}">
@@ -0,0 +1,50 @@
1
+ // Pagination
2
+ .pagination {
3
+ padding: $padding-small $padding-large 0 $padding-large;
4
+ display: inline-block;
5
+ text-align: center;
6
+ //margin-bottom: 2em;
7
+ width: 100%;
8
+ clear: both;
9
+
10
+ @media (max-width: 600px) {
11
+ padding: $padding-small;
12
+ }
13
+
14
+ &:before {
15
+ content: '';
16
+ display: inline-block;
17
+ height: 100%;
18
+ vertical-align: middle;
19
+ }
20
+
21
+ .page_number {
22
+ display: inline-block;
23
+ margin-top: 0.4em;
24
+
25
+ @media (max-width: 254px) {
26
+ display: none;
27
+ }
28
+ }
29
+
30
+ .button {
31
+ margin: 0em;
32
+ display: inline;
33
+
34
+ i {
35
+ vertical-align: middle;
36
+ }
37
+
38
+ @media (max-width: $break) {
39
+ display: table-cell;
40
+ }
41
+ }
42
+
43
+ .previous {
44
+ float: left;
45
+ }
46
+
47
+ .next {
48
+ float: right;
49
+ }
50
+ }
@@ -25,7 +25,6 @@
25
25
  float: left;
26
26
  border-radius: 5px;
27
27
 
28
-
29
28
  img {
30
29
  /* for image formatting in the masonry */
31
30
  display: block;
@@ -37,12 +36,11 @@
37
36
  /* --- Masonry gutter size --- */
38
37
 
39
38
  .gutter-sizer {
40
-
41
39
  width: 1%;
42
40
  }
43
41
 
44
42
  .grid-item:first-of-type {
45
- margin: 0;
43
+ margin-bottom: 1%;
46
44
  }
47
45
 
48
46
  .grid-item {
@@ -13,16 +13,16 @@
13
13
  /* --- Responsive --- */
14
14
  @media screen and (min-width: $break) {
15
15
  background-size: 120% auto;
16
- }
17
-
16
+ }
17
+
18
18
  @media screen and (max-width: $break) {
19
19
  background-size: 200% auto;
20
- }
21
-
20
+ }
21
+
22
22
  @media screen and (max-width: $sm-break) {
23
23
  background-size: 400% auto;
24
24
  }
25
-
25
+
26
26
  //For white images
27
27
  p,
28
28
  a,
@@ -53,9 +53,11 @@
53
53
  display: inline-block;
54
54
  background-size: $feature-image-size;
55
55
  border-bottom: 1px solid $border-color;
56
+
56
57
  p a {
57
58
  @extend .body-link;
58
59
  }
60
+
59
61
  img {
60
62
  width: 100%;
61
63
  padding: 0;
@@ -69,7 +71,9 @@
69
71
 
70
72
  @media (min-width: $break) {
71
73
  height: 250px;
72
- } //Smaller screen
74
+ }
75
+
76
+ //Smaller screen
73
77
  @media screen and (max-width: $break) {
74
78
  height: 150px;
75
79
  }
@@ -77,7 +81,6 @@
77
81
 
78
82
  .post-img img {
79
83
  //max-width: 100%;
80
-
81
84
  -moz-transition-timing-function: ease-out;
82
85
  -webkit-transition-timing-function: ease-out;
83
86
  transition-timing-function: ease-out;
@@ -93,24 +96,8 @@
93
96
  }
94
97
  }
95
98
  }
99
+
96
100
  .excerpt {
97
101
  margin-top: 1em;
98
102
  }
99
103
  }
100
-
101
- // Pagination
102
- .pagination {
103
- padding: $padding-small $padding-large 0 $padding-large;
104
- text-align: center;
105
- @media (max-width: 600px) {
106
- padding: $padding-small;
107
- }
108
-
109
- .button {
110
- margin: 0 1.5em;
111
- i {
112
- vertical-align: middle;
113
- }
114
- }
115
-
116
- }
@@ -22,4 +22,5 @@
22
22
  @import 'includes/navbar';
23
23
  @import 'includes/portfolio';
24
24
  @import 'includes/grid';
25
- @import 'includes/share_buttons';
25
+ @import 'includes/share_buttons';
26
+ @import 'includes/blog_nav.scss';