Skip to content

Commit

Permalink
Margin tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Aug 17, 2024
1 parent 31cae95 commit 376c9cd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
14 changes: 11 additions & 3 deletions resources/public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ body #app {
}

body #app >main {
padding: var(--size-2);
padding-left: var(--size-2);
padding-right: var(--size-2);
padding-top: var(--size-3);
padding-bottom: var(--size-3);
}

@keyframes fade-to-pale {
Expand Down Expand Up @@ -142,10 +145,11 @@ body {
display: flex;
align-items: center;
background-color: var(--surface-1);
margin-bottom: var(--size-5);
}

.co_gaiwan_compass_html_navigation__nav_bar h1 {
font-size: var(--size-5);
font-size: var(--size-7);
margin-right: auto;
margin-left: var(--size-2);
}
Expand Down Expand Up @@ -488,10 +492,14 @@ body {

.sessions-session_list >h2 {
margin-bottom: var(--size-4);
margin-top: var(--size-8);
margin-top: var(--size-7);
font-size: var(--font-size-3);
}

.sessions-session_list >h2:first-child {
margin-top: var(--size-0);
}

@media (min-width: 24rem) {

.sessions-session_list >h2 {
Expand Down
2 changes: 1 addition & 1 deletion src/co/gaiwan/compass/html/layout.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[:body
{:max-width "100vw"}
[:#app {:max-width "80rem" :margin "0 auto"}
[:>main :p-2]]])
[:>main :px-2 :py-3]]])

(def start-time (System/currentTimeMillis))

Expand Down
3 changes: 2 additions & 1 deletion src/co/gaiwan/compass/html/navigation.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
(o/defstyled nav-bar :nav
:flex :items-center
:bg-surface-1
[:h1 :font-size-5 :mr-auto :ml-2]
:mb-5
[:h1 :font-size-7 :mr-auto :ml-2]
[:svg :grow-0 :shrink-0
{:width t/--font-size-5
:height t/--font-size-5}]
Expand Down
3 changes: 2 additions & 1 deletion src/co/gaiwan/compass/html/sessions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,9 @@
[:at-media {:min-width "40rem"} {:grid-template-columns "repeat(1, 1fr)"}]
[:at-media {:min-width "60rem"} {:grid-template-columns "repeat(2, 1fr)"}]
#_[:at-media {:min-width "80rem"} {:grid-template-columns "repeat(3, 1fr)"}]]
[:>h2 :mb-4 :mt-8
[:>h2 :mb-4 :mt-7
{:font-size t/--font-size-3}
["&:first-child" :mt-0]
[:at-media {:min-width "24rem"} {:font-size t/--font-size-4}]
[:at-media {:min-width "40rem"} {:font-size t/--font-size-5}]]
([{:keys [user sessions]}]
Expand Down

0 comments on commit 376c9cd

Please sign in to comment.