-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.cljs
More file actions
28 lines (25 loc) · 1023 Bytes
/
styles.cljs
File metadata and controls
28 lines (25 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(ns date-range.styles
(:require-macros
[garden.def :refer [defcssfn]])
(:require
[spade.core :refer [defglobal defclass]]
[garden.units :refer [deg px]]
[garden.color :refer [rgba]]))
(defcssfn linear-gradient
([c1 p1 c2 p2]
[[c1 p1] [c2 p2]])
([dir c1 p1 c2 p2]
[dir [c1 p1] [c2 p2]]))
(defglobal defaults
[:body
{:color :black
:background-color :#EEF
;:background-image [(linear-gradient :white (px 2) :transparent (px 2))
; (linear-gradient (deg 90) :white (px 2) :transparent (px 2))
; (linear-gradient (rgba 255 255 255 0.3) (px 1) :transparent (px 1))
; (linear-gradient (deg 90) (rgba 255 255 255 0.3) (px 1) :transparent (px 1))]
:background-size [[(px 100) (px 100)] [(px 100) (px 100)] [(px 20) (px 20)] [(px 20) (px 20)]]
:background-position [[(px -2) (px -2)] [(px -2) (px -2)] [(px -1) (px -1)] [(px -1) (px -1)]]}])
(defclass level1
[]
{:color :green})