View Single Post
Old 09-23-2014, 12:25 PM   #33
embryo
Fanatic
embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.
 
embryo's Avatar
 
Posts: 523
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
Quote:
Originally Posted by Anak View Post
To reduce the top margin of the footer you can acually use negative values.
Below are mine values for this patch section.
Code:
# Example for Glo/Aura:
replace_string = D54355, `min-height: 70px;`, `min-height: 20px;`
replace_string = D54368, `max-height: 70px;`, `max-height: 20px;`
replace_string = D54385, `footerMargin: 40;`, `footerMargin: 00;`
replace_string = D5439F, `font-size: 16px;`, `font-size: 16px;`
replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 0px;`
replace_string = D543C7, `margin-top: 0px;`, `margin-top:-5px;`
I'm trying this but I get an error.
Turning it to 0 works OK.
The whole patch looks like this:
Code:
<Patch>
patch_name = `Custom reading footer style`
patch_enable = `yes`
replace_string = D54344, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\nReadingFooter[qApp_deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\nReadingFooter[qApp_deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\n* {\n\tfont-size: 16px;\n\tpadding-bottom: 0px;\n\tmargin-top: 0px;\n\t/*font-family:none;*/\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`
#
# Uncomment the replace_string lines of one of the examples below, comment out
# the rest. If you choose to make further changes to the examples, BE CAREFUL
# NOT TO ALTER THE LENGTH OF THE REPLACEMENT STRINGS! (Add or remove spaces if
# necessary to keep the total length the same.)
#
# Example for Touch/Mini:
#replace_string = D54355, `min-height: 70px;`, `min-height: 32px;`
#replace_string = D54368, `max-height: 70px;`, `max-height: 32px;`
#replace_string = D54385, `footerMargin: 40;`, `footerMargin: 40;`
#replace_string = D5439F, `font-size: 16px;`, `font-size: 16px;`
#replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 4px;`
#replace_string = D543C7, `margin-top: 0px;`, `margin-top: 0px;`
#
# Example for Glo/Aura:
replace_string = D54355, `min-height: 70px;`, `min-height: 10px;`
replace_string = D54368, `max-height: 70px;`, `max-height: 20px;`
replace_string = D54385, `footerMargin: 40;`, `footerMargin: 00;`
replace_string = D5439F, `font-size: 16px;`, `font-size: 16px;`
replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 3px;`
replace_string = D543C7, `margin-top: 0px;`, `margin-top: -5px;`
#
# Example for AuraHD/H2O:
#replace_string = D54355, `min-height: 70px;`, `min-height: 50px;`
#replace_string = D54368, `max-height: 70px;`, `max-height: 50px;`
#replace_string = D54385, `footerMargin: 40;`, `footerMargin: 20;`
#replace_string = D5439F, `font-size: 16px;`, `font-size: 26px;`
#replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 8px;`
#replace_string = D543C7, `margin-top: 0px;`, `margin-top: 0px;`
#
# Uncomment one of the following if you wish the footer to use a fixed font.
# (And enable the Custom header style patch below using the same font.)
#
#replace_string = D543D9, `/*font-family:none;*/`, `font-family:  Amasis;`
#replace_string = D543D9, `/*font-family:none;*/`, `font-family:  Avenir;`
replace_string = D543D9, `/*font-family:none;*/`, `font-family: Georgia;`
#
</Patch>
Can you see what am I doing wrong?

UPDATE: Never mind, I found it.
Didn't see that you replaced the space with the minus symbol.

Last edited by embryo; 09-23-2014 at 12:38 PM.
embryo is offline   Reply With Quote