-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
138 lines (114 loc) · 2.04 KB
/
style.css
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
134
135
136
137
138
/* Resets */
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
text-decoration: none;
}
/* Fonts */
@font-face {
font-family: "Aovel Sans";
src: url(./assets/fonts/ASansreg.ttf);
}
/* Variable */
:root {
--primary: #000000;
--secondary: #fafafa;
--bg: #ffffff;
}
/* Base Styles */
body {
background-color: var(--bg);
color: var(--primary);
}
.project .project__title {
display: flex;
flex-direction: column;
}
.project .project__title p {
font-family: "Aovel Sans";
font-style: normal;
font-weight: 900;
font-size: 2.25rem;
line-height: 132%;
}
.project .project__title p:nth-child(2) {
font-size: 1rem;
}
.navigation {
background-color: var(--secondary);
border-bottom: 1px solid var(--primary);
padding: 1.5rem;
}
.navigation {
display: flex;
justify-content: space-between;
}
.navigation a {
font-family: "Aovel Sans";
font-style: normal;
font-weight: 900;
line-height: 132%;
font-size: 1rem;
color: var(--primary);
}
.image img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Mobile Styles */
.container {
display: grid;
grid-template-columns: 1fr;
grid-gap: 40px;
}
.container .project {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 20px;
padding: 0 20px;
}
.container .project .project__title {
grid-column: 1 / -1;
order: -1;
}
/* Tablet Styles */
@media screen and (min-width: 690px) {
.container .project {
grid-template-columns: repeat(6, 1fr);
align-items: center;
}
.container .project .project__title {
grid-column: span 3;
order: 1;
}
}
/* Laptop Styles */
@media screen and (min-width: 1200px) {
.container {
padding: 40px 0 40px 40px;
}
.container .project {
grid-template-columns: repeat(8, 1fr);
grid-gap: 40px;
padding: 0;
}
.navigation {
position: fixed;
right: 0;
top: 0;
height: 100vh;
border-inline-start: 1px solid var(--primary);
}
.navigation {
flex-direction: column;
}
.navigation a {
transform: rotate(-90deg);
}
}