Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
5f2072f4
Unverified
Commit
5f2072f4
authored
Dec 08, 2022
by
Vignesh Mohankumar
Committed by
GitHub
Dec 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: makes sure padding-bottom isn't overriden in Landing (#5603)
parent
4e144c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
index.tsx
src/pages/Landing/index.tsx
+11
-12
No files found.
src/pages/Landing/index.tsx
View file @
5f2072f4
...
@@ -9,8 +9,7 @@ import styled from 'styled-components/macro'
...
@@ -9,8 +9,7 @@ import styled from 'styled-components/macro'
import
{
BREAKPOINTS
}
from
'
theme
'
import
{
BREAKPOINTS
}
from
'
theme
'
import
{
Z_INDEX
}
from
'
theme/zIndex
'
import
{
Z_INDEX
}
from
'
theme/zIndex
'
const
MOBILE_BREAKPOINT
=
BREAKPOINTS
.
sm
const
PADDING_BOTTOM
=
64
const
DESKTOP_BREAKPOINT
=
BREAKPOINTS
.
md
const
PageWrapper
=
styled
.
div
<
{
isDarkMode
:
boolean
}
>
`
const
PageWrapper
=
styled
.
div
<
{
isDarkMode
:
boolean
}
>
`
width: 100%;
width: 100%;
...
@@ -24,16 +23,16 @@ const PageWrapper = styled.div<{ isDarkMode: boolean }>`
...
@@ -24,16 +23,16 @@ const PageWrapper = styled.div<{ isDarkMode: boolean }>`
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
justify-content: end;
justify-content: end;
padding
: 24px 24px 64px 24
px;
padding
-bottom: 24px 24px
${
PADDING_BOTTOM
}
px;
align-items: center;
align-items: center;
transition: 250ms ease opacity;
transition: 250ms ease opacity;
@media screen and (min-width:
${
MOBILE_BREAKPOINT
}
px) {
@media screen and (min-width:
${
BREAKPOINTS
.
sm
}
px) {
padding:
4rem
;
padding:
64px 64px
${
PADDING_BOTTOM
}
px
;
}
}
@media screen and (min-width:
${
DESKTOP_BREAKPOINT
}
px) {
@media screen and (min-width:
${
BREAKPOINTS
.
md
}
px) {
padding:
2rem
;
padding:
32px 32px
${
PADDING_BOTTOM
}
px
;
}
}
`
`
...
@@ -51,11 +50,11 @@ const TitleText = styled.h1<{ isDarkMode: boolean }>`
...
@@ -51,11 +50,11 @@ const TitleText = styled.h1<{ isDarkMode: boolean }>`
background-clip: text;
background-clip: text;
-webkit-background-clip: text;
-webkit-background-clip: text;
@media screen and (min-width:
${
MOBILE_BREAKPOINT
}
px) {
@media screen and (min-width:
${
BREAKPOINTS
.
sm
}
px) {
font-size: 48px;
font-size: 48px;
}
}
@media screen and (min-width:
${
DESKTOP_BREAKPOINT
}
px) {
@media screen and (min-width:
${
BREAKPOINTS
.
md
}
px) {
font-size: 72px;
font-size: 72px;
}
}
`
`
...
@@ -68,7 +67,7 @@ const SubText = styled.h3`
...
@@ -68,7 +67,7 @@ const SubText = styled.h3`
text-align: center;
text-align: center;
max-width: 600px;
max-width: 600px;
@media screen and (min-width:
${
DESKTOP_BREAKPOINT
}
px) {
@media screen and (min-width:
${
BREAKPOINTS
.
md
}
px) {
font-size: 28px;
font-size: 28px;
line-height: 36px;
line-height: 36px;
}
}
...
@@ -100,11 +99,11 @@ const ButtonCTAText = styled.p`
...
@@ -100,11 +99,11 @@ const ButtonCTAText = styled.p`
font-size: 16px;
font-size: 16px;
white-space: nowrap;
white-space: nowrap;
@media screen and (min-width:
${
MOBILE_BREAKPOINT
}
px) {
@media screen and (min-width:
${
BREAKPOINTS
.
sm
}
px) {
font-size: 20px;
font-size: 20px;
}
}
@media screen and (min-width:
${
DESKTOP_BREAKPOINT
}
px) {
@media screen and (min-width:
${
BREAKPOINTS
.
md
}
px) {
font-size: 24px;
font-size: 24px;
}
}
`
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment