Skip to content

Commit 06d57b9

Browse files
129 adjust line height and update alignment of articles on home page (#135)
1 parent 1874c98 commit 06d57b9

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

components/article-preview/index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import React from 'react'
2+
3+
import { rem } from 'polished'
14
import { string } from 'prop-types'
25
import styled from 'styled-components'
36

@@ -25,9 +28,14 @@ const Root = styled.div`
2528
h3 {
2629
font-size: 1rem;
2730
font-weight: 700;
28-
line-height: 1.625rem;
29-
margin: 1.25rem 0px;
31+
line-height: ${rem('21px')};
32+
height: 4rem;
33+
margin: 1.25rem 0;
3034
text-align: center;
35+
36+
@media only screen and (max-width: ${MOBILE_SIZE}) {
37+
height: auto;
38+
}
3139
}
3240
3341
p {

styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700;900&family=Montserrat:wght@500;600;700;800&display=swap');
1+
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;600;700;900&family=Montserrat:wght@500;600;700;800&display=swap');
22

33
html,
44
body {

0 commit comments

Comments
 (0)