-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
133 lines (107 loc) · 2.31 KB
/
styles.css
File metadata and controls
133 lines (107 loc) · 2.31 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
122
123
124
125
126
127
128
129
130
131
132
133
:root {
/* base */
--background: #1c1f39;
--dark-bg: #030712;
--text-light: #e2e8f0;
--color-accent: #facc15;
--text-muted: #9CA3AF;
/* ----- Spacing System ----- */
--space-xs: 0.5rem;
--space-lg: 1.5rem;
--space-xl: 2rem;
/* ----- Border Radius ----- */
--radius-lg: 12px;
/* ----- Typography ----- */
--font-family-base: "Inter", sans-serif;
--font-family-title: "Merriweather", serif;
/* ----- Font weights ----- */
--weight-regular: 400;
/* ----- Transition ----- */
--transition-fast: 150ms ease;
}
body {
margin: 0;
padding: 0;
background-image: linear-gradient(to bottom, var(--background),
var(--dark-bg));
background-size: cover;
min-height: 100vh;
color: var(--text-light);
font-family: var(--font-family-base);
font-weight: var(--weight-regular);
box-sizing: border-box;
line-height: 1.6;
}
@supports (min-height: 100dvh) {
body {
min-height: 100dvh;
}
}
h1{
text-align: center;
font-family: var(--font-family-title);
}
h2{
font-weight: var(--weight-regular);
font-style: italic;
}
/* --- accessibility --- */
:focus-visible {
outline: 3px solid var(--color-accent);
outline-offset: 3px;
}
/* ---- links ---- */
a{
color: inherit;
text-decoration: none;
transition: color var(--transition-fast)
}
a:hover{
text-decoration: underline;
}
a:active{
color: var(--text-muted)
}
/* --- nav bar --- */
.projects-navigation{
margin: 15px;
}
.projects{
display: grid;
grid-template-columns: 1fr;
padding: 0;
gap: var(--space-xl);
list-style: none;
}
/* --- cards --- */
.card {
padding: var(--space-lg);
border-radius: var(--radius-lg);
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
display: flex;
flex-direction: column;
transition: border-color var(--transition-fast);
max-height: 75%;
}
.card a {
display: flex;
flex-direction: column;
height: 100%;
gap: var(--space-xs)
}
.card h3{
margin: 0;
}
.card p{
margin-top: auto;
}
.card:hover{
border-color: var(--color-accent);
}
/* --- media query */
@media (min-width: 640px) {
.projects {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
}