diff options
author | Carlos Goce <carlosgoce@gmail.com> | 2015-01-25 22:17:48 +0100 |
---|---|---|
committer | Carlos Goce <carlosgoce@gmail.com> | 2015-01-25 22:17:48 +0100 |
commit | 57a98ebe63f5936b490f89d4b96f1747dd9bc24f (patch) | |
tree | c2a78576db20922602d4407be0d8c530f091c74a /lib/carlosgoce | |
parent | 89f0e7ca8e4612904de5ff9b98a5de991a01b632 (diff) | |
download | pdf-calendars-57a98ebe63f5936b490f89d4b96f1747dd9bc24f.tar.gz pdf-calendars-57a98ebe63f5936b490f89d4b96f1747dd9bc24f.tar.bz2 pdf-calendars-57a98ebe63f5936b490f89d4b96f1747dd9bc24f.zip |
Add style to month titles
Diffstat (limited to 'lib/carlosgoce')
-rw-r--r-- | lib/carlosgoce/layout/layouts.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/carlosgoce/layout/layouts.rb b/lib/carlosgoce/layout/layouts.rb index e4be1c5..f4e6e13 100644 --- a/lib/carlosgoce/layout/layouts.rb +++ b/lib/carlosgoce/layout/layouts.rb @@ -14,9 +14,15 @@ module CarlosGoce days = month[:formatted_days] cells = days.to_a.each_slice(7).to_a cells.unshift %w(L M X J V S D) - cells.unshift [month[:name]] + cells.unshift [{content: "<color rgb='FF0000'><strong>#{month[:name]}</strong></color>", colspan: 7, + inline_format: true}] - tables << make_table(cells, cell_style: {align: :center, size: 7, border_width: 0}) + tables << make_table(cells, + cell_style: + { + width: 20, align: :center, size: 7, border_width: 0, + padding: 0 + }) end table( |