diff options
author | Griffin Smith <grfn@gws.fyi> | 2022-01-06T16·19-0500 |
---|---|---|
committer | grfn <grfn@gws.fyi> | 2022-01-20T14·32+0000 |
commit | c364b1273b880d71f7c975bde74aff34a078c241 (patch) | |
tree | ff4d99896e93bb3c02bfb9c61fe2d0ad26a29649 /users/grfn/bbbg/src/bbbg/styles.clj | |
parent | 86496ca4cd162f50dd1f1401dbfaac2fb817b387 (diff) |
feat(grfn/bbbg): Add delete event button r/3643
Change-Id: I763e7a6b367ea5b474ab3aa13c7ff21e99db34af Reviewed-on: https://cl.tvl.fyi/c/depot/+/5023 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/bbbg/src/bbbg/styles.clj')
-rw-r--r-- | users/grfn/bbbg/src/bbbg/styles.clj | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/users/grfn/bbbg/src/bbbg/styles.clj b/users/grfn/bbbg/src/bbbg/styles.clj index f10bf04f09d9..a860ae607626 100644 --- a/users/grfn/bbbg/src/bbbg/styles.clj +++ b/users/grfn/bbbg/src/bbbg/styles.clj @@ -80,15 +80,15 @@ :color black :text-decoration :none} - [(& hover) - {:color blue}]] + [(& hover) + {:color blue}]] [:li.active {:font-weight "bold" - :border-bottom [["1px" "solid" black]]}] + :border-bottom [["1px" "solid" black]]}]] - [:.spacer - {:flex 1}]]) + [:.spacer + {:flex 1}]) (def link-conditional-styles (list @@ -165,18 +165,29 @@ :border [[(px 1) "solid" (color/lighten blue 30)]] :cursor :pointer :display :inline-block} + [(& hover) {:border-color blue :text-decoration :none :box-shadow [[0 "1px" "5px" "rgba(0,0,0,0.075)"]]} - [(& :a) + [(:a &) {:text-decoration :none}]] + [(& active) {:background-color blue :color :white :box-shadow :none} [(& :a) - {:text-decoration :none}]]] + {:text-decoration :none}]] + + (for [[context color] contextual-colors] + [(& (keyword (str "." (name context)))) + {:background-color (color/lighten color 30) + :border-color (color/lighten color 30) + :color black} + + [(& hover) + {:border-color color}]])] [:label {:font-weight 600 @@ -377,8 +388,13 @@ :padding-bottom "0.7rem" :margin-bottom "1rem" :border-bottom [["1px" "solid" silver]] - :align-items :center - :justify-content :space-between}] + :align-items :center} + + [:*+* + {:margin-left "0.5rem"}] + + [:form + {:margin-block-end 0}]] [(attr= "role" "button") {:cursor :pointer}] |