jekyll-theme-peaceful-gates 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +49 -0
  4. data/_includes/head.html +43 -0
  5. data/_includes/menu.html +45 -0
  6. data/_includes/page-header.html +13 -0
  7. data/_includes/social-bar.html +43 -0
  8. data/_layouts/centered.html +13 -0
  9. data/_layouts/default.html +12 -0
  10. data/_layouts/index.html +17 -0
  11. data/_layouts/page.html +11 -0
  12. data/_layouts/post-index.html +26 -0
  13. data/_layouts/post.html +21 -0
  14. data/_sass/fontawesome/_animated.scss +20 -0
  15. data/_sass/fontawesome/_bordered-pulled.scss +20 -0
  16. data/_sass/fontawesome/_core.scss +21 -0
  17. data/_sass/fontawesome/_fixed-width.scss +6 -0
  18. data/_sass/fontawesome/_icons.scss +1410 -0
  19. data/_sass/fontawesome/_larger.scss +23 -0
  20. data/_sass/fontawesome/_list.scss +18 -0
  21. data/_sass/fontawesome/_mixins.scss +56 -0
  22. data/_sass/fontawesome/_rotated-flipped.scss +24 -0
  23. data/_sass/fontawesome/_screen-reader.scss +5 -0
  24. data/_sass/fontawesome/_shims.scss +2066 -0
  25. data/_sass/fontawesome/_stacked.scss +31 -0
  26. data/_sass/fontawesome/_variables.scss +1427 -0
  27. data/_sass/fontawesome/brands.scss +23 -0
  28. data/_sass/fontawesome/fontawesome.scss +16 -0
  29. data/_sass/fontawesome/regular.scss +23 -0
  30. data/_sass/fontawesome/solid.scss +24 -0
  31. data/_sass/fontawesome/v4-shims.scss +6 -0
  32. data/_sass/jekyll-theme-peaceful-gates.scss +17 -0
  33. data/_sass/jekyll-theme-peaceful-gates/_base.scss +75 -0
  34. data/_sass/jekyll-theme-peaceful-gates/_button.scss +65 -0
  35. data/_sass/jekyll-theme-peaceful-gates/_centered.scss +29 -0
  36. data/_sass/jekyll-theme-peaceful-gates/_code.scss +121 -0
  37. data/_sass/jekyll-theme-peaceful-gates/_footer.scss +36 -0
  38. data/_sass/jekyll-theme-peaceful-gates/_menu.scss +103 -0
  39. data/_sass/jekyll-theme-peaceful-gates/_page.scss +70 -0
  40. data/_sass/jekyll-theme-peaceful-gates/_theme.scss +36 -0
  41. data/_sass/jekyll-theme-peaceful-gates/_util.scss +35 -0
  42. data/_sass/jekyll-theme-peaceful-gates/_variables.scss +29 -0
  43. data/assets/css/main.scss +3 -0
  44. data/assets/fonts/consolas.ttf +0 -0
  45. data/assets/fonts/fa-brands-400.eot +0 -0
  46. data/assets/fonts/fa-brands-400.svg +3570 -0
  47. data/assets/fonts/fa-brands-400.ttf +0 -0
  48. data/assets/fonts/fa-brands-400.woff +0 -0
  49. data/assets/fonts/fa-brands-400.woff2 +0 -0
  50. data/assets/fonts/fa-regular-400.eot +0 -0
  51. data/assets/fonts/fa-regular-400.svg +803 -0
  52. data/assets/fonts/fa-regular-400.ttf +0 -0
  53. data/assets/fonts/fa-regular-400.woff +0 -0
  54. data/assets/fonts/fa-regular-400.woff2 +0 -0
  55. data/assets/fonts/fa-solid-900.eot +0 -0
  56. data/assets/fonts/fa-solid-900.svg +4700 -0
  57. data/assets/fonts/fa-solid-900.ttf +0 -0
  58. data/assets/fonts/fa-solid-900.woff +0 -0
  59. data/assets/fonts/fa-solid-900.woff2 +0 -0
  60. data/assets/images/showcase/landscape-photo.jpg +0 -0
  61. data/assets/images/showcase/portrait-photo.jpg +0 -0
  62. data/assets/images/showcase/square-photo.jpg +0 -0
  63. data/assets/js/darkmode-toggle.js +45 -0
  64. data/assets/js/menu-slide.js +14 -0
  65. data/assets/js/table-layout.js +14 -0
  66. metadata +149 -0
@@ -0,0 +1,45 @@
1
+ $(function() {
2
+ // Get body jQuery
3
+ let $body = $('body')
4
+
5
+ /**
6
+ * Enable darkmode
7
+ */
8
+ function darkmodeEnable() {
9
+ $body.addClass('darkmode')
10
+ console.log('Darkmode enabled!')
11
+ }
12
+
13
+ /**
14
+ * Disable darkmode
15
+ */
16
+ function darkmodeDisable() {
17
+ $body.removeClass('darkmode')
18
+ console.log('Darkmode disabled!')
19
+ }
20
+
21
+ // Get darkmode from localstorage
22
+ let darkmode = localStorage.getItem('darkmode') || 'off'
23
+ console.log('Darkmode:', darkmode)
24
+
25
+ // Set initial darkmode
26
+ if (darkmode === 'on') darkmodeEnable();
27
+ else darkmodeDisable();
28
+
29
+ // Darkmode toggle
30
+ $('#toggle-darkmode').click(function() {
31
+ console.group('Darkmode Toggle')
32
+ console.log('Current darkmode:', darkmode)
33
+ if (darkmode === 'on') {
34
+ darkmodeDisable();
35
+ darkmode = 'off';
36
+ }
37
+ else {
38
+ darkmodeEnable()
39
+ darkmode = 'on'
40
+ }
41
+ console.log('Next darkmode:', darkmode)
42
+ localStorage.setItem('darkmode', darkmode)
43
+ console.groupEnd()
44
+ })
45
+ })
@@ -0,0 +1,14 @@
1
+ $(function() {
2
+ $('#open-menu').click(function() {
3
+ $('#menu-window').show()
4
+ $('body').addClass('scroll-lock')
5
+ $('#menu').animate({ left: '0%' }, 400)
6
+ })
7
+
8
+ $('#close-menu').click(function() {
9
+ $('#menu').animate({ left: '-100%' }, 400, function() {
10
+ $('body').removeClass('scroll-lock')
11
+ $('#menu-window').hide()
12
+ })
13
+ })
14
+ })
@@ -0,0 +1,14 @@
1
+ $(function() {
2
+ $('.horizontal-scroll > table').each(function() {
3
+ // Get cell width from longest line in table
4
+ let cellWidth = $(this)
5
+ .find('th,td')
6
+ .map(function() { return parseInt($(this).outerWidth()) })
7
+ .get()
8
+ .reduce((a, b) => Math.max(a, b))
9
+ console.log('Table Cell Width:', cellWidth)
10
+
11
+ // Set minimum width of table cell to width of longest element
12
+ $(this).find('th,td').css('min-width', cellWidth)
13
+ })
14
+ })
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-peaceful-gates
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ platform: ruby
6
+ authors:
7
+ - andydevs
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.1'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ description:
56
+ email:
57
+ - akanshul97@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/head.html
65
+ - _includes/menu.html
66
+ - _includes/page-header.html
67
+ - _includes/social-bar.html
68
+ - _layouts/centered.html
69
+ - _layouts/default.html
70
+ - _layouts/index.html
71
+ - _layouts/page.html
72
+ - _layouts/post-index.html
73
+ - _layouts/post.html
74
+ - _sass/fontawesome/_animated.scss
75
+ - _sass/fontawesome/_bordered-pulled.scss
76
+ - _sass/fontawesome/_core.scss
77
+ - _sass/fontawesome/_fixed-width.scss
78
+ - _sass/fontawesome/_icons.scss
79
+ - _sass/fontawesome/_larger.scss
80
+ - _sass/fontawesome/_list.scss
81
+ - _sass/fontawesome/_mixins.scss
82
+ - _sass/fontawesome/_rotated-flipped.scss
83
+ - _sass/fontawesome/_screen-reader.scss
84
+ - _sass/fontawesome/_shims.scss
85
+ - _sass/fontawesome/_stacked.scss
86
+ - _sass/fontawesome/_variables.scss
87
+ - _sass/fontawesome/brands.scss
88
+ - _sass/fontawesome/fontawesome.scss
89
+ - _sass/fontawesome/regular.scss
90
+ - _sass/fontawesome/solid.scss
91
+ - _sass/fontawesome/v4-shims.scss
92
+ - _sass/jekyll-theme-peaceful-gates.scss
93
+ - _sass/jekyll-theme-peaceful-gates/_base.scss
94
+ - _sass/jekyll-theme-peaceful-gates/_button.scss
95
+ - _sass/jekyll-theme-peaceful-gates/_centered.scss
96
+ - _sass/jekyll-theme-peaceful-gates/_code.scss
97
+ - _sass/jekyll-theme-peaceful-gates/_footer.scss
98
+ - _sass/jekyll-theme-peaceful-gates/_menu.scss
99
+ - _sass/jekyll-theme-peaceful-gates/_page.scss
100
+ - _sass/jekyll-theme-peaceful-gates/_theme.scss
101
+ - _sass/jekyll-theme-peaceful-gates/_util.scss
102
+ - _sass/jekyll-theme-peaceful-gates/_variables.scss
103
+ - assets/css/main.scss
104
+ - assets/fonts/consolas.ttf
105
+ - assets/fonts/fa-brands-400.eot
106
+ - assets/fonts/fa-brands-400.svg
107
+ - assets/fonts/fa-brands-400.ttf
108
+ - assets/fonts/fa-brands-400.woff
109
+ - assets/fonts/fa-brands-400.woff2
110
+ - assets/fonts/fa-regular-400.eot
111
+ - assets/fonts/fa-regular-400.svg
112
+ - assets/fonts/fa-regular-400.ttf
113
+ - assets/fonts/fa-regular-400.woff
114
+ - assets/fonts/fa-regular-400.woff2
115
+ - assets/fonts/fa-solid-900.eot
116
+ - assets/fonts/fa-solid-900.svg
117
+ - assets/fonts/fa-solid-900.ttf
118
+ - assets/fonts/fa-solid-900.woff
119
+ - assets/fonts/fa-solid-900.woff2
120
+ - assets/images/showcase/landscape-photo.jpg
121
+ - assets/images/showcase/portrait-photo.jpg
122
+ - assets/images/showcase/square-photo.jpg
123
+ - assets/js/darkmode-toggle.js
124
+ - assets/js/menu-slide.js
125
+ - assets/js/table-layout.js
126
+ homepage: https://github.com/andydevs/jekyll-theme-peaceful-gates
127
+ licenses:
128
+ - MIT
129
+ metadata: {}
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubygems_version: 3.0.3
146
+ signing_key:
147
+ specification_version: 4
148
+ summary: Theme for Andydevs blog
149
+ test_files: []