-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
121 lines (91 loc) · 1.81 KB
/
style.css
File metadata and controls
121 lines (91 loc) · 1.81 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/* IMPORT FONTS */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Lexend:wght@100..900&display=swap');
/* CSS VARIABLES */
:root {
/* color var */
/* color set 1 */
--colorR1: rgb(100, 53, 53);
--colorR2: rgb(141, 84, 84);
--colorR3: rgb(186, 128, 128);
/* color set 2 */
--colorG1: rgb(84, 141, 97);
--colorG2: rgb(117, 165, 105);
--colorG3: rgb(128, 186, 134);
/* color set 3 */
--colorP1: rgb(116, 84, 141);
--colorP2: rgb(127, 105, 165);
--colorP3: rgb(164, 128, 186);
/* font var */
--font1: "Lexend", sans-serif;
--font2: "League Spartan", sans-serif;
}
/* DIAGNOSTIC STYLING */
/* * {
border: peachpuff dotted 2px;
} */
main {
display: grid;
grid-template-columns: 1fr 1fr;
font-family: var(--font1);
}
article {
/* background image */
background-image: url("https://assets.codepen.io/16425/paper.png");
}
/* on hover left colum, no background image */
article:hover {
background-image: none;
}
h1 {
color: var(--colorP1);
font-family: var(--font2);
}
h2 {
color: var(--colorG3);
font-family: var(--font2);
}
/* Article */
article {
display: flex;
flex-direction: column;
/* main axis */
justify-content: center;
/* cross axis */
align-items: center;
padding: 1em;
}
/* aside image */
aside img {
width: 100%;
max-width: 100%;
/* full height */
height: 100vh;
object-fit: cover;
}
/* links */
a:link,
a:visited {
color: var(--colorR1);
text-decoration: none;
margin: 0 0.25em;
}
a:hover,
a:active {
border-bottom: 4px solid var(--colorR3);
}
@media (max-width: 480px) {
body {
background: var(--colorP3);
}
main {
grid-template-columns: 1fr;
}
article nav a {
display: block;
margin: 1em 0 1em 0;
}
p span {
float: none;
font-size: 1.5em;
}
}