shipd_style 0.1.0

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.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +25 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +3 -0
  6. data/Gemfile.lock +37 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +140 -0
  9. data/Rakefile +2 -0
  10. data/config.rb +25 -0
  11. data/demo/carousel.html +79 -0
  12. data/demo/desktop-styles.html +80 -0
  13. data/demo/dialog.html +143 -0
  14. data/demo/index.html +63 -0
  15. data/demo/mobile-styles.html +253 -0
  16. data/demo/responsive-columns.html +87 -0
  17. data/demo/tablet-styles.html +79 -0
  18. data/lib/sass/_shipd-variables.scss +6 -0
  19. data/lib/sass/desktop/_button-form-elements.scss +15 -0
  20. data/lib/sass/desktop/_grid.scss +37 -0
  21. data/lib/sass/desktop/_layout-elements.scss +10 -0
  22. data/lib/sass/desktop/_typography.scss +6 -0
  23. data/lib/sass/desktop/_variable_overrides.scss +2 -0
  24. data/lib/sass/desktop/_variables.scss +2 -0
  25. data/lib/sass/mobile/_grid.scss +41 -0
  26. data/lib/sass/mobile/_oo-styles.scss +218 -0
  27. data/lib/sass/mobile/_typography.scss +50 -0
  28. data/lib/sass/mobile/widgets/_buttons.scss +134 -0
  29. data/lib/sass/mobile/widgets/_carousel.scss +16 -0
  30. data/lib/sass/mobile/widgets/_dialog-overlay.scss +37 -0
  31. data/lib/sass/mobile/widgets/_form-elements.scss +80 -0
  32. data/lib/sass/mobile/widgets/_header.scss +6 -0
  33. data/lib/sass/mobile/widgets/_page-layout.scss +9 -0
  34. data/lib/sass/shipd-all.scss +9 -0
  35. data/lib/sass/shipd-desktop.scss +9 -0
  36. data/lib/sass/shipd-mobile.scss +20 -0
  37. data/lib/sass/shipd-tablet.scss +9 -0
  38. data/lib/sass/tablet/_button-form-elements.scss +15 -0
  39. data/lib/sass/tablet/_grid.scss +39 -0
  40. data/lib/sass/tablet/_layout-elements.scss +15 -0
  41. data/lib/sass/tablet/_typography.scss +6 -0
  42. data/lib/sass/tablet/_variable_overrides.scss +2 -0
  43. data/lib/sass/tablet/_variables.scss +2 -0
  44. data/lib/sass/variables/_colors.scss +43 -0
  45. data/lib/sass/variables/_font.scss +7 -0
  46. data/lib/sass/variables/_form_spacing.scss +4 -0
  47. data/lib/sass/variables/_misc.scss +5 -0
  48. data/lib/sass/variables/_mixins.scss +45 -0
  49. data/lib/sass/variables/_spacing.scss +4 -0
  50. data/lib/shipd_style/copy_stylesheets.rb +16 -0
  51. data/lib/shipd_style/shipd_style.rake +9 -0
  52. data/lib/shipd_style/tasks.rb +3 -0
  53. data/lib/shipd_style/version.rb +3 -0
  54. data/lib/shipd_style.rb +5 -0
  55. data/lib/templates/carousel.html +6 -0
  56. data/lib/templates/dialog.html +15 -0
  57. data/lib/templates/page-layout.html +4 -0
  58. data/shipd_style.gemspec +25 -0
  59. metadata +144 -0
@@ -0,0 +1,43 @@
1
+ $lightest-color: #fff;
2
+ $darkest-color: #333;
3
+
4
+ // Shades of gray
5
+ $neutral-90: mix($lightest-color, $darkest-color, 10%);
6
+ $neutral-80: mix($lightest-color, $darkest-color, 20%);
7
+ $neutral-70: mix($lightest-color, $darkest-color, 30%);
8
+ $neutral-60: mix($lightest-color, $darkest-color, 40%);
9
+ $neutral-50: mix($lightest-color, $darkest-color, 50%);
10
+ $neutral-40: mix($lightest-color, $darkest-color, 60%);
11
+ $neutral-30: mix($lightest-color, $darkest-color, 70%);
12
+ $neutral-20: mix($lightest-color, $darkest-color, 80%);
13
+ $neutral-10: mix($lightest-color, $darkest-color, 90%);
14
+
15
+ // Theme based color
16
+ $primary: rgb(125, 192, 251);
17
+ $primary-light: lighten($primary, 5%);
18
+ $primary-dark: darken($primary, 5%);
19
+
20
+ $accent: rgb(255, 186, 30);
21
+ $accent-light: lighten($accent, 10%);
22
+ $accent-dark: darken($accent, 10%);
23
+
24
+ $accent-2: rgb(67, 169, 120);
25
+ $accent-2-light: lighten($accent-2, 5%);
26
+ $accent-2-dark: darken($accent-2, 5%);
27
+
28
+ // Semantic colors;
29
+ $info: darken($primary, 30%);
30
+ $info-light: lighten($info, 5%);
31
+ $info-dark: darken($info, 5%);
32
+
33
+ $info-2: darken($accent-2, 10%);
34
+ $info-2-light: lighten($info-2, 5%);
35
+ $info-2-dark: darken($info-2, 5%);
36
+
37
+ $warn: darken($accent, 20%);
38
+ $warn-light: lighten($warn, 5%);
39
+ $warn-dark: darken($warn, 5%);
40
+
41
+ $error: rgb(255, 64, 34);
42
+ $error-light: lighten($error, 5%);
43
+ $error-dark: darken($error, 5%);
@@ -0,0 +1,7 @@
1
+ $sans-serif-main: "Trebuchet MS", Trebuchet, Tahoma, Geneva, sans-serif;
2
+ $serif-main: "Port Lligat Slab", Rockwell, "Lucida Sans Typewriter", serif;
3
+
4
+ $headline-font: $serif-main;
5
+ $headline-2-font: $sans-serif-main;
6
+ $body-font: $sans-serif-main;
7
+ $button-font: $sans-serif-main;
@@ -0,0 +1,4 @@
1
+ $input-top-padding: 1*$spacing;
2
+ $input-side-padding: 1.2*$spacing;
3
+ $input-border-width: 1px;
4
+ $input-border-width-special: 2px;
@@ -0,0 +1,5 @@
1
+ $overlay-height: 10000;
2
+ $border-width: 1px;
3
+ $shadow-padding: 4px;
4
+ $tablet-break-point: 768px;
5
+ $desktop-break-point: 1024px;
@@ -0,0 +1,45 @@
1
+ @mixin line {
2
+ display: block;
3
+ overflow: hidden;
4
+ *overflow: visible;
5
+ *zoom: 1;
6
+ }
7
+
8
+ @mixin bordered {
9
+ border: $border-width solid $neutral-20;
10
+ }
11
+
12
+ @mixin rounded {
13
+ @include border-radius($border-radius-size);
14
+ }
15
+
16
+ @mixin shadowed {
17
+ @include box-shadow(transparentize($darkest-color, 0.3) $shadow-padding/2 $shadow-padding/2 $shadow-padding);
18
+ }
19
+
20
+ @mixin depressed-shadow {
21
+ @include box-shadow(inset transparentize($darkest-color, 0.3) $shadow-padding/2 $shadow-padding/2 $shadow-padding);
22
+ }
23
+
24
+ @mixin text-shadowed {
25
+ @include text-shadow(transparentize($darkest-color, 0.3) 1px 1px 1px);
26
+ }
27
+
28
+ @mixin text-shadowed-light {
29
+ @include text-shadow(1px 1px 0px $lightest-color);
30
+ }
31
+
32
+ @mixin opacity-transition {
33
+ @include transition-property(opacity);
34
+ @include transition-duration(500ms);
35
+ }
36
+
37
+ /* form input fixes */
38
+ @mixin focus-input-padding-fix {
39
+ padding: $input-top-padding - $input-border-width $input-side-padding - $input-border-width;
40
+ }
41
+
42
+ @mixin input-margin-fix {
43
+ margin-left: -$input-side-padding;
44
+ margin-top: -$input-top-padding;
45
+ }
@@ -0,0 +1,4 @@
1
+ $em: 20px;
2
+ $spacing: 10px;
3
+ $line-height: 1.6;
4
+ $border-radius-size: 5px;
@@ -0,0 +1,16 @@
1
+ module ShipdStyle
2
+ class CopyStylesheets < Struct.new(:path)
3
+ def perform
4
+ make_directory
5
+ `cp -r #{sass_directory} #{path}`
6
+ end
7
+
8
+ def make_directory
9
+ `mkdir #{path}` unless File.exist?(path)
10
+ end
11
+
12
+ def sass_directory
13
+ File.expand_path(File.dirname(__FILE__) + "/../sass/*" )
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,9 @@
1
+ require_relative 'copy_stylesheets'
2
+
3
+ namespace :shipd_style do
4
+ desc "Copy all the good stuff to a directory"
5
+ task :copy_stylesheets, [:path] do |t, args|
6
+ path = args[:path] || `pwd`
7
+ ShipdStyle::CopyStylesheets.new(path).perform
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ require 'shipd_style'
2
+
3
+ load "#{File.dirname(__FILE__)}/shipd_style.rake"
@@ -0,0 +1,3 @@
1
+ module ShipdStyle
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,5 @@
1
+ require "shipd_style/version"
2
+ require "shipd_style/copy_stylesheets"
3
+
4
+ require "compass"
5
+ Compass::Frameworks.register('shipd_style', {path: File.dirname(__FILE__)})
@@ -0,0 +1,6 @@
1
+ <script class='html-template' type="text/html" id="carousel-container-template">
2
+ <div class='carousel-container my-carousel row'>
3
+ <div class='carousel-window'>
4
+ </div>
5
+ </div>
6
+ </script>
@@ -0,0 +1,15 @@
1
+ <script class='html-template' type="text/html" id="overlay-template">
2
+ <div id="overlay">
3
+ </div>
4
+ </script>
5
+
6
+ <script class='html-template' type="text/html" id="dialog-template">
7
+ <div class='dialog-container'>
8
+ <div class='inner dialog-inner'>
9
+ <div class='dialog inner border rounded'>
10
+ <div class="close-dialog close-x">&times;</div>
11
+ <!-- content here -->
12
+ </div>
13
+ </div>
14
+ </div>
15
+ </script>
@@ -0,0 +1,4 @@
1
+ <script type="text/html" id="page-template">
2
+ <div id="page">
3
+ </div>
4
+ </script>
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'shipd_style/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "shipd_style"
8
+ spec.version = ShipdStyle::VERSION
9
+ spec.authors = ["Kane Baccigalupi"]
10
+ spec.email = ["kane@shipd.id"]
11
+ spec.summary = %q{Responsive Design CSS3 Compass Framework}
12
+ spec.description = %q{ShipdStyle is a compass driven CSS3 framework that makes building responsive designs easy, and extensible.}
13
+ spec.homepage = "https://github.com/shipd/shipd_style"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
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_dependency "compass"
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.6"
24
+ spec.add_development_dependency "rake"
25
+ end
metadata ADDED
@@ -0,0 +1,144 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shipd_style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kane Baccigalupi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: compass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: ShipdStyle is a compass driven CSS3 framework that makes building responsive
56
+ designs easy, and extensible.
57
+ email:
58
+ - kane@shipd.id
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".ruby-gemset"
65
+ - ".ruby-version"
66
+ - Gemfile
67
+ - Gemfile.lock
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - config.rb
72
+ - demo/carousel.html
73
+ - demo/desktop-styles.html
74
+ - demo/dialog.html
75
+ - demo/index.html
76
+ - demo/mobile-styles.html
77
+ - demo/responsive-columns.html
78
+ - demo/tablet-styles.html
79
+ - lib/sass/_shipd-variables.scss
80
+ - lib/sass/desktop/_button-form-elements.scss
81
+ - lib/sass/desktop/_grid.scss
82
+ - lib/sass/desktop/_layout-elements.scss
83
+ - lib/sass/desktop/_typography.scss
84
+ - lib/sass/desktop/_variable_overrides.scss
85
+ - lib/sass/desktop/_variables.scss
86
+ - lib/sass/mobile/_grid.scss
87
+ - lib/sass/mobile/_oo-styles.scss
88
+ - lib/sass/mobile/_typography.scss
89
+ - lib/sass/mobile/widgets/_buttons.scss
90
+ - lib/sass/mobile/widgets/_carousel.scss
91
+ - lib/sass/mobile/widgets/_dialog-overlay.scss
92
+ - lib/sass/mobile/widgets/_form-elements.scss
93
+ - lib/sass/mobile/widgets/_header.scss
94
+ - lib/sass/mobile/widgets/_page-layout.scss
95
+ - lib/sass/shipd-all.scss
96
+ - lib/sass/shipd-desktop.scss
97
+ - lib/sass/shipd-mobile.scss
98
+ - lib/sass/shipd-tablet.scss
99
+ - lib/sass/tablet/_button-form-elements.scss
100
+ - lib/sass/tablet/_grid.scss
101
+ - lib/sass/tablet/_layout-elements.scss
102
+ - lib/sass/tablet/_typography.scss
103
+ - lib/sass/tablet/_variable_overrides.scss
104
+ - lib/sass/tablet/_variables.scss
105
+ - lib/sass/variables/_colors.scss
106
+ - lib/sass/variables/_font.scss
107
+ - lib/sass/variables/_form_spacing.scss
108
+ - lib/sass/variables/_misc.scss
109
+ - lib/sass/variables/_mixins.scss
110
+ - lib/sass/variables/_spacing.scss
111
+ - lib/shipd_style.rb
112
+ - lib/shipd_style/copy_stylesheets.rb
113
+ - lib/shipd_style/shipd_style.rake
114
+ - lib/shipd_style/tasks.rb
115
+ - lib/shipd_style/version.rb
116
+ - lib/templates/carousel.html
117
+ - lib/templates/dialog.html
118
+ - lib/templates/page-layout.html
119
+ - shipd_style.gemspec
120
+ homepage: https://github.com/shipd/shipd_style
121
+ licenses:
122
+ - MIT
123
+ metadata: {}
124
+ post_install_message:
125
+ rdoc_options: []
126
+ require_paths:
127
+ - lib
128
+ required_ruby_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ requirements: []
139
+ rubyforge_project:
140
+ rubygems_version: 2.2.2
141
+ signing_key:
142
+ specification_version: 4
143
+ summary: Responsive Design CSS3 Compass Framework
144
+ test_files: []