-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor some quo2 components to use best practices
* chore: update quo2 group avatar to best practices * chore: update quo2 browser-input to best practices * chore: update quo2 dynamic-button to best practices * chore: update quo2 tabs to best practices * chore: cleanup quo2 core file * chore: use best practices in quo2 banner * chore: use best practices in quo2 step
- Loading branch information
Showing
22 changed files
with
269 additions
and
216 deletions.
There are no files selected for viewing
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,14 @@ | ||
(ns quo2.components.avatars.group-avatar.style | ||
(:require [quo2.foundations.colors :as colors])) | ||
|
||
(defn container | ||
[{:keys [container-size customization-color theme]}] | ||
{:width container-size | ||
:height container-size | ||
:align-items :center | ||
:justify-content :center | ||
:border-radius (/ container-size 2) | ||
:background-color | ||
(colors/theme-colors (colors/custom-color customization-color 50) | ||
(colors/custom-color customization-color 60) | ||
theme)}) |
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
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
(ns quo2.components.buttons.dynamic-button.style) | ||
|
||
(defn container | ||
[type] | ||
{:margin-top 6 | ||
:margin-bottom 6 | ||
:margin-left (case type | ||
:jump-to 0 | ||
:mention 8 | ||
:notification-down 2 | ||
:notification-up 2 | ||
:search-with-label 8 | ||
:search 6 | ||
:scroll-to-bottom 6 | ||
nil) | ||
:margin-right (case type | ||
:jump-to 8 | ||
:mention 2 | ||
:notification-down 8 | ||
:notification-up 8 | ||
:search-with-label 4 | ||
:search 6 | ||
:scroll-to-bottom 6 | ||
nil)}) | ||
|
||
(defn text | ||
[type] | ||
{:margin-top 2.5 | ||
:margin-bottom 3.5 | ||
:margin-left (case type | ||
:jump-to 8 | ||
:mention 0 | ||
:notification-down 8 | ||
:notification-up 8 | ||
:search-with-label 0 | ||
nil) | ||
:margin-right (case type | ||
:jump-to 0 | ||
:mention 8 | ||
:notification-down 0 | ||
:notification-up 0 | ||
:search-with-label 8 | ||
nil)}) |
Oops, something went wrong.