Skip to content

Commit 44417cd

Browse files
committed
Fix ugly bolder font-weight on mobile
1 parent 21f9f45 commit 44417cd

3 files changed

Lines changed: 22 additions & 8 deletions

File tree

vcard/css/card.css

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.card {
2+
box-sizing: border-box;
3+
24
width: 7in;
35
height: 4in;
4-
box-sizing: border-box;
56
padding: .52in .44in .21in .22in;
67

78
background: var(--card-background);
@@ -20,16 +21,11 @@
2021
text-align: center;
2122
}
2223

23-
.card__company-title {
24-
font-weight: bold;
25-
}
26-
2724
.card__company-subtitle {
2825
font-size: .65em;
2926
}
3027

3128
.card__surname {
32-
font-weight: bold;
3329
text-transform: uppercase;
3430
}
3531

@@ -47,12 +43,10 @@
4743
.card__title {
4844
font-size: .9em;
4945
text-transform: capitalize;
50-
font-weight: bold;
5146
}
5247

5348
.card__address {
5449
font-size: .7em;
55-
font-weight: bold;
5650
text-align: center;
5751
}
5852

@@ -124,3 +118,21 @@
124118
.card_typography .card__title {
125119
letter-spacing: .055em;
126120
}
121+
122+
@media only screen and (min-width: 761px) {
123+
.card__title,
124+
.card__address,
125+
.card__surname,
126+
.card__company-title {
127+
font-weight: bold;
128+
}
129+
}
130+
131+
@media only screen and (max-width: 760px) {
132+
.card {
133+
width: 3.5in;
134+
height: 2in;
135+
padding: .26in .22in .105in .11in;
136+
font-size: 10pt;
137+
}
138+
}

vcard/mikhail-menshikov.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8"/>
5+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
56
<title>Mikhail Menshikov</title>
67
<link rel="preload" type="font/woff2" as="font" href="css/fonts/Sillian%20Rail%20Regular.woff2"/>
78
<link rel="stylesheet" type="text/css" href="css/index.css"/>

vcard/patrick-bateman.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8"/>
5+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
56
<title>Patrick Bateman</title>
67
<link rel="preload" type="font/woff2" as="font" href="css/fonts/Sillian%20Rail%20Regular.woff2"/>
78
<link rel="stylesheet" type="text/css" href="css/index.css"/>

0 commit comments

Comments
 (0)