aesthetics 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5584f6fc5280e4738d7a9be541a0f7a87efc25ef
4
+ data.tar.gz: b8383586ecd1155c93ff7bc6cf24430a8f26b961
5
+ SHA512:
6
+ metadata.gz: d2651299e4fc2f8a44d0be15c75ecea0a1944ce62d9ca6bd669ec7b6d6a2b8f2be79a01789af78b13fc73454109c32e7e4b5e34ca97707be737a9b8a7a8db7d7
7
+ data.tar.gz: cb34524c7312d2c2e5a60e07de16edabbc223142ff2bb21ddbe64bf7cee001034adf083cc2de8cbde1cc491e6f3230c5d68e36debe80f2ce06666fd4f9168360
@@ -0,0 +1,15 @@
1
+ .sass-cache
2
+ /.bundle/
3
+ /.yardoc
4
+ /Gemfile.lock
5
+ /_yardoc/
6
+ /coverage/
7
+ /doc/
8
+ /pkg/
9
+ /spec/reports/
10
+ /tmp/
11
+ *.bundle
12
+ *.so
13
+ *.o
14
+ *.a
15
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gem_test.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Duane Adam
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.
@@ -0,0 +1,80 @@
1
+ # [Aesthetics](https://duaneadam.github.io/aesthetics)
2
+
3
+ Aesthetics is a simple, modern and powerful front-end framework for faster and easier web development while keeping developers sane.
4
+
5
+ To get started, check out the docs. [https://duaneadam.github.io/aesthetics/docs](https://duaneadam.github.io/aesthetics/docs)
6
+
7
+ ## Quickstart For Non-Rails Projects
8
+
9
+ To get going with Aesthetics you can:
10
+
11
+ - Download the latest stable release from the dist folder
12
+ - Install using Bower: bower install aesthetics
13
+
14
+ ## Rails Setup
15
+ Add this line to your application's Gemfile:
16
+
17
+ ```
18
+ gem 'aesthetics', :git => "git://github.com/duaneadam/aesthetics.git"
19
+ ```
20
+
21
+ And then execute
22
+
23
+ ```
24
+ bundle
25
+ ```
26
+
27
+ Append the following line to your application.css
28
+
29
+ ```
30
+ /*= require aesthetics */
31
+ ```
32
+
33
+ If you're planning on using Sass, then you'll want to rename application.css to application.scss. That file should then look like:
34
+
35
+ ```
36
+ @import "aesthetics";
37
+ ```
38
+
39
+ ## Primary Contributors
40
+
41
+ - [Duane Adam](https://twitter.com/duaneadam) - <contact@duaneadam.me>
42
+
43
+ ### How To Contribute
44
+
45
+ 1. Go to branch master
46
+
47
+ ```
48
+ git checkout master
49
+ ```
50
+
51
+ 2. Pull latest change from origin/master
52
+
53
+ ```
54
+ git pull origin master
55
+ ```
56
+
57
+ 3. Create a new feature branch
58
+
59
+ ```
60
+ git checkout my-new-feature
61
+ ```
62
+
63
+ 4. Push your work
64
+
65
+ ```
66
+ git push origin my-new-feature
67
+ ```
68
+
69
+ 5. Create a new pull request on Github
70
+
71
+ ### Proper pull requests
72
+
73
+ * https://help.github.com/articles/using-pull-requests
74
+
75
+ ## Special Thanks
76
+
77
+ - Fat from Medium for his superb article on CSS which inspired me to start writing better CSS.
78
+ [https://medium.com/@fat/mediums-css-is-actually-pretty-fucking-good-b8e2a6c78b06](https://medium.com/@fat/mediums-css-is-actually-pretty-fucking-good-b8e2a6c78b06)
79
+
80
+ - Colleagues from MindvalleyFlex for letting me try out things and do what I love
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -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 'aesthetics/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "aesthetics"
8
+ spec.version = Aesthetics::VERSION
9
+ spec.authors = ["Duane Adam"]
10
+ spec.email = ["contact@duaneadam.me"]
11
+ spec.summary = %q{Simple, modern and powerful front-end framework for faster and easier web development.}
12
+ spec.description = %q{Aesthetics is a simple, modern and powerful front-end framework for faster and easier web development while keeping developers sane.}
13
+ spec.homepage = "https://duaneadam.github.io/aesthetics"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split("\n")
17
+ spec.require_paths = ["lib"]
18
+
19
+ spec.add_runtime_dependency 'sass', '~> 3.2'
20
+
21
+ spec.add_development_dependency 'sprockets-rails', '~> 2.2'
22
+ spec.add_development_dependency 'jquery-rails', '~> 4.0'
23
+ spec.add_development_dependency "bundler", "~> 1.7"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ end
@@ -0,0 +1,394 @@
1
+ /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
2
+
3
+ // 1. Set default font family to sans-serif.
4
+ // 2. Prevent iOS text size adjust after orientation change, without disabling
5
+ // user zoom.
6
+ //==========================================================================
7
+
8
+ html {
9
+ font-family: sans-serif; // 1
10
+ -ms-text-size-adjust: 100%; // 2
11
+ -webkit-text-size-adjust: 100%; // 2
12
+ }
13
+
14
+ // Remove default margin.
15
+ //==========================================================================
16
+
17
+ body {
18
+ margin: 0;
19
+ }
20
+
21
+ // HTML5 display definitions
22
+ //==========================================================================
23
+
24
+
25
+ // Correct `block` display not defined for any HTML5 element in IE 8/9.
26
+ // Correct `block` display not defined for `details` or `summary` in IE 10/11
27
+ // and Firefox.
28
+ // Correct `block` display not defined for `main` in IE 11.
29
+ //==========================================================================
30
+
31
+ article,
32
+ aside,
33
+ details,
34
+ figcaption,
35
+ figure,
36
+ footer,
37
+ header,
38
+ hgroup,
39
+ main,
40
+ menu,
41
+ nav,
42
+ section,
43
+ summary {
44
+ display: block;
45
+ }
46
+
47
+
48
+ // 1. Correct `inline-block` display not defined in IE 8/9.
49
+ // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
50
+ //==========================================================================
51
+
52
+ audio,
53
+ canvas,
54
+ progress,
55
+ video {
56
+ display: inline-block; // 1
57
+ vertical-align: baseline; // 2
58
+ }
59
+
60
+ // Prevent modern browsers from displaying `audio` without controls.
61
+ // Remove excess height in iOS 5 devices.
62
+ //==========================================================================
63
+
64
+ audio:not([controls]) {
65
+ display: none;
66
+ height: 0;
67
+ }
68
+
69
+ // Address `[hidden]` styling not present in IE 8/9/10.
70
+ // Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
71
+ //==========================================================================
72
+
73
+ [hidden],
74
+ template {
75
+ display: none;
76
+ }
77
+
78
+ // Links
79
+ //==========================================================================
80
+
81
+ // Remove the gray background color from active links in IE 10.
82
+ //==========================================================================
83
+
84
+ a {
85
+ background-color: transparent;
86
+ }
87
+
88
+ // Improve readability when focused and also mouse hovered in all browsers.
89
+ //==========================================================================
90
+
91
+ a:active,
92
+ a:hover {
93
+ outline: 0;
94
+ }
95
+
96
+ // Text-level semantics
97
+ //==========================================================================
98
+
99
+ // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
100
+ //==========================================================================
101
+
102
+ abbr[title] {
103
+ border-bottom: 1px dotted;
104
+ }
105
+
106
+ // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
107
+ //==========================================================================
108
+
109
+ b,
110
+ strong {
111
+ font-weight: bold;
112
+ }
113
+
114
+ // Address styling not present in Safari and Chrome.
115
+ //==========================================================================
116
+
117
+ dfn {
118
+ font-style: italic;
119
+ }
120
+
121
+ // Address variable `h1` font-size and margin within `section` and `article`
122
+ // contexts in Firefox 4+, Safari, and Chrome.
123
+ //==========================================================================
124
+
125
+ h1 {
126
+ font-size: 2em;
127
+ margin: 0.67em 0;
128
+ }
129
+
130
+ // Address styling not present in IE 8/9.
131
+ //
132
+
133
+ mark {
134
+ background: #ff0;
135
+ color: #000;
136
+ }
137
+
138
+ // Address inconsistent and variable font size in all browsers.
139
+ //==========================================================================
140
+
141
+ small {
142
+ font-size: 80%;
143
+ }
144
+
145
+ // Prevent `sub` and `sup` affecting `line-height` in all browsers.
146
+ //==========================================================================
147
+
148
+ sub,
149
+ sup {
150
+ font-size: 75%;
151
+ line-height: 0;
152
+ position: relative;
153
+ vertical-align: baseline;
154
+ }
155
+
156
+ sup {
157
+ top: -0.5em;
158
+ }
159
+
160
+ sub {
161
+ bottom: -0.25em;
162
+ }
163
+
164
+ // Embedded content
165
+ //===========================================================================
166
+
167
+ // Remove border when inside `a` element in IE 8/9/10.
168
+ //==========================================================================
169
+
170
+ img {
171
+ border: 0;
172
+ }
173
+
174
+
175
+ // Correct overflow not hidden in IE 9/10/11.
176
+ //==========================================================================
177
+
178
+
179
+ svg:not(:root) {
180
+ overflow: hidden;
181
+ }
182
+
183
+ // Grouping content
184
+ //===========================================================================
185
+
186
+ // Address margin not present in IE 8/9 and Safari.
187
+ //
188
+
189
+ figure {
190
+ margin: 1em 40px;
191
+ }
192
+
193
+ // Address differences between Firefox and other browsers.
194
+ //==========================================================================
195
+
196
+ hr {
197
+ -moz-box-sizing: content-box;
198
+ box-sizing: content-box;
199
+ height: 0;
200
+ }
201
+
202
+ // Contain overflow in all browsers.
203
+ //==========================================================================
204
+
205
+ pre {
206
+ overflow: auto;
207
+ }
208
+
209
+ // Address odd `em`-unit font size rendering in all browsers.
210
+ //==========================================================================
211
+
212
+ code,
213
+ kbd,
214
+ pre,
215
+ samp {
216
+ font-family: monospace, monospace;
217
+ font-size: 1em;
218
+ }
219
+
220
+ // Forms
221
+ //==========================================================================
222
+
223
+ // Known limitation: by default, Chrome and Safari on OS X allow very limited
224
+ // styling of `select`, unless a `border` property is set.
225
+ //
226
+ // 1. Correct color not being inherited.
227
+ // Known issue: affects color of disabled elements.
228
+ // 2. Correct font properties not being inherited.
229
+ // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
230
+ //==========================================================================
231
+
232
+ button,
233
+ input,
234
+ optgroup,
235
+ select,
236
+ textarea {
237
+ color: inherit; // 1
238
+ font: inherit; // 2
239
+ margin: 0; // 3
240
+ }
241
+
242
+
243
+ // Address `overflow` set to `hidden` in IE 8/9/10/11.
244
+ //==========================================================================
245
+
246
+ button {
247
+ overflow: visible;
248
+ }
249
+
250
+ // Address inconsistent `text-transform` inheritance for `button` and `select`.
251
+ // All other form control elements do not inherit `text-transform` values.
252
+ // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
253
+ // Correct `select` style inheritance in Firefox.
254
+ //==========================================================================
255
+
256
+ button,
257
+ select {
258
+ text-transform: none;
259
+ }
260
+
261
+
262
+ // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
263
+ // and `video` controls.
264
+ // 2. Correct inability to style clickable `input` types in iOS.
265
+ // 3. Improve usability and consistency of cursor style between image-type
266
+ // `input` and others.
267
+ //==========================================================================
268
+
269
+ button,
270
+ html input[type="button"], // 1
271
+ input[type="reset"],
272
+ input[type="submit"] {
273
+ -webkit-appearance: button; // 2
274
+ cursor: pointer; // 3
275
+ }
276
+
277
+ // Re-set default cursor for disabled elements.
278
+ //==========================================================================
279
+
280
+ button[disabled],
281
+ html input[disabled] {
282
+ cursor: default;
283
+ }
284
+
285
+ // Remove inner padding and border in Firefox 4+.
286
+ //==========================================================================
287
+
288
+ button::-moz-focus-inner,
289
+ input::-moz-focus-inner {
290
+ border: 0;
291
+ padding: 0;
292
+ }
293
+
294
+ // Address Firefox 4+ setting `line-height` on `input` using `!important` in
295
+ // the UA stylesheet.
296
+ //==========================================================================
297
+
298
+ input {
299
+ line-height: normal;
300
+ }
301
+
302
+ // It's recommended that you don't attempt to style these elements.
303
+ // Firefox's implementation doesn't respect box-sizing, padding, or width.
304
+ // 1. Address box sizing set to `content-box` in IE 8/9/10.
305
+ // 2. Remove excess padding in IE 8/9/10.
306
+ //==========================================================================
307
+
308
+ input[type="checkbox"],
309
+ input[type="radio"] {
310
+ box-sizing: border-box; // 1
311
+ padding: 0; // 2
312
+ }
313
+
314
+ // Fix the cursor style for Chrome's increment/decrement buttons. For certain
315
+ // `font-size` values of the `input`, it causes the cursor style of the
316
+ // decrement button to change from `default` to `text`.
317
+ //==========================================================================
318
+
319
+ input[type="number"]::-webkit-inner-spin-button,
320
+ input[type="number"]::-webkit-outer-spin-button {
321
+ height: auto;
322
+ }
323
+
324
+ //1. Address `appearance` set to `searchfield` in Safari and Chrome.
325
+ //2. Address `box-sizing` set to `border-box` in Safari and Chrome
326
+ // (include `-moz` to future-proof).
327
+ //==========================================================================
328
+
329
+ input[type="search"] {
330
+ -webkit-appearance: textfield; // 1
331
+ -moz-box-sizing: content-box;
332
+ -webkit-box-sizing: content-box; // 2
333
+ box-sizing: content-box;
334
+ }
335
+
336
+ //Remove inner padding and search cancel button in Safari and Chrome on OS X.
337
+ //Safari (but not Chrome) clips the cancel button when the search input has
338
+ //padding (and `textfield` appearance).
339
+ //==========================================================================
340
+
341
+ input[type="search"]::-webkit-search-cancel-button,
342
+ input[type="search"]::-webkit-search-decoration {
343
+ -webkit-appearance: none;
344
+ }
345
+
346
+ // Define consistent border, margin, and padding.
347
+ //==========================================================================
348
+
349
+ fieldset {
350
+ border: 1px solid #c0c0c0;
351
+ margin: 0 2px;
352
+ padding: 0.35em 0.625em 0.75em;
353
+ }
354
+
355
+
356
+ // 1. Correct `color` not being inherited in IE 8/9/10/11.
357
+ // Remove padding so people aren't caught out if they zero out fieldsets.
358
+ //==========================================================================
359
+
360
+ legend {
361
+ border: 0; // 1
362
+ padding: 0; // 2
363
+ }
364
+
365
+ // Remove default vertical scrollbar in IE 8/9/10/11.
366
+ //==========================================================================
367
+
368
+ textarea {
369
+ overflow: auto;
370
+ }
371
+
372
+ // Don't inherit the `font-weight` (applied by a rule above).
373
+ // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
374
+ //==========================================================================
375
+
376
+ optgroup {
377
+ font-weight: bold;
378
+ }
379
+
380
+ // Tables
381
+ //==========================================================================
382
+
383
+ // Remove most spacing between table cells.
384
+ //==========================================================================
385
+
386
+ table {
387
+ border-collapse: collapse;
388
+ border-spacing: 0;
389
+ }
390
+
391
+ td,
392
+ th {
393
+ padding: 0;
394
+ }