groundworkcss 0.4.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +63 -0
- data/README.md +90 -48
- data/app/assets/fonts/groundworkcss/museo-slab-500-webfont.eot +0 -0
- data/app/assets/fonts/groundworkcss/museo-slab-500-webfont.svg +1228 -0
- data/app/assets/fonts/groundworkcss/museo-slab-500-webfont.ttf +0 -0
- data/app/assets/fonts/groundworkcss/museo-slab-500-webfont.woff +0 -0
- data/app/assets/fonts/groundworkcss/quicksand-regular-webfont.eot +0 -0
- data/app/assets/fonts/groundworkcss/quicksand-regular-webfont.svg +1746 -0
- data/app/assets/fonts/groundworkcss/quicksand-regular-webfont.ttf +0 -0
- data/app/assets/fonts/groundworkcss/quicksand-regular-webfont.woff +0 -0
- data/app/assets/fonts/groundworkcss/redacted-regular.eot +0 -0
- data/app/assets/fonts/groundworkcss/redacted-regular.svg +242 -0
- data/app/assets/fonts/groundworkcss/redacted-regular.ttf +0 -0
- data/app/assets/fonts/groundworkcss/redacted-regular.woff +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-bold.eot +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-bold.svg +244 -0
- data/app/assets/fonts/groundworkcss/redacted-script-bold.ttf +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-bold.woff +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-light.eot +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-light.svg +244 -0
- data/app/assets/fonts/groundworkcss/redacted-script-light.ttf +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-light.woff +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-regular.eot +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-regular.svg +244 -0
- data/app/assets/fonts/groundworkcss/redacted-script-regular.ttf +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-regular.woff +0 -0
- data/app/assets/fonts/groundworkcss/sourcesanspro-regular-webfont.eot +0 -0
- data/app/assets/fonts/groundworkcss/sourcesanspro-regular-webfont.svg +978 -0
- data/app/assets/fonts/groundworkcss/sourcesanspro-regular-webfont.ttf +0 -0
- data/app/assets/fonts/groundworkcss/sourcesanspro-regular-webfont.woff +0 -0
- data/app/assets/images/groundworkcss/black_linen_v2.png +0 -0
- data/app/assets/images/groundworkcss/diag6-black.png +0 -0
- data/app/assets/images/groundworkcss/example-usage.png +0 -0
- data/app/assets/images/groundworkcss/favicon.ico +0 -0
- data/app/assets/images/groundworkcss/groundwork-logo.png +0 -0
- data/app/assets/images/groundworkcss/groundwork-logo.svg +1 -0
- data/app/assets/images/groundworkcss/layout-a.png +0 -0
- data/app/assets/images/groundworkcss/layout-b.png +0 -0
- data/app/assets/images/groundworkcss/layout-c.png +0 -0
- data/app/assets/javascripts/groundworkcss/all.js +4 -0
- data/app/assets/javascripts/groundworkcss/components/checklists.coffee +8 -0
- data/app/assets/javascripts/groundworkcss/components/dismissible.coffee +7 -3
- data/app/assets/javascripts/groundworkcss/components/equalizeColumns.coffee +3 -4
- data/app/assets/javascripts/groundworkcss/components/menus.coffee +22 -156
- data/app/assets/javascripts/groundworkcss/components/navigation.coffee +90 -0
- data/app/assets/javascripts/groundworkcss/components/tabs.coffee +83 -18
- data/app/assets/javascripts/groundworkcss/demo/ZeroClipboard.swf +0 -0
- data/app/assets/javascripts/groundworkcss/demo/jquery.snippet.min.js +12 -0
- data/app/assets/javascripts/groundworkcss/libs/boxsizing.htc +6 -3
- data/app/assets/javascripts/groundworkcss/plugins/jquery-placeholderText.coffee +90 -0
- data/app/assets/javascripts/groundworkcss/plugins/jquery-responsiveTables.coffee +0 -1
- data/app/assets/stylesheets/groundworkcss/_settings-rails3.scss +298 -262
- data/app/assets/stylesheets/groundworkcss/_settings-rails4.scss +298 -262
- data/app/assets/stylesheets/groundworkcss/_settings.scss +306 -268
- data/app/assets/stylesheets/groundworkcss/anim/_all-animations.scss +37 -0
- data/app/assets/stylesheets/groundworkcss/anim/_bounce.scss +253 -0
- data/app/assets/stylesheets/groundworkcss/anim/_fade.scss +279 -0
- data/app/assets/stylesheets/groundworkcss/anim/_flash.scss +14 -0
- data/app/assets/stylesheets/groundworkcss/anim/_flip.scss +115 -0
- data/app/assets/stylesheets/groundworkcss/anim/_hinge.scss +21 -0
- data/app/assets/stylesheets/groundworkcss/anim/_lightspeed.scss +28 -0
- data/app/assets/stylesheets/groundworkcss/anim/_pulse.scss +15 -0
- data/app/assets/stylesheets/groundworkcss/anim/_roll.scss +37 -0
- data/app/assets/stylesheets/groundworkcss/anim/_rotate.scss +171 -0
- data/app/assets/stylesheets/groundworkcss/anim/_shake.scss +15 -0
- data/app/assets/stylesheets/groundworkcss/anim/_spin.scss +57 -0
- data/app/assets/stylesheets/groundworkcss/anim/_swing.scss +18 -0
- data/app/assets/stylesheets/groundworkcss/anim/_tada.scss +17 -0
- data/app/assets/stylesheets/groundworkcss/anim/_wiggle.scss +28 -0
- data/app/assets/stylesheets/groundworkcss/anim/_wobble.scss +19 -0
- data/app/assets/stylesheets/groundworkcss/base/_all-base.scss +4 -1
- data/app/assets/stylesheets/groundworkcss/base/_flex-box.scss +8 -23
- data/app/assets/stylesheets/groundworkcss/base/_global.scss +25 -19
- data/app/assets/stylesheets/groundworkcss/base/_grid.scss +140 -52
- data/app/assets/stylesheets/groundworkcss/base/_hbox-vbox.scss +101 -0
- data/app/assets/stylesheets/groundworkcss/base/_helpers.scss +80 -47
- data/app/assets/stylesheets/groundworkcss/base/_reset.scss +13 -1
- data/app/assets/stylesheets/groundworkcss/core/_all-core.scss +10 -6
- data/app/assets/stylesheets/groundworkcss/core/_constants.scss +1 -11
- data/app/assets/stylesheets/groundworkcss/core/_defaults.scss +2 -295
- data/app/assets/stylesheets/groundworkcss/core/_mixins-core.scss +16 -42
- data/app/assets/stylesheets/groundworkcss/core/_palette.scss +123 -0
- data/app/assets/stylesheets/groundworkcss/demo/_jquery.snippet.groundwork.scss +145 -0
- data/app/assets/stylesheets/groundworkcss/demo/groundworkdocs.scss +102 -0
- data/app/assets/stylesheets/groundworkcss/demo/jquery.snippet.scss +35 -0
- data/app/assets/stylesheets/groundworkcss/groundwork-ie.scss +30 -63
- data/app/assets/stylesheets/groundworkcss/groundwork.scss +10 -11
- data/app/assets/stylesheets/groundworkcss/icons/_all-icons.scss +5 -2
- data/app/assets/stylesheets/groundworkcss/icons/font-awesome/_extras.scss +0 -39
- data/app/assets/stylesheets/groundworkcss/{libs/placeholder_polyfill.css → placeholder_polyfill.css} +0 -0
- data/app/assets/stylesheets/groundworkcss/responsive/_all-responsive.scss +2 -2
- data/app/assets/stylesheets/groundworkcss/responsive/_desktop.scss +138 -13
- data/app/assets/stylesheets/groundworkcss/responsive/_helpers-responsive.scss +21 -15
- data/app/assets/stylesheets/groundworkcss/responsive/_ipad.scss +144 -16
- data/app/assets/stylesheets/groundworkcss/responsive/_mobile.scss +148 -34
- data/app/assets/stylesheets/groundworkcss/responsive/_small-tablet.scss +133 -176
- data/app/assets/stylesheets/groundworkcss/type/_all-type.scss +8 -4
- data/app/assets/stylesheets/groundworkcss/type/_link-type-icons.scss +404 -0
- data/app/assets/stylesheets/groundworkcss/type/_typography.scss +291 -84
- data/app/assets/stylesheets/groundworkcss/type/_webfonts.scss +48 -5
- data/app/assets/stylesheets/groundworkcss/ui/_all-ui.scss +6 -4
- data/app/assets/stylesheets/groundworkcss/ui/_boxes.scss +102 -0
- data/app/assets/stylesheets/groundworkcss/ui/_buttons.scss +389 -0
- data/app/assets/stylesheets/groundworkcss/{form → ui}/_forms.scss +49 -33
- data/app/assets/stylesheets/groundworkcss/ui/_messages.scss +76 -32
- data/app/assets/stylesheets/groundworkcss/ui/_nav.scss +346 -0
- data/app/assets/stylesheets/groundworkcss/ui/_tables.scss +83 -29
- data/app/assets/stylesheets/groundworkcss/ui/_tabs.scss +192 -0
- data/app/views/groundworkdocs/animations.html.erb +156 -0
- data/app/views/groundworkdocs/boxes.html.erb +131 -0
- data/app/views/groundworkdocs/breakpoints.html.erb +143 -0
- data/app/views/groundworkdocs/buttons.html.erb +369 -0
- data/app/views/groundworkdocs/forms.html.erb +399 -0
- data/app/views/groundworkdocs/grid.html.erb +582 -0
- data/app/views/groundworkdocs/helpers.html.erb +326 -0
- data/app/views/groundworkdocs/home.html.erb +88 -0
- data/app/views/groundworkdocs/icons.html.erb +1428 -0
- data/app/views/groundworkdocs/layout_a.html.erb +122 -0
- data/app/views/groundworkdocs/layout_b.html.erb +37 -0
- data/app/views/groundworkdocs/layout_c.html.erb +116 -0
- data/app/views/groundworkdocs/media_queries.html.erb +75 -0
- data/app/views/groundworkdocs/messages.html.erb +92 -0
- data/app/views/groundworkdocs/navigation.html.erb +500 -0
- data/app/views/groundworkdocs/placeholder_text.html.erb +86 -0
- data/app/views/groundworkdocs/responsive_text.html.erb +90 -0
- data/app/views/groundworkdocs/tables.html.erb +554 -0
- data/app/views/groundworkdocs/tabs.html.erb +216 -0
- data/app/views/groundworkdocs/typography.html.erb +656 -0
- data/app/views/layouts/groundworkdocs.html.erb +126 -0
- data/groundworkcss.gemspec +2 -2
- data/lib/groundworkcss/generators/USAGE.md +24 -0
- data/lib/groundworkcss/generators/docs_generator.rb +61 -0
- data/lib/groundworkcss/generators/install_generator.rb +25 -8
- data/lib/groundworkcss/version.rb +1 -1
- data/lib/groundworkcss.rb +1 -1
- metadata +105 -292
- data/app/assets/fonts/groundworkcss/FontAwesome.otf +0 -0
- data/app/assets/fonts/groundworkcss/americantypewriterstd-bold.eot +0 -0
- data/app/assets/fonts/groundworkcss/americantypewriterstd-bold.svg +0 -128
- data/app/assets/fonts/groundworkcss/americantypewriterstd-bold.ttf +0 -0
- data/app/assets/fonts/groundworkcss/americantypewriterstd-bold.woff +0 -0
- data/app/assets/fonts/groundworkcss/average-sans-webfont.eot +0 -0
- data/app/assets/fonts/groundworkcss/average-sans-webfont.ttf +0 -0
- data/app/assets/fonts/groundworkcss/average-sans-webfont.woff +0 -0
- data/app/assets/images/groundworkcss/social-icons/500px-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/500px-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/500px.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/500px.svg +0 -62
- data/app/assets/images/groundworkcss/social-icons/aboutme-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/aboutme-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/aboutme.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/aboutme.svg +0 -42
- data/app/assets/images/groundworkcss/social-icons/adn-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/adn-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/adn.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/adn.svg +0 -14
- data/app/assets/images/groundworkcss/social-icons/android-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/android-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/android.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/android.svg +0 -30
- data/app/assets/images/groundworkcss/social-icons/apple-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/apple-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/apple.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/apple.svg +0 -19
- data/app/assets/images/groundworkcss/social-icons/behance-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/behance-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/behance.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/behance.svg +0 -48
- data/app/assets/images/groundworkcss/social-icons/bitbucket-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/bitbucket-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/bitbucket.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/bitbucket.svg +0 -36
- data/app/assets/images/groundworkcss/social-icons/blogger-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/blogger-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/blogger.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/blogger.svg +0 -22
- data/app/assets/images/groundworkcss/social-icons/coderwall-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/coderwall-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/coderwall.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/coderwall.svg +0 -21
- data/app/assets/images/groundworkcss/social-icons/creativecloud-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/creativecloud-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/creativecloud.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/creativecloud.svg +0 -48
- data/app/assets/images/groundworkcss/social-icons/dribbble-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dribbble-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dribbble.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dribbble.svg +0 -28
- data/app/assets/images/groundworkcss/social-icons/dropbox-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dropbox-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dropbox.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dropbox.svg +0 -73
- data/app/assets/images/groundworkcss/social-icons/evernote-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/evernote-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/evernote.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/evernote.svg +0 -62
- data/app/assets/images/groundworkcss/social-icons/facebook-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/facebook-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/facebook.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/facebook.svg +0 -15
- data/app/assets/images/groundworkcss/social-icons/fairheadcreative-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/fairheadcreative-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/fairheadcreative.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/fairheadcreative.svg +0 -24
- data/app/assets/images/groundworkcss/social-icons/flickr-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/flickr-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/flickr.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/flickr.svg +0 -14
- data/app/assets/images/groundworkcss/social-icons/foursquare-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/foursquare-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/foursquare.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/foursquare.svg +0 -43
- data/app/assets/images/groundworkcss/social-icons/git-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/git-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/git.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/git.svg +0 -22
- data/app/assets/images/groundworkcss/social-icons/github-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/github-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/github.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/github.svg +0 -38
- data/app/assets/images/groundworkcss/social-icons/goodreads-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/goodreads-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/goodreads.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/goodreads.svg +0 -38
- data/app/assets/images/groundworkcss/social-icons/googleplay-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplay-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplay.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplay.svg +0 -24
- data/app/assets/images/groundworkcss/social-icons/googleplus-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplus-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplus.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplus.svg +0 -52
- data/app/assets/images/groundworkcss/social-icons/html5-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/html5-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/html5.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/html5.svg +0 -29
- data/app/assets/images/groundworkcss/social-icons/icloud-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/icloud-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/icloud.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/icloud.svg +0 -26
- data/app/assets/images/groundworkcss/social-icons/instagram-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/instagram-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/instagram.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/instagram.svg +0 -166
- data/app/assets/images/groundworkcss/social-icons/lastfm-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/lastfm-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/lastfm.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/lastfm.svg +0 -44
- data/app/assets/images/groundworkcss/social-icons/linkedin-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/linkedin-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/linkedin.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/linkedin.svg +0 -28
- data/app/assets/images/groundworkcss/social-icons/mail-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mail-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mail.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mail.svg +0 -27
- data/app/assets/images/groundworkcss/social-icons/mercurial-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mercurial-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mercurial.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mercurial.svg +0 -22
- data/app/assets/images/groundworkcss/social-icons/mixi-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mixi-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mixi.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mixi.svg +0 -32
- data/app/assets/images/groundworkcss/social-icons/msn-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/msn-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/msn.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/msn.svg +0 -44
- data/app/assets/images/groundworkcss/social-icons/orkut-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/orkut-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/orkut.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/orkut.svg +0 -23
- data/app/assets/images/groundworkcss/social-icons/picasa-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/picasa-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/picasa.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/picasa.svg +0 -48
- data/app/assets/images/groundworkcss/social-icons/pinterest-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pinterest-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pinterest.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pinterest.svg +0 -42
- data/app/assets/images/groundworkcss/social-icons/pocketapp-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pocketapp-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pocketapp.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pocketapp.svg +0 -38
- data/app/assets/images/groundworkcss/social-icons/quora-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/quora-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/quora.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/quora.svg +0 -20
- data/app/assets/images/groundworkcss/social-icons/rdio-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rdio-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rdio.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rdio.svg +0 -18
- data/app/assets/images/groundworkcss/social-icons/renren-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/renren-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/renren.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/renren.svg +0 -79
- data/app/assets/images/groundworkcss/social-icons/rss-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rss-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rss.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rss.svg +0 -18
- data/app/assets/images/groundworkcss/social-icons/skitch-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skitch-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skitch.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skitch.svg +0 -24
- data/app/assets/images/groundworkcss/social-icons/skype-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skype-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skype.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skype.svg +0 -25
- data/app/assets/images/groundworkcss/social-icons/soundcloud-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/soundcloud-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/soundcloud.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/soundcloud.svg +0 -60
- data/app/assets/images/groundworkcss/social-icons/spotify-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/spotify-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/spotify.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/spotify.svg +0 -38
- data/app/assets/images/groundworkcss/social-icons/stackoverflow-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stackoverflow-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stackoverflow.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stackoverflow.svg +0 -32
- data/app/assets/images/groundworkcss/social-icons/stumbleupon-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stumbleupon-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stumbleupon.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stumbleupon.svg +0 -22
- data/app/assets/images/groundworkcss/social-icons/svn-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/svn-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/svn.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/svn.svg +0 -25
- data/app/assets/images/groundworkcss/social-icons/tent-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tent-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tent.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tent.svg +0 -16
- data/app/assets/images/groundworkcss/social-icons/tripadvisor-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tripadvisor-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tripadvisor.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tripadvisor.svg +0 -30
- data/app/assets/images/groundworkcss/social-icons/tumblr-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tumblr-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tumblr.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tumblr.svg +0 -16
- data/app/assets/images/groundworkcss/social-icons/twitter-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/twitter-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/twitter.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/twitter.svg +0 -24
- data/app/assets/images/groundworkcss/social-icons/vimeo-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/vimeo-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/vimeo.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/vimeo.svg +0 -20
- data/app/assets/images/groundworkcss/social-icons/weibo-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/weibo-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/weibo.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/weibo.svg +0 -54
- data/app/assets/images/groundworkcss/social-icons/windows-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/windows-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/windows.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/windows.svg +0 -26
- data/app/assets/images/groundworkcss/social-icons/wordpress-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/wordpress-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/wordpress.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/wordpress.svg +0 -50
- data/app/assets/images/groundworkcss/social-icons/xing-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/xing-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/xing.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/xing.svg +0 -16
- data/app/assets/images/groundworkcss/social-icons/yelp-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/yelp-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/yelp.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/yelp.svg +0 -54
- data/app/assets/images/groundworkcss/social-icons/youtube-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youtube-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youtube.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youtube.svg +0 -106
- data/app/assets/images/groundworkcss/social-icons/youversion-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youversion-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youversion.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youversion.svg +0 -54
- data/app/assets/images/groundworkcss/social-icons/zerply-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/zerply-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/zerply.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/zerply.svg +0 -20
- data/app/assets/javascripts/groundworkcss/components/disabled.coffee +0 -18
- data/app/assets/javascripts/groundworkcss/components/modals.coffee +0 -46
- data/app/assets/javascripts/groundworkcss/components/pagination.coffee +0 -128
- data/app/assets/javascripts/groundworkcss/components/tiles.coffee +0 -32
- data/app/assets/javascripts/groundworkcss/index.js +0 -17
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.caption2.js +0 -67
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.carousel.js +0 -265
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.center.js +0 -63
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.ie-fade.js +0 -46
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.scrollVert.js +0 -15
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.shuffle.js +0 -62
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.swipe.js +0 -70
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.tile.js +0 -131
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.video.js +0 -66
- data/app/assets/javascripts/groundworkcss/plugins/jquery-tooltip.coffee +0 -127
- data/app/assets/javascripts/groundworkcss/plugins/jquery.cycle2.js +0 -1426
- data/app/assets/javascripts/groundworkcss/plugins/jquery.magnific-popup.js +0 -1760
- data/app/assets/stylesheets/groundworkcss/base/_animations.scss +0 -29
- data/app/assets/stylesheets/groundworkcss/form/_all-form.scss +0 -11
- data/app/assets/stylesheets/groundworkcss/form/_tiles.scss +0 -98
- data/app/assets/stylesheets/groundworkcss/nav/_all-nav.scss +0 -12
- data/app/assets/stylesheets/groundworkcss/nav/_buttons.scss +0 -341
- data/app/assets/stylesheets/groundworkcss/nav/_navigation.scss +0 -409
- data/app/assets/stylesheets/groundworkcss/nav/_tabs.scss +0 -232
- data/app/assets/stylesheets/groundworkcss/social-icons-png.scss +0 -295
- data/app/assets/stylesheets/groundworkcss/social-icons-svg.scss +0 -99
- data/app/assets/stylesheets/groundworkcss/ui/_callouts.scss +0 -143
- data/app/assets/stylesheets/groundworkcss/ui/_modals.scss +0 -556
- data/app/assets/stylesheets/groundworkcss/ui/_tooltips.scss +0 -197
- data/groundworkcss-0.4.3.gem +0 -0
- data/lib/groundworkcss/railties.rb +0 -8
@@ -0,0 +1,126 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>GroundworkCSS 2: Documentation</title>
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
<%= stylesheet_link_tag("groundworkdocs", media: "all") %>
|
7
|
+
<%= javascript_include_tag("groundworkdocs") %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<header class="padded">
|
12
|
+
<div class="container">
|
13
|
+
<h2 class="logo"><a href="./home.html" target="_parent"><%= image_tag('groundworkcss/groundwork-logo.svg', :alt => "GroundworkCSS") %>GroundworkCSS 2</a></h2>
|
14
|
+
<nav role="navigation" class="nav gap-top">
|
15
|
+
<ul role="menubar">
|
16
|
+
<li><a href="./home.html"><i class="icon-home"></i> Home</a></li>
|
17
|
+
<li role="menu" class="menu"><a href="#">Example Layouts</a>
|
18
|
+
<ul>
|
19
|
+
<li><a href="./layout_a.html">Web Page</a></li>
|
20
|
+
<li><a href="./layout_b.html">Image Gallery</a></li>
|
21
|
+
<li><a href="./layout_c.html">Ecommerce Page</a></li>
|
22
|
+
</ul>
|
23
|
+
</li>
|
24
|
+
<li role="menu" class="menu"><a href="#">Documentation</a>
|
25
|
+
<ul>
|
26
|
+
<li><a href="./grid.html" title="Responsive grid system, grid adapters and helpers">Grid</a></li>
|
27
|
+
<li><a href="./helpers.html" title="Layout helpers, spinners and much more">Helpers</a></li>
|
28
|
+
<li><a href="./typography.html" title="Text elements, quotes, code and web fonts">Typography</a></li>
|
29
|
+
<li role="menu" class="menu"><a href="#" title="Navigation, buttons, messages and tables">UI Elements</a>
|
30
|
+
<ul>
|
31
|
+
<li><a href="./navigation.html" title="Navigation">Navigation</a></li>
|
32
|
+
<li><a href="./buttons.html" title="Buttons, button groups, button menus">Buttons</a></li>
|
33
|
+
<li><a href="./boxes.html" title="Boxes">Boxes</a></li>
|
34
|
+
<li><a href="./messages.html" title="Message boxes">Message Boxes</a></li>
|
35
|
+
<li><a href="./tables.html" title="Tables">Tables</a></li>
|
36
|
+
<li><a href="./tabs.html" title="Tabs">Tabs</a></li>
|
37
|
+
<li><a href="./forms.html" title="Form elements">Form Elements</a></li>
|
38
|
+
</ul>
|
39
|
+
</li>
|
40
|
+
<li><a href="./icons.html" title="Icons">Icons</a></li>
|
41
|
+
<li><a href="./responsive_text.html" title="Responsive text and multi-line text block truncation">Responsive Text</a></li>
|
42
|
+
<li><a href="./placeholder_text.html" title="Placeholder text and placeholder fonts for rapid prototyping and wireframes">Placeholder Text</a></li>
|
43
|
+
<li><a href="./animations.html" title="Pure CSS3 Animations">Animations</a></li>
|
44
|
+
</ul>
|
45
|
+
</li>
|
46
|
+
</ul>
|
47
|
+
</nav>
|
48
|
+
</div>
|
49
|
+
</header>
|
50
|
+
|
51
|
+
<div class="container">
|
52
|
+
|
53
|
+
<%= yield %>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<footer class="gap-top bounceInUp animated">
|
58
|
+
<div class="box square charcoal">
|
59
|
+
<div class="container padded">
|
60
|
+
<div class="row">
|
61
|
+
<div class="one small-tablet fourth padded">
|
62
|
+
<h5 class="green">Example Layouts</h5>
|
63
|
+
<ul class="unstyled">
|
64
|
+
<li><a href="./layout_a.html">Web Page</a></li>
|
65
|
+
<li><a href="./layout_b.html">Image Gallery</a></li>
|
66
|
+
<li><a href="./layout_c.html">Ecommerce Page</a></li>
|
67
|
+
</ul>
|
68
|
+
</div>
|
69
|
+
<div class="three small-tablet fourths padded">
|
70
|
+
<h5 class="blue">Documentation</h5>
|
71
|
+
<ul class="unstyled three-column two-column-mobile">
|
72
|
+
<li><a href="./grid.html" title="Responsive grid system, grid adapters and helpers">Grid</a></li>
|
73
|
+
<li><a href="./helpers.html" title="Layout helpers, spinners and much more">Helpers</a></li>
|
74
|
+
<li><a href="./typography.html" title="Text elements, quotes, code and web fonts">Typography</a></li>
|
75
|
+
<li><a href="./navigation.html" title="Navigation">Navigation</a></li>
|
76
|
+
<li><a href="./buttons.html" title="Buttons, button groups, button menus">Buttons</a></li>
|
77
|
+
<li><a href="./boxes.html" title="Boxes">Boxes</a></li>
|
78
|
+
<li><a href="./messages.html" title="Message boxes">Message Boxes</a></li>
|
79
|
+
<li><a href="./tables.html" title="Tables">Tables</a></li>
|
80
|
+
<li><a href="./tabs.html" title="Tabs">Tabs</a></li>
|
81
|
+
<li><a href="./forms.html" title="Form elements">Form Elements</a></li>
|
82
|
+
<li><a href="./icons.html" title="Icons">Icons</a></li>
|
83
|
+
<li><a href="./responsive_text.html" title="Responsive text and multi-line text block truncation">Responsive Text</a></li>
|
84
|
+
<li><a href="./placeholder_text.html" title="Placeholder text and placeholder fonts for rapid prototyping and wireframes">Placeholder Text</a></li>
|
85
|
+
<li><a href="./animations.html" title="Pure CSS3 Animations">Animations</a></li>
|
86
|
+
</ul>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
<div class="box square">
|
92
|
+
<div class="container padded">
|
93
|
+
<div class="row">
|
94
|
+
<div class="one half padded">
|
95
|
+
<p>GroundworkCSS is <b>100% free</b> and <b>open source</b>. <a href="mailto:groundworkcss@gmail.com">Give a shout out</a> if you have any feedback.</p>
|
96
|
+
<p>Find a bug? Help squash it by <a href="https://github.com/groundworkcss/groundwork/issues" target="_blank">filing an issue</a> on Github.</p>
|
97
|
+
</div>
|
98
|
+
<div class="one half padded">
|
99
|
+
<p class="large padded align-right align-center-small-tablet"><a href="http://twitter.com/groundworkcss" target="_blank" title="@groundworkcss" style="text-decoration:none;" class="large inline gapped"></a><a href="http://github.com/groundworkcss" target="_blank" title="@groundworkcss" style="text-decoration:none;" class="large inline gapped"></a><a href="mailto:groundworkcss@gmail.com" title="groundworkcss@gmail.com" style="text-decoration:none;" class="large inline gapped"></a></p>
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
</div>
|
104
|
+
</footer>
|
105
|
+
<script type="text/javascript">
|
106
|
+
$(document).ready(function() {
|
107
|
+
$('pre[data-lang="html"]').snippet("html", {
|
108
|
+
style: "groundwork",
|
109
|
+
clipboard: "<%= asset_path('groundworkcss/demo/ZeroClipboard.swf') %>"
|
110
|
+
});
|
111
|
+
$('pre[data-lang="css"]').snippet("css", {
|
112
|
+
style: "groundwork",
|
113
|
+
clipboard: "<%= asset_path('groundworkcss/demo/ZeroClipboard.swf') %>"
|
114
|
+
});
|
115
|
+
$('pre[data-lang="scss"]').snippet("scss", {
|
116
|
+
style: "groundwork",
|
117
|
+
clipboard: "<%= asset_path('groundworkcss/demo/ZeroClipboard.swf') %>"
|
118
|
+
});
|
119
|
+
return $('pre[data-lang="js"]').snippet("javascript", {
|
120
|
+
style: "groundwork",
|
121
|
+
clipboard: "<%= asset_path('groundworkcss/demo/ZeroClipboard.swf') %>"
|
122
|
+
});
|
123
|
+
});
|
124
|
+
</script>
|
125
|
+
</body>
|
126
|
+
</html>
|
data/groundworkcss.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.email = ["groundwork@sidereel.com"]
|
10
10
|
s.homepage = "http://groundworkcss.github.io"
|
11
11
|
s.summary = %q{Setup GroundworkCSS on your rails projects in seconds.}
|
12
|
-
s.description = %q{The official GroundworkCSS rails gem. Created by @ghepting and @ldewald. GroundworkCSS is a fully responsive HTML5, CSS and Javascript toolkit created by @ghepting.}
|
12
|
+
s.description = %q{The official GroundworkCSS rails gem. Created by @ghepting and @ldewald. GroundworkCSS is a fully responsive HTML5, CSS and Javascript toolkit created by @ghepting. Note: If your app is still using GroundworkCSS 1.13.1, specify version "~0.4.3" of the `groundworkcss` gem in your Gemfile!}
|
13
13
|
s.license = "MIT"
|
14
14
|
|
15
15
|
s.rubyforge_project = "groundworkcss"
|
@@ -20,6 +20,6 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
22
|
s.add_runtime_dependency "compass-rails", "~> 1"
|
23
|
-
s.add_runtime_dependency "
|
23
|
+
s.add_runtime_dependency "autoprefixer-rails", "~> 0.7"
|
24
24
|
s.add_runtime_dependency "jquery-rails", "~> 3"
|
25
25
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
Setup assets and create boilerplate layout for GroundworkCSS
|
2
|
+
==============================================================
|
3
|
+
|
4
|
+
`rails g groundworkcss:install`
|
5
|
+
|
6
|
+
Inserts required lines into application manifest files:
|
7
|
+
/app/assets/javascripts/application.{js,coffee}
|
8
|
+
/app/assets/stylesheets/application.{css,scss}
|
9
|
+
|
10
|
+
Creates boilerplate layout:
|
11
|
+
/app/views/layouts/application.html.erb
|
12
|
+
|
13
|
+
Creates Groundwork settings file:
|
14
|
+
/app/assets/stylesheets/_groudnwork_settings.scss
|
15
|
+
|
16
|
+
|
17
|
+
Add GroundworkCSS documentation files (great for testing, too)
|
18
|
+
--------------------------------------------------------------
|
19
|
+
|
20
|
+
`rails g groundworkcss:docs`
|
21
|
+
|
22
|
+
Creates required files, controller and configures routes to
|
23
|
+
Groundwork documenation pages in your rails app (great for
|
24
|
+
offline use and testing).
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Groundworkcss
|
4
|
+
module Generators
|
5
|
+
class DocsGenerator < Rails::Generators::Base
|
6
|
+
source_root File.join(File.dirname(__FILE__), 'templates')
|
7
|
+
|
8
|
+
def create_docs
|
9
|
+
dir = Pathname.new(Gem.loaded_specs['groundworkcss'].full_gem_path)
|
10
|
+
|
11
|
+
layoutpath = "app/views/layouts/"
|
12
|
+
layout = File.join(dir, "#{layoutpath}groundworkdocs.html.erb")
|
13
|
+
copy_file layout, "#{layoutpath}#{File.basename(layout)}", :force => true
|
14
|
+
|
15
|
+
generator_command = "rails generate controller groundworkdocs"
|
16
|
+
|
17
|
+
viewpath = "app/views/groundworkdocs/"
|
18
|
+
pages = File.join(dir, "#{viewpath}*.html.erb")
|
19
|
+
Dir.glob(pages) do |page|
|
20
|
+
generator_command << " #{File.basename(page, ".html.erb")}"
|
21
|
+
end
|
22
|
+
|
23
|
+
run generator_command
|
24
|
+
|
25
|
+
routes_file = "config/routes.rb"
|
26
|
+
insert_into_file routes_file, "\n if Rails.env.development?\n", :before => " get \"groundworkdocs/animations\"\n"
|
27
|
+
insert_into_file routes_file, "\n end\n\n", :after => " get \"groundworkdocs/typography\"\n"
|
28
|
+
content = ''
|
29
|
+
File.open(routes_file, "r") do |file|
|
30
|
+
file.each_line do |line|
|
31
|
+
if line.include? "groundworkdocs/"
|
32
|
+
content << ' ' + line.lstrip
|
33
|
+
else
|
34
|
+
content << line
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
File.open(routes_file, "w") do |file|
|
39
|
+
file.write(content)
|
40
|
+
end
|
41
|
+
|
42
|
+
insert_into_file "app/controllers/groundworkdocs_controller.rb", "layout 'groundworkdocs'\n\n", :after => "class GroundworkdocsController < ApplicationController\n"
|
43
|
+
|
44
|
+
css_file = "app/assets/stylesheets/groundworkdocs.css.scss"
|
45
|
+
File.open(css_file, "w") do |file|
|
46
|
+
file.write("// GroundworkCSS 2 Documentation\n\n@import 'groundwork_settings';\n@import 'groundworkcss/groundwork';\n@import 'groundworkcss/demo/jquery.snippet';\n@import 'groundworkcss/demo/groundworkdocs';\n")
|
47
|
+
end
|
48
|
+
|
49
|
+
js_file = "app/assets/javascripts/groundworkdocs.js.coffee"
|
50
|
+
File.open(js_file, "w") do |file|
|
51
|
+
file.write("# GroundworkCSS 2 Documentation\n\n#= require 'groundworkcss/libs/modernizr-2.6.2.min'\n#= require 'groundworkcss/libs/jquery-1.10.2.min'\n#= require 'groundworkcss/all'\n#= require 'groundworkcss/demo/jquery.snippet.min'\n")
|
52
|
+
end
|
53
|
+
|
54
|
+
Dir.glob(pages) do |page|
|
55
|
+
copy_file page, "#{viewpath}#{File.basename(page)}", :force => true
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -5,29 +5,46 @@ module Groundworkcss
|
|
5
5
|
class InstallGenerator < Rails::Generators::Base
|
6
6
|
source_root File.join(File.dirname(__FILE__), 'templates')
|
7
7
|
|
8
|
-
def
|
8
|
+
def create_settings_file
|
9
9
|
dir = Pathname.new(Gem.loaded_specs['groundworkcss'].full_gem_path)
|
10
10
|
file = File.join(dir, "app/assets/stylesheets/groundworkcss/_settings-rails#{Rails::VERSION::MAJOR}.scss")
|
11
|
-
create_file "app/assets/stylesheets/
|
11
|
+
create_file "app/assets/stylesheets/_groundwork_settings.scss", File.read(file)
|
12
12
|
end
|
13
13
|
|
14
14
|
def add_assets
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
js_file = "app/assets/javascripts/application#{detect_js_format[0]}"
|
16
|
+
css_file = "app/assets/stylesheets/application#{detect_css_format[0]}"
|
17
|
+
|
18
|
+
if File.exists?(js_file)
|
19
|
+
insert_into_file js_file, "#{detect_js_format[1]} require groundworkcss/libs/modernizr-2.6.2.min\n", :after => "jquery_ujs\n"
|
20
|
+
insert_into_file js_file, "#{detect_js_format[1]} require groundworkcss/all\n", :after => "groundworkcss/libs/modernizr-2.6.2.min\n"
|
21
|
+
else
|
22
|
+
puts 'Cannot locate "application.js" or "application(.js).coffee" manifest file for writing...'
|
23
|
+
end
|
24
|
+
|
25
|
+
if File.exists?(css_file)
|
26
|
+
insert_into_file css_file, "@import 'groundwork_settings';\n", :after => "*/\n"
|
27
|
+
insert_into_file css_file, "@import 'groundworkcss/groundwork';\n", :after => "@import 'groundwork_settings';\n"
|
28
|
+
if detect_css_format[0] == '.css'
|
29
|
+
puts "Renaming #{css_file} to #{css_file}.scss (to enable Sass partial includes)..."
|
30
|
+
File.rename(css_file, css_file + '.scss')
|
31
|
+
end
|
32
|
+
else
|
33
|
+
puts 'Cannot locate "application.css", "application(.css).scss" or "application(.css).sass" manifest file for writing...'
|
34
|
+
end
|
19
35
|
end
|
20
36
|
|
21
37
|
def detect_js_format
|
22
|
-
return ['.js.coffee', '#='] if File.exist?('app/assets/javascripts/application.js.coffee')
|
23
38
|
return ['.js', '//='] if File.exist?('app/assets/javascripts/application.js')
|
39
|
+
return ['.js.coffee', '#='] if File.exist?('app/assets/javascripts/application.js.coffee')
|
40
|
+
return ['.coffee', '#='] if File.exist?('app/assets/javascripts/application.coffee')
|
24
41
|
end
|
25
42
|
|
26
43
|
def detect_css_format
|
27
44
|
return ['.css'] if File.exist?('app/assets/stylesheets/application.css')
|
28
45
|
return ['.css.sass'] if File.exist?('app/assets/stylesheets/application.css.sass')
|
29
|
-
return ['.sass'] if File.exist?('app/assets/stylesheets/application.sass')
|
30
46
|
return ['.css.scss'] if File.exist?('app/assets/stylesheets/application.css.scss')
|
47
|
+
return ['.sass'] if File.exist?('app/assets/stylesheets/application.sass')
|
31
48
|
return ['.scss'] if File.exist?('app/assets/stylesheets/application.scss')
|
32
49
|
end
|
33
50
|
end
|
data/lib/groundworkcss.rb
CHANGED