cactu 0.1.2 → 0.18.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 (132) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +10 -15
  3. data/.travis.yml +7 -0
  4. data/CODE_OF_CONDUCT.md +74 -0
  5. data/Gemfile +1 -1
  6. data/{LICENSE.txt → LICENSE} +1 -1
  7. data/README.md +46 -16
  8. data/Rakefile +9 -0
  9. data/assets/stylesheets/base/_blocks.scss +24 -0
  10. data/assets/stylesheets/base/_global-variables.scss +62 -0
  11. data/assets/stylesheets/base/_reboot.scss +309 -0
  12. data/assets/stylesheets/cactu.scss +46 -0
  13. data/assets/stylesheets/components/_alerts.scss +48 -0
  14. data/assets/stylesheets/components/_buttons.scss +82 -0
  15. data/assets/stylesheets/components/_collapse.scss +84 -0
  16. data/assets/stylesheets/components/_dropdowns.scss +172 -0
  17. data/assets/stylesheets/components/_forms.scss +158 -0
  18. data/assets/stylesheets/components/_grids.scss +95 -0
  19. data/assets/stylesheets/components/_lists.scss +75 -0
  20. data/assets/stylesheets/components/_modals.scss +124 -0
  21. data/assets/stylesheets/components/_navbars.scss +190 -0
  22. data/assets/stylesheets/components/_navs.scss +52 -0
  23. data/assets/stylesheets/components/_paginations.scss +76 -0
  24. data/assets/stylesheets/components/_tables.scss +49 -0
  25. data/assets/stylesheets/components/_tooltips.scss +138 -0
  26. data/assets/stylesheets/elements/_button.scss +94 -0
  27. data/assets/stylesheets/elements/_code.scss +75 -0
  28. data/assets/stylesheets/elements/_icon.scss +66 -0
  29. data/assets/stylesheets/elements/_image.scss +33 -0
  30. data/assets/stylesheets/elements/_typography.scss +130 -0
  31. data/assets/stylesheets/functions/_colors.scss +40 -0
  32. data/assets/stylesheets/functions/_strings.scss +14 -0
  33. data/assets/stylesheets/mixins/_alerts.scss +18 -0
  34. data/assets/stylesheets/mixins/_breakpoints.scss +93 -0
  35. data/assets/stylesheets/mixins/_buttons.scss +96 -0
  36. data/assets/stylesheets/mixins/_forms.scss +44 -0
  37. data/assets/stylesheets/mixins/_grid.scss +18 -0
  38. data/assets/stylesheets/mixins/_hover.scss +27 -0
  39. data/assets/stylesheets/mixins/_icons.scss +22 -0
  40. data/assets/stylesheets/mixins/_navbar.scss +60 -0
  41. data/assets/stylesheets/mixins/_positions.scss +12 -0
  42. data/assets/stylesheets/mixins/_transition.scss +16 -0
  43. data/assets/stylesheets/utilities/_classes.scss +69 -0
  44. data/assets/stylesheets/utilities/_syntax.scss +81 -0
  45. data/cactu.gemspec +15 -15
  46. data/lib/cactu.rb +40 -12
  47. data/lib/cactu/engine.rb +11 -3
  48. data/lib/cactu/version.rb +1 -1
  49. metadata +123 -110
  50. data/app/assets/stylesheets/_cactu.scss +0 -15
  51. data/app/assets/stylesheets/config/_variables.scss +0 -27
  52. data/app/assets/stylesheets/functions/_grid.scss +0 -32
  53. data/app/assets/stylesheets/mixins/_fonts.scss +0 -13
  54. data/app/assets/stylesheets/mixins/_grid.scss +0 -81
  55. data/app/assets/stylesheets/mixins/_menu.scss +0 -47
  56. data/app/assets/stylesheets/ui/_base.scss +0 -53
  57. data/app/assets/stylesheets/ui/_buttons.scss +0 -13
  58. data/app/assets/stylesheets/ui/_forms.scss +0 -3
  59. data/app/assets/stylesheets/ui/_images.scss +0 -3
  60. data/app/assets/stylesheets/ui/_menus.scss +0 -4
  61. data/app/assets/stylesheets/ui/_tables.scss +0 -3
  62. data/app/assets/stylesheets/ui/_text.scss +0 -71
  63. data/bin/cactu +0 -6
  64. data/lib/cactu/generator.rb +0 -80
  65. data/test/cactu_app/.gitignore +0 -16
  66. data/test/cactu_app/Gemfile +0 -49
  67. data/test/cactu_app/README.rdoc +0 -28
  68. data/test/cactu_app/Rakefile +0 -6
  69. data/test/cactu_app/app/assets/images/.keep +0 -0
  70. data/test/cactu_app/app/assets/javascripts/application.js +0 -16
  71. data/test/cactu_app/app/assets/stylesheets/application.css.scss +0 -16
  72. data/test/cactu_app/app/assets/stylesheets/test/_test.css.scss +0 -10
  73. data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_large.css.scss +0 -7
  74. data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_medium.css.scss +0 -7
  75. data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_short.css.scss +0 -3
  76. data/test/cactu_app/app/assets/stylesheets/test/config/_variables.css.scss +0 -7
  77. data/test/cactu_app/app/assets/stylesheets/test/pages/_home.css.scss +0 -2
  78. data/test/cactu_app/app/assets/stylesheets/test/ui/_anchors.css.scss +0 -0
  79. data/test/cactu_app/app/assets/stylesheets/test/ui/_base.css.scss +0 -0
  80. data/test/cactu_app/app/assets/stylesheets/test/ui/_navigations.css.scss +0 -3
  81. data/test/cactu_app/app/assets/stylesheets/test/ui/_text.css.scss +0 -1
  82. data/test/cactu_app/app/controllers/application_controller.rb +0 -5
  83. data/test/cactu_app/app/controllers/concerns/.keep +0 -0
  84. data/test/cactu_app/app/controllers/home_controller.rb +0 -5
  85. data/test/cactu_app/app/controllers/usage_controller.rb +0 -13
  86. data/test/cactu_app/app/helpers/application_helper.rb +0 -2
  87. data/test/cactu_app/app/mailers/.keep +0 -0
  88. data/test/cactu_app/app/models/.keep +0 -0
  89. data/test/cactu_app/app/models/concerns/.keep +0 -0
  90. data/test/cactu_app/app/views/home/index.html.haml +0 -7
  91. data/test/cactu_app/app/views/layouts/application.html.haml +0 -20
  92. data/test/cactu_app/app/views/usage/base.html.haml +0 -19
  93. data/test/cactu_app/app/views/usage/components.html.haml +0 -4
  94. data/test/cactu_app/app/views/usage/started.html.haml +0 -4
  95. data/test/cactu_app/bin/bundle +0 -3
  96. data/test/cactu_app/bin/rails +0 -4
  97. data/test/cactu_app/bin/rake +0 -4
  98. data/test/cactu_app/config.ru +0 -4
  99. data/test/cactu_app/config/application.rb +0 -23
  100. data/test/cactu_app/config/boot.rb +0 -4
  101. data/test/cactu_app/config/database.yml +0 -25
  102. data/test/cactu_app/config/environment.rb +0 -5
  103. data/test/cactu_app/config/environments/development.rb +0 -29
  104. data/test/cactu_app/config/environments/production.rb +0 -80
  105. data/test/cactu_app/config/environments/test.rb +0 -36
  106. data/test/cactu_app/config/initializers/backtrace_silencers.rb +0 -7
  107. data/test/cactu_app/config/initializers/filter_parameter_logging.rb +0 -4
  108. data/test/cactu_app/config/initializers/inflections.rb +0 -16
  109. data/test/cactu_app/config/initializers/mime_types.rb +0 -5
  110. data/test/cactu_app/config/initializers/secret_token.rb +0 -12
  111. data/test/cactu_app/config/initializers/session_store.rb +0 -3
  112. data/test/cactu_app/config/initializers/wrap_parameters.rb +0 -14
  113. data/test/cactu_app/config/locales/en.yml +0 -23
  114. data/test/cactu_app/config/routes.rb +0 -6
  115. data/test/cactu_app/db/seeds.rb +0 -7
  116. data/test/cactu_app/lib/assets/.keep +0 -0
  117. data/test/cactu_app/lib/tasks/.keep +0 -0
  118. data/test/cactu_app/log/.keep +0 -0
  119. data/test/cactu_app/public/404.html +0 -58
  120. data/test/cactu_app/public/422.html +0 -58
  121. data/test/cactu_app/public/500.html +0 -57
  122. data/test/cactu_app/public/favicon.ico +0 -0
  123. data/test/cactu_app/public/robots.txt +0 -5
  124. data/test/cactu_app/test/controllers/.keep +0 -0
  125. data/test/cactu_app/test/fixtures/.keep +0 -0
  126. data/test/cactu_app/test/helpers/.keep +0 -0
  127. data/test/cactu_app/test/integration/.keep +0 -0
  128. data/test/cactu_app/test/mailers/.keep +0 -0
  129. data/test/cactu_app/test/models/.keep +0 -0
  130. data/test/cactu_app/test/test_helper.rb +0 -15
  131. data/test/cactu_app/vendor/assets/javascripts/.keep +0 -0
  132. data/test/cactu_app/vendor/assets/stylesheets/.keep +0 -0
@@ -1,5 +1,13 @@
1
+ require 'autoprefixer-rails'
2
+
1
3
  module Cactu
2
- class Engine < Rails::Engine
3
- # auto wire
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ initializer 'cactu.assets' do |app|
7
+ %w(stylesheets).each do |sub|
8
+ app.config.assets.paths << root.join('assets', sub).to_s
9
+ end
10
+ end
11
+ end
4
12
  end
5
- end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Cactu
2
- VERSION = "0.1.2"
2
+ VERSION = "0.18.0"
3
3
  end
metadata CHANGED
@@ -1,159 +1,172 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cactu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Mendoza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-07 00:00:00.000000000 Z
11
+ date: 2018-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sass
14
+ name: sassc
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.0
19
+ version: '1.12'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.12.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - '>='
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.12'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: 3.2.0
32
+ version: 1.12.1
27
33
  - !ruby/object:Gem::Dependency
28
- name: thor
34
+ name: autoprefixer-rails
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - '>='
37
+ - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '0'
39
+ version: '9.1'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 9.1.0
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
- - - '>='
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '9.1'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 9.1.0
53
+ - !ruby/object:Gem::Dependency
54
+ name: minitest
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '5.0'
60
+ type: :development
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '5.0'
67
+ - !ruby/object:Gem::Dependency
68
+ name: term-ansicolor
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
39
72
  - !ruby/object:Gem::Version
40
73
  version: '0'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ - !ruby/object:Gem::Dependency
82
+ name: sprockets-rails
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '2.3'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 2.3.2
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '2.3'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 2.3.2
41
101
  - !ruby/object:Gem::Dependency
42
- name: rake
102
+ name: uglifier
43
103
  requirement: !ruby/object:Gem::Requirement
44
104
  requirements:
45
- - - '>='
105
+ - - "~>"
46
106
  - !ruby/object:Gem::Version
47
107
  version: '0'
48
108
  type: :development
49
109
  prerelease: false
50
110
  version_requirements: !ruby/object:Gem::Requirement
51
111
  requirements:
52
- - - '>='
112
+ - - "~>"
53
113
  - !ruby/object:Gem::Version
54
114
  version: '0'
55
- description: Cactu is a CSS library created to help any developer to create web pages
56
- very quickly and an easy way
115
+ description:
57
116
  email:
58
117
  - mendozagioo@gmail.com
59
- executables:
60
- - cactu
118
+ executables: []
61
119
  extensions: []
62
120
  extra_rdoc_files: []
63
121
  files:
64
- - .gitignore
122
+ - ".gitignore"
123
+ - ".travis.yml"
124
+ - CODE_OF_CONDUCT.md
65
125
  - Gemfile
66
- - LICENSE.txt
126
+ - LICENSE
67
127
  - README.md
68
128
  - Rakefile
69
- - app/assets/stylesheets/_cactu.scss
70
- - app/assets/stylesheets/config/_variables.scss
71
- - app/assets/stylesheets/functions/_grid.scss
72
- - app/assets/stylesheets/mixins/_fonts.scss
73
- - app/assets/stylesheets/mixins/_grid.scss
74
- - app/assets/stylesheets/mixins/_menu.scss
75
- - app/assets/stylesheets/ui/_base.scss
76
- - app/assets/stylesheets/ui/_buttons.scss
77
- - app/assets/stylesheets/ui/_forms.scss
78
- - app/assets/stylesheets/ui/_images.scss
79
- - app/assets/stylesheets/ui/_menus.scss
80
- - app/assets/stylesheets/ui/_tables.scss
81
- - app/assets/stylesheets/ui/_text.scss
82
- - bin/cactu
129
+ - assets/stylesheets/base/_blocks.scss
130
+ - assets/stylesheets/base/_global-variables.scss
131
+ - assets/stylesheets/base/_reboot.scss
132
+ - assets/stylesheets/cactu.scss
133
+ - assets/stylesheets/components/_alerts.scss
134
+ - assets/stylesheets/components/_buttons.scss
135
+ - assets/stylesheets/components/_collapse.scss
136
+ - assets/stylesheets/components/_dropdowns.scss
137
+ - assets/stylesheets/components/_forms.scss
138
+ - assets/stylesheets/components/_grids.scss
139
+ - assets/stylesheets/components/_lists.scss
140
+ - assets/stylesheets/components/_modals.scss
141
+ - assets/stylesheets/components/_navbars.scss
142
+ - assets/stylesheets/components/_navs.scss
143
+ - assets/stylesheets/components/_paginations.scss
144
+ - assets/stylesheets/components/_tables.scss
145
+ - assets/stylesheets/components/_tooltips.scss
146
+ - assets/stylesheets/elements/_button.scss
147
+ - assets/stylesheets/elements/_code.scss
148
+ - assets/stylesheets/elements/_icon.scss
149
+ - assets/stylesheets/elements/_image.scss
150
+ - assets/stylesheets/elements/_typography.scss
151
+ - assets/stylesheets/functions/_colors.scss
152
+ - assets/stylesheets/functions/_strings.scss
153
+ - assets/stylesheets/mixins/_alerts.scss
154
+ - assets/stylesheets/mixins/_breakpoints.scss
155
+ - assets/stylesheets/mixins/_buttons.scss
156
+ - assets/stylesheets/mixins/_forms.scss
157
+ - assets/stylesheets/mixins/_grid.scss
158
+ - assets/stylesheets/mixins/_hover.scss
159
+ - assets/stylesheets/mixins/_icons.scss
160
+ - assets/stylesheets/mixins/_navbar.scss
161
+ - assets/stylesheets/mixins/_positions.scss
162
+ - assets/stylesheets/mixins/_transition.scss
163
+ - assets/stylesheets/utilities/_classes.scss
164
+ - assets/stylesheets/utilities/_syntax.scss
83
165
  - cactu.gemspec
84
166
  - lib/cactu.rb
85
167
  - lib/cactu/engine.rb
86
- - lib/cactu/generator.rb
87
168
  - lib/cactu/version.rb
88
- - test/cactu_app/.gitignore
89
- - test/cactu_app/Gemfile
90
- - test/cactu_app/README.rdoc
91
- - test/cactu_app/Rakefile
92
- - test/cactu_app/app/assets/images/.keep
93
- - test/cactu_app/app/assets/javascripts/application.js
94
- - test/cactu_app/app/assets/stylesheets/application.css.scss
95
- - test/cactu_app/app/assets/stylesheets/test/_test.css.scss
96
- - test/cactu_app/app/assets/stylesheets/test/config/_responsive_large.css.scss
97
- - test/cactu_app/app/assets/stylesheets/test/config/_responsive_medium.css.scss
98
- - test/cactu_app/app/assets/stylesheets/test/config/_responsive_short.css.scss
99
- - test/cactu_app/app/assets/stylesheets/test/config/_variables.css.scss
100
- - test/cactu_app/app/assets/stylesheets/test/pages/_home.css.scss
101
- - test/cactu_app/app/assets/stylesheets/test/ui/_anchors.css.scss
102
- - test/cactu_app/app/assets/stylesheets/test/ui/_base.css.scss
103
- - test/cactu_app/app/assets/stylesheets/test/ui/_navigations.css.scss
104
- - test/cactu_app/app/assets/stylesheets/test/ui/_text.css.scss
105
- - test/cactu_app/app/controllers/application_controller.rb
106
- - test/cactu_app/app/controllers/concerns/.keep
107
- - test/cactu_app/app/controllers/home_controller.rb
108
- - test/cactu_app/app/controllers/usage_controller.rb
109
- - test/cactu_app/app/helpers/application_helper.rb
110
- - test/cactu_app/app/mailers/.keep
111
- - test/cactu_app/app/models/.keep
112
- - test/cactu_app/app/models/concerns/.keep
113
- - test/cactu_app/app/views/home/index.html.haml
114
- - test/cactu_app/app/views/layouts/application.html.haml
115
- - test/cactu_app/app/views/usage/base.html.haml
116
- - test/cactu_app/app/views/usage/components.html.haml
117
- - test/cactu_app/app/views/usage/started.html.haml
118
- - test/cactu_app/bin/bundle
119
- - test/cactu_app/bin/rails
120
- - test/cactu_app/bin/rake
121
- - test/cactu_app/config.ru
122
- - test/cactu_app/config/application.rb
123
- - test/cactu_app/config/boot.rb
124
- - test/cactu_app/config/database.yml
125
- - test/cactu_app/config/environment.rb
126
- - test/cactu_app/config/environments/development.rb
127
- - test/cactu_app/config/environments/production.rb
128
- - test/cactu_app/config/environments/test.rb
129
- - test/cactu_app/config/initializers/backtrace_silencers.rb
130
- - test/cactu_app/config/initializers/filter_parameter_logging.rb
131
- - test/cactu_app/config/initializers/inflections.rb
132
- - test/cactu_app/config/initializers/mime_types.rb
133
- - test/cactu_app/config/initializers/secret_token.rb
134
- - test/cactu_app/config/initializers/session_store.rb
135
- - test/cactu_app/config/initializers/wrap_parameters.rb
136
- - test/cactu_app/config/locales/en.yml
137
- - test/cactu_app/config/routes.rb
138
- - test/cactu_app/db/seeds.rb
139
- - test/cactu_app/lib/assets/.keep
140
- - test/cactu_app/lib/tasks/.keep
141
- - test/cactu_app/log/.keep
142
- - test/cactu_app/public/404.html
143
- - test/cactu_app/public/422.html
144
- - test/cactu_app/public/500.html
145
- - test/cactu_app/public/favicon.ico
146
- - test/cactu_app/public/robots.txt
147
- - test/cactu_app/test/controllers/.keep
148
- - test/cactu_app/test/fixtures/.keep
149
- - test/cactu_app/test/helpers/.keep
150
- - test/cactu_app/test/integration/.keep
151
- - test/cactu_app/test/mailers/.keep
152
- - test/cactu_app/test/models/.keep
153
- - test/cactu_app/test/test_helper.rb
154
- - test/cactu_app/vendor/assets/javascripts/.keep
155
- - test/cactu_app/vendor/assets/stylesheets/.keep
156
- homepage: https://github.com/mendozagioo/cactu
169
+ homepage: http://cactu.site
157
170
  licenses:
158
171
  - MIT
159
172
  metadata: {}
@@ -163,19 +176,19 @@ require_paths:
163
176
  - lib
164
177
  required_ruby_version: !ruby/object:Gem::Requirement
165
178
  requirements:
166
- - - '>='
179
+ - - ">="
167
180
  - !ruby/object:Gem::Version
168
181
  version: '0'
169
182
  required_rubygems_version: !ruby/object:Gem::Requirement
170
183
  requirements:
171
- - - '>='
184
+ - - ">="
172
185
  - !ruby/object:Gem::Version
173
186
  version: '0'
174
187
  requirements: []
175
- rubyforge_project: cactu
176
- rubygems_version: 2.0.2
188
+ rubyforge_project:
189
+ rubygems_version: 2.7.6
177
190
  signing_key:
178
191
  specification_version: 4
179
- summary: Cactu is a CSS library to help us to create webs easily
192
+ summary: A Sass framework to create webs easily, created to be simple, semantic, fast
193
+ to learn, customizable, and scalable.
180
194
  test_files: []
181
- has_rdoc:
@@ -1,15 +0,0 @@
1
- @import 'functions/grid';
2
-
3
- @import 'config/variables';
4
-
5
- @import 'mixins/grid';
6
- @import 'mixins/fonts';
7
- @import 'mixins/menu';
8
-
9
- @import 'ui/base';
10
- @import 'ui/text';
11
- @import 'ui/buttons';
12
- @import 'ui/forms';
13
- @import 'ui/images';
14
- @import 'ui/menus';
15
- @import 'ui/tables';
@@ -1,27 +0,0 @@
1
- //
2
- // CONFIG/VARIABLES
3
- // --------------------------------------------------
4
-
5
- // Grid
6
- $max-cols: 12;
7
-
8
- // Menu
9
- $menu-w: 100%;
10
- $menu-h: 50px;
11
-
12
- // Colors
13
- $black: #000000;
14
- $white: #ffffff;
15
- $green: #6bb130;
16
- $yellow: #e9b70b;
17
- $text-color: #333333;
18
- $bkg-text: #eeeeee;
19
-
20
- $borders: #cccccc;
21
- $input-focus: #7bb5da;
22
-
23
- $anchor-color: #428bca;
24
- $anchor-hover: #245783;
25
-
26
- $bkg-menu: #afd8b0;
27
- $color-menu: #537849;
@@ -1,32 +0,0 @@
1
- //
2
- // FUNCTIONS/GRID
3
- // --------------------------------------------------
4
-
5
-
6
- @function width_column($num, $size, $gutter) {
7
- @return ($num * $size) + (($num - 1) * $gutter);
8
- }
9
-
10
- @function grid_size($column, $gutter, $max_cols) {
11
- @return ($column * $max_cols) + ($gutter * $max_cols);
12
- }
13
-
14
- @function fluid_width_column($num, $size, $gutter, $max_cols: $max-cols) {
15
- $col_width: width_column($num, $size, $gutter);
16
- $sizer: grid_size($size, $gutter, $max_cols);
17
-
18
- @return percentage($col_width / $sizer);
19
- }
20
-
21
- @function gutter_columns($column, $gutter, $max_cols) {
22
- @return percentage(($gutter / 2) / grid_size($column, $gutter, $max_cols));
23
- }
24
-
25
- @function numbers($number) {
26
- $n: "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven",
27
- "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen",
28
- "twenty", "twenty-one", "twenty-two", "twenty-three", "twenty-four", "twenty-five", "twenty-six", "twenty-seven",
29
- "twenty-eight", "twenty-nine", "thirty", "thirty-one", "thirty-two", "thirty-three",
30
- "thirty-four", "thirty-five", "thirty-six", "thirty-seven", "thirty-eight", "thirty-nine", "forty";
31
- @return nth($n, $number);
32
- }
@@ -1,13 +0,0 @@
1
- //
2
- // MIXINS/FONTS
3
- // --------------------------------------------------
4
-
5
-
6
- @mixin font_face($font, $url) {
7
- @font-face {
8
- font-family: $font;
9
- src: url("../#{$url}.otf"),
10
- url("../#{$url}.eot"),
11
- url("../#{$url}.ttf");
12
- }
13
- }
@@ -1,81 +0,0 @@
1
- //
2
- // MIXINS/GRID
3
- // --------------------------------------------------
4
-
5
-
6
- @mixin grid_generator($size_col: 0, $gutter: 0, $max_cols: $max-cols) {
7
- @if $size_col == 0 and $gutter == 0 {
8
- .row {
9
- margin: 0 5%;
10
- width: 90%;
11
- }
12
-
13
- [class *= "-column"] {
14
- overflow: hidden;
15
- float: left;
16
- margin: 0;
17
- width: 100%;
18
- }
19
- }
20
-
21
- @else if ($size_col + $gutter) < 81 {
22
- $gm_margin: gutter_columns($size_col, $gutter, $max_cols);
23
-
24
- .row {
25
- width: 100%;
26
- }
27
-
28
- [class *= "-column"] {
29
- overflow: hidden;
30
- float: left;
31
- margin: 0 gutter_columns($size_col, $gutter, $max_cols);
32
- }
33
-
34
- @for $i from 1 through $max_cols {
35
- $col_width: width_column($i, $size_col, $gutter);
36
- $sizer: grid_size($size_col, $gutter, $max_cols);
37
- .#{numbers($i)}-columns { width: percentage($col_width / $sizer); }
38
- }
39
- }
40
-
41
- @else {
42
- .row {
43
- width: grid_size($size_col, $gutter, $max_cols);
44
- }
45
-
46
- [class *= "-column"] {
47
- overflow: hidden;
48
- float: left;
49
- margin: 0 gutter_columns($size_col, $gutter, $max_cols);
50
- }
51
-
52
- @for $i from 1 through $max_cols {
53
- $col_width: width_column($i, $size_col, $gutter);
54
- $sizer: grid_size($size_col, $gutter, $max_cols);
55
- @if $i == 1 {
56
- .one-column { width: percentage($col_width / $sizer); }
57
- } @else {
58
- .#{numbers($i)}-columns { width: percentage($col_width / $sizer); }
59
- }
60
- }
61
- }
62
- }
63
-
64
- @mixin grid_offset($size_col, $gutter, $max_cols: $max-cols) {
65
- @for $i from 1 through $max_cols - 1 {
66
- $offset: ($i * $size_col) + ($i * $gutter) + ($gutter / 2);
67
- $sizer: grid_size($size_col, $gutter, $max_cols);
68
- .offset-#{numbers($i)} { margin-left: percentage($offset / $sizer); }
69
- }
70
- }
71
-
72
- @mixin grid_centered($size_col, $gutter, $max_cols: $max-cols) {
73
- @for $i from 1 through $max_cols - 1 {
74
- $col_width: width_column($i, $size_col, $gutter);
75
- $sizer: grid_size($size_col, $gutter, $max_cols);
76
- $marger: ($sizer - $col_width) / 2;
77
- .centered-#{numbers($i)} {
78
- margin: 0 percentage($marger / $sizer);
79
- }
80
- }
81
- }