-
-
Save Sose/79e79d9b37efdbfe50cb202d94c3e3c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns piirtely.styles | |
(:require-macros | |
[garden.def :refer [defcssfn]]) | |
(:require | |
[spade.core :refer [defglobal defclass]] | |
[garden.units :refer [deg px]] | |
[garden.color :refer [rgba]])) | |
(defglobal defaults | |
[:body | |
{:color :red | |
:background-color :#ddd}]) | |
(defclass content | |
[] | |
{:float :left}) | |
(defclass level1 | |
[] | |
{:color :green}) | |
;; nav | |
(defclass navbar | |
[] | |
{}) | |
;; ul | |
(defclass navlist | |
[] | |
{:list-style-type :none | |
:margin 0 | |
:padding 0 | |
:overflow :hidden | |
:background-color :#333}) | |
;; li | |
(defclass navitem | |
[] | |
{:float :left}) | |
;; a | |
(defclass navlink | |
[] | |
{:display :block | |
:color :white | |
:text-align :center | |
:text-decoration :none | |
:padding "14px 16px"} | |
[:hover {:color :blue}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment