On Tue, 2016-09-06 at 16:59 +0200, Chris Warrick wrote:
> […]
>
> Do you really need @import at the very top? If this is necessary, you
> can always put your custom CSS first, use inline CSS, or change
> bundling order (by editing templates or bundles, respectively)
I read somewhere that it had to be, and I believed them – I haven't
actually tried it without in an active sense.
I created a separate imports.css file with the import in it and a
bundle file that prefixed it to the rest and it all seemed to work. I
am not sure how this would work without bundling.
Bizarrely Firefox found the font without the @import (and hence the
@font-face definitions), but Chrome and Epiphany needed them. Weird
that Firefox didn't.
> > […]
>
> 1. Reload the site ignoring cache (Ctrl+Shift+R)
> 2. Check page source to make sure if your CSS file is included (if
> not
> using bundles), or check the result all.css file to see if your
> custom
> CSS is there.
> 3. Open your browser’s Web Inspector, click on the <body> element and
> see what styles apply to it. Perhaps Bootstrap uses a selector that
> is
> more important than just `body`?
I was going to use LESS (or Sass, but I plumped for LESS) to avoid all
the replication of values, so I acted, and replaced the custom CSS with
a custom LESS file and the bits to ensure Nikola does the right thing.
One I had twigged you have to run "nikola build" twice to get the
generated CSS code in the bundle. It all just worked. I am sure one of
your checks would have failed, I must have been doing something wrong.
However now I have things working in the way they should work, I am not
sure I can face going back to chase this one down. I suspect a missing
; or something equally annoying.
Thanks for taking time to help me on this one, the support has been
much appreciated.
--
Russel.
=============================================================================
Dr Russel Winder t:
+44 20 7585 2200 voip:
sip:russel...@ekiga.net
41 Buckmaster Road m:
+44 7770 465 077 xmpp:
rus...@winder.org.uk
London SW11 1EN, UK w:
www.russel.org.uk skype: russel_winder