-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
136 lines (118 loc) · 2.45 KB
/
styles.css
File metadata and controls
136 lines (118 loc) · 2.45 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
134
135
136
/* Existing styles from before */
body {
font-family: monospace, Lucida Console;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
header {
background-color: #0d1635;
color: white;
padding: 1rem;
text-align: center;
}
nav ul {
list-style-type: none;
padding: 0;
display: flex;
justify-content: center;
}
nav ul li {
margin: 0 10px;
}
.filter-btn {
background-color: #8fa7fc;
color: white;
border: none;
padding: 0.5rem 1rem;
cursor: pointer;
font-size: 1rem;
}
.filter-btn:hover {
background-color: #cd6816;
}
#portfolio {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 2rem 0;
}
.portfolio-item {
width: 300px;
margin: 1rem;
background-color: white;
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
cursor: pointer;
}
.portfolio-item img {
max-width: 100%;
border-bottom: 1px solid #ddd;
display: block;
border: none; /* Ensure no borders are added by the browser */
}
.portfolio-item p {
margin: 1rem;
font-size: 1.2rem;
display: flex;
align-items: center; /* Align text and icon vertically */
justify-content: center;
}
.arrow-icon {
margin-left: 8px; /* Add spacing between the text and the arrow */
width: 16px; /* Set width for the icon */
height: 16px; /* Set height for the icon */
vertical-align: middle; /* Vertically align with the text */
}
.portfolio-item:hover .arrow-icon {
transform: translateX(5px); /* Move arrow slightly on hover */
transition: transform 0.3s ease;
}
/* Existing styles */
.modal {
display: none;
position: fixed;
z-index: 10;
padding-top: 60px;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
}
.modal-content {
background-color: white;
margin: auto;
padding: 20px;
border-radius: 10px;
width: 80%;
max-width: 700px;
max-height: 80vh;
overflow-y: auto;
text-align: center; /* Align text to the left for better readability */
}
.modal img {
max-width: 100%;
height: auto;
margin-bottom: 15px;
}
#modal-description {
margin: 10px 0;
}
#modal-details p {
margin: 5px 0;
line-height: 1.5;
}
.close-btn {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close-btn:hover,
.close-btn:focus {
color: black;
text-decoration: none;
cursor: pointer;
}