card-mod-format 0.15.3 → 0.15.5

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: 7b8b3836c9145147e5d5e96dcdb48a6807dc03661dee04a450906c3b79e7631d
4
- data.tar.gz: 75717224eee452fe66149d3734acbd38ddc8a8360bc32b876ee6effeaaf0b93e
3
+ metadata.gz: eed42f44802b87d1d1480b1df0357bacec75e195d15dd5653a93f9e85a9a0697
4
+ data.tar.gz: 109e7c1919c5d63afc90a6fcc6f033886a1a426e8197a7e36e9a416e4b575d70
5
5
  SHA512:
6
- metadata.gz: 7e86ff7472d232da620edc74d0ed2c029c5f43b8a5f9c628fc39d092502b8d4bd4c429e719bbf373d4ee6a6f7a21fd7cb54efde27aa116b6d1322c6b8d0c1d01
7
- data.tar.gz: 5284e6523493b636309180cb5051b28dacdf4df458e32e87bb47010dc141c3ceccbc5a2424ec09f29d3f679db748ddcb82028438af1e614e1a4e3eb3189c11b3
6
+ metadata.gz: 35988d1034e41115e64ee6194b245a12dd2c9a53b95ffba28d0689b38106c3549ed47f8cba9e4e85acef5e4f3a37298bc9317e6a0b7ab97bdb71637439d69b30
7
+ data.tar.gz: af7b23c9f30543178abc7f9228a6786a3c6863e428b9bd90656371c1187fa0b12f4869118f8501f033f08727771c4e4cb7660e00bee83590ca39f82284b9285a
@@ -18,8 +18,14 @@
18
18
  font-size: 1.2em
19
19
  }
20
20
 
21
- .modal-menu a {
22
- color: $text-muted;
21
+ .modal-menu, .overlay-menu {
22
+ a {
23
+ color: $text-muted !important;
24
+ opacity: 0.6 !important;
25
+ &:hover {
26
+ opacity: 1 !important;
27
+ }
28
+ }
23
29
  }
24
30
 
25
31
 
data/set/all/html/menu.rb CHANGED
@@ -6,7 +6,7 @@ format :html do
6
6
  wrap_with :div, class: "card-menu #{menu_link_classes}" do
7
7
  [render_help_link,
8
8
  menu_link,
9
- (voo.show?(:bridge_link) ? bridge_link(in_modal: false) : nil)]
9
+ (voo.show?(:board_link) ? board_link(in_modal: false) : nil)]
10
10
  end
11
11
  end
12
12
 
@@ -15,7 +15,7 @@ format :html do
15
15
  when :inline
16
16
  edit_inline_link
17
17
  when :full
18
- edit_in_bridge_link
18
+ edit_in_board_link
19
19
  else # :standard
20
20
  edit_link
21
21
  end
@@ -49,15 +49,15 @@ format :html do
49
49
  full_page_link
50
50
  end
51
51
 
52
- view :bridge_link, unknown: true do
53
- bridge_link
52
+ view :board_link, unknown: true do
53
+ board_link
54
54
  end
55
55
 
56
- def bridge_link text: "", in_modal: true, confirm: false
57
- opts = { class: "bridge-link" }
56
+ def board_link text: "", in_modal: true, confirm: false
57
+ opts = { class: "board-link" }
58
58
  opts["data-slotter-mode"] = "modal-replace" if in_modal
59
59
  confirm_edit_loss opts if confirm
60
- link_to_view :bridge, "#{bridge_icon} #{text}", opts
60
+ link_to_view :board, "#{board_icon} #{text}", opts
61
61
  end
62
62
 
63
63
  # no caching because help_text view doesn't cache, and we can't have a
@@ -106,8 +106,8 @@ format :html do
106
106
  card
107
107
  end
108
108
 
109
- def edit_in_bridge_link opts={}
110
- edit_link :bridge, *opts
109
+ def edit_in_board_link opts={}
110
+ edit_link :board, *opts
111
111
  end
112
112
 
113
113
  def edit_link view=:edit, link_text: nil, text: "", modal: nil
@@ -141,7 +141,7 @@ format :html do
141
141
  icon_tag :modal
142
142
  end
143
143
 
144
- def bridge_icon
144
+ def board_icon
145
145
  icon_tag :board
146
146
  end
147
147
 
@@ -81,27 +81,6 @@ format :html do
81
81
  items: (opts[:items] || {}).merge(view: item_view))
82
82
  end
83
83
 
84
- view :open do
85
- toggle_logic
86
- @toggle_mode = :open
87
- @content_body = true
88
- frame { _render_open_content }
89
- end
90
-
91
- view :closed do
92
- with_nest_mode :compact do
93
- toggle_logic
94
- class_up "d0-card-body", "closed-content"
95
- @content_body = false
96
- @toggle_mode = :close
97
- frame
98
- end
99
- end
100
-
101
- def toggle_logic
102
- show_view?(:title_link, :hide) ? voo.show(:icon_toggle) : voo.show(:title_toggle)
103
- end
104
-
105
84
  def current_set_card
106
85
  set_name = params[:current_set]
107
86
  set_name ||= "#{card.name}+*type" if card.known? && card.type_id == Card::CardtypeID
data/set/type/cardtype.rb CHANGED
@@ -68,8 +68,8 @@ format :html do
68
68
  voo.title ||= t(:format_configure_card, cardname: safe_name.pluralize)
69
69
  title = _render_title
70
70
  link_to_card card, title,
71
- path: { view: :bridge,
72
- bridge: { tab: :rules_tab },
71
+ path: { view: :board,
72
+ board: { tab: :rules_tab },
73
73
  set: Card::Name[safe_name, :type] },
74
74
  class: css_classes("configure-type-link ms-3", css_class)
75
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.3
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-03-29 00:00:00.000000000 Z
13
+ date: 2023-04-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.105.3
21
+ version: 1.105.5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.105.3
28
+ version: 1.105.5
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-content
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.15.3
35
+ version: 0.15.5
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.15.3
42
+ version: 0.15.5
43
43
  description: ''
44
44
  email:
45
45
  - info@decko.org