Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
91 lines (84 loc) · 1.53 KB
/
Copy pathstyle.css
File metadata and controls
91 lines (84 loc) · 1.53 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
/* Design tokens */
:root {
--paper: hsla(251, 28%, 88%, 0.99);
--ink: hsla(244, 16%, 17%, 0.95);
--brand: hsla(0, 79%, 63%, 0.9);
--font: "Raleway", system-ui, sans-serif;
--gap: 20px;
--container: clamp(280px, calc(100vw - calc(var(--gap) * 2)), 1180px);
}
/* General Styles */
html,
body {
scroll-behavior: smooth;
background: var(--paper);
color: var(--ink);
font-family: var(--font);
}
body {
display: grid;
margin: auto;
min-height: 100vh;
gap: var(--gap);
max-width: var(--container);
}
a,
a:any-link {
color: currentColor;
text-decoration: none;
border-bottom: 2px solid transparent;
transition: border-color ease-in-out 0.3s;
}
a:hover,
a:focus {
color: var(--brand);
border-color: currentColor;
}
/* Site header and navigation */
body > header {
background: var(--paper);
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 1;
}
nav ul {
display: flex;
list-style: none;
gap: var(--gap);
}
/* Text readability */
section p {
line-height: 1.5;
max-width: 55ch;
}
.project-list {
display: grid;
grid-template-columns: 1fr;
gap: 1.5em;
}
.project {
border: 1px solid #ddd;
padding: 1em;
border-radius: 5px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.project img {
width: 100%;
height: auto;
border-radius: 5px;
margin-bottom: 0.5em;
}
/* Adjust for larger screens */
@media (min-width: 768px) {
.project-list {
grid-template-columns: 1fr 1fr;
}
}
.project h3 {
margin-top: 0;
}