Skip to content

Commit de384f9

Browse files
committed
Optimized CSS a little
1 parent 0435704 commit de384f9

2 files changed

Lines changed: 4 additions & 54 deletions

File tree

src/app/component/activity-description/activity-description.component.css

Lines changed: 4 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
transition: opacity 0.3s ease;
6565
}
6666

67-
.difficulty-summary.hidden {
67+
/* Shared collapsing state for preview/summary elements */
68+
.hidden {
6869
opacity: 0;
6970
height: 0;
7071
overflow: hidden;
@@ -190,14 +191,6 @@ mat-icon.mat-icon {
190191
transition: opacity 0.3s ease;
191192
}
192193

193-
.references-summary.hidden {
194-
opacity: 0;
195-
height: 0;
196-
overflow: hidden;
197-
margin: 0;
198-
gap: 0;
199-
}
200-
201194
.ref-section {
202195
display: flex;
203196
flex-direction: column;
@@ -229,7 +222,7 @@ mat-icon.mat-icon {
229222

230223
.references-grid {
231224
display: grid;
232-
grid-template-columns: 1fr 1fr 1fr 1fr;
225+
grid-template-columns: repeat(4, 1fr);
233226
gap: 20px;
234227
padding: 15px 0;
235228
width: 100%;
@@ -296,7 +289,7 @@ mat-icon.mat-icon {
296289
/* Responsive design for smaller screens */
297290
@media (max-width: 550px) {
298291
.references-grid {
299-
grid-template-columns: 1fr 1fr;
292+
grid-template-columns: repeat(2, 1fr);
300293
gap: 15px;
301294
}
302295

@@ -340,13 +333,6 @@ mat-icon.mat-icon {
340333
transition: opacity 0.3s ease;
341334
}
342335

343-
.implementation-preview.hidden {
344-
opacity: 0;
345-
height: 0;
346-
overflow: hidden;
347-
margin: 0;
348-
}
349-
350336
.tool-count-badge {
351337
background-color: #e8f5e8;
352338
color: #2e7d32;
@@ -398,39 +384,6 @@ mat-icon.mat-icon {
398384

399385
/* Dark Mode Support */
400386
@media (prefers-color-scheme: dark) {
401-
/* Mapping/References section - improve text readability */
402-
/* .references-summary {
403-
color: #e0e0e0;
404-
}
405-
406-
.ref-section strong {
407-
color: #ffffff;
408-
}
409-
410-
.ref-values {
411-
color: #b0b0b0;
412-
}
413-
414-
.reference-value {
415-
background-color: #424242;
416-
border-color: #616161;
417-
color: #ffffff;
418-
}
419-
420-
.reference-header {
421-
color: #e0e0e0;
422-
border-bottom-color: #616161;
423-
} */
424-
425-
/* .no-references {
426-
color: #757575;
427-
}
428-
*/
429-
/* Tool descriptions in dark mode */
430-
/* .tool-description {
431-
color: #b0b0b0;
432-
}
433-
*/
434387
/* Level badges in dark mode - maintain readability */
435388
.level-1 { background-color: #2e7d32; color: #e8f5e8; }
436389
.level-2 { background-color: #388e3c; color: #e0f2e7; }

src/app/component/activity-description/activity-description.component.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,6 @@ <h4 class="tool-name" [innerHTML]="implement['name']"></h4>
320320
<mat-icon class="link-icon" *ngIf="implement['url']">open_in_new</mat-icon>
321321
</a>
322322
</div>
323-
<!-- <div class="tool-url" *ngIf="implement['url']">
324-
<a [href]="implement['url']" target="_blank" [innerHTML]="implement['url']"></a>
325-
</div> -->
326323
<div class="tool-description" *ngIf="implement['description']">
327324
<p [innerHTML]="implement['description']"></p>
328325
</div>

0 commit comments

Comments
 (0)