uikit 0.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6e3be7181b2d0eeb6b440b2e97dd9428acb1c867
4
+ data.tar.gz: ec9b76304b3452fbf49cb4d6a5554b21fe065e67
5
+ SHA512:
6
+ metadata.gz: 5c266ae80d86f8674bcf9e2e4a2a8503f3819a37e3b4318daca778beb96fc92ae3778e8b3c8f99c22838d51b50e1d7a7b58f024413a5c4587a86035275f18338
7
+ data.tar.gz: 7be41f79f52e24d83e0f054076fdcb91ab5fc358d9822043b36c25406268340eddf04851c2945dd6f55128d56c8df5e03676d2c399b3f2dcb9b41e1d1f40992f
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ InstalledFiles
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in uikit.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Jeff Rafter
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Uikit
2
+
3
+ Installs a basic set of user interface templates for your Rails application.
4
+
5
+ Most of this code is from http://nobodysofnyc.com.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ group :development do
12
+ gem 'uikit'
13
+ end
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install uikit
22
+
23
+ ## Usage
24
+
25
+ After installing the gem you:
26
+
27
+ rails g uikit:install
28
+
29
+ ## Contributing
30
+
31
+ 1. Fork it
32
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
33
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
34
+ 4. Push to the branch (`git push origin my-new-feature`)
35
+ 5. Create new Pull Request
36
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,29 @@
1
+ Usage:
2
+ rails generate uikit [options]
3
+
4
+ Runtime options:
5
+ -f, [--force] # Overwrite files that already exist
6
+ -p, [--pretend] # Run but do not make any changes
7
+ -s, [--skip] # Skip files that already exist
8
+ -q, [--quiet] # Supress status output
9
+
10
+ Description:
11
+ Installs a basic set of user interface templates for your Rails application.
12
+
13
+ Example:
14
+ rails generate uikit:install
15
+
16
+ This will create:
17
+
18
+ app/assets/stylesheets/uikit.scss
19
+ app/assets/stylesheets/uikit/base.scss
20
+ app/assets/stylesheets/uikit/buttons.scss
21
+ app/assets/stylesheets/uikit/flash.scss
22
+ app/assets/stylesheets/uikit/fonts.scss
23
+ app/assets/stylesheets/uikit/forms.scss
24
+ app/assets/stylesheets/uikit/layout.scss
25
+ app/assets/stylesheets/uikit/reset.scss
26
+ app/assets/stylesheets/mixins/animate.scss
27
+ app/assets/stylesheets/mixins/border-helper.scss
28
+ app/assets/stylesheets/mixins/box-shadow.scss
29
+
@@ -0,0 +1,17 @@
1
+ require 'rails/generators'
2
+
3
+ module Uikit
4
+ class InstallGenerator < Rails::Generators::Base
5
+ desc "A basic set of user interface templates for your R<D-d>ails app"
6
+
7
+ def self.source_root
8
+ @source_root ||= File.join(File.dirname(__FILE__), 'templates')
9
+ end
10
+
11
+ def generate_uikit
12
+ copy_file "uikit.scss", "app/assets/stylesheets/uikit.scss"
13
+ directory "uikit", "app/assets/stylesheets/uikit"
14
+ directory "mixins", "app/assets/stylesheets/mixins"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,13 @@
1
+ @mixin transition-duration($dur: 0.3s) {
2
+ -webkit-transition-duration: $dur;
3
+ -moz-transition-duration: $dur;
4
+ -o-transition-duration: $dur;
5
+ transition-duration: $dur;
6
+ }
7
+
8
+ @mixin transform($translate: translate3d(0px, 0px, 0px), $scale: scale(1)) {
9
+ -webkit-transform: $translate $scale;
10
+ -moz-transform: $translate $scale;
11
+ -o-transform: $translate $scale;
12
+ transform: $translate $scale;
13
+ }
@@ -0,0 +1,11 @@
1
+ @mixin border($width:1px, $style:solid, $color:#000) {
2
+ border-width: $width;
3
+ border-style: $style;
4
+ border-color: $color;
5
+ }
6
+
7
+ @mixin shadow {
8
+ -moz-box-shadow: inset 0 0 8px #bbb;
9
+ -webkit-box-shadow: inset 0 0 8px #bbb;
10
+ box-shadow: inset 0 0 8px #bbb;
11
+ }
@@ -0,0 +1,6 @@
1
+ @mixin box-shadow($shadow1, $shadow2: none, $shadow3: none, $shadow4: none, $shadow5: none) {
2
+ -webkit-box-shadow: $shadow1, $shadow2, $shadow3, $shadow4, $shadow5;
3
+ -moz-box-shadow: $shadow1, $shadow2, $shadow3, $shadow4, $shadow5;
4
+ -o-box-shadow: $shadow1, $shadow2, $shadow3, $shadow4, $shadow5;
5
+ box-shadow: $shadow1, $shadow2, $shadow3, $shadow4, $shadow5;
6
+ }
@@ -0,0 +1,7 @@
1
+ html, body {
2
+ height: 100%;
3
+ }
4
+
5
+ body {
6
+ background: #fff;
7
+ }
File without changes
@@ -0,0 +1,10 @@
1
+ .flash {
2
+ position: absolute;
3
+
4
+ &.notice {
5
+ width: 100%;
6
+ text-align: center;
7
+ padding: 8px 0px;
8
+ border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
9
+ }
10
+ }
@@ -0,0 +1,82 @@
1
+ $courier: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
2
+ $mono: "Lucida Sans Typewriter", "Lucida Console", Monaco, "Bitstream Vera Sans Mono", monospace;
3
+
4
+ body {
5
+ font-size: 10px;
6
+ -webkit-font-smoothing: antialiased;
7
+ }
8
+
9
+ h1, h2, h3, h4, h5, h6, p, a, li, address {
10
+ color: #111;
11
+ }
12
+
13
+ .header {
14
+ font-family: $mono;
15
+ font-weight: bold;
16
+ }
17
+
18
+ h1 {
19
+ font-size: 2.6em;
20
+ margin-bottom: 0.385em;
21
+ white-space:pre;
22
+ font-family: $courier;
23
+
24
+ &.home {
25
+ @extend .header;
26
+ font-family: $mono;
27
+ }
28
+ }
29
+
30
+ h2 {
31
+ font-size: 2.6em;
32
+ margin-bottom: 0.385em;
33
+ @extend .header;
34
+
35
+ &.home {
36
+ @extend .header;
37
+ font-family: $mono;
38
+ }
39
+ }
40
+
41
+ h3 {
42
+ font-size: 2.2em;
43
+ @extend .header;
44
+ }
45
+
46
+ textarea, p, address {
47
+ font-size: 1.7em;
48
+ font-family: $mono;
49
+ font-weight: 300;
50
+ line-height: 22px;
51
+
52
+ &.description{
53
+ font-size: 1.5em;
54
+ }
55
+
56
+ &.caption {
57
+ font-size: 1.9em;
58
+ font-style: italic;
59
+ line-height: 1.3em;
60
+ }
61
+
62
+ &.bold {
63
+ font-weight: bold;
64
+ }
65
+ }
66
+
67
+ a {
68
+ text-decoration: none;
69
+
70
+ &:hover {
71
+ color: rgb(255, 243, 42);
72
+ }
73
+ }
74
+
75
+ @media screen and (max-width: 960px) {
76
+ h2 {
77
+ font-size: 2.2em;
78
+ }
79
+ h3 {
80
+ font-size: 2.2em;
81
+ }
82
+ }
File without changes
@@ -0,0 +1,33 @@
1
+ #container {
2
+ margin: 0px auto;
3
+ width: 100%;
4
+ height: 100%;
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ .w960 {
9
+ margin: 0px auto;
10
+ max-width: 96.0em;
11
+ width: 100%;
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ @media screen and (max-width: 960px) {
16
+ .w960 {
17
+ padding: 0em 2.0em;
18
+ }
19
+ }
20
+
21
+ .clearfix:before,
22
+ .clearfix:after {
23
+ content: " ";
24
+ display: table;
25
+ }
26
+
27
+ .clearfix:after {
28
+ clear: both;
29
+ }
30
+
31
+ .clearfix {
32
+ *zoom: 1;
33
+ }
@@ -0,0 +1,46 @@
1
+ html, body, div, span, applet, object, iframe,
2
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
+ a, abbr, acronym, address, big, cite, code,
4
+ del, dfn, em, img, ins, kbd, q, s, samp,
5
+ small, strike, strong, sub, sup, tt, var,
6
+ b, u, i, center,
7
+ dl, dt, dd, ol, ul, li,
8
+ fieldset, form, label, legend,
9
+ table, caption, tbody, tfoot, thead, tr, th, td,
10
+ article, aside, canvas, details, embed,
11
+ figure, figcaption, footer, header, hgroup,
12
+ menu, nav, output, ruby, section, summary,
13
+ time, mark, audio, video {
14
+ margin: 0;
15
+ padding: 0;
16
+ border: 0;
17
+ font-size: 100%;
18
+ font: inherit;
19
+ }
20
+
21
+ /* HTML5 display-role reset for older browsers */
22
+ article, aside, details, figcaption, figure,
23
+ footer, header, hgroup, menu, nav, section {
24
+ display: block;
25
+ }
26
+ body {
27
+ line-height: 1;
28
+ }
29
+ ol, ul {
30
+ list-style: none;
31
+ }
32
+ blockquote, q {
33
+ quotes: none;
34
+ }
35
+ blockquote:before, blockquote:after,
36
+ q:before, q:after {
37
+ content: '';
38
+ content: none;
39
+ }
40
+ table {
41
+ border-collapse: collapse;
42
+ border-spacing: 0;
43
+ }
44
+ img {
45
+ display: block;
46
+ }
@@ -0,0 +1,7 @@
1
+ @import "uikit/reset.scss";
2
+ @import "uikit/base.scss";
3
+ @import "uikit/layout.scss";
4
+ @import "uikit/fonts.scss";
5
+ @import "uikit/buttons.scss";
6
+ @import "uikit/flash.scss";
7
+ @import "uikit/forms.scss";
@@ -0,0 +1,6 @@
1
+ require 'rails'
2
+
3
+ module Uikit
4
+ class Engine < Rails::Engine
5
+ end
6
+ end
@@ -0,0 +1,3 @@
1
+ module Uikit
2
+ VERSION = "0.0.1"
3
+ end
data/lib/uikit.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "uikit/version"
2
+
3
+ module Uikit
4
+ require 'uikit/engine' if defined?(Rails)
5
+ end
data/uikit.gemspec ADDED
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'uikit/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "uikit"
8
+ spec.version = Uikit::VERSION
9
+ spec.authors = ["Jeff Rafter"]
10
+ spec.email = ["jeffrafter@gmail.com"]
11
+ spec.description = %q{Installs a basic set of user interface templates for your Rails application}
12
+ spec.summary = %q{Rails generator for installing user interface stylesheets}
13
+ spec.homepage = "https://github.com/jeffrafter/uikit"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: uikit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jeff Rafter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Installs a basic set of user interface templates for your Rails application
42
+ email:
43
+ - jeffrafter@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - .gitignore
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - lib/generators/uikit/USAGE
54
+ - lib/generators/uikit/install_generator.rb
55
+ - lib/generators/uikit/templates/mixins/animate.scss
56
+ - lib/generators/uikit/templates/mixins/border-helper.scss
57
+ - lib/generators/uikit/templates/mixins/box-shadow.scss
58
+ - lib/generators/uikit/templates/uikit.scss
59
+ - lib/generators/uikit/templates/uikit/base.scss
60
+ - lib/generators/uikit/templates/uikit/buttons.scss
61
+ - lib/generators/uikit/templates/uikit/flash.scss
62
+ - lib/generators/uikit/templates/uikit/fonts.scss
63
+ - lib/generators/uikit/templates/uikit/forms.scss
64
+ - lib/generators/uikit/templates/uikit/layout.scss
65
+ - lib/generators/uikit/templates/uikit/reset.scss
66
+ - lib/uikit.rb
67
+ - lib/uikit/engine.rb
68
+ - lib/uikit/version.rb
69
+ - uikit.gemspec
70
+ homepage: https://github.com/jeffrafter/uikit
71
+ licenses:
72
+ - MIT
73
+ metadata: {}
74
+ post_install_message:
75
+ rdoc_options: []
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ requirements: []
89
+ rubyforge_project:
90
+ rubygems_version: 2.0.3
91
+ signing_key:
92
+ specification_version: 4
93
+ summary: Rails generator for installing user interface stylesheets
94
+ test_files: []