timequake 1.0.0beta

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.
@@ -0,0 +1,31 @@
1
+ $table-border: none !default;
2
+ $border-collapse: collapse !default;
3
+ $tr-border: 1px solid $light-gray !default;
4
+ $td-border: none !default;
5
+ $tr-bg: $light-gray !default;
6
+ $td-padding: 5px !default;
7
+ $table-font: $copy-font !default;
8
+ $table-font-size: $copy-font-size !default;
9
+
10
+ table {
11
+ width: 100%;
12
+ border: $table-border;
13
+ border-collapse: $border-collapse;
14
+ font-family: $table-font;
15
+ font-size: $table-font-size;
16
+
17
+ th,
18
+ td {
19
+ text-align: left;
20
+ padding: $td-padding;
21
+ border: $td-border;
22
+ }
23
+
24
+ tr {
25
+ border: $tr-border;
26
+
27
+ &:nth-child(even) { background-color: $tr-bg; }
28
+ }
29
+ }
30
+
31
+ .table-responsive { overflow: scroll; }
@@ -0,0 +1,42 @@
1
+ $body-font: serif !default;
2
+ $copy-font: serif !default;
3
+ $heading-font: sans-serif !default;
4
+ $body-font-size: 16px !default;
5
+ $copy-font-size: 1rem !default;
6
+ $heading-1-font-size: 2rem !default;
7
+ $heading-2-font-size: 1.5rem !default;
8
+ $heading-3-font-size: 1.17rem !default;
9
+ $heading-4-font-size: 1.12rem !default;
10
+ $heading-5-font-size: .83rem !default;
11
+ $heading-6-font-size: .75rem !default;
12
+ $btn-font: $copy-font !default;
13
+
14
+ html {
15
+ font-family: $body-font;
16
+ font-size: $body-font-size;
17
+ }
18
+
19
+ .copy {
20
+ font-family: $copy-font;
21
+ color: $copy-color;
22
+ margin: 0 0 .5rem 0;
23
+ font-size: $copy-font-size;
24
+ }
25
+
26
+ .heading,
27
+ .heading-1,
28
+ .heading-2,
29
+ .heading-3,
30
+ .heading-4,
31
+ .heading-5,
32
+ .heading-6, {
33
+ font-family: $heading-font;
34
+ margin: 0 0 .5rem 0;
35
+ }
36
+
37
+ .heading-1 { font-size: $heading-1-font-size; }
38
+ .heading-2 { font-size: $heading-2-font-size; }
39
+ .heading-3 { font-size: $heading-3-font-size; }
40
+ .heading-4 { font-size: $heading-4-font-size; }
41
+ .heading-5 { font-size: $heading-5-font-size; }
42
+ .heading-6 { font-size: $heading-6-font-size; }
@@ -0,0 +1,22 @@
1
+ $main-overflow: hidden !default;
2
+ $section-padding: 2rem 0 !default;
3
+
4
+ main { overflow: $main-overflow; }
5
+ section { padding: $section-padding; }
6
+
7
+ a {
8
+ color: inherit;
9
+ text-decoration: none;
10
+ }
11
+
12
+ ul,
13
+ ol {
14
+ &.no-style { list-style-type: none; }
15
+ }
16
+
17
+ img {
18
+ display: inline-block;
19
+ vertical-align: middle;
20
+ max-width: 100%;
21
+ height: auto;
22
+ }
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "timequake"
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(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,26 @@
1
+ require 'rails/generators'
2
+
3
+ module Timequake
4
+ module Generators
5
+ class InstallGenerator < ::Rails::Generators::Base
6
+ desc "Install Timequake"
7
+ # source_root File.join(File.dirname(__FILE__), "templates")
8
+ source_root File.join(File.dirname(__FILE__), "templates")
9
+
10
+ def install_timequake
11
+ # How to include directories
12
+ # directory "timequake", "app/assets/stylesheets/timequake"
13
+
14
+ template "timequake_overrides.scss", File.join('app/assets/stylesheets', "timequake_overrides.scss")
15
+
16
+ insert_into_file File.join('app/assets/stylesheets', "application.scss"), "@import 'timequake_overrides';\n"
17
+ insert_into_file File.join('app/views/layouts', "application.html.erb"), "\n <meta name='viewport' content='width=device-width, initial-scale=1.0'>", after: "<head>"
18
+ insert_into_file File.join('app/assets/javascripts', "application.js"), "//= require timequake\n", :before => "//= require_tree .\n"
19
+ insert_into_file File.join('app/assets/config', "manifest.js"), "//= link timequake_manifest.js"
20
+
21
+ # For webpacker
22
+ # insert_into_file File.join('app/views/layouts', "application.html.erb"), " <%= javascript_include_tag 'timequake' %>\n", before: "</head>"
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,101 @@
1
+ // BREAKPOINTS
2
+ $medium: 600px;
3
+ $large: 800px;
4
+ $xlarge: 1200px;
5
+ $xxlarge: 1900px;
6
+
7
+ // COLORS
8
+ // class e.g.
9
+ // .black { color: $black !important; }
10
+ // .black-bg { background-color: $black !important; }
11
+ $black: #000;
12
+ $gray: #D3D3D3;
13
+ $light-gray: #ECECEC;
14
+ $white: #FFF;
15
+ $red: #E23838;
16
+ $orange: #F78200;
17
+ $yellow: #FFB900;
18
+ $green: #5EBD3E;
19
+ $blue: #009CDF;
20
+ $indigo: #31457D;
21
+ $violet: #973999;
22
+ $teal: #2D9FA2;
23
+ $primary-color: $red;
24
+ $secondary-color: $yellow;
25
+ $tertiary-color: $blue;
26
+ $copy-color: #333;
27
+
28
+ // TYPOGRAPHY
29
+ $body-font: serif;
30
+ $copy-font: serif;
31
+ $heading-font: sans-serif;
32
+
33
+ $body-font-size: 16px;
34
+ $copy-font-size: 16px;
35
+ $heading-1-font-size: 2rem !default;
36
+ $heading-2-font-size: 1.5rem !default;
37
+ $heading-3-font-size: 1.17rem !default;
38
+ $heading-4-font-size: 1.12rem !default;
39
+ $heading-5-font-size: .83rem !default;
40
+ $heading-6-font-size: .75rem !default;
41
+
42
+ // BUTTONS
43
+ $btn-min-width: 145px;
44
+ $btn-border-style: solid;
45
+ $btn-border-radius: 5px;
46
+ $btn-border-width: 1px;
47
+ $btn-padding: 11px 5px;
48
+ $btn-font-size: 16px;
49
+ $btn-font: $copy-font;
50
+ $btn-color: $primary-color;
51
+ $btn-border-color: $primary-color;
52
+ $btn-text-color: $white;
53
+ $secondary-btn-text-color: $white;
54
+ $secondary-btn-color: $secondary-color;
55
+ $secondary-btn-border-color: $secondary-color;
56
+ $tertiary-btn-text-color: $white;
57
+ $tertiary-btn-color: $tertiary-color;
58
+ $tertiary-btn-border-color: $tertiary-color;
59
+
60
+ // FORMS
61
+ $input-border: none;
62
+ $input-border-radius: 0;
63
+ $input-bg: $light-gray;
64
+ $input-padding: 8px;
65
+ $input-margin-bottom: 16px;
66
+ $input-height: 38px;
67
+ $text-area-min-height: 200px;
68
+ $label-margin-bottom: 8px;
69
+ $form-font: $copy-font;
70
+ $label-font: $form-font;
71
+ $input-font-size: $copy-font-size;
72
+ $label-font-size: $copy-font-size;
73
+ $file-font-size: 14px;
74
+
75
+ // MODALS
76
+ $modal-bg-color: $white;
77
+ $modal-max-width: 1200px;
78
+ $modal-content-padding: 20px;
79
+ $modal-border-radius: 5px;
80
+ $modal-border-color: $white;
81
+ $modal-border-width: 5px;
82
+ $modal-border-style: solid;
83
+ $modal-close-size: 30px;
84
+ $modal-close-color: $copy-color;
85
+ $modal-close-transform: rotate(45deg);
86
+
87
+ // TABLES
88
+ $table-border: none;
89
+ $border-collapse: collapse;
90
+ $tr-border: 1px solid $light-gray;
91
+ $td-border: none !default;
92
+ $tr-bg: $light-gray;
93
+ $td-padding: 5px;
94
+ $table-font: $copy-font;
95
+ $table-font-size: $copy-font-size;
96
+
97
+ //UNIVERSAL
98
+ $main-overflow: hidden;
99
+ $section-padding: 2rem 0;
100
+
101
+ @import 'timequake/index';
@@ -0,0 +1,8 @@
1
+ require "timequake/version"
2
+ require 'timequake/engine'
3
+ require 'timequake/errors'
4
+ require 'jquery-rails'
5
+ require 'sass-rails'
6
+
7
+ module Timequake
8
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Timequake
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Timequake
4
+ class Error < StandardError; end
5
+ end
@@ -0,0 +1,3 @@
1
+ module Timequake
2
+ VERSION = "1.0.0beta"
3
+ end
@@ -0,0 +1,26 @@
1
+ require_relative 'lib/timequake/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "timequake"
5
+ spec.version = Timequake::VERSION
6
+ spec.authors = "George Morris"
7
+ spec.email = "gmorris1242@gmail.com"
8
+
9
+ spec.summary = "Grid and class helper css/sass library"
10
+ spec.description = "A lightweight css/sass framework with easy access to grids and class helpers"
11
+ spec.license = "MIT"
12
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
+
14
+ # Specify which files should be added to the gem when it is released.
15
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
16
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
17
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ end
19
+
20
+ spec.add_dependency 'jquery-rails', '~> 4.4'
21
+ spec.add_dependency 'sass-rails', '~> 6.0'
22
+
23
+ spec.bindir = "exe"
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ["lib"]
26
+ end
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: timequake
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0beta
5
+ platform: ruby
6
+ authors:
7
+ - George Morris
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jquery-rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sass-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '6.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '6.0'
41
+ description: A lightweight css/sass framework with easy access to grids and class
42
+ helpers
43
+ email: gmorris1242@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".rspec"
50
+ - ".travis.yml"
51
+ - CODE_OF_CONDUCT.md
52
+ - Gemfile
53
+ - Gemfile.lock
54
+ - LICENSE.txt
55
+ - README.md
56
+ - Rakefile
57
+ - app/assets/config/timequake_manifest.js
58
+ - app/assets/javascripts/timequake.js
59
+ - app/assets/javascripts/timequake/modals.js
60
+ - app/assets/stylesheets/timequake/_index.scss
61
+ - app/assets/stylesheets/timequake/breakpoints.scss
62
+ - app/assets/stylesheets/timequake/buttons.scss
63
+ - app/assets/stylesheets/timequake/colors.scss
64
+ - app/assets/stylesheets/timequake/forms.scss
65
+ - app/assets/stylesheets/timequake/modals.scss
66
+ - app/assets/stylesheets/timequake/settings.scss
67
+ - app/assets/stylesheets/timequake/tables.scss
68
+ - app/assets/stylesheets/timequake/typography.scss
69
+ - app/assets/stylesheets/timequake/universal.scss
70
+ - bin/console
71
+ - bin/setup
72
+ - lib/generators/timequake/install_generator.rb
73
+ - lib/generators/timequake/templates/timequake_overrides.scss
74
+ - lib/timequake.rb
75
+ - lib/timequake/engine.rb
76
+ - lib/timequake/errors.rb
77
+ - lib/timequake/version.rb
78
+ - timequake.gemspec
79
+ homepage:
80
+ licenses:
81
+ - MIT
82
+ metadata: {}
83
+ post_install_message:
84
+ rdoc_options: []
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 2.3.0
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.3.1
97
+ requirements: []
98
+ rubygems_version: 3.1.2
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: Grid and class helper css/sass library
102
+ test_files: []