Move mixins to separate file, adjust requires

pull/4/head
Adam Porter 9 years ago
parent 640a17b7c0
commit 915ef10e79

@ -1,5 +1,9 @@
// * colors.styl
// ** Solarized colors
// From https://github.com/altercation/solarized
base03 = #002b36
base02 = #073642
base01 = #586e75

@ -1,4 +1,4 @@
@require "colors"
@require "main"
// ** Colors
color-background = base03

@ -1,4 +1,4 @@
@require "colors"
@require "main"
// ** Colors
color-background = base3

@ -0,0 +1,6 @@
// * main.styl
// Included in every sheet
@require "mixins"
@require "colors"

@ -0,0 +1,29 @@
// * mixins.styl
// Mixins for use in all sheets
i = !important
a()
color blue 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

@ -4,30 +4,6 @@
i = !important
// ** Mixins
a()
color blue 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
// ** HTML elements
*
border-color()

Loading…
Cancel
Save