aesthetics-rails 0.1.0.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ //==================================================
2
+ // Color.scss
3
+ //
4
+ // Index
5
+ // -----
6
+ // 1) Color Palletes
7
+ // 2) Theme Colors
8
+ //==================================================
9
+
10
+
11
+ //=========================
12
+ // 1) Color Palletes
13
+ //=========================
14
+ $blue: rgb(2, 170, 245);
15
+ $oceanBlue: rgb(1, 132, 184);
16
+ $shamrock: rgb(72, 201, 176);
17
+ $moonYellow: rgb(244, 211, 19);
18
+ $cinnabar: rgb(231, 76, 60);
19
+ $gulfBlue: rgb(65, 91, 118);
20
+
21
+ //=========================
22
+ // 2) Theme Colors
23
+ //=========================
24
+ $color-primary: $blue;
25
+ $color-success: $shamrock;
26
+ $color-warning: $moonYellow;
27
+ $color-danger: $cinnabar;
28
+ $color-info: $gulfBlue;
@@ -0,0 +1,91 @@
1
+ //==================================================
2
+ // Devices.scss
3
+ //
4
+ // Index
5
+ // -----
6
+ // 1) Screen Size Scale
7
+ // 2) Media Queries Mixins
8
+ //==================================================
9
+
10
+
11
+ //=========================
12
+ // 1) Screen Size Scale
13
+ //=========================
14
+ // Define your screen screen sizes here
15
+ $small-range: (0em, 37.5em); /* 0, 600px */
16
+ $medium-range: (37.5em, 64em); /* 600px, 1024px */
17
+ $large-range: (64em, 90em); /* 1024px, 1440px */
18
+ $xlarge-range: (90em, 120em); /* 1440px, 1920px */
19
+
20
+ // Functions for determining lower and upper range of screen
21
+ // Source: https://github.com/zurb/foundation/blob/master/scss/foundation/_functions.scss
22
+ @function lower-bound($range){
23
+ @if length($range) <= 0 {
24
+ @return 0;
25
+ }
26
+ @return nth($range,1);
27
+ }
28
+
29
+ @function upper-bound($range) {
30
+ @if length($range) < 2 {
31
+ @return 999999999999;
32
+ }
33
+ @return nth($range, 2);
34
+ }
35
+
36
+ //=========================
37
+ // 2) Media Queries Mixins
38
+ //=========================
39
+ @mixin bp-landscape {
40
+ @media screen and (orientation: landscape) {
41
+ @content;
42
+ }
43
+ }
44
+
45
+ @mixin bp-portrait {
46
+ @media screen and (orientation: portrait) {
47
+ @content;
48
+ }
49
+ }
50
+
51
+ @mixin bp-small-only {
52
+ @media screen and (max-width: "#{upper-bound($small-range)}") {
53
+ @content;
54
+ }
55
+ }
56
+
57
+ @mixin bp-medium-up {
58
+ @media screen and (min-width:"#{lower-bound($medium-range)}") {
59
+ @content;
60
+ }
61
+ }
62
+
63
+ @mixin bp-medium-only {
64
+ @media screen and (min-width:"#{lower-bound($medium-range)}") and (max-width:"#{upper-bound($medium-range)}") {
65
+ @content;
66
+ }
67
+ }
68
+
69
+ @mixin bp-large-up {
70
+ @media screen and (min-width:"#{lower-bound($large-range)}") {
71
+ @content;
72
+ }
73
+ }
74
+
75
+ @mixin bp-large-only {
76
+ @media screen and (min-width:"#{lower-bound($large-range)}") and (max-width:"#{upper-bound($large-range)}") {
77
+ @content;
78
+ }
79
+ }
80
+
81
+ @mixin bp-xlarge-up {
82
+ @media screen and (min-width:"#{lower-bound($xlarge-range)}") {
83
+ @content;
84
+ }
85
+ }
86
+
87
+ @mixin bp-xlarge-only {
88
+ @media screen and (min-width:"#{lower-bound($xlarge-range)}") and (max-width:"#{upper-bound($xlarge-range)}") {
89
+ @content;
90
+ }
91
+ }
@@ -0,0 +1,38 @@
1
+ //==================================================
2
+ // Type.scss
3
+ //
4
+ // Index
5
+ // -----
6
+ // 1) Font Imports
7
+ // 2) Font Family
8
+ // 3) Line Height
9
+ // 4) Font-size
10
+ //==================================================
11
+
12
+
13
+ //=========================
14
+ // 1) Font Imports
15
+ //=========================
16
+ @import url("http://fonts.googleapis.com/css?family=Lato:400,700,300");
17
+
18
+ //=========================
19
+ // 2) Font Family
20
+ //=========================
21
+ $type-helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
22
+ $type-lato: "Lato", Helvetica, Arial, sans-serif;
23
+
24
+ //=========================
25
+ // 3) Line Height
26
+ //=========================
27
+ $type-baseLineHeight: 1.5;
28
+ $type-headingLineHeight: 1.3;
29
+
30
+ //=========================
31
+ // 3) Font-size
32
+ //=========================
33
+ $type-h1FontSize: 3rem;
34
+ $type-h2FontSize: 2.75rem;
35
+ $type-h3FontSize: 2.5rem;
36
+ $type-h4FontSize: 1.875rem;
37
+ $type-h5FontSize: 1.625rem;
38
+ $type-h6FontSize: 1.375rem;
@@ -0,0 +1,60 @@
1
+ //==================================================
2
+ // Z-index.scss
3
+ //
4
+ // Do not modify the z-index scale!
5
+ // This scale gives us an overview of which layer things are on.
6
+ //
7
+ // Usage:
8
+ // Think of it as layers. Instead of naming it accordingly
9
+ // to CSS class you are referring to, think, which layer should
10
+ // this element be?
11
+ //
12
+ // Index
13
+ // -----
14
+ // 1) Z-index Scale
15
+ // 2) Layers
16
+ //==================================================
17
+
18
+
19
+ //=========================
20
+ // 1) Z-index Scale
21
+ //=========================
22
+ $zIndex-1: 100;
23
+ $zIndex-2: 200;
24
+ $zIndex-3: 300;
25
+ $zIndex-4: 400;
26
+ $zIndex-5: 500;
27
+ $zIndex-6: 600;
28
+ $zIndex-7: 700;
29
+ $zIndex-8: 800;
30
+ $zIndex-9: 900;
31
+ $zIndex-10: 1000;
32
+
33
+ //=========================
34
+ // 2) Layers
35
+ //=========================
36
+ $zIndex-1--screenForeground: $zIndex-1;
37
+
38
+ // For elements that are positioned fixed or absolute
39
+ // Example: Google's Floating Action Button
40
+ $zIndex-2--floatingElements: $zIndex-2;
41
+
42
+ // Everything that needs to be higher than the navbar overlay should
43
+ // be on this layer & above
44
+ $zIndex-6--navbarOverlay: $zIndex-6;
45
+ $zIndex-6--sidebarOverlay: $zIndex-6;
46
+
47
+ $zIndex-7--navbar: $zIndex-7;
48
+ $zIndex-7--sidebar: $zIndex-7;
49
+
50
+ // Everything that needs to be higher than the overlay should
51
+ // be on this layer & above
52
+ $zIndex-8--overlay: $zIndex-8;
53
+
54
+ $zIndex-9--modal: $zIndex-9;
55
+ $zIndex-9--dialog: $zIndex-9;
56
+ $zIndex-9--tooltip: $zIndex-9;
57
+ $zIndex-9--toolbar: $zIndex-9;
58
+
59
+ // For development & debugging
60
+ $zIndex-10--dev: $zIndex-10;
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "aesthetics/rails"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,40 @@
1
+ require "aesthetics/rails/version"
2
+
3
+ module Aesthetics
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ initializer 'aesthetics.assets.precompile' do |app|
7
+ %w(stylesheets javascripts).each do |sub|
8
+ app.config.assets.paths << root.join('assets', sub).to_s
9
+ end
10
+ end
11
+ end
12
+ end
13
+
14
+ # Paths
15
+ def gem_path
16
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
17
+ end
18
+
19
+ def stylesheets_path
20
+ File.join assets_path, 'stylesheets'
21
+ end
22
+
23
+ def javascripts_path
24
+ File.join assets_path, 'javascripts'
25
+ end
26
+
27
+ def assets_path
28
+ @assets_path ||= File.join gem_path, 'assets'
29
+ end
30
+
31
+ private
32
+
33
+ def configure_sass
34
+ require 'sass'
35
+
36
+ ::Sass.load_paths << stylesheets_path
37
+
38
+ ::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
39
+ end
40
+ end
@@ -0,0 +1,5 @@
1
+ module Aesthetics
2
+ module Rails
3
+ VERSION = "0.1.0-alpha"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aesthetics-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.pre.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Duane Adam
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-04-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
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.8'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description: A light and modular CSS framework that focuses more on conventions.
56
+ email:
57
+ - contact@duaneadam.me
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".travis.yml"
64
+ - Gemfile
65
+ - README.md
66
+ - Rakefile
67
+ - aesthetics-rails.gemspec
68
+ - assets/stylesheets/_mixins.scss
69
+ - assets/stylesheets/_normalize.scss
70
+ - assets/stylesheets/aesthetics.scss
71
+ - assets/stylesheets/components/_buttons.scss
72
+ - assets/stylesheets/components/_container.scss
73
+ - assets/stylesheets/components/_forms.scss
74
+ - assets/stylesheets/components/_global.scss
75
+ - assets/stylesheets/components/_navbar.scss
76
+ - assets/stylesheets/components/_utilities.scss
77
+ - assets/stylesheets/settings/_colors.scss
78
+ - assets/stylesheets/settings/_devices.scss
79
+ - assets/stylesheets/settings/_type.scss
80
+ - assets/stylesheets/settings/_z-index.scss
81
+ - bin/console
82
+ - bin/setup
83
+ - lib/aesthetics/rails.rb
84
+ - lib/aesthetics/rails/version.rb
85
+ homepage: http://github.com/duaneadam/aesthetics-rails/
86
+ licenses: []
87
+ metadata: {}
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">"
100
+ - !ruby/object:Gem::Version
101
+ version: 1.3.1
102
+ requirements: []
103
+ rubyforge_project:
104
+ rubygems_version: 2.4.5
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: Light Modular CSS Framework
108
+ test_files: []