Skip to content

Commit 63fb428

Browse files
authored
Add comments for portfolio section styles
1 parent 2150dd3 commit 63fb428

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

_layouts/default.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,15 @@
7070
.sub-links a:hover {
7171
color: #007acc;
7272
}
73+
/* ============================= */
7374
/* Portfolio Section */
75+
/* ============================= */
76+
7477
.portfolio-wrapper {
7578
margin-top: 30px;
7679
}
80+
81+
/* Card container */
7782
.portfolio-card {
7883
display: inline-block;
7984
width: 400px;
@@ -88,16 +93,29 @@
8893
overflow: hidden;
8994
vertical-align: top;
9095
}
96+
97+
/* Shared title styling */
9198
.portfolio-card span {
9299
position: absolute;
93-
top: 0;
94100
width: 100%;
95101
padding: 12px 0;
96102
background: rgba(0, 0, 0, 0.6);
97103
text-align: center;
98104
font-weight: bold;
99105
transition: background 0.3s ease;
100106
}
107+
108+
/* Title at top */
109+
.portfolio-card.title-top span {
110+
top: 0;
111+
}
112+
113+
/* Title at bottom */
114+
.portfolio-card.title-bottom span {
115+
bottom: 0;
116+
}
117+
118+
/* Hover effect */
101119
.portfolio-card:hover span {
102120
background: rgba(0, 0, 0, 0.8);
103121
text-decoration: underline;

0 commit comments

Comments
 (0)