Skip to content

Commit ec7c622

Browse files
website: Improve mobile styling
1 parent 626a611 commit ec7c622

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

src/routes/+layout.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@
148148
.page
149149
max-width: 800px
150150
margin: auto
151-
padding: 0px 30px
151+
padding: 0px 15px
152+
@media (min-width: 400px)
153+
padding: 0px 30px
152154
padding-bottom: 100px
153155
.header-title
154156
color: var(--primary)

src/routes/prop.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@
3939

4040
<style lang="sass">
4141
.prop
42-
display: flex
42+
display: block
43+
@media (min-width: 450px)
44+
display: flex
4345
padding: 5px 0px
46+
align-items: center
4447
.label
45-
display: inline-block
4648
width: 195px
4749
flex-shrink: 0
4850
input[type='text'], textarea

src/routes/split.svelte

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@
1919
transition: background 80ms cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0.0, 0.2, 1)
2020
box-shadow: 0px 1px 3px 0px rgba(#000000, 0.05)
2121
border-radius: 5px
22-
padding: 0px 20px
22+
padding: 10px
23+
flex-direction: column
24+
box-shadow: 0px 1px 3px 0px rgba(#000000, 0.05)
25+
@media (min-width: 401px)
26+
padding: 20px
27+
@media (min-width: 701px)
28+
flex-direction: row
29+
@media(max-width: 700px)
2330
@media(min-width: 701px)
2431
section.left
2532
padding-right: 0px
@@ -28,9 +35,4 @@
2835
padding-right: 10px
2936
.spacer
3037
margin-top: 20px
31-
@media(max-width: 700px)
32-
.row
33-
flex-direction: column
34-
padding: 20px
35-
box-shadow: 0px 1px 3px 0px rgba(#000000, 0.05)
3638
</style>

0 commit comments

Comments
 (0)