-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportfolio.css
76 lines (67 loc) · 1.43 KB
/
portfolio.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
/* Universal reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body styling */
body {
font-family: 'DM Sans', sans-serif;
background-color: #000000;
color: #ffffff;
margin: 0;
padding: 0;
position: relative;
}
/* Header (h1) styling */
h1 {
font-family: 'DM Sans', sans-serif;
font-size: 24px;
text-align: left;
margin-left: 50px;
margin-top: 50px;
}
/* Portfolio Section Styling */
.portfolio-section {
margin-top: 40px;
padding-left: 60px;
}
.portfolio-section h2 {
font-size: 24px;
font-weight: 500;
margin-bottom: 20px;
padding-left: 30px; /* Added left margin */
}
/* Grid for portfolio items */
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
margin-left: 50px;
margin-right: 50px;
}
.grid-item {
background-color: #c1102a; /* Red background */
color: white;
font-family: 'DM Sans', sans-serif;
font-size: 16px;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
width: 140px; /* Set width to 133px */
height: 200px; /* Set height to 130px */
border-radius: 5px;
transition: transform 0.2s, background-color 0.2s;
}
.grid-item:hover {
background-color: #a10d25; /* Darker red on hover */
transform: scale(1.05); /* Slight zoom effect */
}
/* Additional Styling for Context */
.category-title {
margin-top: 30px;
font-size: 18px;
margin-left: 50px;
}