Skip to content

Commit

Permalink
fix styles on mobile for container (#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMakka authored Jun 10, 2024
1 parent 222155c commit ffcfbb6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions base/components/pages/Home/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { css } from "@emotion/css";
import breakpoints from "@klimadao/lib/theme/breakpoints";

export const container = css`
position: relative;
Expand Down Expand Up @@ -46,12 +47,15 @@ export const ctaCard = css`
border-radius: 1.2rem;
grid-column: 1 / 3;
padding-top: 2.4rem;
max-width: 50%;
margin: 1rem auto;
.hr {
height: 0.2rem;
background-color: #202020;
}
${breakpoints.desktop} {
max-width: 50%;
}
`;

export const ctaCard_header = css`
Expand Down Expand Up @@ -106,13 +110,17 @@ export const stakeCard_ui = css`
display: grid;
gap: 4.8rem;
padding: 3.2rem;
width: 48rem;
max-width: 48rem;
width: 100%;
justify-self: center;
align-items: center;
border: 2px solid #303030;
padding: 2.4rem;
border-radius: 1.2rem;
${breakpoints.medium} {
width: 48rem;
max-width: 48rem;
}
`;

export const inputsContainer = css`
Expand Down
1 change: 1 addition & 0 deletions base/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
:root {
--max-width: 1100px;
--background-rgb: 42, 42, 42;
}

@media (prefers-color-scheme: dark) {
Expand Down

0 comments on commit ffcfbb6

Please sign in to comment.