aaf-lipstick 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c20ae11553ab491a02b20612babb2c9442b4cbfb
4
- data.tar.gz: 12a68ea57c36f2777a2ef829533e3daa7418557f
3
+ metadata.gz: 50a4cdabde2800d91e7962aae7fe261323e4ea69
4
+ data.tar.gz: abc2a5399738afd37d09452c2cdc61176af951a7
5
5
  SHA512:
6
- metadata.gz: 5d8d81ad300b65950957eb6651ef9099e2346aad6705165ddf6e463164d89abc10f8605526dca4c6791ddf67627d2e6eba1f74be497b7abccb696f13ddce7ea0
7
- data.tar.gz: 63e16bf6c500735fbde2bfd757933f34f411ed9558defab1913faf73cf076695fa5d005f74cfa2948318dc935152b8b368a9342a5d8ae6c58c8748fbf4c506c6
6
+ metadata.gz: aa8224c9f0e0434d42ab43effd76fa394b4551b99cbbfcd8c5b3f4bef8764e7c4ffcce755dc6da77b614cae85d7b5a0eff3f7da8bcf65214ddf49cf8f70ca6d1
7
+ data.tar.gz: 17cab415e9d55c03a5a879c4c398465a5a62207b9f6288b0d309e23194604d540f8481c9aa077b729b1d5b22b5170ee9b6da5111e5c32379b06bf845cbdc1799
data/Rakefile CHANGED
@@ -1,17 +1,9 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
1
+ # frozen_string_literal: true
2
+ require 'bundler/gem_tasks'
3
+ require 'rspec/core/rake_task'
4
+ require 'rubocop/rake_task'
6
5
 
7
- require 'rdoc/task'
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ RuboCop::RakeTask.new
8
8
 
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'AafServiceBase'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.rdoc')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
16
-
17
- Bundler::GemHelper.install_tasks
9
+ task default: [:spec, :rubocop]
Binary file
Binary file
@@ -0,0 +1,90 @@
1
+ //= require jquery/jquery.js
2
+ //= require jquery-validation/jquery.validate.js
3
+ //= require pickadate/picker.js
4
+ //= require pickadate/picker.date.js
5
+ //= require bootstrap/bootstrap.js
6
+
7
+ (function($) {
8
+ var isCheckbox = function(e) {
9
+ if (e.is(':checkbox')) return true;
10
+
11
+ var name = e.attr('name');
12
+ return (e.siblings(':checkbox').attr('name') === name);
13
+ };
14
+
15
+ $.validator.setDefaults({
16
+ "ignore": '.picker__input',
17
+ "highlight": function(element) {
18
+ $(element).closest('.form-group').addClass('has-error');
19
+ },
20
+ "unhighlight": function(element) {
21
+ $(element).closest('.form-group').removeClass('has-error');
22
+ },
23
+ "errorElement": 'span',
24
+ "errorClass": 'help-block',
25
+ "errorPlacement": function(error, element) {
26
+ if (element.is(':radio')) {
27
+ error.appendTo(element.parents('.form-group.has-error'));
28
+ } else if (isCheckbox(element)) {
29
+ error.insertAfter(element.parent('label'));
30
+ } else {
31
+ error.insertAfter(element);
32
+ }
33
+ }
34
+ });
35
+
36
+ $.extend($.fn.pickadate.defaults, {
37
+ "format": 'dd/mm/yyyy',
38
+ "formatSubmit": 'yyyy-mm-dd',
39
+ "hiddenName": true
40
+ });
41
+ })(jQuery);
42
+
43
+ jQuery(function($) {
44
+ $('.date-picker').pickadate().each(function() {
45
+ var e = $(this).pickadate('picker');
46
+ var val = $(this).val();
47
+ if (val) e.set('select', val, { format: 'yyyy-mm-dd' });
48
+ });
49
+
50
+ if ($('script.lipstick-validations').length) {
51
+ $('script.lipstick-validations').each(function() {
52
+ var target = $(this).data('target');
53
+ var json = this.innerHTML;
54
+ $(target).validate($.parseJSON(json));
55
+ });
56
+ }
57
+
58
+ $('main').on('click', '.confirm-delete', function(event) {
59
+ event.preventDefault();
60
+
61
+ var csrf_param = $('meta[name="csrf-param"]').attr('content');
62
+ var csrf_token = $('meta[name="csrf-token"]').attr('content');
63
+
64
+ var form = $('<form></form>',
65
+ {
66
+ "method": 'POST',
67
+ "action": $(this).prop('href')
68
+ }
69
+ );
70
+
71
+ var hidden = $('<input>',
72
+ {
73
+ "type": 'hidden',
74
+ "name": '_method',
75
+ "value": 'DELETE'
76
+ }
77
+ );
78
+
79
+ var csrf_field = $('<input>',
80
+ {
81
+ "type": 'hidden',
82
+ "name": csrf_param,
83
+ "value": csrf_token
84
+ }
85
+ );
86
+
87
+ form.hide().append(hidden).append(csrf_field).appendTo(document.body);
88
+ form.submit();
89
+ });
90
+ });
@@ -0,0 +1,304 @@
1
+ //= require 'bootstrap/bootstrap.css'
2
+ //= require 'pickadate/classic.css'
3
+ //= require 'pickadate/classic.date.css'
4
+ //= depend_on aaf-icon.png
5
+
6
+ @import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700);
7
+
8
+ $brand-grey: #cccccc;
9
+ $brand-grey-blue: #424e5a;
10
+ $brand-orange: #f5811d;
11
+ $brand-blue: #2a3689;
12
+
13
+ @mixin no-header-margins() {
14
+ h1, h2, h3, h4, h5, h6 {
15
+ margin: 0px;
16
+ }
17
+ }
18
+
19
+ @mixin responsive-min-gutter($width, $gutter) {
20
+ @media only screen and (max-width: $width) {
21
+ padding-left: $gutter;
22
+ padding-right: $gutter;
23
+ }
24
+ }
25
+
26
+ @mixin responsive-gutter($width, $gutter) {
27
+ @media only screen and (min-width: $width) {
28
+ padding-left: $gutter;
29
+ padding-right: $gutter;
30
+ }
31
+ }
32
+
33
+ @mixin responsive-fixed($screen, $content) {
34
+ @media only screen and (min-width: $screen) {
35
+ width: $content;
36
+ padding-left: 0px;
37
+ padding-right: 0px;
38
+ margin-left: auto;
39
+ margin-right: auto;
40
+ }
41
+ }
42
+
43
+ @mixin responsive-width {
44
+ @include responsive-min-gutter(959px, 5px);
45
+ @include responsive-gutter(960px, 50px);
46
+ @include responsive-gutter(1280px, 100px);
47
+ @include responsive-fixed(1560px, 1360px);
48
+ }
49
+
50
+ html {
51
+ position: relative;
52
+ min-height: 100%;
53
+ }
54
+
55
+ body {
56
+ margin-bottom: 138px;
57
+ padding: 0px;
58
+
59
+ font-family: "Source Sans Pro", sans-serif;
60
+ font-size: 16px;
61
+ color: black;
62
+ background: white;
63
+
64
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
65
+ color: $brand-orange;
66
+
67
+ small { display: block; }
68
+ }
69
+ }
70
+
71
+ section.content {
72
+ @include responsive-width;
73
+ }
74
+
75
+ main {
76
+ margin-top: 1em;
77
+
78
+ a {
79
+ text-decoration: none;
80
+ color: #08c;
81
+ }
82
+
83
+ a:hover {
84
+ text-decoration: underline;
85
+ }
86
+
87
+ table {
88
+ text-align: left;
89
+ }
90
+
91
+ .search.filter {
92
+ button {
93
+ white-space: nowrap;
94
+ }
95
+ }
96
+
97
+ .pagination-wrapper {
98
+ text-align: center;
99
+
100
+ a:hover {
101
+ text-decoration: none;
102
+ }
103
+ }
104
+
105
+ .delete.button .ui.menu {
106
+ min-height: 1em;
107
+ }
108
+
109
+ .date-picker[readonly] {
110
+ background: white;
111
+ }
112
+ }
113
+
114
+ footer {
115
+ font-size: 14px;
116
+ line-height: 1.6em;
117
+ margin-top: 3rem;
118
+ padding-bottom: 0.5rem;
119
+ color: $brand-grey;
120
+
121
+ background-color: $brand-blue;
122
+ overflow-y: hidden;
123
+ position: absolute;
124
+ bottom: 0;
125
+ height: 111px;
126
+ width: 100%;
127
+
128
+ a {
129
+ text-decoration: none;
130
+ color: inherit;
131
+ }
132
+
133
+ a:hover {
134
+ color: white;
135
+ text-decoration: underline;
136
+ }
137
+
138
+ &::before {
139
+ display: block;
140
+ position: absolute;
141
+ top: -40px;
142
+ content: ' ';
143
+ height: 50px;
144
+ width: 100%;
145
+ background-color: $brand-grey;
146
+ transform: skewY(1deg);
147
+ }
148
+
149
+ @media only screen and (max-width: 767px) {
150
+ font-size: 12px;
151
+
152
+ &::before {
153
+ top: -40px;
154
+ transform: skewY(2.5deg);
155
+ }
156
+ }
157
+
158
+ .footer-content {
159
+ @include responsive-width;
160
+
161
+ padding-top: 2rem;
162
+
163
+ .logo {
164
+ display: inline-block;
165
+ height: 51px;
166
+ width: 51px;
167
+ margin-top: 20px;
168
+ background-image: asset-data-url('logo.png');
169
+ background-repeat: no-repeat;
170
+ background-size: 51px 51px;
171
+ }
172
+ }
173
+ }
174
+
175
+ .aaf-header {
176
+ $background: $brand-grey-blue;
177
+ $nav-background: $brand-orange;
178
+ $nav-highlight: $brand-blue;
179
+
180
+ background-color: $background;
181
+
182
+ header {
183
+ @include responsive-width;
184
+
185
+ color: $brand-orange;
186
+ font-size: 24px;
187
+ font-weight: bold;
188
+ padding-top: 1.1rem;
189
+ padding-bottom: 1rem;
190
+
191
+ .logo {
192
+ margin-right: 20px;
193
+ }
194
+
195
+ .environment {
196
+ &::before { content: '('; }
197
+ &::after { content: ')'; }
198
+ margin-left: 0.5em;
199
+ text-transform: none;
200
+ color: white;
201
+ }
202
+ }
203
+
204
+ .aaf-links {
205
+ @include responsive-width;
206
+ padding-right: 0px !important;
207
+ a {
208
+ color: white;
209
+ font-size: 14px;
210
+
211
+ padding-left: 0.7em;
212
+ padding-right: 0.7em;
213
+
214
+ .glyphicon {
215
+ margin-right: 1px;
216
+
217
+ @media only screen and (max-width: 768px) {
218
+ display: none;
219
+ margin-right: 0px;
220
+ }
221
+
222
+ &.glyphicon-aaf {
223
+ background-image: asset-data-url('aaf-icon.png');
224
+ background-size: 1em 1em;
225
+ background-repeat: no-repeat;
226
+ width: 1em;
227
+ height: 1em;
228
+ position: relative;
229
+ top: 2px;
230
+ }
231
+ }
232
+ }
233
+
234
+ a + a {
235
+ border-left: 2px solid desaturate(lighten($brand-grey-blue, 10%), 10%);
236
+ }
237
+
238
+ font-weight: normal;
239
+ margin-top: -15px;
240
+ }
241
+
242
+ @media only screen and (max-width: 768px) {
243
+ header, .aaf-links { text-align: center; }
244
+
245
+ .logo {
246
+ display: none;
247
+ }
248
+
249
+ .aaf-links.pull-right {
250
+ float: none !important;
251
+ }
252
+ }
253
+
254
+ @media only screen and (min-width: 1560px) {
255
+ .aaf-links.pull-right {
256
+ width: initial;
257
+ }
258
+
259
+ }
260
+
261
+ nav {
262
+ @include responsive-width;
263
+
264
+ background: $brand-grey;
265
+ border: 0px;
266
+ border-radius: 0px;
267
+ min-height: 40px;
268
+
269
+ .icon-bar {
270
+ border: 1px solid black;
271
+ }
272
+
273
+ .navbar-brand {
274
+ font-size: inherit;
275
+ }
276
+
277
+ .navbar-brand, .nav li a {
278
+ height: 40px;
279
+ padding-top: 10px;
280
+ padding-bottom: 10px;
281
+ }
282
+
283
+ .navbar-toggle {
284
+ margin-top: 3px;
285
+ margin-bottom: 3px;
286
+ margin-right: 5px;
287
+ }
288
+
289
+ a:hover {
290
+ background: $brand-blue;
291
+ color: white;
292
+ }
293
+
294
+ a {
295
+ color: black;
296
+ }
297
+ }
298
+ }
299
+
300
+ .clearfix:after {
301
+ content: "";
302
+ display: table;
303
+ clear: both;
304
+ }
@@ -25,67 +25,67 @@
25
25
  }
26
26
 
27
27
  h1, .h1{
28
- color:#666666;
28
+ color:#f5811d;
29
29
  display:block;
30
- font-family:Arial;
31
- font-size:34px;
32
- font-weight:bold;
30
+ font-family:'Source Sans Pro', sans-serif;
31
+ font-size:30px;
32
+ font-weight: 500;
33
33
  line-height:100%;
34
34
  margin-top:0;
35
35
  margin-right:0;
36
- margin-bottom:10px;
36
+ margin-bottom:13px;
37
37
  margin-left:0;
38
38
  text-align:left;
39
39
  }
40
40
 
41
41
  h2, .h2{
42
- color:#666666;
42
+ color:#f5811d;
43
43
  display:block;
44
- font-family:Arial;
45
- font-size:30px;
46
- font-weight:bold;
44
+ font-family:'Source Sans Pro', sans-serif;
45
+ font-size:26px;
46
+ font-weight: 500;
47
47
  line-height:100%;
48
48
  margin-top:0;
49
49
  margin-right:0;
50
- margin-bottom:10px;
50
+ margin-bottom:13px;
51
51
  margin-left:0;
52
52
  text-align:left;
53
53
  }
54
54
 
55
55
  h3, .h3{
56
- color:#666666;
56
+ color:#f5811d;
57
57
  display:block;
58
- font-family:Arial;
59
- font-size:26px;
60
- font-weight:bold;
58
+ font-family:'Source Sans Pro', sans-serif;
59
+ font-size:24px;
60
+ font-weight: 500;
61
61
  line-height:100%;
62
62
  margin-top:0;
63
63
  margin-right:0;
64
- margin-bottom:10px;
64
+ margin-bottom:13px;
65
65
  margin-left:0;
66
66
  text-align:left;
67
67
  }
68
68
 
69
69
  h4, .h4{
70
- color:#666666;
70
+ color:#f5811d;
71
71
  display:block;
72
- font-family:Arial;
72
+ font-family:'Source Sans Pro', sans-serif;
73
73
  font-size:22px;
74
- font-weight:bold;
74
+ font-weight: 500;
75
75
  line-height:100%;
76
76
  margin-top:0;
77
77
  margin-right:0;
78
- margin-bottom:10px;
78
+ margin-bottom:13px;
79
79
  margin-left:0;
80
80
  text-align:left;
81
81
  }
82
82
 
83
83
  h5, .h5{
84
- color:#666666;
84
+ color:#f5811d;
85
85
  display:block;
86
- font-family:Arial;
87
- font-size:16px;
88
- font-weight:bold;
86
+ font-family:'Source Sans Pro', sans-serif;
87
+ font-size:20px;
88
+ font-weight: 500;
89
89
  line-height:100%;
90
90
  margin-top:0;
91
91
  margin-right:0;
@@ -100,8 +100,8 @@
100
100
 
101
101
  .preheaderContent div{
102
102
  color:#505050;
103
- font-family:Arial;
104
- font-size:10px;
103
+ font-family:'Source Sans Pro', sans-serif;
104
+ font-size:13px;
105
105
  line-height:100%;
106
106
  text-align:left;
107
107
  }
@@ -118,10 +118,10 @@
118
118
  }
119
119
 
120
120
  .headerContent{
121
- color:#666666;
122
- font-family:Arial;
121
+ color:#f5811d;
122
+ font-family:'Source Sans Pro', sans-serif;
123
123
  font-size:34px;
124
- font-weight:bold;
124
+
125
125
  line-height:100%;
126
126
  padding:0;
127
127
  text-align:center;
@@ -145,7 +145,7 @@
145
145
 
146
146
  .bodyContent div{
147
147
  color:#505050;
148
- font-family:Arial;
148
+ font-family:'Source Sans Pro', sans-serif;
149
149
  font-size:14px;
150
150
  line-height:150%;
151
151
  text-align:left;
@@ -169,8 +169,8 @@
169
169
 
170
170
  .footerContent div{
171
171
  color:#707070;
172
- font-family:Arial;
173
- font-size:12px;
172
+ font-family:'Source Sans Pro', sans-serif;
173
+ font-size:13px;
174
174
  line-height:125%;
175
175
  text-align:left;
176
176
  }
@@ -191,8 +191,7 @@
191
191
  }
192
192
 
193
193
  #social a {
194
- font-weight: bold;
195
- color:#E36C0A;
194
+ color:#08c;
196
195
  }
197
196
 
198
197
  #social div{
@@ -207,7 +206,7 @@
207
206
  <td align="center" valign="top">
208
207
  <table border="0" cellpadding="10" cellspacing="0" width="600" id="templatePreheader">
209
208
  <tr>
210
- <td valign="top" class="preheaderContent" style="color:#505050; font-family:Arial; font-size:10px; line-height:100%; text-align:left;">
209
+ <td valign="top" class="preheaderContent" style="color:#505050; font-family:'Source Sans Pro', sans-serif; font-size:13px; line-height:100%; text-align:left;">
211
210
  <table border="0" cellpadding="10" cellspacing="0" width="100%">
212
211
  <tr>
213
212
  <td valign="top">
@@ -266,9 +265,9 @@
266
265
  <td valign="top" class="footerContent">
267
266
  <table border="0" cellpadding="10" cellspacing="0" width="100%">
268
267
  <tr>
269
- <td colspan="2" valign="middle" id="social" style="background-color:#FAFAFA; border:0;">
268
+ <td colspan="2" valign="middle" id="social" style="background-color:#f5f5f5; border:0; padding: 8px 15px; border-radius: 4px;">
270
269
  <div style="text-align:center;">
271
- &nbsp;<a href="http://twitter.com/ausaccessfed" style="font-weight: bold; color:#E36C0A;">Follow on Twitter</a> | <a href="http://www.facebook.com/ausaccessfed" style="font-weight: bold; color:#E36C0A;">Friend on Facebook</a> | <a href="https://support.aaf.edu.au" style="font-weight: bold; color:#E36C0A;">Get AAF Support</a>&nbsp;
270
+ &nbsp;<a href="http://twitter.com/ausaccessfed" style="color:#08c;">Follow on Twitter</a> | <a href="http://www.facebook.com/ausaccessfed" style="color:#08c;">Friend on Facebook</a> | <a href="https://support.aaf.edu.au" style="color:#08c;">Get AAF Support</a>&nbsp;
272
271
  </div>
273
272
  </td>
274
273
  </tr>