Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 76bbd58

Browse files
committed
[self-hosted] adjust the features layout.
1 parent c127fc0 commit 76bbd58

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/components/self-hosted/Feature.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22

33
import styled from '@emotion/styled'
4-
import { borders } from '../../styles/variables'
4+
import { borders, sizes } from '../../styles/variables'
55

66
const StyledFeature = styled.div`
77
display: flex;
@@ -12,25 +12,29 @@ const StyledFeature = styled.div`
1212
margin-bottom: 5rem;
1313
margin-top: 5rem;
1414
15-
@media(max-width: 520px) {
15+
@media(max-width: ${sizes.breakpoints.lg}) {
1616
flex-direction: column;
1717
text-align: center;
1818
}
1919
2020
div {
21-
@media(min-width: 520px) {
21+
@media(min-width: ${sizes.breakpoints.lg}) {
2222
border-left: ${borders.bold};
2323
margin-left: 3rem;
2424
padding-left: 3rem;
2525
}
2626
}
2727
2828
img {
29-
flex: 0 0 15%;
3029
max-width: 10rem;
3130
max-height: 12rem;
3231
33-
@media(max-width: 520px) {
32+
@media(min-width: ${sizes.breakpoints.lg}) {
33+
flex: 0 0 15%;
34+
}
35+
36+
@media(max-width: ${sizes.breakpoints.lg}) {
37+
height: 10rem;
3438
margin-bottom: 4rem;
3539
}
3640
}

src/components/self-hosted/Features.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ import React from 'react'
22

33
import styled from '@emotion/styled'
44
import Feature, { FeatureProps } from './Feature'
5-
import { sizes } from '../../styles/variables'
65

76
const StyledFeatures = styled.div`
87
display: flex;
98
flex-wrap: wrap;
109
justify-content: space-between;
1110
12-
@media(max-width: ${sizes.breakpoints.lg}) {
11+
@media(max-width: 900px) {
1312
flex-direction: column;
13+
14+
& > div {
15+
max-width: 400px;
16+
}
1417
}
1518
`
1619

0 commit comments

Comments
 (0)