mirror of
https://github.com/alphapapa/solarized-everything-css
synced 2024-11-15 00:12:44 +00:00
e2104657d8
Now correctly including generic.styl in all other sheets. This was quite a mess to figure out because of the way Stylus handles imports/requires. IIRC, Less doesn't work this way, but, of course, Less is much more limited than Stylus.
31 lines
524 B
Stylus
31 lines
524 B
Stylus
// * mixins.styl
|
|
|
|
// Mixins for use in all sheets
|
|
|
|
i = !important
|
|
|
|
a(c = color-a)
|
|
if c is "visited"
|
|
c = color-a-visited
|
|
color c i
|
|
|
|
background-color(c = color-background)
|
|
if c is "highlight"
|
|
c = color-background-highlight
|
|
if c is "highlight-extra"
|
|
c = color-background-highlight-extra
|
|
background-color c i
|
|
|
|
bold()
|
|
font-weight bold i
|
|
|
|
border-color(args...)
|
|
if args
|
|
c = args
|
|
else
|
|
c = color-border
|
|
border-color c i
|
|
|
|
color(c = color-text)
|
|
color c i
|