card-mod-style 0.11.2 → 0.12.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
  SHA256:
3
- metadata.gz: 969fb725760d067fff00f2f56237d1855a09097401e90185353b47efc32e9df2
4
- data.tar.gz: f206b4b148065f13164dccb5a154caf8d5d1a3617b49b6c4c5dd3eddd1191d32
3
+ metadata.gz: 7b5b8a1f4dc94571638fe88820eb9f2c19cada0240e8396079155e46ce396437
4
+ data.tar.gz: df7943ac0525d6e8163889bcc1513b79a352e1af87f0a6190dfb14f9e9aab8c4
5
5
  SHA512:
6
- metadata.gz: d0f1e61c718857edc881b26c2754fe7f70b799f02a32c5bd5640a4ea1be629d4da72fc176808efe9d61563f9a25c26a35318001cfb9f6a0f287a0fbc9427543d
7
- data.tar.gz: 305c29906957213cc8b71fbbd15829f5b92218922ed1c36854f695dcbfc122da3b7b9b3a443767a6399786f9141f5950090ebdc0eb240516b9ac087543374819
6
+ metadata.gz: 600b74bffdcb3a69289d502cb095c07f72bcdd7fcc1f063ea03dcb236d717855bdebd91556ee80d25d7bf7df983def38a19226c04eccfc174bcae59fc0bc20e3
7
+ data.tar.gz: c7cb6ac9620a2c10211ae366a69ee62c63993bce745ac78d55f4e311889ffe07bbd46c25b48c344bd59337ba6fe2a21b0da6aa2a192752f86de66f89c1f82f33
@@ -40,7 +40,8 @@ $d-yellow-1: #ffd;
40
40
  .editor .revision-navigation,
41
41
  .editor .autosave-alert,
42
42
  .hidden-alert,
43
- .btn.renamer-updater,
43
+ .btn._renamer-updater,
44
+ ._rename-reference-confirm,
44
45
  .confirm_update_all-view,
45
46
  .follow-updater,
46
47
  .admin-error-message {
@@ -1260,3 +1261,33 @@ body.right-sidebar, body.left-sidebar, body.two-sidebar {
1260
1261
  .tm-icon {
1261
1262
  color: #000;
1262
1263
  }
1264
+
1265
+ /*----- move to api key mod ------*/
1266
+
1267
+ .api-key-core {
1268
+ display: flex;
1269
+ width: 100%;
1270
+ justify-content: space-between;
1271
+ padding: 1em;
1272
+ .current-api-key {
1273
+ width: 50%;
1274
+ input {
1275
+ width: 100%;
1276
+ font-family: monospace;
1277
+ font-size: 1.3rem;
1278
+ border: 1px solid transparent;
1279
+ box-shadow: none;
1280
+ background-color: lightyellow;
1281
+ }
1282
+ }
1283
+ .current-api-key:hover input {
1284
+ border: 1px solid #DDD;
1285
+ }
1286
+ }
1287
+
1288
+ .rename-button-form-group {
1289
+ display: flex;
1290
+ .btn {
1291
+ margin-right: 1rem;
1292
+ }
1293
+ }
@@ -13,6 +13,7 @@ format :html do
13
13
 
14
14
  def customize_button target: parent&.card, text: "Apply and customize"
15
15
  return "" unless card.codename.present?
16
+
16
17
  theme = card.codename.match(/^(?<theme_name>.+)_skin$/).capture(:theme_name)
17
18
  link_to_card target, text,
18
19
  path: { action: :update, card: { content: "[[#{card.name}]]" },
@@ -22,6 +23,7 @@ format :html do
22
23
 
23
24
  view :box_middle do
24
25
  return unless card.field(:image)
26
+
25
27
  field_nest(:image, view: :full_width, size: :large)
26
28
  end
27
29
 
data/set/type/css.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "sassc"
4
4
  require "benchmark"
5
+ require "coderay"
5
6
 
6
7
  include_set Abstract::Machine
7
8
  include_set Abstract::MachineInput
@@ -9,12 +10,12 @@ include_set Abstract::MachineInput
9
10
  store_machine_output filetype: "css"
10
11
 
11
12
  machine_input do
12
- compress_css format(format: :css)._render_core
13
+ compress_css format(:css)._render_core
13
14
  end
14
15
 
15
16
  def compress_css input
16
17
  compress_css? ? SassC::Engine.new(input, style: :compressed).render : input
17
- rescue => e
18
+ rescue StandardError => e
18
19
  raise Card::Error, css_compression_error(e)
19
20
  end
20
21
 
@@ -35,7 +36,7 @@ def clean_html?
35
36
  end
36
37
 
37
38
  def compress_css?
38
- return true
39
+ true
39
40
  # !Rails.env.development?
40
41
  end
41
42
 
@@ -44,7 +45,8 @@ format do
44
45
  # :raw
45
46
  # end
46
47
 
47
- def chunk_list # turn off autodetection of uri's
48
+ # turn off autodetection of uri's
49
+ def chunk_list
48
50
  :references
49
51
  end
50
52
  end
data/set/type/scss.rb CHANGED
@@ -2,7 +2,7 @@ include_set Type::Css
2
2
 
3
3
  format do
4
4
  view :core, cache: :never do
5
- compile_scss(process_content(_render_raw))
5
+ compile_scss process_content(_render_raw)
6
6
  end
7
7
 
8
8
  def compile_scss scss, style=:expanded
data/set/type/skin.rb CHANGED
@@ -7,4 +7,3 @@ def machine_input
7
7
  # not the skin card itself
8
8
  ""
9
9
  end
10
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.0
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: 2021-03-15 00:00:00.000000000 Z
13
+ date: 2021-07-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,42 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.101.2
21
+ version: 1.102.0
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.101.2
28
+ version: 1.102.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-machines
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.11.2
35
+ version: 0.12.0
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.11.2
42
+ version: 0.12.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: card-mod-list
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.11.2
49
+ version: 0.12.0
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.11.2
56
+ version: 0.12.0
57
57
  description: ''
58
58
  email:
59
59
  - info@decko.org
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
- rubygems_version: 3.0.3
116
+ rubygems_version: 3.2.15
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Skins, CSS, SCSS, etc