sinatra-hexacta 0.9.2 → 0.9.3

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
  SHA256:
3
- metadata.gz: d01dba3c69595538af2e2f7eb23888854e7f285db8995952e86c5617447fa16e
4
- data.tar.gz: d7e68c96d682075a32375af7239486e8f075e5de5dd3594f543857d41d3b874a
3
+ metadata.gz: 0b63ced983a9ed988a44fc0d9372b974311c161e6a62eda6c86c522ea57c65cd
4
+ data.tar.gz: c5b3afa56953ffcd4b32470a33f795e8b5f288aefec1c4e266153619c53b2fea
5
5
  SHA512:
6
- metadata.gz: 8aa4f0b5cfbeafbd8b98eeb8a1c9f051324f8767b6ee7a5e9d1968d7b7c6173a7788df0dbe5b53523f7827f4acb90c4cb196ba227583c98572f6d668e0586dec
7
- data.tar.gz: 5d79803b0860705b4d0289dd4cf1ea081574000e4d7afa7b90001ad901703310c87bd6a09decf333477b3981c69c1117b02fc83eee7b9387c2e2e8fdeff4c755
6
+ metadata.gz: 348e7dea6a1134c12bab47fa82e791b04b1943e26c9e87dc9c5f047a717af822b9e2dcda51d754bae367b3d1d8d44d058d7e223714c1818d44e6488836111bf2
7
+ data.tar.gz: bdb1f871698710ce3d72028c5b197538adf5779b88de7d111af9ff38755cdee9cb853e1ebc1796f1d2eb3c1e7239d55272a10f60a9e59a814433441d6b9b2c40
@@ -13894,6 +13894,22 @@ fieldset[disabled] .btn-inverse:active {
13894
13894
  bottom: 340px;
13895
13895
  }
13896
13896
 
13897
+ .footer-text :nth-child(7), .footer-btn :nth-child(7) {
13898
+ bottom: 400px;
13899
+ }
13900
+
13901
+ .footer-text :nth-child(8), .footer-btn :nth-child(8) {
13902
+ bottom: 460px;
13903
+ }
13904
+
13905
+ .footer-text :nth-child(9), .footer-btn :nth-child(9) {
13906
+ bottom: 520px;
13907
+ }
13908
+
13909
+ .footer-text :nth-child(10), .footer-btn :nth-child(10) {
13910
+ bottom: 580px;
13911
+ }
13912
+
13897
13913
  .footer-text .text {
13898
13914
  position: fixed;
13899
13915
  right: 100px;
@@ -1,42 +1,68 @@
1
- .actions-menu.m-b-20
2
- .btn-group.p-fixed style="border-radius: 5px;z-index:5;"
3
- -for item in menu
4
- -if item[:type] == 'dropdown'
5
- .btn-group
6
- a.btn.btn-default.dropdown-toggle.waves-effect.btn-icon-text aria-expanded="true" data-toggle="dropdown" type="button"
7
- i.zmdi class="zmdi-#{item[:icon]}"
8
- | #{item[:text]}
9
-
10
- ul.dropdown-menu role="menu" style="border-radius: 5px;"
11
- -for subitem in item[:link]
12
- -if subitem[:type] == 'link'
13
- li
14
- a.btn-icon-text href="#{subitem[:link]}" target="#{subitem[:target]}"
15
- i.zmdi class="zmdi-#{subitem[:icon]}"
16
- | #{subitem[:text]}
17
-
18
- -if item[:type] == 'link'
19
- a.btn.btn-default.waves-effect.btn-icon-text type="button" href="#{item[:link]}" target="#{item[:target]}"
20
- i.zmdi class="zmdi-#{item[:icon]}"
21
- | #{item[:text]}
22
-
23
- -if item[:type] == 'modal'
24
- a.btn.btn-default.waves-effect.btn-icon-text type="button" data-toggle="modal" data-target="#{item[:link]}"
25
- i.zmdi class="zmdi-#{item[:icon]}"
26
- | #{item[:text]}
1
+ .footer-text
2
+ a.text.btn.bgm-white.c-gray onclick='toggle_menu()' Menu
3
+
4
+ .actions-menu.hidden
5
+ -for item in menu
6
+ -idx = menu.index(item)
7
+ -if item[:type] == 'link'
8
+ a.text.btn.bgm-white.c-gray type="button" href="#{item[:link]}" target="#{item[:target]}" style="bottom:#{50+idx*45}px;animation-duration: 0.#{idx+1}s" #{item[:text]}
9
+ -if item[:type] == 'modal'
10
+ a.text.btn.bgm-white.c-gray type="button" data-toggle="modal" data-target="#{item[:link]}" style="bottom:#{50+idx*45}px;animation-duration: 0.#{idx+1}s" #{item[:text]}
11
+
12
+ .footer-btn
13
+ a.btn.btn-float.bgm-blue.m-btn.waves-effect.waves-circle.waves-float onclick='toggle_menu()'
14
+ i.zmdi.zmdi-menu
15
+
16
+ .actions-menu.hidden
17
+ -for item in menu
18
+ -idx = menu.index(item)
19
+ -if item[:type] == 'link'
20
+ a.btn.btn-float.bgm-blue.m-btn.waves-effect.waves-circle.waves-float type="button" href="#{item[:link]}" target="#{item[:target]}" style="bottom:#{50+idx*45}px;animation-duration: 0.#{idx+1}s"
21
+ i.zmdi class="zmdi-#{item[:icon]}"
22
+
23
+ -if item[:type] == 'modal'
24
+ a.btn.btn-float.bgm-blue.m-btn.waves-effect.waves-circle.waves-float type="button" data-toggle="modal" data-target="#{item[:link]}" style="bottom:#{50+idx*45}px;animation-duration: 0.#{idx+1}s"
25
+ i.zmdi class="zmdi-#{item[:icon]}"
27
26
 
28
27
 
29
28
  css:
30
- .actions-menu {
31
- height: 38px;
29
+ .actions-menu .btn-float {
30
+ width: 40px;
31
+ height: 40px;
32
+ line-height : 30px !Important;
33
+ margin-right: 5px;
32
34
  }
33
- .actions-menu a.btn {
34
- padding: 10px;
35
- border-radius: 5px;
36
- border-left: 1px solid #eee;
35
+
36
+ .actions-menu .btn-float i {
37
+ font-size: 17px;
37
38
  }
38
39
 
39
- .actions-menu a:hover {
40
- background: #2196f3 !important;
41
- color: white !important;
40
+ .actions-menu .text {
41
+ position: fixed;
42
+ right: 100px;
43
+ margin-bottom: 6px;
44
+ border-radius: 20px;
45
+ font-size: 8pt;
46
+ z-index: 9;
47
+ }
48
+
49
+ javascript:
50
+ function toggle_menu() {
51
+ if ($(".actions-menu.hidden")[0]) {
52
+ show_menu();
53
+ } else {
54
+ hide_menu();
55
+ }
56
+ }
57
+ function hide_menu() {
58
+ $(".actions-menu a" ).removeClass('animated fadeInUp')
59
+ $(".actions-menu a" ).addClass('animated fadeOutDown');
60
+ setTimeout(function(){
61
+ $(".actions-menu" ).addClass("hidden");
62
+ }, 300);
63
+ }
64
+ function show_menu() {
65
+ $(".actions-menu a" ).removeClass('animated fadeOutDown')
66
+ $(".actions-menu a" ).addClass('animated fadeInUp');
67
+ $(".actions-menu" ).removeClass("hidden");
42
68
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-hexacta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger