Skip to content

Commit 2d00961

Browse files
build does not like nested css
1 parent ea2b279 commit 2d00961

File tree

1 file changed

+33
-34
lines changed

1 file changed

+33
-34
lines changed

website/src/components/SiteMap/styles.module.css

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@
5757
background-color: var(--category-card-color);
5858
box-shadow: var(--card-shadow);
5959
transition: transform 0.3s ease, box-shadow 0.3s ease;
60+
}
6061

61-
&:hover,
62-
&:focus {
63-
transform: translateY(-2px);
64-
box-shadow: var(--card-shadow-hover);
65-
text-decoration: none;
66-
outline: none;
67-
}
62+
.card:hover,
63+
.card:focus {
64+
transform: translateY(-2px);
65+
box-shadow: var(--card-shadow-hover);
66+
text-decoration: none;
67+
outline: none;
6868
}
6969

7070
.cardImage {
@@ -93,31 +93,30 @@
9393
.mosaicLayout {
9494
display: flex;
9595
gap: 2rem;
96+
}
9697

97-
.leftColumn,
98-
.rightColumn {
99-
flex: 1;
100-
display: flex;
101-
flex-direction: column;
102-
}
98+
.mosaicLayout .leftColumn,
99+
.mosaicLayout .rightColumn {
100+
flex: 1;
101+
display: flex;
102+
flex-direction: column;
103+
}
103104

104-
.leftColumn {
105-
gap: 2rem;
106-
}
105+
.mosaicLayout .leftColumn {
106+
gap: 2rem;
107+
}
107108

108-
.rightColumn {
109-
gap: 2rem;
110-
/* Different card sizing for right column */
111-
.card {
112-
height: 5.86rem;
113-
}
114-
.cardTitle {
115-
padding-top: .5rem;
116-
}
117-
}
109+
.mosaicLayout .rightColumn {
110+
gap: 2rem;
111+
}
118112

113+
.mosaicLayout .rightColumn .card {
114+
height: 5.86rem;
119115
}
120116

117+
.mosaicLayout .rightColumn .cardTitle {
118+
padding-top: 0.5rem;
119+
}
121120

122121
/* Funding section */
123122
.fundingBadge {
@@ -156,13 +155,13 @@
156155
font-weight: bold;
157156
box-shadow: var(--card-shadow);
158157
transition: all 0.3s ease;
158+
}
159159

160-
&:hover {
161-
color: var(--category-title-color);
162-
text-decoration: none;
163-
transform: translateY(-2px);
164-
box-shadow: var(--card-shadow-hover);
165-
}
160+
.fundingLink:hover {
161+
color: var(--category-title-color);
162+
text-decoration: none;
163+
transform: translateY(-2px);
164+
box-shadow: var(--card-shadow-hover);
166165
}
167166

168167
/* Responsive styles */
@@ -172,7 +171,6 @@
172171
}
173172
}
174173

175-
176174
@media (max-width: 768px) {
177175
.card {
178176
flex: 1 1 100%;
@@ -194,9 +192,10 @@
194192
.fundingDescription {
195193
font-size: 1rem;
196194
}
195+
197196
.mosaicLayout .rightColumn .card {
198197
flex-direction: row;
199198
text-align: left;
200199
align-items: flex-start;
201200
}
202-
}
201+
}

0 commit comments

Comments
 (0)