mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 05:26:11 +02:00
♻️ Icons and Styles build refactor.
This commit is contained in:
parent
83e33ed00b
commit
ecde4493e0
459 changed files with 5343 additions and 5631 deletions
25
frontend/src/uxbox/builtins/icons.clj
Normal file
25
frontend/src/uxbox/builtins/icons.clj
Normal 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
Loading…
Add table
Add a link
Reference in a new issue