![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,641
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
![]()
Just now I realized that Sigil supports responsive sized typography. That is a very good feature for things like tables, captions, etc. For example with:
Code:
h1 { font-size: 4vw; } ![]() However I found that -in Sigil- the font-size doesn't change dynamically. So if we resize our viewport, the font-size will retain its initial size and will only be recalculated when -for example- the Preview is changed of place (maybe for that reason I didn't discover this Sigil feature before). Of course, also we need ebook readers that support all these css3 values ![]() http://css-tricks.com/viewport-sized-typography/ And in this another page we can watch the feature in action: http://css-tricks.com/examples/ViewportTypography/ Try changing the browser window size and after that, try changing the font size; you'll be surprised ![]() Regards Last edited by RbnJrg; 12-14-2014 at 11:26 AM. |
![]() |
![]() |
![]() |
#2 |
A curiosus lector!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
|
Hi Ruben,
Right now I'm trying to learn HTML5 and CSS3 and your trick is very pertinente, with for example a kind of configuration like: Code:
@media all and (max-width: 1024px) Otherwise, I misunderstood the meaning of your post. PS Hope it's not too hot in Rosario; relatively warm here in the "Great North"! Last edited by Arios; 12-19-2014 at 01:08 PM. |
![]() |
![]() |
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,192
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Don't expect such tricks to work in ADE whihc is ued as the number one software for viewing ePub.
Also, Kobo might not respect that 1024px as it doesn't respect px as a font size. So it's possible it might reject anything with px. |
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,641
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
It's quite hot here (about 34 Cº) and still didn't start the summer ![]() Now to your question. Yes, I'm sure; Sigil supports units like vw, vh, vmax and vmix. And also you can see it. Just do the following: 1. Apply the style with "vw" to one of your header (let's suppose that you have a <h1> tag like: Code:
<h1>This is my test title</h1> Code:
h1 { font-size: 5vw; text-align: center; } 3. Now make the Preview wider by dragging to the left, the left side of the Preview. As you can watch, the size of the <h1> title doesn't change but now do click on the Book View (I mean the window, not the tool in the toolbar). After that the wide of the text in Preview has changed!!! 4. Do again wider (or narrower) the Preview and do click in the Book View; the size of the text changes again (and if you do click in Preview, now the text in Book View changes too). This property is great. Suppose you have a caption that looks great but if the user changes the ereaer font-size, caption will look ugly. Then by giving the caption a size in "vw" we'll be sure the caption always will have the same proportion of the screen, no matter its resolution, no matter the font-size set by users and without need to use media queries. The same is valid for titles and subtitles (supose you want a title always take only one line). As I said, is like the normal font becomes svg font! But remember that "vw", "vh", etc., is not only for text; they can be used for any sizing value (if ereaders support them ![]() Regards Rubén Last edited by RbnJrg; 12-19-2014 at 02:07 PM. |
|
![]() |
![]() |
![]() |
#5 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
![]() I agree it's nice and it may be useful for some purposes, but as mentioned above do not expect it to work in any ePub reader (though it might somehow work in browser-based readers) |
|
![]() |
![]() |
![]() |
#6 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,641
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() ![]() ![]() Quote:
|
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HD+ screen less responsive? | catsknit | Nook Color & Nook Tablet | 9 | 08-31-2014 09:26 AM |
Screen non responsive | silverraven | Barnes & Noble NOOK | 5 | 10-18-2012 02:19 PM |
Changing the viewport on these files | ralphiedee | ePub | 0 | 06-04-2012 12:45 PM |
IQ Pocketbook IQ non-responsive | citac | PocketBook | 5 | 01-13-2012 03:13 PM |
non-responsive eInk? | alex_edge | enTourage Archive | 3 | 02-22-2011 01:58 PM |