pnotify-rails 2.0.1.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pnotify-rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/pnotify/index.js +5 -1
  4. data/vendor/assets/javascripts/pnotify/pnotify.animate.js +108 -0
  5. data/vendor/assets/javascripts/pnotify/pnotify.buttons.js +165 -121
  6. data/vendor/assets/javascripts/pnotify/pnotify.callbacks.js +42 -40
  7. data/vendor/assets/javascripts/pnotify/pnotify.confirm.js +145 -139
  8. data/vendor/assets/javascripts/pnotify/pnotify.desktop.js +144 -133
  9. data/vendor/assets/javascripts/pnotify/pnotify.history.js +172 -171
  10. data/vendor/assets/javascripts/pnotify/pnotify.js +873 -0
  11. data/vendor/assets/javascripts/pnotify/pnotify.mobile.js +121 -0
  12. data/vendor/assets/javascripts/pnotify/pnotify.nonblock.js +144 -139
  13. data/vendor/assets/javascripts/pnotify/pnotify.reference.js +131 -116
  14. data/vendor/assets/javascripts/pnotify/pnotify.tooltip.js +15 -0
  15. data/vendor/assets/stylesheets/pnotify/index.css +5 -2
  16. data/vendor/assets/stylesheets/pnotify/pnotify.brighttheme.css +165 -0
  17. data/vendor/assets/stylesheets/pnotify/pnotify.buttons.css +2 -2
  18. data/vendor/assets/stylesheets/pnotify/pnotify.css +112 -0
  19. data/vendor/assets/stylesheets/pnotify/pnotify.history.css +22 -22
  20. data/vendor/assets/stylesheets/pnotify/pnotify.material.css +121 -0
  21. data/vendor/assets/stylesheets/pnotify/pnotify.mobile.css +46 -0
  22. data/vendor/assets/stylesheets/pnotify/pnotify.nonblock.css +7 -0
  23. metadata +12 -6
  24. data/vendor/assets/javascripts/pnotify/pnotify.core.js +0 -778
  25. data/vendor/assets/stylesheets/pnotify/pnotify.core.css +0 -56
  26. data/vendor/assets/stylesheets/pnotify/pnotify.picon.css +0 -11
@@ -0,0 +1,15 @@
1
+ // Tooltip
2
+ (function (root, factory) {
3
+ if (typeof define === 'function' && define.amd) {
4
+ // AMD. Register as a module.
5
+ define('pnotify.tooltip', ['jquery', 'pnotify'], factory);
6
+ } else if (typeof exports === 'object' && typeof module !== 'undefined') {
7
+ // CommonJS
8
+ module.exports = factory(require('jquery'), require('./pnotify'));
9
+ } else {
10
+ // Browser globals
11
+ factory(root.jQuery, root.PNotify);
12
+ }
13
+ }(this, function($, PNotify){
14
+
15
+ }));
@@ -1,6 +1,9 @@
1
1
  /*
2
- *= require pnotify/pnotify.core
2
+ *= require pnotify/pnotify
3
+ *= require pnotify/pnotify.brighttheme
3
4
  *= require pnotify/pnotify.buttons
4
5
  *= require pnotify/pnotify.history
5
- *= require pnotify/pnotify.picon
6
+ *= require pnotify/pnotify.material
7
+ *= require pnotify/pnotify.mobile
8
+ *= require pnotify/pnotify.nonblock
6
9
  */
@@ -0,0 +1,165 @@
1
+ /*
2
+ Color Scheme: http://paletton.com/palette.php?uid=c1T3n2J040kpEKzpEKzbEPSOEyiNk9W
3
+ */
4
+ .brighttheme {
5
+ -webkit-border-radius: 0;
6
+ -moz-border-radius: 0;
7
+ border-radius: 0;
8
+ }
9
+ .brighttheme.ui-pnotify-container {
10
+ padding: 18px;
11
+ }
12
+ .brighttheme .ui-pnotify-title {
13
+ margin-bottom: 12px;
14
+ }
15
+ .brighttheme-notice {
16
+ background-color: #FFFFA2;
17
+ border: 0 solid #FFFF00;
18
+ color: #4F4F00;
19
+ }
20
+ .brighttheme-info {
21
+ background-color: #8FCEDD;
22
+ border: 0 solid #0286A5;
23
+ color: #012831;
24
+ }
25
+ .brighttheme-success {
26
+ background-color: #AFF29A;
27
+ border: 0 solid #35DB00;
28
+ color: #104300;
29
+ }
30
+ .brighttheme-error {
31
+ background-color: #FFABA2;
32
+ background-image: repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(255,255,255,.3) 35px, rgba(255,255,255,.3) 70px);
33
+ border: 0 solid #FF1800;
34
+ color: #4F0800;
35
+ }
36
+ .brighttheme-icon-notice,
37
+ .brighttheme-icon-info,
38
+ .brighttheme-icon-success,
39
+ .brighttheme-icon-closer,
40
+ .brighttheme-icon-sticker {
41
+ position: relative;
42
+ width: 16px;
43
+ height: 16px;
44
+ font-size: 12px;
45
+ font-weight: bold;
46
+ line-height: 16px;
47
+ font-family: "Courier New",Courier,monospace;
48
+ border-radius: 50%;
49
+ }
50
+ .brighttheme-icon-notice:after,
51
+ .brighttheme-icon-info:after,
52
+ .brighttheme-icon-success:after,
53
+ .brighttheme-icon-closer:after,
54
+ .brighttheme-icon-sticker:after {
55
+ position: absolute;
56
+ top: 0;
57
+ left: 4px;
58
+ }
59
+ .brighttheme-icon-notice {
60
+ background-color: #2E2E00;
61
+ color: #FFFFA2;
62
+ margin-top: 2px;
63
+ }
64
+ .brighttheme-icon-notice:after {
65
+ content: "!";
66
+ }
67
+ .brighttheme-icon-info {
68
+ background-color: #012831;
69
+ color: #8FCEDD;
70
+ margin-top: 2px;
71
+ }
72
+ .brighttheme-icon-info:after {
73
+ content: "i";
74
+ }
75
+ .brighttheme-icon-success {
76
+ background-color: #104300;
77
+ color: #AFF29A;
78
+ margin-top: 2px;
79
+ }
80
+ .brighttheme-icon-success:after {
81
+ content: "\002713";
82
+ }
83
+ .brighttheme-icon-error {
84
+ position: relative;
85
+ width: 0;
86
+ height: 0;
87
+ border-left: 8px solid transparent;
88
+ border-right: 8px solid transparent;
89
+ border-bottom: 16px solid #2E0400;
90
+ font-size: 0;
91
+ line-height: 0;
92
+ color: #FFABA2;
93
+ margin-top: 1px;
94
+ }
95
+ .brighttheme-icon-error:after {
96
+ position: absolute;
97
+ top: 1px;
98
+ left: -4px;
99
+ font-size: 12px;
100
+ font-weight: bold;
101
+ line-height: 16px;
102
+ font-family: "Courier New",Courier,monospace;
103
+ content: "!";
104
+ }
105
+ .brighttheme-icon-closer,
106
+ .brighttheme-icon-sticker {
107
+ display: inline-block;
108
+ }
109
+ .brighttheme-icon-closer:after {
110
+ top: -4px;
111
+ content: "\002715";
112
+ }
113
+ .brighttheme-icon-sticker:after {
114
+ top: -5px;
115
+ content: "\01D1BC";
116
+ -moz-transform: rotate(-90deg);
117
+ -webkit-transform: rotate(-90deg);
118
+ -o-transform: rotate(-90deg);
119
+ -ms-transform: rotate(-90deg);
120
+ transform: rotate(-90deg);
121
+ }
122
+ .brighttheme-icon-sticker.brighttheme-icon-stuck:after {
123
+ -moz-transform: rotate(180deg);
124
+ -webkit-transform: rotate(180deg);
125
+ -o-transform: rotate(180deg);
126
+ -ms-transform: rotate(180deg);
127
+ transform: rotate(180deg);
128
+ }
129
+
130
+ .brighttheme .ui-pnotify-action-bar {
131
+ padding-top: 12px;
132
+ }
133
+ .brighttheme .ui-pnotify-action-bar textarea, .brighttheme .ui-pnotify-action-bar input {
134
+ display: block;
135
+ width: 100%;
136
+ margin-bottom: 12px !important;
137
+ }
138
+ .brighttheme .ui-pnotify-action-button {
139
+ text-transform: uppercase;
140
+ font-weight: bold;
141
+ padding: 4px 8px;
142
+ border: none;
143
+ background: transparent;
144
+ }
145
+
146
+ .brighttheme .ui-pnotify-action-button.btn-primary {
147
+ border: none;
148
+ border-radius: 0;
149
+ }
150
+ .brighttheme-notice .ui-pnotify-action-button.btn-primary {
151
+ background-color: #FFFF00;
152
+ color: #4F4F00;
153
+ }
154
+ .brighttheme-info .ui-pnotify-action-button.btn-primary {
155
+ background-color: #0286A5;
156
+ color: #012831;
157
+ }
158
+ .brighttheme-success .ui-pnotify-action-button.btn-primary {
159
+ background-color: #35DB00;
160
+ color: #104300;
161
+ }
162
+ .brighttheme-error .ui-pnotify-action-button.btn-primary {
163
+ background-color: #FF1800;
164
+ color: #4F0800;
165
+ }
@@ -1,4 +1,4 @@
1
1
  .ui-pnotify-closer, .ui-pnotify-sticker {
2
- float: right;
3
- margin-left: .2em;
2
+ float: right;
3
+ margin-left: .2em;
4
4
  }
@@ -0,0 +1,112 @@
1
+ /*
2
+ Author : Hunter Perrin
3
+ Version : 3.0.0
4
+ Link : http://sciactive.com/pnotify/
5
+ */
6
+ /* -- Notice */
7
+ .ui-pnotify {
8
+ top: 36px;
9
+ right: 36px;
10
+ position: absolute;
11
+ height: auto;
12
+ z-index: 2;
13
+ }
14
+ body > .ui-pnotify {
15
+ /* Notices in the body context should be fixed to the viewport. */
16
+ position: fixed;
17
+ /* Ensures notices are above everything */
18
+ z-index: 100040;
19
+ }
20
+ .ui-pnotify-modal-overlay {
21
+ background-color: rgba(0, 0, 0, .4);
22
+ top: 0;
23
+ left: 0;
24
+ position: absolute;
25
+ height: 100%;
26
+ width: 100%;
27
+ z-index: 1;
28
+ }
29
+ body > .ui-pnotify-modal-overlay {
30
+ position: fixed;
31
+ z-index: 100039;
32
+ }
33
+ .ui-pnotify.ui-pnotify-in {
34
+ display: block !important;
35
+ }
36
+ .ui-pnotify.ui-pnotify-move {
37
+ transition: left .5s ease, top .5s ease, right .5s ease, bottom .5s ease;
38
+ }
39
+ .ui-pnotify.ui-pnotify-fade-slow {
40
+ transition: opacity .6s linear;
41
+ opacity: 0;
42
+ }
43
+ .ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move {
44
+ transition: opacity .6s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease;
45
+ }
46
+ .ui-pnotify.ui-pnotify-fade-normal {
47
+ transition: opacity .4s linear;
48
+ opacity: 0;
49
+ }
50
+ .ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move {
51
+ transition: opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease;
52
+ }
53
+ .ui-pnotify.ui-pnotify-fade-fast {
54
+ transition: opacity .2s linear;
55
+ opacity: 0;
56
+ }
57
+ .ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move {
58
+ transition: opacity .2s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease;
59
+ }
60
+ .ui-pnotify.ui-pnotify-fade-in {
61
+ opacity: 1;
62
+ }
63
+ .ui-pnotify .ui-pnotify-shadow {
64
+ -webkit-box-shadow: 0px 6px 28px 0px rgba(0,0,0,0.1);
65
+ -moz-box-shadow: 0px 6px 28px 0px rgba(0,0,0,0.1);
66
+ box-shadow: 0px 6px 28px 0px rgba(0,0,0,0.1);
67
+ }
68
+ .ui-pnotify-container {
69
+ background-position: 0 0;
70
+ padding: .8em;
71
+ height: 100%;
72
+ margin: 0;
73
+ }
74
+ .ui-pnotify-container:after {
75
+ content: " "; /* Older browser do not support empty content */
76
+ visibility: hidden;
77
+ display: block;
78
+ height: 0;
79
+ clear: both;
80
+ }
81
+ .ui-pnotify-container.ui-pnotify-sharp {
82
+ -webkit-border-radius: 0;
83
+ -moz-border-radius: 0;
84
+ border-radius: 0;
85
+ }
86
+ .ui-pnotify-title {
87
+ display: block;
88
+ margin-bottom: .4em;
89
+ margin-top: 0;
90
+ }
91
+ .ui-pnotify-text {
92
+ display: block;
93
+ }
94
+ .ui-pnotify-icon, .ui-pnotify-icon span {
95
+ display: block;
96
+ float: left;
97
+ margin-right: .2em;
98
+ }
99
+ /* Alternate stack initial positioning. */
100
+ .ui-pnotify.stack-topleft, .ui-pnotify.stack-bottomleft {
101
+ left: 25px;
102
+ right: auto;
103
+ }
104
+ .ui-pnotify.stack-bottomright, .ui-pnotify.stack-bottomleft {
105
+ bottom: 25px;
106
+ top: auto;
107
+ }
108
+ .ui-pnotify.stack-modal {
109
+ left: 50%;
110
+ right: auto;
111
+ margin-left: -150px;
112
+ }
@@ -1,33 +1,33 @@
1
1
  /* -- Pulldown */
2
2
  .ui-pnotify-history-container {
3
- position: absolute;
4
- top: 0;
5
- right: 18px;
6
- width: 70px;
7
- border-top: none;
8
- padding: 0;
9
- -webkit-border-top-left-radius: 0;
10
- -moz-border-top-left-radius: 0;
11
- border-top-left-radius: 0;
12
- -webkit-border-top-right-radius: 0;
13
- -moz-border-top-right-radius: 0;
14
- border-top-right-radius: 0;
15
- /* Ensures history container is above notices. */
16
- z-index: 10000;
3
+ position: absolute;
4
+ top: 0;
5
+ right: 18px;
6
+ width: 70px;
7
+ border-top: none;
8
+ padding: 0;
9
+ -webkit-border-top-left-radius: 0;
10
+ -moz-border-top-left-radius: 0;
11
+ border-top-left-radius: 0;
12
+ -webkit-border-top-right-radius: 0;
13
+ -moz-border-top-right-radius: 0;
14
+ border-top-right-radius: 0;
15
+ /* Ensures history container is above notices. */
16
+ z-index: 10000;
17
17
  }
18
18
  .ui-pnotify-history-container.ui-pnotify-history-fixed {
19
- position: fixed;
19
+ position: fixed;
20
20
  }
21
21
  .ui-pnotify-history-container .ui-pnotify-history-header {
22
- padding: 2px;
23
- text-align: center;
22
+ padding: 2px;
23
+ text-align: center;
24
24
  }
25
25
  .ui-pnotify-history-container button {
26
- cursor: pointer;
27
- display: block;
28
- width: 100%;
26
+ cursor: pointer;
27
+ display: block;
28
+ width: 100%;
29
29
  }
30
30
  .ui-pnotify-history-container .ui-pnotify-history-pulldown {
31
- display: block;
32
- margin: 0 auto;
31
+ display: block;
32
+ margin: 0 auto;
33
33
  }
@@ -0,0 +1,121 @@
1
+ /*
2
+ Color Scheme: https://www.google.com/design/spec/style/color.html#color-color-palette
3
+ */
4
+ /*
5
+ material: {
6
+ // Material doesn't require any UI libraries.
7
+ container: "pnotify-material",
8
+ notice: "pnotify-material-notice",
9
+ notice_icon: "material-icons pnotify-material-icon-notice",
10
+ info: "pnotify-material-info",
11
+ info_icon: "material-icons pnotify-material-icon-info",
12
+ success: "pnotify-material-success",
13
+ success_icon: "material-icons pnotify-material-icon-success",
14
+ error: "pnotify-material-error",
15
+ error_icon: "material-icons pnotify-material-icon-error"
16
+ },
17
+ $.extend(PNotify.styling.material, {
18
+ closer: "pnotify-material-icon-closer",
19
+ pin_up: "pnotify-material-icon-sticker",
20
+ pin_down: "pnotify-material-icon-sticker pnotify-material-icon-stuck"
21
+ });
22
+ */
23
+ @import url(https://fonts.googleapis.com/css?family=Material+Icons);
24
+ .pnotify-material {
25
+ -webkit-border-radius: 0;
26
+ -moz-border-radius: 0;
27
+ border-radius: 0;
28
+ font-size: 14px;
29
+ }
30
+ .pnotify-material.ui-pnotify-shadow {
31
+ -webkit-box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.2);
32
+ -moz-box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.2);
33
+ box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.2);
34
+ }
35
+ .pnotify-material.ui-pnotify-container {
36
+ padding: 24px;
37
+ }
38
+ .pnotify-material .ui-pnotify-title {
39
+ margin-bottom: 20px;
40
+ font-size: 20px;
41
+ }
42
+ .pnotify-material-notice {
43
+ background-color: #FFEB3B;
44
+ border: none;
45
+ color: rgba(0,0,0,0.87);
46
+ }
47
+ .pnotify-material-info {
48
+ background-color: #2196F3;
49
+ border: none;
50
+ color: #fff;
51
+ }
52
+ .pnotify-material-success {
53
+ background-color: #8BC34A;
54
+ border: none;
55
+ color: rgba(0,0,0,0.87);
56
+ }
57
+
58
+ .pnotify-material-error {
59
+ background-color: #F44336;
60
+ border: none;
61
+ color: #fff;
62
+ }
63
+ .pnotify-material-icon-notice,
64
+ .pnotify-material-icon-info,
65
+ .pnotify-material-icon-success,
66
+ .pnotify-material-icon-closer,
67
+ .pnotify-material-icon-sticker {
68
+ position: relative;
69
+ width: 16px;
70
+ height: 16px;
71
+ font-size: 12px;
72
+ font-weight: bold;
73
+ line-height: 16px;
74
+ font-family: "Courier New",Courier,monospace;
75
+ border-radius: 50%;
76
+ }
77
+ .pnotify-material-icon-notice:after,
78
+ .pnotify-material-icon-info:after,
79
+ .pnotify-material-icon-success:after,
80
+ .pnotify-material-icon-closer:after,
81
+ .pnotify-material-icon-sticker:after {
82
+ position: absolute;
83
+ top: 0;
84
+ left: 4px;
85
+ }
86
+ .pnotify-material-icon-notice:after {
87
+ content: "announcement";
88
+ }
89
+ .pnotify-material-icon-info:after {
90
+ content: "info";
91
+ }
92
+ .pnotify-material-icon-success:after {
93
+ content: "check circle";
94
+ }
95
+ .pnotify-material-icon-error:after {
96
+ content: "report problem";
97
+ }
98
+ .pnotify-material-icon-closer,
99
+ .pnotify-material-icon-sticker {
100
+ display: inline-block;
101
+ }
102
+ .pnotify-material-icon-closer:after {
103
+ top: -4px;
104
+ content: "\002715";
105
+ }
106
+ .pnotify-material-icon-sticker:after {
107
+ top: -5px;
108
+ content: "\01D1BC";
109
+ -moz-transform: rotate(-90deg);
110
+ -webkit-transform: rotate(-90deg);
111
+ -o-transform: rotate(-90deg);
112
+ -ms-transform: rotate(-90deg);
113
+ transform: rotate(-90deg);
114
+ }
115
+ .pnotify-material-icon-sticker.pnotify-material-icon-stuck:after {
116
+ -moz-transform: rotate(180deg);
117
+ -webkit-transform: rotate(180deg);
118
+ -o-transform: rotate(180deg);
119
+ -ms-transform: rotate(180deg);
120
+ transform: rotate(180deg);
121
+ }