-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
- Loading branch information
1 parent
59f98b0
commit f7b2f40
Showing
6 changed files
with
126 additions
and
100 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
src/quo2/components/list_items/preview_list/properties.cljs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
(ns quo2.components.list-items.preview-list.properties) | ||
|
||
(defn border-type | ||
[type] | ||
(case type | ||
(:accounts :collectibles) :squared | ||
:rounded)) | ||
|
||
(def sizes | ||
{:size/s-32 {:size 32 | ||
:user-avatar-size :small | ||
:border-radius {:rounded 16 :squared 10} | ||
:hole-radius {:rounded 18 :squared 12} | ||
:margin-left -8 | ||
:hole-size 36 | ||
:hole-x 22 | ||
:hole-y -2} | ||
:size/s-24 {:size 24 | ||
:user-avatar-size :xs | ||
:border-radius {:rounded 12 :squared 8} | ||
:hole-radius {:rounded 13 :squared 9} | ||
:margin-left -4 | ||
:hole-size 26 | ||
:hole-x 19 | ||
:hole-y -1} | ||
:size/s-20 {:size 20 | ||
:user-avatar-size :xxs | ||
:border-radius {:rounded 10 :squared 8} | ||
:hole-radius {:rounded 11 :squared 9} | ||
:margin-left -4 | ||
:hole-size 22 | ||
:hole-x 15 | ||
:hole-y -1} | ||
:size/s-16 {:size 16 | ||
:user-avatar-size :xxxs | ||
:border-radius {:rounded 8 :squared 8} | ||
:hole-radius {:rounded 9 :squared 9} | ||
:margin-left -4 | ||
:hole-size 18 | ||
:hole-x 11 | ||
:hole-y -1} | ||
:size/s-14 {:size 14 | ||
:user-avatar-size :xxxs | ||
:border-radius {:rounded 7 :squared 7} | ||
:hole-radius {:rounded 8 :squared 8} | ||
:margin-left -2 | ||
:hole-size 16 | ||
:hole-x 11 | ||
:hole-y -1}}) |
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
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
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
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
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