loldesign_publisher 1.3.6 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/loldesign_publisher/publisher.js +2 -0
  3. data/app/assets/javascripts/vex_plugin/vex.combined.min.js +2 -0
  4. data/app/assets/javascripts/vex_plugin/vex.dialog.js +150 -0
  5. data/app/assets/javascripts/vex_plugin/vex.dialog.min.js +2 -0
  6. data/app/assets/javascripts/vex_plugin/vex.js +189 -0
  7. data/app/assets/javascripts/vex_plugin/vex.min.js +2 -0
  8. data/app/assets/stylesheets/loldesign_publisher/base/_fields_wrapper.scss +198 -0
  9. data/app/assets/stylesheets/loldesign_publisher/base/_form.scss +160 -0
  10. data/app/assets/stylesheets/loldesign_publisher/base/_grid-settings.scss +18 -0
  11. data/app/assets/stylesheets/loldesign_publisher/base/_grid.scss +15 -0
  12. data/app/assets/stylesheets/loldesign_publisher/{modules → base}/_title_page.scss +6 -8
  13. data/app/assets/stylesheets/loldesign_publisher/base/_typography.scss +54 -0
  14. data/app/assets/stylesheets/loldesign_publisher/base/_variables.scss +47 -0
  15. data/app/assets/stylesheets/loldesign_publisher/base/base.scss +21 -0
  16. data/app/assets/stylesheets/loldesign_publisher/layouts/_default.scss +25 -5
  17. data/app/assets/stylesheets/loldesign_publisher/layouts/_form.scss +19 -2
  18. data/app/assets/stylesheets/loldesign_publisher/layouts/_nav_main.scss +9 -2
  19. data/app/assets/stylesheets/loldesign_publisher/plugins/vex/_vex.scss +243 -0
  20. data/app/assets/stylesheets/loldesign_publisher/plugins/vex/_vex_theme.scss +325 -0
  21. data/app/assets/stylesheets/loldesign_publisher/publisher.css.scss +2 -0
  22. data/app/views/layouts/loldesign_publisher/_header_main.html.erb +3 -3
  23. data/app/views/layouts/loldesign_publisher/modules/_messages.html.erb +14 -4
  24. data/app/views/layouts/loldesign_publisher/publisher.html.erb +4 -3
  25. data/lib/loldesign_publisher/version.rb +1 -1
  26. data/lib/loldesign_publisher.rb +6 -2
  27. data/spec/dummy/app/controllers/users_controller.rb +38 -1
  28. data/spec/dummy/app/models/user.rb +1 -0
  29. data/spec/dummy/app/views/users/_filters_by_from_to.html.erb +4 -4
  30. data/spec/dummy/app/views/users/_form.html.erb +25 -0
  31. data/spec/dummy/app/views/users/_user.html.erb +4 -4
  32. data/spec/dummy/app/views/users/edit.html.erb +2 -0
  33. data/spec/dummy/app/views/users/index.html.erb +7 -7
  34. data/spec/dummy/app/views/users/new.html.erb +2 -24
  35. data/spec/dummy/config/loldesign_publisher.yml +6 -6
  36. metadata +93 -3
@@ -0,0 +1,160 @@
1
+ $border-color: #808284;
2
+
3
+ .form {
4
+ .field-group{
5
+ @include clearfix;
6
+ margin-bottom: 20px;
7
+
8
+ article{
9
+ clear: left;
10
+
11
+ .input:first-child{
12
+ @include alpha;
13
+ }
14
+ }
15
+
16
+ &:nth-child(3){
17
+ padding-bottom:20px;
18
+ border-bottom: 1px solid $border-color;
19
+ }
20
+ }
21
+ .input{
22
+ margin-bottom: 10px;
23
+
24
+ label{
25
+ font-size: 12px;
26
+ }
27
+
28
+ &.large{
29
+ @include grid(7);
30
+ }
31
+ &.medium{
32
+ @include grid(4);
33
+ }
34
+ &.small{
35
+ @include grid(3);
36
+ }
37
+ &.x-small{
38
+ @include grid(2);
39
+ }
40
+ &.xx-small{
41
+ @include grid(1);
42
+ }
43
+ }
44
+ }
45
+
46
+ .table-page{
47
+ .list-edit{
48
+ font-size:12px !important;
49
+ text-decoration:underline;
50
+ color:#6d6e71;
51
+
52
+ &:hover{
53
+ color:#484045;
54
+ }
55
+ }
56
+ }
57
+
58
+ form {
59
+ footer {
60
+ .action {
61
+ @include shift(7 of 18);
62
+ @include span-columns(4 of 18);
63
+ .btn {
64
+ left: inherit;
65
+ }
66
+ .pretty {
67
+ @include span-columns(2 of 4);
68
+ &.cancel {
69
+ margin-left: 0;
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ .proposal-form {
77
+ .easy-autocomplete {
78
+ padding: 0;
79
+ }
80
+ }
81
+
82
+ .search-form {
83
+ float: right;
84
+
85
+
86
+ .selectric-wrapper,
87
+ .easy-autocomplete,
88
+ input[type="search"],
89
+ input[type="text"]{
90
+ text-transform: uppercase;
91
+ outline: none;
92
+ @include grid(4);
93
+ font-size: 12px;
94
+ padding: 4px 4px 3px 4px;
95
+
96
+ &.small{
97
+ @include grid(3);
98
+ }
99
+ }
100
+
101
+ .selectric-wrapper,
102
+ .easy-autocomplete {
103
+ padding: 0;
104
+ }
105
+
106
+ .selectric-wrapper {
107
+ margin: 0 10px;
108
+ .selectric {
109
+ border-radius: 0;
110
+ }
111
+ .label {
112
+ min-height: 23px;
113
+ line-height: 25px;
114
+ }
115
+ .button {
116
+ height: 23px;
117
+ }
118
+ }
119
+
120
+ input[type="submit"]{
121
+ @include grid(2);
122
+ @include omega;
123
+ font-size: 12px;
124
+ cursor: hand;
125
+ cursor: pointer;
126
+ border: 0px;
127
+ background: lighten($gray-main, 55%);
128
+ padding: 5px 0;
129
+ outline: none;
130
+ }
131
+
132
+ .datepicker {
133
+ float: left;
134
+ margin: 0 10px;
135
+ width: 19%;
136
+ height: 23px;
137
+ }
138
+ }
139
+
140
+ .report-search-form {
141
+ float: left;
142
+ width: 100%;
143
+
144
+ .easy-autocomplete {
145
+ margin-left: 0;
146
+ margin-right: 10px;
147
+
148
+ input {
149
+ margin-left: 0;
150
+ }
151
+ }
152
+
153
+ .report-finder-button {
154
+ float: right !important;
155
+ }
156
+ }
157
+
158
+ .found-reports{
159
+ font-size: 12px;
160
+ }
@@ -0,0 +1,18 @@
1
+ @import "neat-helpers"; // or "../neat/neat-helpers" when not in Rails
2
+
3
+ // Neat Overrides
4
+ $column: 36px;
5
+ $gutter: 12px;
6
+ $grid-columns: 24;
7
+ $max-width: 1200px;
8
+
9
+ $visual-grid: false;
10
+ $visual-grid-color: red;
11
+ $visual-grid-index: front;
12
+ $visual-grid-opacity: 0.1;
13
+
14
+ // Neat Breakpoints
15
+ $tablet: new-breakpoint(max-width 800px 24);
16
+ $mobile: new-breakpoint(max-width 480px 24);
17
+ $desktop: new-breakpoint(min-width 1024px 24);
18
+ $large-screen: new-breakpoint(min-width 1376px 24);
@@ -0,0 +1,15 @@
1
+ * {
2
+ -webkit-box-sizing: border-box;
3
+ -moz-box-sizing: border-box;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ .container-main,
8
+ .container {
9
+ @include outer-container();
10
+ position: relative;
11
+ }
12
+
13
+ .omega {
14
+ margin-right: 0 !important;
15
+ }
@@ -1,13 +1,13 @@
1
- @import "loldesign_publisher/base";
2
-
3
1
  header.title-page{
4
2
  @include clearfix;
5
3
  border-bottom: 1px dotted #000;
6
-
4
+
7
5
  h2{
8
6
  font-size: 30px;
9
- @include grid(13);
10
- @include alpha;
7
+ margin: 20px 0 0 0;
8
+ font-size: 20px;
9
+ width: 89.3%;
10
+ float: left;
11
11
  }
12
12
 
13
13
  .btn{
@@ -41,14 +41,12 @@ header.title-page{
41
41
  &[data-show=true][data-save=false]{
42
42
  .btn.show{
43
43
  display: block;
44
- @include push(2);
45
44
  }
46
45
  }
47
46
 
48
47
  &[data-show=false][data-save=true]{
49
48
  .btn.save{
50
49
  display: block;
51
- @include push(2);
52
50
  }
53
51
  }
54
- }
52
+ }
@@ -0,0 +1,54 @@
1
+ body {
2
+ color: $base-font-color;
3
+ font-family: $base-font-family;
4
+ font-feature-settings: "kern", "liga", "pnum";
5
+ font-size: $base-font-size;
6
+ line-height: $base-line-height;
7
+ }
8
+
9
+ h1,
10
+ h2,
11
+ h3,
12
+ h4,
13
+ h5,
14
+ h6 {
15
+ font-family: $heading-font-family;
16
+ font-size: $base-font-size;
17
+ line-height: $heading-line-height;
18
+ margin: 0 0 $small-spacing;
19
+ }
20
+
21
+ p {
22
+ margin: 0 0 $small-spacing;
23
+ }
24
+
25
+ a {
26
+ color: $action-color;
27
+ text-decoration: none;
28
+ transition: color $base-duration $base-timing;
29
+
30
+ &:active,
31
+ &:focus,
32
+ &:hover {
33
+ color: shade($action-color, 25%);
34
+ }
35
+ }
36
+
37
+ hr {
38
+ border-bottom: $base-border;
39
+ border-left: 0;
40
+ border-right: 0;
41
+ border-top: 0;
42
+ margin: $base-spacing 0;
43
+ }
44
+
45
+ figure {
46
+ margin: 0;
47
+ padding: 0;
48
+ }
49
+
50
+ img,
51
+ picture {
52
+ margin: 0;
53
+ max-width: 100%;
54
+ }
@@ -0,0 +1,47 @@
1
+ // Typography
2
+ $base-font-family: $helvetica;
3
+ $heading-font-family: $base-font-family;
4
+
5
+ // Font Sizes
6
+ $base-font-size: 1em;
7
+
8
+ // Line height
9
+ $base-line-height: 1.5;
10
+ $heading-line-height: 1.2;
11
+
12
+ // Other Sizes
13
+ $base-border-radius: 3px;
14
+ $base-spacing: $base-line-height * 1em;
15
+ $small-spacing: $base-spacing / 2;
16
+ $base-z-index: 0;
17
+
18
+ // Colors
19
+ $blue: #477dca;
20
+ $dark-gray: #333;
21
+ $medium-gray: #999;
22
+ $light-gray: #ddd;
23
+ $gondola: #281627;
24
+ $mantle: #839C90;
25
+ $rolling-stone: #808183;
26
+ $button-active-color: #789E91;
27
+ $button-base-color: #2B1024;
28
+
29
+ // Font Colors
30
+ $base-font-color: $dark-gray;
31
+ $action-color: $blue;
32
+
33
+ // Border
34
+ $base-border-color: $light-gray;
35
+ $base-border: 1px solid $base-border-color;
36
+
37
+ // Background Colors
38
+ $base-background-color: #fff;
39
+ $secondary-background-color: tint($base-border-color, 75%);
40
+
41
+ // Forms
42
+ $form-box-shadow: inset 0 1px 3px rgba(#000, 0.06);
43
+ $form-box-shadow-focus: $form-box-shadow, 0 0 5px adjust-color($action-color, $lightness: -5%, $alpha: -0.3);
44
+
45
+ // Animations
46
+ $base-duration: 150ms;
47
+ $base-timing: ease;
@@ -0,0 +1,21 @@
1
+ // Bitters 1.1.0
2
+ // http://bitters.bourbon.io
3
+ // Copyright 2013-2015 thoughtbot, inc.
4
+ // MIT License
5
+ @import 'normalize-rails';
6
+ @import 'bourbon';
7
+ @import 'neat';
8
+
9
+ @import "variables";
10
+
11
+ // Neat Settings -- uncomment if using Neat -- must be imported before Neat
12
+ @import "fields_wrapper";
13
+ @import "title_page";
14
+ @import "form";
15
+ @import "grid-settings";
16
+
17
+ // @import "buttons";
18
+ // @import "forms";
19
+ // @import "lists";
20
+ // @import "tables";
21
+ @import "typography";
@@ -1,15 +1,35 @@
1
1
  @import "loldesign_publisher/base";
2
+ @import 'normalize-rails';
3
+ @import 'bourbon';
4
+ @import 'neat';
2
5
 
3
- .container-main{
4
- @include container;
6
+ .container-main,
7
+ .container{
8
+ @include outer-container();
9
+ position: relative;
10
+ zoom: 1;
5
11
  }
6
12
 
7
13
  .content{
8
- @include grid(17);
9
- @include push(1);
14
+ @include span-columns(17 of 24);;
15
+ @include shift(1 of 24);
10
16
  margin-top: 30px;
11
17
  }
12
18
 
13
19
  .ui-datepicker{
14
20
  width: inherit !important;
15
- }
21
+ }
22
+
23
+ .content-wrapper {
24
+ @include shift(1 of 24);
25
+ @include span-columns(18 of 24);
26
+ }
27
+
28
+ #proposal_summary{
29
+ resize: none;
30
+ }
31
+
32
+ #project_description{
33
+ height: 168px;
34
+ resize: none;
35
+ }
@@ -99,7 +99,24 @@ form{
99
99
  @include alpha;
100
100
  }
101
101
 
102
- @include push(6);
102
+ @include push(7);
103
103
  }
104
104
  }
105
- }
105
+ }
106
+
107
+ nav.main{
108
+ li{
109
+ ul.dropdown{
110
+ display: none;
111
+ margin-top: 0px;
112
+ margin-left:10px;
113
+
114
+ a{
115
+ font-size: 10px;
116
+ }
117
+ }
118
+ &:hover ul.dropdown{
119
+ display: block;
120
+ }
121
+ }
122
+ }
@@ -1,12 +1,19 @@
1
1
  @import "loldesign_publisher/base";
2
+ @import 'normalize-rails';
3
+ @import 'bourbon';
4
+ @import "../base/variables";
5
+ @import "../base/grid-settings";
6
+ @import 'neat';
7
+ @import "../base/typography";
2
8
 
3
9
  $link-color: #6d6e71;
4
10
  $link-active-color: #484045;
5
11
  $link-border-color: #c6c6c6;
6
12
 
7
13
  nav.main{
8
- @include grid(4);
14
+ @include span-columns(5 of 24);
9
15
  margin-top: 30px;
16
+ margin-left: 0;
10
17
 
11
18
  ul{
12
19
  margin-top: 30px;
@@ -27,4 +34,4 @@ nav.main{
27
34
  background: image-url('loldesign_publisher/nav_active_link.svg') no-repeat 177px 8px;
28
35
  }
29
36
  }
30
- }
37
+ }
@@ -0,0 +1,243 @@
1
+ @keyframes vex-fadein {
2
+ 0% {
3
+ opacity: 0; }
4
+ 100% {
5
+ opacity: 1; } }
6
+
7
+ @-webkit-keyframes vex-fadein {
8
+ 0% {
9
+ opacity: 0; }
10
+ 100% {
11
+ opacity: 1; } }
12
+
13
+ @-moz-keyframes vex-fadein {
14
+ 0% {
15
+ opacity: 0; }
16
+ 100% {
17
+ opacity: 1; } }
18
+
19
+ @-ms-keyframes vex-fadein {
20
+ 0% {
21
+ opacity: 0; }
22
+ 100% {
23
+ opacity: 1; } }
24
+
25
+ @-o-keyframes vex-fadein {
26
+ 0% {
27
+ opacity: 0; }
28
+ 100% {
29
+ opacity: 1; } }
30
+
31
+ @keyframes vex-fadeout {
32
+ 0% {
33
+ opacity: 1; }
34
+ 100% {
35
+ opacity: 0; } }
36
+
37
+ @-webkit-keyframes vex-fadeout {
38
+ 0% {
39
+ opacity: 1; }
40
+ 100% {
41
+ opacity: 0; } }
42
+
43
+ @-moz-keyframes vex-fadeout {
44
+ 0% {
45
+ opacity: 1; }
46
+ 100% {
47
+ opacity: 0; } }
48
+
49
+ @-ms-keyframes vex-fadeout {
50
+ 0% {
51
+ opacity: 1; }
52
+ 100% {
53
+ opacity: 0; } }
54
+
55
+ @-o-keyframes vex-fadeout {
56
+ 0% {
57
+ opacity: 1; }
58
+ 100% {
59
+ opacity: 0; } }
60
+
61
+ @keyframes vex-rotation {
62
+ 0% {
63
+ transform: rotate(0deg);
64
+ -webkit-transform: rotate(0deg);
65
+ -moz-transform: rotate(0deg);
66
+ -ms-transform: rotate(0deg);
67
+ -o-transform: rotate(0deg); }
68
+ 100% {
69
+ transform: rotate(359deg);
70
+ -webkit-transform: rotate(359deg);
71
+ -moz-transform: rotate(359deg);
72
+ -ms-transform: rotate(359deg);
73
+ -o-transform: rotate(359deg); } }
74
+
75
+ @-webkit-keyframes vex-rotation {
76
+ 0% {
77
+ transform: rotate(0deg);
78
+ -webkit-transform: rotate(0deg);
79
+ -moz-transform: rotate(0deg);
80
+ -ms-transform: rotate(0deg);
81
+ -o-transform: rotate(0deg); }
82
+ 100% {
83
+ transform: rotate(359deg);
84
+ -webkit-transform: rotate(359deg);
85
+ -moz-transform: rotate(359deg);
86
+ -ms-transform: rotate(359deg);
87
+ -o-transform: rotate(359deg); } }
88
+
89
+ @-moz-keyframes vex-rotation {
90
+ 0% {
91
+ transform: rotate(0deg);
92
+ -webkit-transform: rotate(0deg);
93
+ -moz-transform: rotate(0deg);
94
+ -ms-transform: rotate(0deg);
95
+ -o-transform: rotate(0deg); }
96
+ 100% {
97
+ transform: rotate(359deg);
98
+ -webkit-transform: rotate(359deg);
99
+ -moz-transform: rotate(359deg);
100
+ -ms-transform: rotate(359deg);
101
+ -o-transform: rotate(359deg); } }
102
+
103
+ @-ms-keyframes vex-rotation {
104
+ 0% {
105
+ transform: rotate(0deg);
106
+ -webkit-transform: rotate(0deg);
107
+ -moz-transform: rotate(0deg);
108
+ -ms-transform: rotate(0deg);
109
+ -o-transform: rotate(0deg); }
110
+ 100% {
111
+ transform: rotate(359deg);
112
+ -webkit-transform: rotate(359deg);
113
+ -moz-transform: rotate(359deg);
114
+ -ms-transform: rotate(359deg);
115
+ -o-transform: rotate(359deg); } }
116
+
117
+ @-o-keyframes vex-rotation {
118
+ 0% {
119
+ transform: rotate(0deg);
120
+ -webkit-transform: rotate(0deg);
121
+ -moz-transform: rotate(0deg);
122
+ -ms-transform: rotate(0deg);
123
+ -o-transform: rotate(0deg); }
124
+ 100% {
125
+ transform: rotate(359deg);
126
+ -webkit-transform: rotate(359deg);
127
+ -moz-transform: rotate(359deg);
128
+ -ms-transform: rotate(359deg);
129
+ -o-transform: rotate(359deg); } }
130
+
131
+ .vex, .vex *, .vex *:before, .vex *:after {
132
+ -moz-box-sizing: border-box;
133
+ -webkit-box-sizing: border-box;
134
+ box-sizing: border-box; }
135
+
136
+ .vex {
137
+ position: fixed;
138
+ overflow: auto;
139
+ -webkit-overflow-scrolling: touch;
140
+ z-index: 1111;
141
+ top: 0;
142
+ right: 0;
143
+ bottom: 0;
144
+ left: 0; }
145
+
146
+ .vex-scrollbar-measure {
147
+ position: absolute;
148
+ top: -9999px;
149
+ width: 50px;
150
+ height: 50px;
151
+ overflow: scroll; }
152
+
153
+ .vex-overlay {
154
+ background: #000;
155
+ filter: alpha(opacity=40);
156
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; }
157
+
158
+ .vex-overlay {
159
+ animation: vex-fadein 0.5s;
160
+ -webkit-animation: vex-fadein 0.5s;
161
+ -moz-animation: vex-fadein 0.5s;
162
+ -ms-animation: vex-fadein 0.5s;
163
+ -o-animation: vex-fadein 0.5s;
164
+ -webkit-backface-visibility: hidden;
165
+ position: fixed;
166
+ background: rgba(0, 0, 0, 0.4);
167
+ top: 0;
168
+ right: 0;
169
+ bottom: 0;
170
+ left: 0; }
171
+ .vex.vex-closing .vex-overlay {
172
+ animation: vex-fadeout 0.5s;
173
+ -webkit-animation: vex-fadeout 0.5s;
174
+ -moz-animation: vex-fadeout 0.5s;
175
+ -ms-animation: vex-fadeout 0.5s;
176
+ -o-animation: vex-fadeout 0.5s;
177
+ -webkit-backface-visibility: hidden; }
178
+
179
+ .vex-content {
180
+ animation: vex-fadein 0.5s;
181
+ -webkit-animation: vex-fadein 0.5s;
182
+ -moz-animation: vex-fadein 0.5s;
183
+ -ms-animation: vex-fadein 0.5s;
184
+ -o-animation: vex-fadein 0.5s;
185
+ -webkit-backface-visibility: hidden;
186
+ background: #fff; }
187
+ .vex.vex-closing .vex-content {
188
+ animation: vex-fadeout 0.5s;
189
+ -webkit-animation: vex-fadeout 0.5s;
190
+ -moz-animation: vex-fadeout 0.5s;
191
+ -ms-animation: vex-fadeout 0.5s;
192
+ -o-animation: vex-fadeout 0.5s;
193
+ -webkit-backface-visibility: hidden; }
194
+
195
+ .vex-close:before {
196
+ font-family: Arial, sans-serif;
197
+ content: "\00D7"; }
198
+
199
+ .vex-dialog-form {
200
+ margin: 0; }
201
+
202
+ .vex-dialog-button {
203
+ text-rendering: optimizeLegibility;
204
+ -moz-appearance: none;
205
+ -webkit-appearance: none;
206
+ cursor: pointer;
207
+ -webkit-tap-highlight-color: transparent; }
208
+
209
+ .vex-loading-spinner {
210
+ animation: vex-rotation 0.7s linear infinite;
211
+ -webkit-animation: vex-rotation 0.7s linear infinite;
212
+ -moz-animation: vex-rotation 0.7s linear infinite;
213
+ -ms-animation: vex-rotation 0.7s linear infinite;
214
+ -o-animation: vex-rotation 0.7s linear infinite;
215
+ -webkit-backface-visibility: hidden;
216
+ -moz-box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
217
+ -webkit-box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
218
+ box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
219
+ position: fixed;
220
+ z-index: 1112;
221
+ margin: auto;
222
+ top: 0;
223
+ right: 0;
224
+ bottom: 0;
225
+ left: 0;
226
+ height: 2em;
227
+ width: 2em;
228
+ background: #fff; }
229
+
230
+ body.vex-open {
231
+ overflow: hidden; }
232
+
233
+ .notice {
234
+ .vex-dialog-message {
235
+ color: #3ca957 !important;
236
+ }
237
+ }
238
+
239
+ .alert {
240
+ .vex-dialog-message {
241
+ color: #b5002b !important;
242
+ }
243
+ }