about summary refs log tree commit diff
path: root/users/grfn/bbbg/src
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-12-26T17·02-0500
committerclbot <clbot@tvl.fyi>2021-12-26T17·23+0000
commit4bbadfb93003d12289e9165c612c7f05c8df4bdf (patch)
treeac8007268eb5a70f8fcfe6d19ed5b6cf9f342a10 /users/grfn/bbbg/src
parentb175121101c110b75f978c02e01f4d16ddbf1074 (diff)
fix(grfn/bbbg): Add margins to flash messages on mobile r/3433
Change-Id: I5e33ba65ef4b6c55485fa4fb895bd6e7b3f24f1f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4668
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/bbbg/src')
-rw-r--r--users/grfn/bbbg/src/bbbg/handlers/events.clj2
-rw-r--r--users/grfn/bbbg/src/bbbg/styles.clj11
2 files changed, 11 insertions, 2 deletions
diff --git a/users/grfn/bbbg/src/bbbg/handlers/events.clj b/users/grfn/bbbg/src/bbbg/handlers/events.clj
index ff34d7f9e604..30bbf414a456 100644
--- a/users/grfn/bbbg/src/bbbg/handlers/events.clj
+++ b/users/grfn/bbbg/src/bbbg/handlers/events.clj
@@ -100,6 +100,8 @@
   ([] (event-form {}))
   ([event]
    [:div.page
+    [:div.page-header
+     [:h1 "Create New Event"]]
     [:form {:method "POST"
             :action "/events"
             :enctype "multipart/form-data"}
diff --git a/users/grfn/bbbg/src/bbbg/styles.clj b/users/grfn/bbbg/src/bbbg/styles.clj
index 50d554c02a70..50c9115a6d65 100644
--- a/users/grfn/bbbg/src/bbbg/styles.clj
+++ b/users/grfn/bbbg/src/bbbg/styles.clj
@@ -210,8 +210,15 @@
 
 (defstyles flash
   [:.flash-messages
-   {:width "800px"
-    :margin "1rem auto"}]
+   {:max-width "800px"
+    :margin "1rem auto"}
+
+   (at-media
+    {:screen true
+     :max-width "800px"}
+    [:&
+     {:margin-left "1rem"
+      :margin-right "1rem"}])]
 
   [:.flash-message
    {:padding "1rem 1.5rem"