hootstrap 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/hootstrap/alerts.js +1 -2
- data/assets/javascripts/hootstrap/dropdown.js +1 -2
- data/assets/javascripts/hootstrap/rails.js +1 -2
- data/assets/javascripts/hootstrap/turbolinks-progress-bar.js +9 -0
- data/assets/javascripts/hootstrap/utils/turbolinks.js +10 -2
- data/assets/javascripts/hootstrap.js +2 -0
- data/assets/stylesheets/hootstrap/base/_base.scss +5 -5
- data/assets/stylesheets/hootstrap/base/_variables.scss +1 -0
- data/assets/stylesheets/hootstrap/components/_base.scss +7 -6
- data/assets/stylesheets/hootstrap/components/_progress-bar.scss +4 -0
- data/assets/stylesheets/hootstrap/patterns/_page-header.scss +4 -0
- data/assets/stylesheets/hootstrap/reset/_base.scss +1 -1
- data/assets/stylesheets/hootstrap/utils/_base.scss +5 -5
- data/assets/stylesheets/hootstrap.scss +8 -8
- data/lib/hootstrap/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f19c828b069142d218ec9d13ce456a4f165f56abddd3aa50bc5dc571c89424cf
|
4
|
+
data.tar.gz: '038aec5f56af7e6ac00eb2302ca999242ea02b6faec27d4972b27a9cfbe21c37'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1773f8b98db3ba6794b5c40330cbc69596f20d3116a36abe16e4c2e6ce3af70634b19f045af395f30887d427baf49150149e8dec94dcb77cecab7a5aa0c0454c
|
7
|
+
data.tar.gz: '01421259bd2d87af50e77dbbb0ee2ebe83f710c1ad14f21af0d4b1ceca6e5f8f187349a801c9070790078ab0899b695afb0f796353252d63f899b86c9a05b24d'
|
@@ -1,8 +1,7 @@
|
|
1
1
|
//= require ./utils/closest
|
2
2
|
//= require ./utils/dynamicListener
|
3
|
-
//= require ./utils/turbolinks
|
4
3
|
|
5
|
-
document.addEventListener(
|
4
|
+
document.addEventListener(Hootstrap.turbolinks.event, () => {
|
6
5
|
addDynamicEventListener(
|
7
6
|
document.body,
|
8
7
|
'click',
|
@@ -1,7 +1,6 @@
|
|
1
1
|
//= require ./utils/dynamicListener
|
2
|
-
//= require ./utils/turbolinks
|
3
2
|
|
4
|
-
document.addEventListener(
|
3
|
+
document.addEventListener(Hootstrap.turbolinks.event, () => {
|
5
4
|
let confirmed = false;
|
6
5
|
|
7
6
|
addDynamicEventListener(document.body, 'click', '[data-prompt]', handleClick);
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// Override Turbolinks default timeout for the progress bar.
|
2
|
+
//
|
3
|
+
// Shows the Progress Bar after every page change.
|
4
|
+
|
5
|
+
if (Hootstrap.turbolinks.enabled) {
|
6
|
+
Turbolinks.BrowserAdapter.prototype.showProgressBarAfterDelay = function() {
|
7
|
+
return (this.progressBarTimeout = setTimeout(this.showProgressBar, 0));
|
8
|
+
};
|
9
|
+
}
|
@@ -1,5 +1,8 @@
|
|
1
|
+
const turbolinksEnabled =
|
2
|
+
window.Turbolinks != null && window.Turbolinks.supported;
|
3
|
+
|
1
4
|
function checkTurbolinks() {
|
2
|
-
if (
|
5
|
+
if (turbolinksEnabled) {
|
3
6
|
if (window.Turbolinks.EVENTS != null) {
|
4
7
|
return 'page:change';
|
5
8
|
} else {
|
@@ -10,4 +13,9 @@ function checkTurbolinks() {
|
|
10
13
|
}
|
11
14
|
}
|
12
15
|
|
13
|
-
window.
|
16
|
+
window.Hootstrap = {
|
17
|
+
turbolinks: {
|
18
|
+
enabled: turbolinksEnabled,
|
19
|
+
event: checkTurbolinks()
|
20
|
+
}
|
21
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
@import
|
2
|
-
@import
|
3
|
-
@import
|
4
|
-
@import
|
5
|
-
@import
|
1
|
+
@import 'hootstrap/base/variables';
|
2
|
+
@import 'hootstrap/base/mixins/background';
|
3
|
+
@import 'hootstrap/base/mixins/button';
|
4
|
+
@import 'hootstrap/base/mixins/toast';
|
5
|
+
@import 'hootstrap/base/mixins/tooltip';
|
@@ -1,6 +1,7 @@
|
|
1
|
-
@import
|
2
|
-
@import
|
3
|
-
@import
|
4
|
-
@import
|
5
|
-
@import
|
6
|
-
@import
|
1
|
+
@import 'hootstrap/components/alert';
|
2
|
+
@import 'hootstrap/components/badge';
|
3
|
+
@import 'hootstrap/components/button';
|
4
|
+
@import 'hootstrap/components/forms';
|
5
|
+
@import 'hootstrap/components/loader';
|
6
|
+
@import 'hootstrap/components/progress-bar';
|
7
|
+
@import 'hootstrap/components/tooltip';
|
@@ -1 +1 @@
|
|
1
|
-
@import
|
1
|
+
@import 'hootstrap/reset/html';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
@import
|
2
|
-
@import
|
3
|
-
@import
|
4
|
-
@import
|
5
|
-
@import
|
1
|
+
@import 'hootstrap/utils/background';
|
2
|
+
@import 'hootstrap/utils/flex';
|
3
|
+
@import 'hootstrap/utils/opacity';
|
4
|
+
@import 'hootstrap/utils/sizing';
|
5
|
+
@import 'hootstrap/utils/typography';
|
@@ -1,9 +1,9 @@
|
|
1
|
-
@import
|
2
|
-
@import
|
3
|
-
@import
|
4
|
-
@import
|
1
|
+
@import 'bootstrap/functions';
|
2
|
+
@import 'hootstrap/base/base';
|
3
|
+
@import 'bootstrap/variables';
|
4
|
+
@import 'bootstrap';
|
5
5
|
|
6
|
-
@import
|
7
|
-
@import
|
8
|
-
@import
|
9
|
-
@import
|
6
|
+
@import 'hootstrap/reset/base';
|
7
|
+
@import 'hootstrap/components/base';
|
8
|
+
@import 'hootstrap/patterns/base';
|
9
|
+
@import 'hootstrap/utils/base';
|
data/lib/hootstrap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Licata
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- assets/javascripts/hootstrap/modal.js
|
69
69
|
- assets/javascripts/hootstrap/rails.js
|
70
70
|
- assets/javascripts/hootstrap/toast.js
|
71
|
+
- assets/javascripts/hootstrap/turbolinks-progress-bar.js
|
71
72
|
- assets/javascripts/hootstrap/utils/closest.js
|
72
73
|
- assets/javascripts/hootstrap/utils/dynamicListener.js
|
73
74
|
- assets/javascripts/hootstrap/utils/turbolinks.js
|
@@ -84,6 +85,7 @@ files:
|
|
84
85
|
- assets/stylesheets/hootstrap/components/_button.scss
|
85
86
|
- assets/stylesheets/hootstrap/components/_forms.scss
|
86
87
|
- assets/stylesheets/hootstrap/components/_loader.scss
|
88
|
+
- assets/stylesheets/hootstrap/components/_progress-bar.scss
|
87
89
|
- assets/stylesheets/hootstrap/components/_tooltip.scss
|
88
90
|
- assets/stylesheets/hootstrap/patterns/_base.scss
|
89
91
|
- assets/stylesheets/hootstrap/patterns/_card.scss
|