generated from mmistakes/mm-github-pages-starter
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdisplay-author-page.scss
75 lines (67 loc) · 1.42 KB
/
display-author-page.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
article.author-page-card {
display: grid;
grid-template-areas:
"name name"
"thumbnail role"
"thumbnail bio"
"thumbnail links"
"thumbnail .";
grid-template-columns: 300px 1fr;
@media (max-width: 900px) {
grid-template-columns: 1fr 2fr;
}
// For mobile devices, we want to stack the thumbnail on top of the rest of the content
// to make it easier to read.
@media (max-width: 500px) {
grid-template-areas:
"name"
"thumbnail"
"."
"role"
"bio"
"links";
grid-template-columns: 1fr;
justify-items: center;
text-align: center;
}
column-gap: 1em;
row-gap: .5em;
margin-top: 1em;
align-items: start;
align-content: start;
}
.author-page-thumbnail {
grid-area: thumbnail;
object-fit: contain;
width: 100%;
max-width: 300px;
margin: 0 auto;
border-radius: 50%;
}
.author-page-name {
grid-area: name;
font-size: 2em;
font-weight: bold;
margin-bottom: .5em;
}
.author-page-role {
grid-area: role;
font-weight: none;
}
.author-page-role-title {
grid-area: role;
font-weight: bold;
font-size: 1.25em;
}
.author-page-bio {
grid-area: bio;
font-weight: italic;
}
.author-page-links {
grid-area: links;
}
.author-page-ext-link {
text-decoration: none;
margin-right: 15px;
display: inline-block;
}