♻️ Icons and Styles build refactor.

This commit is contained in:
Andrey Antukh 2020-02-25 16:18:55 +01:00
parent 83e33ed00b
commit ecde4493e0
459 changed files with 5343 additions and 5631 deletions

View file

@ -0,0 +1,25 @@
;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2015-2017 Andrey Antukh <niwi@niwi.nz>
;; Copyright (c) 2015-2017 Juan de la Cruz <delacruzgarciajuan@gmail.com>
(ns uxbox.builtins.icons
(:require [rumext.alpha]))
(defmacro inline-icon
[id]
(let [href (str "#icon-" (name id))]
`(rumext.alpha/html
[:svg {:width 500 :height 500}
[:use {:xlinkHref ~href}]])))
(defmacro icon-xref
[id]
(let [href (str "#icon-" (name id))]
`(rumext.alpha/html
[:svg {:width 500 :height 500}
[:use {:xlinkHref ~href}]])))

File diff suppressed because one or more lines are too long