whiskers 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +34 -0
  4. data/LICENSE.md +12 -0
  5. data/README.md +116 -0
  6. data/bin/whiskers +4 -0
  7. data/core/whiskers/base/index.html +180 -0
  8. data/core/whiskers/base/scripts/src/app.coffee +8 -0
  9. data/core/whiskers/base/scripts/src/layouts/home.coffee +3 -0
  10. data/core/whiskers/base/scripts/src/modules/header.coffee +11 -0
  11. data/core/whiskers/base/stylesheets/app.sass +6 -0
  12. data/core/whiskers/base/stylesheets/layouts/home.sass +8 -0
  13. data/core/whiskers/base/stylesheets/layouts/layouts.sass +1 -0
  14. data/core/whiskers/base/stylesheets/modules/comment.scss +65 -0
  15. data/core/whiskers/base/stylesheets/modules/device.scss +87 -0
  16. data/core/whiskers/base/stylesheets/modules/footer.scss +104 -0
  17. data/core/whiskers/base/stylesheets/modules/grid-item.scss +97 -0
  18. data/core/whiskers/base/stylesheets/modules/header.scss +268 -0
  19. data/core/whiskers/base/stylesheets/modules/modules.sass +6 -0
  20. data/core/whiskers/base/stylesheets/modules/sample-box.sass +9 -0
  21. data/core/whiskers/base/stylesheets/plugins/plugins.sass +5 -0
  22. data/core/whiskers/base/stylesheets/plugins/sticky-footer.sass +11 -0
  23. data/core/whiskers/blog/index.html +97 -0
  24. data/core/whiskers/blog/scripts/src/app.coffee +8 -0
  25. data/core/whiskers/blog/scripts/src/layouts/home.coffee +3 -0
  26. data/core/whiskers/blog/scripts/src/modules/header.coffee +13 -0
  27. data/core/whiskers/blog/stylesheets/app.sass +6 -0
  28. data/core/whiskers/blog/stylesheets/layouts/home.sass +10 -0
  29. data/core/whiskers/blog/stylesheets/layouts/layouts.sass +1 -0
  30. data/core/whiskers/blog/stylesheets/modules/article.scss +90 -0
  31. data/core/whiskers/blog/stylesheets/modules/footer.scss +104 -0
  32. data/core/whiskers/blog/stylesheets/modules/header.scss +262 -0
  33. data/core/whiskers/blog/stylesheets/modules/hero.scss +62 -0
  34. data/core/whiskers/blog/stylesheets/modules/modules.sass +4 -0
  35. data/core/whiskers/blog/stylesheets/plugins/plugins.sass +5 -0
  36. data/core/whiskers/blog/stylesheets/plugins/sticky-footer.sass +11 -0
  37. data/core/whiskers/store/index.html +245 -0
  38. data/core/whiskers/store/scripts/src/app.coffee +8 -0
  39. data/core/whiskers/store/scripts/src/layouts/home.coffee +3 -0
  40. data/core/whiskers/store/scripts/src/modules/header.coffee +11 -0
  41. data/core/whiskers/store/stylesheets/app.sass +6 -0
  42. data/core/whiskers/store/stylesheets/layouts/home.sass +12 -0
  43. data/core/whiskers/store/stylesheets/layouts/layouts.sass +1 -0
  44. data/core/whiskers/store/stylesheets/modules/button-group.scss +92 -0
  45. data/core/whiskers/store/stylesheets/modules/card.scss +86 -0
  46. data/core/whiskers/store/stylesheets/modules/footer.scss +104 -0
  47. data/core/whiskers/store/stylesheets/modules/header.scss +339 -0
  48. data/core/whiskers/store/stylesheets/modules/hero.scss +55 -0
  49. data/core/whiskers/store/stylesheets/modules/modules.sass +6 -0
  50. data/core/whiskers/store/stylesheets/modules/pagination.scss +63 -0
  51. data/core/whiskers/store/stylesheets/plugins/plugins.sass +5 -0
  52. data/core/whiskers/store/stylesheets/plugins/sticky-footer.sass +11 -0
  53. data/lib/whiskers.rb +1 -0
  54. data/lib/whiskers/generator.rb +235 -0
  55. data/lib/whiskers/version.rb +3 -0
  56. data/ruby.version +1 -0
  57. data/whiskers.gemspec +26 -0
  58. data/whiskers.png +0 -0
  59. metadata +173 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ff07bb1245c21d2c87e4305babd9ce1c294bedb7
4
+ data.tar.gz: b5beeffa02679480d8842e66edde4d841f14021c
5
+ SHA512:
6
+ metadata.gz: 046522cfa642db7926ae1f6013839e031bb2bac1713851844fd51671eed3575e53414300a803849ea6625c9ec1e94347988f88988c1fcc9260bad14619628f7f
7
+ data.tar.gz: 462855f08fc3b4c0c168339125058f4ea1f7e570f9692981a719bbd1f3bc7b87cb599005b109fe547787f9a6709d964e82d75ae2adda3af5746417c4571a3cc4
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,34 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ whiskers (0.0.1)
5
+ bitters (~> 1.2)
6
+ bourbon (~> 4.2)
7
+ neat (~> 1.7)
8
+ sass (~> 3.4)
9
+ thor (~> 0.19)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ bitters (1.2.0)
15
+ bourbon (>= 4.2)
16
+ sass (>= 3.4)
17
+ thor
18
+ bourbon (4.2.7)
19
+ sass (~> 3.4)
20
+ thor (~> 0.19)
21
+ neat (1.7.4)
22
+ bourbon (>= 4.0)
23
+ sass (>= 3.3)
24
+ sass (3.4.21)
25
+ thor (0.19.1)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ whiskers!
32
+
33
+ BUNDLED WITH
34
+ 1.10.6
@@ -0,0 +1,12 @@
1
+ Copyright (c) 2016, Zane Swafford
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+
8
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+
10
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,116 @@
1
+ <img src="https://raw.githubusercontent.com/zaneswafford/whiskers/master/whiskers.png" height="100">
2
+ Whiskers
3
+ ========
4
+
5
+ Whiskers is a dandy little gem for quickly spinning up sites using [SASS](http://sass-lang.com), [CoffeeScript](http://coffeescript.org), and [Thoughtbot’s Bourbon](http://bourbon.io).
6
+
7
+ There’s no fancy magic here. Just a Ruby script that copies some web pages around.
8
+ All wrapped up in a gem you can call from the command line.
9
+
10
+ This dingus automates a lot of tedious command line work I was doing previously.
11
+ If you would like to use it, be my guest.
12
+
13
+ ## What does it do?
14
+ You can read the source for yourself if you’re so inclined. If you’re lazy, like me, here is a flyover:
15
+
16
+ 1. Make a directory structure for organizing your scripts and stylesheets.
17
+ 2. Download jQuery, require.js, normalize.css
18
+ 3. Download Bourbon, Neat, Bitters, and some Refills.
19
+ 4. Copy over a template to get started on a project
20
+ 5. Provide an easy way to live compile CoffeeScript and Sass
21
+
22
+
23
+ ## Why the Hell would I want that?
24
+ You probably don’t. This is a tool for *me*. **Not everything is about you**.
25
+
26
+ I apologize, that was curt. You’re a pleasant person and you do a good job.
27
+
28
+ ## How do install it?
29
+ You can run:
30
+ ```
31
+ $ gem install whiskers
32
+ ```
33
+
34
+ 💥 Boom, you’re done. Though you’ll want to [install CoffeeScript](http://coffeescript.org/#installation) for it to work.
35
+
36
+ ## How do I use it?
37
+ If you want to get up and running, you can create a new Whiskers site, open the directory, and tell Whiskers to watch for changes like so:
38
+
39
+ ```
40
+ $ whiskers new nameOfMySite
41
+ $ cd nameOfMySite
42
+ $ whiskers watch
43
+ ```
44
+
45
+ If you want to create a site with a template beyond the base template you could run:
46
+ ```
47
+ $ whiskers new nameOfMySite nameOfMyTemplate
48
+ ```
49
+
50
+ You can see the templates available using:
51
+ ```
52
+ $ whiskers list
53
+ ```
54
+
55
+ You can also ask for help using:
56
+ ```
57
+ $ whiskers help
58
+ ```
59
+
60
+ ## What do all these files and folders do?
61
+ ### index.html
62
+ The main html page for the generated site, but you already knew that.
63
+
64
+ ### scripts/
65
+ Where the `.js` and `.coffee` files go
66
+ - `lib/`
67
+ - Where all compiled Javascript files can be thrown.
68
+ - Also where you may want to put any Javascript libraries you plan on using.
69
+ - `src/`
70
+ - Where all your CoffeeScript source files go.
71
+ - `layouts/`
72
+ - CoffeeScript for specific layouts can go here. (e.g. Scripts that are for the homepage go in `home.coffee`)
73
+ - These files can also use require to include CoffeeScript from the `modules` directory.
74
+ - `modules/`
75
+ - Small reusable bits of CoffeeScript for UI elements and the like can go here.
76
+ - `plugins/`
77
+ - CoffeeScript plugins you want to use can go here.
78
+
79
+ ### stylesheets/
80
+ Where the `.css`, `.scss`, and `.sass` files go
81
+ - `app.sass`
82
+ - Tells SASS to compile the files hiding in the other subdirectories of `stylesheets/`
83
+ - `layouts/`
84
+ - Where layout specific SASS files go. (e.g. Styles that are for the homepage go in `home.sass`)
85
+ - `layouts.sass`
86
+ - Contains a list of all the layouts that should be compiled in the `layouts/` folder
87
+ - `modules/`
88
+ - Where styles related to small, reusable modules should go.
89
+ - `modules.sass`
90
+ - Contains a list of all the modules that should be compiled in the `modules/` folder
91
+ - `plugins/`
92
+ - Where all of your SASSy plugins can be dumped.
93
+ - `plugins.sass`
94
+ - Contains a list of all the plugins that should be compiled in the `plugins/` folder
95
+
96
+ ## How do I add my own scripts or stylesheets to a Whiskers project?
97
+ - Put your CoffeeScript files in a subdirectory of `scripts/src/` and edit `app.coffee` or the corresponding CoffeeScript file in `scripts/src/layouts` so your scripts get included.
98
+ - Put your SASS files in a subdirectory of `stylsheets/` and edit `app.sass` or the corresponding SASS file for that directory so your styles get included.
99
+ - See the section above titled: “*What do all these files and folders do?*”
100
+
101
+ ## What OS’s does this run on?
102
+ I run it on Mac OS X 10.11 but it would likely work various flavors of Linux or BSD as well. There is not much here that is system specific.
103
+
104
+ ## Can you change something for me?
105
+ Probably not, but if you play your cards right we can get an ice cream cone, sport. 🍨
106
+
107
+ ## Can I change something?
108
+ Sure, go for gold.
109
+
110
+ ## What’s with the logo?
111
+ I like [otters](https://otters.io).
112
+
113
+
114
+ - - -
115
+
116
+ *Made with ❤️ in Kansas.*
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + "/../lib/whiskers.rb"
3
+
4
+ Whiskers::Generator.start
@@ -0,0 +1,180 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Web Template</title>
5
+ <link type="text/css" href="stylesheets/app.css" rel="stylesheet">
6
+ <script type="text/javascript" src="scripts/lib/plugins/jquery.min.js"></script>
7
+ <script type="text/javascript" src="scripts/lib/plugins/require.min.js"></script>
8
+ <script type="text/javascript" src="scripts/lib/app.js"></script>
9
+ <script type="text/javascript" src="scripts/lib/layouts/home.js"></script>
10
+ </head>
11
+ <body>
12
+ <header class="centered-navigation" role="banner">
13
+ <div class="centered-navigation-wrapper">
14
+ <a href="javascript:void(0)" class="mobile-logo">
15
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_3_dark.png" alt="Logo image">
16
+ </a>
17
+ <a href="javascript:void(0)" id="js-centered-navigation-mobile-menu" class="centered-navigation-mobile-menu">MENU</a>
18
+ <nav role="navigation">
19
+ <ul id="js-centered-navigation-menu" class="centered-navigation-menu show">
20
+ <li class="nav-link"><a href="javascript:void(0)">Products</a></li>
21
+ <li class="nav-link"><a href="javascript:void(0)">About Us</a></li>
22
+ <li class="nav-link"><a href="javascript:void(0)">Contact</a></li>
23
+ <li class="nav-link logo">
24
+ <a href="javascript:void(0)" class="logo">
25
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_3_dark.png" alt="Logo image">
26
+ </a>
27
+ </li>
28
+ <li class="nav-link"><a href="javascript:void(0)">Testimonials</a></li>
29
+ <li class="nav-link more"><a href="javascript:void(0)">More</a>
30
+ <ul class="submenu">
31
+ <li><a href="javascript:void(0)">Submenu Item</a></li>
32
+ <li><a href="javascript:void(0)">Another Item</a></li>
33
+ <li class="more"><a href="javascript:void(0)">Item with submenu</a>
34
+ <ul class="submenu">
35
+ <li><a href="javascript:void(0)">Sub-submenu Item</a></li>
36
+ <li><a href="javascript:void(0)">Another Item</a></li>
37
+ </ul>
38
+ </li>
39
+ <li class="more"><a href="javascript:void(0)">Another submenu</a>
40
+ <ul class="submenu">
41
+ <li><a href="javascript:void(0)">Sub-submenu</a></li>
42
+ <li><a href="javascript:void(0)">An Item</a></li>
43
+ </ul>
44
+ </li>
45
+ </ul>
46
+ </li>
47
+ <li class="nav-link"><a href="javascript:void(0)">Sign up</a></li>
48
+ </ul>
49
+ </nav>
50
+ </div>
51
+ </header>
52
+
53
+ <main>
54
+ <!-- This is a device section, you could use it to talk about your app -->
55
+ <div class="device-background">
56
+ <div class="device-text">
57
+ <h4>Text about App or Device</h4>
58
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dignissimos, recusandae? Deserunt repellendus.</p>
59
+ </div>
60
+ <div class="device">
61
+ <div class="screen"></div>
62
+ </div>
63
+ </div>
64
+
65
+ <!-- Here is a flexbox grid. Isn't it classy? --><br>
66
+ <div class="grid-item-wrapper">
67
+ <div class="grid-items-lines">
68
+ <a href="javascript:void(0)" class="grid-item">
69
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_1_dark.png" alt="">
70
+ <h1>Grid Item</h1>
71
+ <p>Lorem ipsum dolor sit amet, elit. Rem, illum.</p>
72
+ </a>
73
+ <a href="javascript:void(0)" class="grid-item">
74
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_3_dark.png" alt="">
75
+ <h1>Another Item</h1>
76
+ <p>Lorem ipsum consectetur dolor sit amet, consectetur adipisicing elit.</p>
77
+ </a>
78
+ <a href="javascript:void(0)" class="grid-item">
79
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_2_dark.png" alt="">
80
+ <h1>Another Grid Item</h1>
81
+ <p>Lorem ipsum dolor sit amet, elit.</p>
82
+ </a>
83
+ <a href="javascript:void(0)" class="grid-item">
84
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_2_dark.png" alt="">
85
+ <h1>Grid Item</h1>
86
+ <p>Lorem ipsum dolor sit amet, elit. Rem, illum.</p>
87
+ </a>
88
+ <a href="javascript:void(0)" class="grid-item grid-item-big">
89
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_2_dark.png" alt="">
90
+ <h1>Wider Grid Item</h1>
91
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem, illum.</p>
92
+ </a>
93
+ <a href="javascript:void(0)" class="grid-item">
94
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_3_dark.png" alt="">
95
+ <h1>A Grid Item</h1>
96
+ <p>Lorem ipsum dolor sit amet, elit. Rem, illum.</p>
97
+ </a>
98
+ <a href="javascript:void(0)" class="grid-item">
99
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_1_dark.png" alt="">
100
+ <h1>Item</h1>
101
+ <p>Lorem ipsum dolor sit amet, elit. Rem, illum.</p>
102
+ </a>
103
+ <a href="javascript:void(0)" class="grid-item">
104
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_2_dark.png" alt="">
105
+ <h1>Last Grid Item</h1>
106
+ <p>Lorem ipsum dolor sit amet, elit. Rem, illum.</p>
107
+ </a>
108
+ <div class="right-cover"></div>
109
+ <div class="bottom-cover"></div>
110
+ </div>
111
+ </div>
112
+
113
+ <!-- Here are some example comments. Real comments won't be this civil, or this
114
+ Latin. --> <br>
115
+ <div class="comment-wrapper">
116
+ <div class="comment">
117
+ <div class="comment-image">
118
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_1.png" alt="Logo image">
119
+ </div>
120
+ <div class="comment-content">
121
+ <h1>First Comment Title or Author</h1>
122
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio, aspernatur, quia modi minima debitis tempora ducimus quam vero impedit alias earum nemo error tenetur sed.</p>
123
+ <p class="comment-detail">Date or details about this post</p>
124
+ </div>
125
+ </div>
126
+
127
+ <div class="comment">
128
+ <div class="comment-image">
129
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_2.png" alt="Logo image">
130
+ </div>
131
+ <div class="comment-content">
132
+ <h1>Another One</h1>
133
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio, aspernatur, quia modi minima debitis tempora ducimus quam vero impedit alias earum nemo error tenetur sed.</p>
134
+ <p class="comment-detail">Date or details about this post</p>
135
+ </div>
136
+ </div>
137
+ </div>
138
+
139
+ <!-- Here are some sample boxes, they use the Neat grid for alignment --> <br>
140
+ <div class="boxes">
141
+ <div class="box"></div>
142
+ <div class="box"></div>
143
+ <div class="box"></div>
144
+ <div class="box"></div>
145
+ </div>
146
+ </main>
147
+
148
+ <footer role="contentinfo">
149
+ <!-- Last, here is the footer. You can chop out the footer tag's content if you
150
+ just want a sticky footer without anything else. -->
151
+ <div class="footer-logo">
152
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/placeholder_logo_1.png" alt="Logo image">
153
+ </div>
154
+ <ul>
155
+ <li><a href="javascript:void(0)">About</a></li>
156
+ <li><a href="javascript:void(0)">Contact</a></li>
157
+ <li><a href="javascript:void(0)">Products</a></li>
158
+ </ul>
159
+
160
+ <div class="footer-secondary-links">
161
+ <ul>
162
+ <li><a href="javascript:void(0)">Terms and Conditions</a></li>
163
+ <li><a href="javascript:void(0)">Privacy Policy</a></li>
164
+ </ul>
165
+
166
+ <ul class="footer-social">
167
+ <li><a href="javascript:void(0)">
168
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/facebook-logo-circle.png" alt="Facebook">
169
+ </a></li>
170
+ <li><a href="javascript:void(0)">
171
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/twitter-logo-circle.png" alt="Twitter">
172
+ </a></li>
173
+ <li><a href="javascript:void(0)">
174
+ <img src="https://raw.githubusercontent.com/thoughtbot/refills/b7c61c133f568cd044b708d099d8144cc3ce2b66/source/images/youtube-logo-circle.png" alt="YouTube">
175
+ </a></li>
176
+ </ul>
177
+ </div>
178
+ </footer>
179
+ </body>
180
+ </html>
@@ -0,0 +1,8 @@
1
+ # Do any app-wide setup here
2
+
3
+ requirejs.config({
4
+ baseUrl: 'js/lib',
5
+ paths: {
6
+ jquery: 'jquery-2.2.2'
7
+ }
8
+ });
@@ -0,0 +1,3 @@
1
+ # Put all the modules you require in here
2
+
3
+ require ['modules/header']
@@ -0,0 +1,11 @@
1
+ $(document).ready ->
2
+ menuToggle = $('#js-centered-navigation-mobile-menu').unbind()
3
+ $('#js-centered-navigation-menu').removeClass 'show'
4
+ menuToggle.on 'click', (e) ->
5
+ e.preventDefault()
6
+ $('#js-centered-navigation-menu').slideToggle ->
7
+ if $('#js-centered-navigation-menu').is(':hidden')
8
+ $('#js-centered-navigation-menu').removeAttr 'style'
9
+ return
10
+ return
11
+ return
@@ -0,0 +1,6 @@
1
+ // app.css is generated from this file via:
2
+ // sass --watch css/app.sass:css/app.css
3
+
4
+ @import 'plugins/plugins'
5
+ @import 'modules/modules'
6
+ @import 'layouts/layouts'
@@ -0,0 +1,8 @@
1
+ // Put styles here that only effect this layout
2
+ .grid-item-wrapper
3
+ +clearfix
4
+ +outer-container
5
+
6
+ .comment-wrapper
7
+ +clearfix
8
+ +outer-container
@@ -0,0 +1,65 @@
1
+ .comment {
2
+ $base-border-radius: 3px !default;
3
+ $base-spacing: 1.5em !default;
4
+ $action-color: #477DCA !default;
5
+ $dark-gray: #333 !default;
6
+ $base-font-color: $dark-gray !default;
7
+ $comment-gutter: 1.4em;
8
+ $comment-image-padding: 0.7em;
9
+ $comment-image-width: 4em;
10
+ $comment-color: $base-font-color;
11
+ $comment-background: lighten($action-color, 15%);
12
+ $comment-detail-color: transparentize($comment-color, 0.5);
13
+ $comment-image-vert-alignment: top;
14
+
15
+ border-bottom: 1px solid transparentize($comment-color, 0.9);
16
+ display: table;
17
+ margin-bottom: $base-spacing;
18
+ padding-bottom: 1em;
19
+ width: 100%;
20
+
21
+ .comment-image,
22
+ .comment-content {
23
+ display: table-cell;
24
+ vertical-align: $comment-image-vert-alignment;
25
+ }
26
+
27
+ .comment-image {
28
+ padding-right: $comment-gutter;
29
+
30
+ > img {
31
+ background: $comment-background;
32
+ border-radius: $base-border-radius;
33
+ display: block;
34
+ height: auto;
35
+ max-width: none;
36
+ padding: $comment-image-padding;
37
+ width: $comment-image-width;
38
+ }
39
+
40
+ .comment-reverse-order & {
41
+ padding-right: 0;
42
+ padding-left: 10px;
43
+ }
44
+ }
45
+
46
+ .comment-content {
47
+ width: 100%;
48
+
49
+ h1 {
50
+ font-size: 1em;
51
+ margin: 0 0 0.5em 0;
52
+ }
53
+
54
+ p {
55
+ line-height: 1.5em;
56
+ margin-bottom: 0.5em;
57
+ }
58
+
59
+ p.comment-detail {
60
+ color: $comment-detail-color;
61
+ font-size: 0.9em;
62
+ font-style: italic;
63
+ }
64
+ }
65
+ }