timequake 1.0.0beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +111 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +6 -0
- data/app/assets/config/timequake_manifest.js +1 -0
- data/app/assets/javascripts/timequake.js +4 -0
- data/app/assets/javascripts/timequake/modals.js +19 -0
- data/app/assets/stylesheets/timequake/_index.scss +9 -0
- data/app/assets/stylesheets/timequake/breakpoints.scss +27 -0
- data/app/assets/stylesheets/timequake/buttons.scss +84 -0
- data/app/assets/stylesheets/timequake/colors.scss +54 -0
- data/app/assets/stylesheets/timequake/forms.scss +50 -0
- data/app/assets/stylesheets/timequake/modals.scss +60 -0
- data/app/assets/stylesheets/timequake/settings.scss +2449 -0
- data/app/assets/stylesheets/timequake/tables.scss +31 -0
- data/app/assets/stylesheets/timequake/typography.scss +42 -0
- data/app/assets/stylesheets/timequake/universal.scss +22 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/generators/timequake/install_generator.rb +26 -0
- data/lib/generators/timequake/templates/timequake_overrides.scss +101 -0
- data/lib/timequake.rb +8 -0
- data/lib/timequake/engine.rb +6 -0
- data/lib/timequake/errors.rb +5 -0
- data/lib/timequake/version.rb +3 -0
- data/timequake.gemspec +26 -0
- metadata +102 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ff987609394e561c4aec74c06b3c875aad41ea202bc60cc0f7900e459088b90a
|
4
|
+
data.tar.gz: '039a8d20bf031657f6c215ecd4ed9148f3925ac1623b6d335d7f8b49a887770f'
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a674abda46e1f7c4f2490df7e77a100074874e28060c000b95f4fddf73ea0ff42757c2b2fce1e9384119fb05141198568d0c7d07e2e398dd84d51f599f08484a
|
7
|
+
data.tar.gz: 2dd7e524bce6f68793a088fa9f2f86e8bd524f09de5deba78ed7c679752ff743191821792cbb1cc0bea1dec464d5886891cb8df8f1ae72c5552c14aecb525558
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at TODO: Write your email address. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
timequake (1.0.0beta)
|
5
|
+
jquery-rails (~> 4.4)
|
6
|
+
sass-rails (~> 6.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (6.0.3.2)
|
12
|
+
actionview (= 6.0.3.2)
|
13
|
+
activesupport (= 6.0.3.2)
|
14
|
+
rack (~> 2.0, >= 2.0.8)
|
15
|
+
rack-test (>= 0.6.3)
|
16
|
+
rails-dom-testing (~> 2.0)
|
17
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
18
|
+
actionview (6.0.3.2)
|
19
|
+
activesupport (= 6.0.3.2)
|
20
|
+
builder (~> 3.1)
|
21
|
+
erubi (~> 1.4)
|
22
|
+
rails-dom-testing (~> 2.0)
|
23
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
24
|
+
activesupport (6.0.3.2)
|
25
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
26
|
+
i18n (>= 0.7, < 2)
|
27
|
+
minitest (~> 5.1)
|
28
|
+
tzinfo (~> 1.1)
|
29
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
30
|
+
builder (3.2.4)
|
31
|
+
concurrent-ruby (1.1.6)
|
32
|
+
crass (1.0.6)
|
33
|
+
diff-lcs (1.4.4)
|
34
|
+
erubi (1.9.0)
|
35
|
+
ffi (1.13.1)
|
36
|
+
i18n (1.8.4)
|
37
|
+
concurrent-ruby (~> 1.0)
|
38
|
+
jquery-rails (4.4.0)
|
39
|
+
rails-dom-testing (>= 1, < 3)
|
40
|
+
railties (>= 4.2.0)
|
41
|
+
thor (>= 0.14, < 2.0)
|
42
|
+
loofah (2.6.0)
|
43
|
+
crass (~> 1.0.2)
|
44
|
+
nokogiri (>= 1.5.9)
|
45
|
+
method_source (1.0.0)
|
46
|
+
mini_portile2 (2.4.0)
|
47
|
+
minitest (5.14.1)
|
48
|
+
nokogiri (1.10.10)
|
49
|
+
mini_portile2 (~> 2.4.0)
|
50
|
+
rack (2.2.3)
|
51
|
+
rack-test (1.1.0)
|
52
|
+
rack (>= 1.0, < 3)
|
53
|
+
rails-dom-testing (2.0.3)
|
54
|
+
activesupport (>= 4.2.0)
|
55
|
+
nokogiri (>= 1.6)
|
56
|
+
rails-html-sanitizer (1.3.0)
|
57
|
+
loofah (~> 2.3)
|
58
|
+
railties (6.0.3.2)
|
59
|
+
actionpack (= 6.0.3.2)
|
60
|
+
activesupport (= 6.0.3.2)
|
61
|
+
method_source
|
62
|
+
rake (>= 0.8.7)
|
63
|
+
thor (>= 0.20.3, < 2.0)
|
64
|
+
rake (12.3.3)
|
65
|
+
rspec (3.9.0)
|
66
|
+
rspec-core (~> 3.9.0)
|
67
|
+
rspec-expectations (~> 3.9.0)
|
68
|
+
rspec-mocks (~> 3.9.0)
|
69
|
+
rspec-core (3.9.2)
|
70
|
+
rspec-support (~> 3.9.3)
|
71
|
+
rspec-expectations (3.9.2)
|
72
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
+
rspec-support (~> 3.9.0)
|
74
|
+
rspec-mocks (3.9.1)
|
75
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
76
|
+
rspec-support (~> 3.9.0)
|
77
|
+
rspec-support (3.9.3)
|
78
|
+
sass-rails (6.0.0)
|
79
|
+
sassc-rails (~> 2.1, >= 2.1.1)
|
80
|
+
sassc (2.4.0)
|
81
|
+
ffi (~> 1.9)
|
82
|
+
sassc-rails (2.1.2)
|
83
|
+
railties (>= 4.0.0)
|
84
|
+
sassc (>= 2.0)
|
85
|
+
sprockets (> 3.0)
|
86
|
+
sprockets-rails
|
87
|
+
tilt
|
88
|
+
sprockets (4.0.2)
|
89
|
+
concurrent-ruby (~> 1.0)
|
90
|
+
rack (> 1, < 3)
|
91
|
+
sprockets-rails (3.2.1)
|
92
|
+
actionpack (>= 4.0)
|
93
|
+
activesupport (>= 4.0)
|
94
|
+
sprockets (>= 3.0.0)
|
95
|
+
thor (1.0.1)
|
96
|
+
thread_safe (0.3.6)
|
97
|
+
tilt (2.0.10)
|
98
|
+
tzinfo (1.2.7)
|
99
|
+
thread_safe (~> 0.1)
|
100
|
+
zeitwerk (2.4.0)
|
101
|
+
|
102
|
+
PLATFORMS
|
103
|
+
ruby
|
104
|
+
|
105
|
+
DEPENDENCIES
|
106
|
+
rake (~> 12.0)
|
107
|
+
rspec (~> 3.0)
|
108
|
+
timequake!
|
109
|
+
|
110
|
+
BUNDLED WITH
|
111
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 TODO: Write your name
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# Timequake
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/timequake`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'timequake'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install timequake
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
To install run ```rails g timequake:install```
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/timequake. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/timequake/blob/master/CODE_OF_CONDUCT.md).
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
41
|
+
|
42
|
+
## Code of Conduct
|
43
|
+
|
44
|
+
Everyone interacting in the Timequake project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/timequake/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
//= link_directory ../javascripts .js
|
@@ -0,0 +1,19 @@
|
|
1
|
+
$(document).ready(function() {
|
2
|
+
$('.modal-open').click(function(e) {
|
3
|
+
e.preventDefault();
|
4
|
+
let model = $(this).data('modal');
|
5
|
+
let needTallModal = window.innerHeight < $('.modal-content').height();
|
6
|
+
let thisModal = $('.modal.' + model)
|
7
|
+
|
8
|
+
thisModal.addClass('active');
|
9
|
+
$('html, body').css('overflow', 'hidden');
|
10
|
+
needTallModal ? thisModal.addClass('modal-tall') : thisModal.removeClass('modal-tall');
|
11
|
+
})
|
12
|
+
|
13
|
+
$('.modal .modal-content').click(e => e.stopPropagation());
|
14
|
+
|
15
|
+
$('.modal, .modal-close').click(function() {
|
16
|
+
$('.modal').removeClass('active');
|
17
|
+
$('html, body').css('overflow', 'scroll');
|
18
|
+
})
|
19
|
+
})
|
@@ -0,0 +1,27 @@
|
|
1
|
+
$medium: 600px !default;
|
2
|
+
$large: 900px !default;
|
3
|
+
$xlarge: 1200px !default;
|
4
|
+
$xxlarge: 1900px !default;
|
5
|
+
|
6
|
+
$breakpoints: (
|
7
|
+
'medium': $medium,
|
8
|
+
'large': $large,
|
9
|
+
'xlarge': $xlarge,
|
10
|
+
'xxlarge': $xxlarge
|
11
|
+
) !default;
|
12
|
+
|
13
|
+
@mixin breakpoint($breakpoint) {
|
14
|
+
// If the key exists in the map
|
15
|
+
@if map-has-key($breakpoints, $breakpoint) {
|
16
|
+
// Prints a media query based on the value
|
17
|
+
@media (min-width: map-get($breakpoints, $breakpoint)) {
|
18
|
+
@content;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
// If the key doesn't exist in the map
|
23
|
+
@else {
|
24
|
+
@warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. "
|
25
|
+
+ "Available breakpoints are: #{map-keys($breakpoints)}.";
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
$btn-min-width: 145px !default;
|
2
|
+
$btn-border-style: solid !default;
|
3
|
+
$btn-border-radius: 5px !default;
|
4
|
+
$btn-border-width: 1px !default;
|
5
|
+
$btn-padding: 11px 5px !default;
|
6
|
+
$btn-font-size: 16px !default;
|
7
|
+
$btn-font: $copy-font !default;
|
8
|
+
$btn-color: $primary-color !default;
|
9
|
+
$btn-border-color: $primary-color !default;
|
10
|
+
$btn-text-color: $white !default;
|
11
|
+
$secondary-btn-text-color: $white !default;
|
12
|
+
$secondary-btn-color: $secondary-color !default;
|
13
|
+
$secondary-btn-border-color: $secondary-color !default;
|
14
|
+
$tertiary-btn-text-color: $white !default;
|
15
|
+
$tertiary-btn-color: $tertiary-color !default;
|
16
|
+
$tertiary-btn-border-color: $tertiary-color !default;
|
17
|
+
|
18
|
+
.btn {
|
19
|
+
display: inline-block;
|
20
|
+
min-width: $btn-min-width;
|
21
|
+
background-color: $btn-color;
|
22
|
+
border-style: $btn-border-style;
|
23
|
+
border-width: $btn-border-width;
|
24
|
+
border-color: $btn-border-color;
|
25
|
+
border-radius: $btn-border-radius;
|
26
|
+
padding: $btn-padding;
|
27
|
+
font-family: $btn-font;
|
28
|
+
color: $btn-text-color;
|
29
|
+
width: auto;
|
30
|
+
margin: 10px 0;
|
31
|
+
text-align: center;
|
32
|
+
cursor: pointer;
|
33
|
+
transition: 300ms all;
|
34
|
+
font-size: $btn-font-size;
|
35
|
+
|
36
|
+
&:hover { background-color: lighten($btn-color, 5%); }
|
37
|
+
&:active { transform: scale(.95); }
|
38
|
+
|
39
|
+
&.clear {
|
40
|
+
color: $btn-color;
|
41
|
+
background-color: transparent;
|
42
|
+
|
43
|
+
&:hover {
|
44
|
+
background-color: $btn-color;
|
45
|
+
color: $btn-text-color;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&.secondary {
|
50
|
+
color: $secondary-btn-text-color;
|
51
|
+
background-color: $secondary-btn-color;
|
52
|
+
border-color: $secondary-btn-border-color;
|
53
|
+
|
54
|
+
&:hover { background-color: lighten($secondary-btn-color, 5%); }
|
55
|
+
|
56
|
+
&.clear {
|
57
|
+
color: $secondary-btn-color;
|
58
|
+
background-color: transparent;
|
59
|
+
|
60
|
+
&:hover {
|
61
|
+
background-color: $secondary-btn-color;
|
62
|
+
color: $secondary-btn-text-color;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
&.tertiary {
|
68
|
+
color: $tertiary-btn-text-color;
|
69
|
+
background-color: $tertiary-btn-color;
|
70
|
+
border-color: $tertiary-btn-border-color;
|
71
|
+
|
72
|
+
&:hover { background-color: lighten($tertiary-btn-color, 5%); }
|
73
|
+
|
74
|
+
&.clear {
|
75
|
+
color: $tertiary-btn-color;
|
76
|
+
background-color: transparent;
|
77
|
+
|
78
|
+
&:hover {
|
79
|
+
background-color: $tertiary-btn-color;
|
80
|
+
color: $tertiary-btn-text-color;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|