@vidro/map-handler 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. package/README.md +87 -8
  2. package/dist/map-handler.js +1 -1
  3. package/doc/giswater.png +0 -0
  4. package/doc/giswaterInfo.png +0 -0
  5. package/doc/giswaterInfoApi.png +0 -0
  6. package/doc/giswatergeojson.png +0 -0
  7. package/doc/multiTile.png +0 -0
  8. package/doc/multiTileNoGutter.png +0 -0
  9. package/doc/togglelayergiswater.png +0 -0
  10. package/doc/vidromaps-basic.png +0 -0
  11. package/examples/full/apidemo.js +43 -1
  12. package/examples/full/cachedToken.dat +1 -1
  13. package/examples/full/cachedTokenData.dat +1 -1
  14. package/examples/full/index.php +32 -16
  15. package/examples/full/tester.js +122 -20
  16. package/examples/integration/tool/css/dist/home.css.min.css +0 -0
  17. package/examples/integration/tool/css/dist/home.min.css +1 -0
  18. package/examples/integration/tool/css/dist/home.min.css.map +10 -0
  19. package/examples/integration/tool/css/dist/style-login.css.min.css +0 -0
  20. package/examples/integration/tool/css/dist/style-login.min.css +1 -0
  21. package/examples/integration/tool/css/dist/style-login.min.css.map +10 -0
  22. package/examples/integration/tool/css/dist/style.css.min.css +0 -0
  23. package/examples/integration/tool/css/dist/style.min.css +1 -0
  24. package/examples/integration/tool/css/dist/style.min.css.map +23 -0
  25. package/examples/integration/tool/css/master/_bottom-sheet-2.scss +103 -0
  26. package/examples/integration/tool/css/master/_bottom-sheet.scss +142 -0
  27. package/examples/integration/tool/css/master/_colors.scss +35 -0
  28. package/examples/integration/tool/css/master/_dropdown-form.scss +167 -0
  29. package/examples/integration/tool/css/master/_forms.scss +416 -0
  30. package/examples/integration/tool/css/master/_header.scss +134 -0
  31. package/examples/integration/tool/css/master/_menu-toc.scss +135 -0
  32. package/examples/integration/tool/css/master/_menu-tools.scss +187 -0
  33. package/examples/integration/tool/css/master/_mixins.scss +42 -0
  34. package/examples/integration/tool/css/master/_notifyjs.scss +39 -0
  35. package/examples/integration/tool/css/master/_ol-map-controls.scss +117 -0
  36. package/examples/integration/tool/css/master/_simplelightbox.scss +287 -0
  37. package/examples/integration/tool/css/master/_toc-config.scss +28 -0
  38. package/examples/integration/tool/css/master/_toc-layouts.scss +173 -0
  39. package/examples/integration/tool/css/master/_tooltip.scss +34 -0
  40. package/examples/integration/tool/css/master/home.scss +266 -0
  41. package/examples/integration/tool/css/master/style-login.scss +240 -0
  42. package/examples/integration/tool/css/master/style.scss +166 -0
  43. package/examples/integration/tool/img/doc-gallery-placeholder.svg +3 -0
  44. package/examples/integration/tool/img/home/ic_calendar-clock.svg +1 -0
  45. package/examples/integration/tool/img/home/ic_caret-down.svg +1 -0
  46. package/examples/integration/tool/img/home/ic_cog.svg +1 -0
  47. package/examples/integration/tool/img/home/ic_marker.svg +1 -0
  48. package/examples/integration/tool/img/home/ic_play-circle.svg +1 -0
  49. package/examples/integration/tool/img/home/ic_power.svg +1 -0
  50. package/examples/integration/tool/img/home/ic_squares.svg +1 -0
  51. package/examples/integration/tool/img/home/ic_user-pointer.svg +1 -0
  52. package/examples/integration/tool/img/home/ic_user-square.svg +1 -0
  53. package/examples/integration/tool/img/home/logo_footer.svg +1 -0
  54. package/examples/integration/tool/img/ic/accessControl.svg +1 -0
  55. package/examples/integration/tool/img/ic/account-location.svg +1 -0
  56. package/examples/integration/tool/img/ic/actionDelete.svg +64 -0
  57. package/examples/integration/tool/img/ic/actionOpen.svg +64 -0
  58. package/examples/integration/tool/img/ic/addFile.svg +100 -0
  59. package/examples/integration/tool/img/ic/addFile_off.svg +102 -0
  60. package/examples/integration/tool/img/ic/arrow-left.svg +1 -0
  61. package/examples/integration/tool/img/ic/arrow-right-drop-circle-outline.svg +1 -0
  62. package/examples/integration/tool/img/ic/bt_add_photo.svg +3 -0
  63. package/examples/integration/tool/img/ic/bug.svg +1 -0
  64. package/examples/integration/tool/img/ic/caret-down-bottomsheet.svg +3 -0
  65. package/examples/integration/tool/img/ic/checkbox-blank-outline-grey.svg +8 -0
  66. package/examples/integration/tool/img/ic/checkbox-blank-outline-white.svg +8 -0
  67. package/examples/integration/tool/img/ic/checkbox-blank-outline.svg +1 -0
  68. package/examples/integration/tool/img/ic/checkbox-marked-outline-grey.svg +8 -0
  69. package/examples/integration/tool/img/ic/checkbox-marked-outline-white.svg +8 -0
  70. package/examples/integration/tool/img/ic/checkbox-marked-outline.svg +1 -0
  71. package/examples/integration/tool/img/ic/chevron-down-grey.svg +7 -0
  72. package/examples/integration/tool/img/ic/chevron-down-white.svg +7 -0
  73. package/examples/integration/tool/img/ic/chevron-down.svg +1 -0
  74. package/examples/integration/tool/img/ic/chevron-right-grey.svg +7 -0
  75. package/examples/integration/tool/img/ic/chevron-right-white.svg +7 -0
  76. package/examples/integration/tool/img/ic/chevron-right.svg +1 -0
  77. package/examples/integration/tool/img/ic/comment-text-outline.svg +1 -0
  78. package/examples/integration/tool/img/ic/cookie.svg +1 -0
  79. package/examples/integration/tool/img/ic/delete.svg +1 -0
  80. package/examples/integration/tool/img/ic/dot.svg +1 -0
  81. package/examples/integration/tool/img/ic/dump.svg +1 -0
  82. package/examples/integration/tool/img/ic/e.svg +9 -0
  83. package/examples/integration/tool/img/ic/eye-off.svg +1 -0
  84. package/examples/integration/tool/img/ic/eye.svg +1 -0
  85. package/examples/integration/tool/img/ic/forbidden.svg +1 -0
  86. package/examples/integration/tool/img/ic/form-title-1.svg +3 -0
  87. package/examples/integration/tool/img/ic/group.svg +1 -0
  88. package/examples/integration/tool/img/ic/hamburger.svg +1 -0
  89. package/examples/integration/tool/img/ic/ic-users.svg +1 -0
  90. package/examples/integration/tool/img/ic/ic_dropdown-form-close.svg +3 -0
  91. package/examples/integration/tool/img/ic/ic_dropdown-form-link.svg +3 -0
  92. package/examples/integration/tool/img/ic/ic_feature-edit-cancel.svg +14 -0
  93. package/examples/integration/tool/img/ic/ic_feature-edit-save.svg +14 -0
  94. package/examples/integration/tool/img/ic/ic_gallery-item-delete.svg +3 -0
  95. package/examples/integration/tool/img/ic/ic_gallery-item-view.svg +3 -0
  96. package/examples/integration/tool/img/ic/ic_gps.svg +3 -0
  97. package/examples/integration/tool/img/ic/ic_search.svg +5 -0
  98. package/examples/integration/tool/img/ic/ic_selector_fechas.svg +63 -0
  99. package/examples/integration/tool/img/ic/ic_zoom-to-extent.svg +3 -0
  100. package/examples/integration/tool/img/ic/icon_reminder.png +0 -0
  101. package/examples/integration/tool/img/ic/image-gallery-placeholder.svg +55 -0
  102. package/examples/integration/tool/img/ic/imaqua.svg +87 -0
  103. package/examples/integration/tool/img/ic/incidencia.svg +77 -0
  104. package/examples/integration/tool/img/ic/info_multi_selection.svg +230 -0
  105. package/examples/integration/tool/img/ic/layers.svg +1 -0
  106. package/examples/integration/tool/img/ic/map-marker.svg +3 -0
  107. package/examples/integration/tool/img/ic/map.svg +1 -0
  108. package/examples/integration/tool/img/ic/measure_area.svg +111 -0
  109. package/examples/integration/tool/img/ic/minus.svg +7 -0
  110. package/examples/integration/tool/img/ic/notification.svg +1 -0
  111. package/examples/integration/tool/img/ic/offline.svg +3 -0
  112. package/examples/integration/tool/img/ic/online.svg +1 -0
  113. package/examples/integration/tool/img/ic/pencil.svg +3 -0
  114. package/examples/integration/tool/img/ic/plus.svg +1 -0
  115. package/examples/integration/tool/img/ic/polygon_selection.svg +68 -0
  116. package/examples/integration/tool/img/ic/power.svg +1 -0
  117. package/examples/integration/tool/img/ic/remoteLocalized.svg +4 -0
  118. package/examples/integration/tool/img/ic/remoteStartLocalize.svg +4 -0
  119. package/examples/integration/tool/img/ic/ruler.svg +125 -0
  120. package/examples/integration/tool/img/ic/selection-plus.svg +10 -0
  121. package/examples/integration/tool/img/ic/selection.svg +1 -0
  122. package/examples/integration/tool/img/ic/settings.svg +1 -0
  123. package/examples/integration/tool/img/ic/sort.svg +1 -0
  124. package/examples/integration/tool/img/ic/sort_asc.svg +1 -0
  125. package/examples/integration/tool/img/ic/sort_desc.svg +1 -0
  126. package/examples/integration/tool/img/ic/spreadsheet.svg +3 -0
  127. package/examples/integration/tool/img/ic/times.svg +1 -0
  128. package/examples/integration/tool/img/ic/toolbar/AB3.svg +1 -0
  129. package/examples/integration/tool/img/ic/toolbar/AB4.svg +1 -0
  130. package/examples/integration/tool/img/ic/toolbar/IC1.svg +1 -0
  131. package/examples/integration/tool/img/ic/toolbar/TB1.svg +1 -0
  132. package/examples/integration/tool/img/ic/toolbar/TB11.svg +5 -0
  133. package/examples/integration/tool/img/ic/toolbar/TB2.svg +1 -0
  134. package/examples/integration/tool/img/ic/toolbar/TB20.svg +1 -0
  135. package/examples/integration/tool/img/ic/toolbar/TB21.svg +54 -0
  136. package/examples/integration/tool/img/ic/toolbar/TB3.svg +1 -0
  137. package/examples/integration/tool/img/ic/toolbar/TB31.svg +1 -0
  138. package/examples/integration/tool/img/ic/toolbar/TB32.svg +57 -0
  139. package/examples/integration/tool/img/ic/toolbar/TB4.svg +1 -0
  140. package/examples/integration/tool/img/ic/toolbar/TB5.svg +1 -0
  141. package/examples/integration/tool/img/ic/toolbar/TB6.svg +1 -0
  142. package/examples/integration/tool/img/ic/toolbar/TB7.svg +1 -0
  143. package/examples/integration/tool/img/ic/toolbar/TB8.svg +1 -0
  144. package/examples/integration/tool/img/ic/tools.svg +28 -0
  145. package/examples/integration/tool/img/ic/user.svg +1 -0
  146. package/examples/integration/tool/img/ic/vector-polygon.svg +1 -0
  147. package/examples/integration/tool/img/ic/visit_manager.svg +135 -0
  148. package/examples/integration/tool/img/logo-footer-login.png +0 -0
  149. package/examples/integration/tool/img/logo-footer.png +0 -0
  150. package/examples/integration/tool/img/logo-header-login.png +0 -0
  151. package/examples/integration/tool/img/logo-header-login@2x.png +0 -0
  152. package/examples/integration/tool/img/logo-header-login@3x.png +0 -0
  153. package/examples/integration/tool/img/logo-header.png +0 -0
  154. package/examples/integration/tool/img/logo-header@2x.png +0 -0
  155. package/examples/integration/tool/img/logo-header@3x.png +0 -0
  156. package/examples/integration/tool/img/logo_project.png +0 -0
  157. package/examples/integration/tool/img/photo-gallery-placeholder.svg +3 -0
  158. package/examples/integration/tool/img/pixel.png +0 -0
  159. package/examples/integration/tool/index.html +228 -0
  160. package/examples/integration/tool/js/demo.js +238 -0
  161. package/examples/integration/tool/js/interface.js +147 -0
  162. package/examples/integration/tool/js/jquery.js +4 -0
  163. package/examples/integration/vanguardia.html +6636 -0
  164. package/examples/simple/index.html +1 -1
  165. package/examples/vidromap/index.js +2 -2
  166. package/examples/vidromap/index.php +18 -3
  167. package/flows.md +73 -0
  168. package/package.json +1 -1
  169. package/src/index.js +75 -2
@@ -0,0 +1,416 @@
1
+ //main: style.scss
2
+
3
+ .form{
4
+ font-size: 13px;
5
+ label{
6
+ display: block;
7
+ color: $color-menu-text-dimmed;
8
+ font-weight: bold;
9
+ }
10
+ input[type=text],
11
+ input[type=password],
12
+ textarea{
13
+ border: none;
14
+ background-color: white;
15
+ border-radius: 3px;
16
+ padding: 6px 16px;
17
+ font-size: 13px;
18
+
19
+ &:focus,
20
+ &:active{
21
+ outline: none !important;
22
+ }
23
+
24
+ &.block{
25
+ width: 100%;
26
+ box-sizing: border-box;
27
+ }
28
+ }
29
+ }
30
+
31
+ .form-control,
32
+ .form-group{
33
+ margin: 1em 0;
34
+ }
35
+
36
+ .btn{
37
+ background-color: black;
38
+ color: white;
39
+ margin: 1px 25px 1px 0;
40
+ border-radius: 3px;
41
+ padding: 5px 15px;
42
+ font-size: 12px;
43
+ border: none;
44
+ background-color: $color-btn-default;
45
+ border: 1px solid #717171;
46
+ cursor: pointer;
47
+ &[disabled]{
48
+ opacity: .5;
49
+ }
50
+
51
+ &.btn-default-light{
52
+ background-color: $color-btn-default-light;
53
+ border: solid 1px #cececd;
54
+ color: #1c1c1b;
55
+ font-weight: 600;
56
+ }
57
+
58
+ &.va-top{
59
+ vertical-align: top;
60
+ }
61
+
62
+ svg{
63
+ fill: white;
64
+ width: 20px;
65
+ height: 20px;
66
+ vertical-align: middle;
67
+ }
68
+
69
+ &.btn-success{
70
+ background-color: $color-btn-success;
71
+ border: 1px solid #009e89;
72
+ }
73
+
74
+ &.btn-accent{
75
+ background-color: $color-btn-accent;
76
+ border: 1px solid #004386;
77
+ }
78
+
79
+ &.btn-danger{
80
+ background-color: $color-btn-danger;
81
+ border: 1px solid #b5223f;
82
+ }
83
+
84
+ &:first-child{
85
+ margin-left: 0;
86
+ }
87
+ &:last-child{
88
+ margin-right: 0;
89
+ }
90
+
91
+ }
92
+
93
+ .form-condensed-bottomsheet{
94
+
95
+ .control{
96
+ display: flex;
97
+ justify-content: space-between;
98
+ margin: .45em 0;
99
+
100
+ input,
101
+ select{
102
+ background-color: white;
103
+ border: none;
104
+ width: 110px;
105
+ border-radius: 3px;
106
+ padding: 5px 8px;
107
+ box-sizing: border-box;
108
+
109
+ &[disabled]{
110
+ opacity: .7;
111
+ }
112
+ }
113
+ }
114
+
115
+
116
+ }
117
+
118
+ // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
119
+ // A partir de aquí, están los nuevos. Lo anterior
120
+ // debería poder eliminarse con el tiempo.
121
+ // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
122
+
123
+ .form-component{
124
+
125
+ &.form-component--key-value{
126
+ display: flex;
127
+ flex-direction: row;
128
+ margin: 3px 0;
129
+
130
+ label{
131
+ // width: 30%;
132
+ font-size: 13px;
133
+ color: #1c1c1b;
134
+ white-space: normal;
135
+ overflow: hidden;
136
+ text-overflow: ellipsis;
137
+ }
138
+ input[type=text]{
139
+ // width: 70%;
140
+ padding: 4px;
141
+ font-size: 11px;
142
+ background-color: #ffffff;
143
+ border: solid 1px #e5e5e5;
144
+ }
145
+
146
+ > :nth-child(1){
147
+ width: 30%;
148
+ }
149
+ > :nth-child(2){
150
+ width: 70%;
151
+ }
152
+ }
153
+
154
+ &.form-component--select-multiple,
155
+ &.form-component--list-box{
156
+ padding: 5px 0;
157
+
158
+ label{
159
+ margin-bottom: 5px;
160
+ display: block;
161
+ }
162
+
163
+ ul,
164
+ select{
165
+ display: block;
166
+ width: 100%;
167
+ border: 1px solid #e5e5e5;
168
+ }
169
+
170
+ ul{
171
+ border: 1px solid #e5e5e5;
172
+ background-color: white;
173
+ list-style: none;
174
+ padding: 0;
175
+ margin: 0;
176
+
177
+ overflow-y: auto;
178
+
179
+ > li{
180
+ color: #1c1c1b;
181
+ font-size: 11px;
182
+ margin: 0;
183
+ padding: 5px;
184
+ border-bottom: 1px solid #efefef;
185
+ cursor: pointer;
186
+
187
+ &:last-child(){
188
+ border-bottom: none;
189
+ }
190
+ &:hover{
191
+ background-color: #f7f7f7;
192
+ }
193
+
194
+ &.active{
195
+ background-color: #005cb8;
196
+ color: white;
197
+ }
198
+ }
199
+ }
200
+ }
201
+
202
+ &.form-component--equal-buttons-row{
203
+ display: flex;
204
+ flex-direction: row;
205
+ padding: 5px 0;
206
+
207
+ button{
208
+ flex-shrink: 1;
209
+ flex-grow: 1;
210
+ }
211
+ }
212
+
213
+ &.form-component--equal-columns-row{
214
+ display: flex;
215
+ flex-direction: row;
216
+ padding: 5px 0;
217
+
218
+ > div {
219
+ flex-grow: 1;
220
+ flex-basis: 0;
221
+
222
+ &:not(:last-child){
223
+ margin-right: 25px;
224
+ }
225
+ }
226
+ }
227
+
228
+ &.form-component--divider{
229
+ margin: 15px -25px;
230
+ box-sizing: border-box;
231
+ border-top: 1px solid #e5e5e5;
232
+ border-bottom: 1px solid white;
233
+ }
234
+
235
+ &.form-component--divider-huge{
236
+ margin: 15px -25px;
237
+ box-sizing: border-box;
238
+ background-color: #e5e5e5;
239
+ height: 7px;
240
+ box-shadow: 0 1px 0 0 #cecece, // "Inner" bottom
241
+ 0 -1px 0 0 #cecece, // "Inner" top
242
+ 0 2px 0 0 white, // Outer bottom
243
+ 0 -2px 0 0 white; // Outer top
244
+ }
245
+
246
+ &.form-component--label-and-input{
247
+
248
+ label{
249
+ display: block;
250
+ margin-bottom: 5px;
251
+ }
252
+
253
+ &.formError{
254
+ input{
255
+ border: 1px solid red;
256
+ }
257
+ .error{
258
+ font-size: 11px;
259
+ color: red;
260
+ text-align: right;
261
+ }
262
+ }
263
+
264
+ input{
265
+ padding: 4px;
266
+ font-size: 11px;
267
+ background-color: #ffffff;
268
+ border: solid 1px #e5e5e5;
269
+ width: 100%;
270
+ }
271
+
272
+ select{
273
+ padding: 4px;
274
+ font-size: 11px;
275
+ background-color: #ffffff;
276
+ background-image: url(../../img/ic/caret-down-bottomsheet.svg);
277
+ background-repeat: no-repeat;
278
+ background-position: right center;
279
+ border: solid 1px #e5e5e5;
280
+ width: 100%;
281
+ -webkit-appearance: none;
282
+ border-radius: 0;
283
+ }
284
+
285
+ textarea{
286
+ padding: 4px;
287
+ font-size: 11px;
288
+ background-color: #ffffff;
289
+ border: solid 1px #e5e5e5;
290
+ width: 100%;
291
+ resize: vertical;
292
+ height: 100px;
293
+ }
294
+ }
295
+
296
+ &.form-component--photo-gallery{
297
+ &.two-cols > ul > li{
298
+ width: calc(50% - 10px);
299
+ &:nth-child(even){
300
+ margin-left: 10px;
301
+ }
302
+ &:nth-child(odd){
303
+ margin-right: 10px;
304
+ }
305
+ }
306
+
307
+ &.three-cols > ul > li{
308
+ width: calc(33% - 13px);
309
+ &:nth-child(3n+2){
310
+ margin: 0 20px;
311
+ }
312
+ }
313
+
314
+ > ul{
315
+ list-style: none;
316
+ margin: 0;
317
+ padding: 0;
318
+
319
+ > li{
320
+ margin: 0;
321
+ display: inline-block;
322
+ background-color: #7a7a7a;
323
+ padding: 2px;
324
+ margin-bottom: 20px;
325
+ min-width: 100px;
326
+ margin-right: 5px;
327
+ > div.photo{
328
+ background-color: #FFFFFF;
329
+ background-image: url(../../img/ic/image-gallery-placeholder.svg);
330
+ background-position: center center;
331
+ background-repeat: no-repeat;
332
+ position: relative;
333
+ padding-top: 75%;
334
+
335
+ > img{
336
+ position: absolute;
337
+ top: 0;
338
+ left: 0;
339
+ width: 100%;
340
+ height: 100%;
341
+ }
342
+ }
343
+ > div.doc{
344
+ background-color: #FFFFFF;
345
+ background-image: url(../../img/doc-gallery-placeholder.svg);
346
+ background-position: center center;
347
+ background-repeat: no-repeat;
348
+ position: relative;
349
+ padding-top: 75%;
350
+
351
+ > img{
352
+ position: absolute;
353
+ top: 0;
354
+ left: 0;
355
+ width: 100%;
356
+ height: 100%;
357
+ }
358
+ }
359
+ > div.footer{
360
+ padding: 5px;
361
+ display: flex;
362
+ justify-content: space-around;
363
+
364
+ button{
365
+ background: none;
366
+ border: none;
367
+ display: block;
368
+
369
+ img{
370
+ display: block;
371
+ }
372
+ }
373
+ }
374
+ }
375
+
376
+ }
377
+ }
378
+
379
+ .spacer-5{
380
+ height: 5px;
381
+ }
382
+ .spacer-10{
383
+ height: 10px;
384
+ }
385
+ .spacer-15{
386
+ height: 15px;
387
+ }
388
+ }
389
+
390
+ .uib-datepicker-popup.dropdown-menu{
391
+ position: absolute;
392
+ left: 10px !important;
393
+ right: 10px !important;
394
+ background-color: white;
395
+ margin: 0;
396
+ margin-top: 10px;
397
+ padding: 10px;
398
+ box-sizing: border-box;
399
+ box-shadow: 0 5px 17px 0 rgba(0,0,0,0.3);
400
+ border-radius: 2px;
401
+
402
+ li{
403
+ margin: 0;
404
+ padding: 0;
405
+ }
406
+
407
+ table{
408
+ width: 100%;
409
+ outline: none !important;
410
+
411
+ .btn{
412
+ padding: 4px 4px;
413
+ font-size: 11px;
414
+ }
415
+ }
416
+ }
@@ -0,0 +1,134 @@
1
+ // main: style.scss
2
+
3
+ $header-height-mobile: 60px;
4
+ $header-height-desktop: 47px;
5
+
6
+ header{
7
+ width: 100%;
8
+ height: $header-height-mobile;
9
+ background-color: $color-accent;
10
+ position: absolute;
11
+ z-index: 1;
12
+ display: flex;
13
+ flex-direction: row;
14
+
15
+ @include only-desktop{
16
+ height: $header-height-desktop;
17
+ }
18
+
19
+ a.menu-toggle{
20
+ display: inline-block;
21
+ padding: $header-height-mobile / 4;
22
+ background-color: $color-accent;
23
+ width: $header-height-mobile;
24
+ height: $header-height-mobile;
25
+ box-sizing: border-box;
26
+ @include only-desktop{
27
+ width: $header-height-desktop;
28
+ height: $header-height-desktop;
29
+ padding: $header-height-desktop / 4;
30
+ }
31
+
32
+
33
+ > svg{
34
+ position: absolute;
35
+ display: block;
36
+ width: $header-height-mobile / 2;
37
+ height: $header-height-mobile / 2;
38
+ @include only-desktop{
39
+ width: $header-height-desktop / 2;
40
+ height: $header-height-desktop / 2;
41
+ }
42
+ path{ fill: white; }
43
+ }
44
+
45
+ .hamburger, .times{
46
+ transform: translateX(0);
47
+ transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
48
+ transition-property: transform, opacity, fill;
49
+ }
50
+
51
+ &.closed .times{ opacity: 0; transform: translateX(- $header-height-mobile / 2); }
52
+ &.open .hamburger{ opacity: 0; transform: translateX($header-height-mobile / 2);}
53
+
54
+ @include only-desktop{
55
+ &.closed .times{ opacity: 0; transform: translateX(- $header-height-desktop / 4); }
56
+ &.open .hamburger{ opacity: 0; transform: translateX($header-height-desktop / 4);}
57
+ }
58
+
59
+ }
60
+
61
+ > .brand{
62
+ flex-grow: 1;
63
+ flex-shrink: 1;
64
+
65
+ @include only-desktop{
66
+ padding-top: 3px;
67
+ }
68
+
69
+ @include only-mobile-and-tablet{
70
+ padding-top: 9px;
71
+ }
72
+ }
73
+
74
+ > ul.tools{
75
+ list-style: none;
76
+ margin: 0;
77
+ padding: 0;
78
+ float: right;
79
+ font-size: 0;
80
+
81
+ @media (max-width: 699px){
82
+ display: none;
83
+ }
84
+
85
+ > li {
86
+ display: inline-block;
87
+
88
+ &:not(:last-child){
89
+ border-right: 1px solid $color-ul-tools-first;
90
+ }
91
+ &:not(:first-child){
92
+ border-left: 1px solid $color-ul-tools-last;
93
+ }
94
+
95
+ > button{
96
+ background: none;
97
+ border: none;
98
+ padding: 10px;
99
+ height: $header-height-desktop;
100
+ cursor: pointer;
101
+
102
+ svg{
103
+ height: 24px;
104
+ width: 24px;
105
+
106
+ path{
107
+ fill: white;
108
+ }
109
+ }
110
+
111
+ &:focus{
112
+ box-shadow: none;
113
+ outline: none;
114
+ }
115
+
116
+ &:disabled{
117
+ cursor: not-allowed;
118
+ svg path{
119
+ fill: fade-out(white, .8);
120
+ }
121
+ }
122
+
123
+ &:hover:not(:disabled),
124
+ &.tool-selected:not(:disabled){
125
+ background-color: $color-tb-tool-selected;
126
+ svg path{
127
+ fill: white;
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+
134
+ }
@@ -0,0 +1,135 @@
1
+ // main: style.scss
2
+
3
+ .menu-toc{
4
+ line-height: 0;
5
+ font-size: 0;
6
+
7
+ > .sidebar{
8
+ display: flex;
9
+ flex-direction: column;
10
+ background-color: #e9e9e9;
11
+ padding: 0;
12
+ width: 270px;
13
+ max-width: 540px;
14
+ min-width: 150px;
15
+ box-sizing: border-box;
16
+ font-size: 16px;
17
+ line-height: 1.4em;
18
+ position: absolute;
19
+ top: $header-height-mobile;
20
+ bottom: 0;
21
+ transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
22
+ z-index:0;
23
+
24
+ @include only-desktop{
25
+ top: $header-height-desktop;
26
+ }
27
+
28
+ @media(max-width: 600px){
29
+ max-width: calc(100% - 60px);
30
+ }
31
+
32
+ &.closed{ transform: translateX(-100%); }
33
+ &.open{
34
+ transform: translateX(0);
35
+ box-shadow: 0 2px 19px 0 rgba(0, 0, 0, 0.5);
36
+ }
37
+
38
+ // Regular list
39
+ > ul:nth-child(1){
40
+ overflow-y: scroll;
41
+ flex-grow: 1;
42
+ }
43
+
44
+ // Bottom list
45
+ > ul:nth-child(2){
46
+ > li{
47
+ border-top: 1px solid #FFF;
48
+ border-bottom: none;
49
+ }
50
+ }
51
+
52
+ > ul{
53
+ list-style: none;
54
+ margin: 0;
55
+ padding: 0;
56
+
57
+ > li{
58
+ margin: 0;
59
+ padding: 0;
60
+ border-bottom: 1px solid #FFFFFF;
61
+
62
+ > a{
63
+ display: flex;
64
+ flex-wrap: nowrap;
65
+ align-items: center;
66
+ transition: color, background-color .2s;
67
+ text-transform: uppercase;
68
+ font-size: 13px;
69
+ font-weight: bold;
70
+ color: $color-menu-text;
71
+ background-color: #dadad9;
72
+
73
+ .col-1,
74
+ .col-3{
75
+ flex-grow: 0;
76
+ flex-shrink: 1;
77
+ }
78
+ .col-2{
79
+ flex-grow: 1;
80
+ flex-shrink: 0;
81
+ flex-basis: 0;
82
+ white-space: nowrap;
83
+ overflow: hidden;
84
+ text-overflow: ellipsis;
85
+ }
86
+
87
+ &.active{
88
+ background-color: $color-menu-item-active;
89
+ }
90
+
91
+ &.active{
92
+ svg.chevron{
93
+ transform: rotate(90deg);
94
+ // margin: 10px 0 0 0;
95
+ }
96
+ }
97
+
98
+ svg{
99
+ display: inline-block;
100
+ fill: $color-menu-text;
101
+ padding: 5px 7px;
102
+ vertical-align: middle;
103
+ transition: transform, fill .4s cubic-bezier(0.5, 0, 0.19, 1.84);
104
+ box-sizing: initial;
105
+
106
+ &.ico{
107
+ width: 19px;
108
+ height: 19px;
109
+ padding: 8px 8px;
110
+ }
111
+
112
+ &.chevron{
113
+ margin: 0 0 0 0;
114
+ }
115
+ }
116
+ }
117
+
118
+ > div.content{
119
+ display: none;
120
+ padding: 20px;
121
+ background-color: #f5f5f5;
122
+ font-size: 13px;
123
+
124
+ &.zero-padding{
125
+ padding: 0;
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ .ui-resizable-e{
132
+ right: 0;
133
+ }
134
+ }
135
+ }