This repository was archived by the owner on Apr 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
src/components/self-hosted Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
3
3
import styled from '@emotion/styled'
4
- import { borders } from '../../styles/variables'
4
+ import { borders , sizes } from '../../styles/variables'
5
5
6
6
const StyledFeature = styled . div `
7
7
display: flex;
@@ -12,25 +12,29 @@ const StyledFeature = styled.div`
12
12
margin-bottom: 5rem;
13
13
margin-top: 5rem;
14
14
15
- @media(max-width: 520px ) {
15
+ @media(max-width: ${ sizes . breakpoints . lg } ) {
16
16
flex-direction: column;
17
17
text-align: center;
18
18
}
19
19
20
20
div {
21
- @media(min-width: 520px ) {
21
+ @media(min-width: ${ sizes . breakpoints . lg } ) {
22
22
border-left: ${ borders . bold } ;
23
23
margin-left: 3rem;
24
24
padding-left: 3rem;
25
25
}
26
26
}
27
27
28
28
img {
29
- flex: 0 0 15%;
30
29
max-width: 10rem;
31
30
max-height: 12rem;
32
31
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;
34
38
margin-bottom: 4rem;
35
39
}
36
40
}
Original file line number Diff line number Diff line change @@ -2,15 +2,18 @@ import React from 'react'
2
2
3
3
import styled from '@emotion/styled'
4
4
import Feature , { FeatureProps } from './Feature'
5
- import { sizes } from '../../styles/variables'
6
5
7
6
const StyledFeatures = styled . div `
8
7
display: flex;
9
8
flex-wrap: wrap;
10
9
justify-content: space-between;
11
10
12
- @media(max-width: ${ sizes . breakpoints . lg } ) {
11
+ @media(max-width: 900px ) {
13
12
flex-direction: column;
13
+
14
+ & > div {
15
+ max-width: 400px;
16
+ }
14
17
}
15
18
`
16
19
You can’t perform that action at this time.
0 commit comments