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 11import React from 'react'
22
33import styled from '@emotion/styled'
4- import { borders } from '../../styles/variables'
4+ import { borders , sizes } from '../../styles/variables'
55
66const 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 }
Original file line number Diff line number Diff line change @@ -2,15 +2,18 @@ import React from 'react'
22
33import styled from '@emotion/styled'
44import Feature , { FeatureProps } from './Feature'
5- import { sizes } from '../../styles/variables'
65
76const 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
You can’t perform that action at this time.
0 commit comments