rabbit-theme-clear-code 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/config.yaml +1 -1
- data/pdf/theme-benchmark-en.pdf +0 -0
- data/pdf/theme-benchmark-ja.pdf +0 -0
- data/theme.rb +8 -16
- metadata +7 -5
data/config.yaml
CHANGED
Binary file
|
Binary file
|
data/theme.rb
CHANGED
@@ -23,8 +23,6 @@
|
|
23
23
|
|
24
24
|
@slide_logo_image = "clear-code-headline-background.png"
|
25
25
|
|
26
|
-
@block_quote_image_background_alpha = 0.3
|
27
|
-
|
28
26
|
include_theme("clear-blue")
|
29
27
|
|
30
28
|
@icon_images = ["clear-code-icon.png"]
|
@@ -41,9 +39,12 @@ match(Slide) do |slides|
|
|
41
39
|
if slide.lightning_talk? and
|
42
40
|
slide.body.elements.collect {|element| element.class} != [Image]
|
43
41
|
slide.lightning_talk
|
44
|
-
elsif slide.title_on_image?
|
42
|
+
elsif slide.title_on_image? and slide["enable-title-on-image"] != "false"
|
43
|
+
slide.headline.padding_top = @space
|
44
|
+
slide.headline.padding_bottom = @space
|
45
|
+
|
45
46
|
params = {}
|
46
|
-
|
47
|
+
slide.title_on_image(params)
|
47
48
|
end
|
48
49
|
end
|
49
50
|
end
|
@@ -53,10 +54,10 @@ match(Slide, Body) do |bodies|
|
|
53
54
|
if body.elements.collect {|element| element.class} == [Paragraph]
|
54
55
|
body.elements.each do |element|
|
55
56
|
element.horizontal_centering = true
|
56
|
-
if element.text.size
|
57
|
-
element.prop_set("size", @large_font_size)
|
58
|
-
else
|
57
|
+
if element.text.size < 50 or element.elements.any? {|e| e.is_a?(Note)}
|
59
58
|
element.prop_set("size", @x_large_font_size)
|
59
|
+
else
|
60
|
+
element.prop_set("size", @large_font_size)
|
60
61
|
end
|
61
62
|
# element.as_large_as_possible("one-paragraph")
|
62
63
|
end
|
@@ -66,15 +67,6 @@ match(Slide, Body) do |bodies|
|
|
66
67
|
end
|
67
68
|
end
|
68
69
|
|
69
|
-
match("**", BlockQuote) do |quotes|
|
70
|
-
quotes.each do |quote|
|
71
|
-
quote.each do |element|
|
72
|
-
# element.align = :center
|
73
|
-
element.prop_set("size", @small_font_size)
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
70
|
match("**", CustomTag) do |tags|
|
79
71
|
tags.each do |tag|
|
80
72
|
case tag.name
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbit-theme-clear-code
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rabbit
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.0.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 2.0.2
|
30
30
|
description: The Rabbit theme for ClearCode Inc.
|
31
31
|
email:
|
32
32
|
- kou@clear-code.com
|
@@ -44,7 +44,9 @@ files:
|
|
44
44
|
- data/clear-code-icon-without-shadow.svg
|
45
45
|
- data/clear-code-icon.png
|
46
46
|
- data/clear-code-headline-background.png
|
47
|
-
|
47
|
+
- pdf/theme-benchmark-en.pdf
|
48
|
+
- pdf/theme-benchmark-ja.pdf
|
49
|
+
homepage: http://theme.rabbit-shocker.org/themes/clear-code/
|
48
50
|
licenses:
|
49
51
|
- GPLv3+
|
50
52
|
- GFDL
|