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 +4 -4
- data/lib/stylesheets/style_cards.scss +32 -1
- data/set/abstract/skin_box.rb +2 -0
- data/set/type/css.rb +6 -4
- data/set/type/scss.rb +1 -1
- data/set/type/skin.rb +0 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b5b8a1f4dc94571638fe88820eb9f2c19cada0240e8396079155e46ce396437
|
4
|
+
data.tar.gz: df7943ac0525d6e8163889bcc1513b79a352e1af87f0a6190dfb14f9e9aab8c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
+
}
|
data/set/abstract/skin_box.rb
CHANGED
@@ -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(
|
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
|
-
|
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
|
-
|
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
data/set/type/skin.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
116
|
+
rubygems_version: 3.2.15
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Skins, CSS, SCSS, etc
|