|
43 | 43 | }
|
44 | 44 | }
|
45 | 45 |
|
| 46 | +.listContainer ul { |
| 47 | + padding-left: 0; /* Remove any left padding from the <ul> */ |
| 48 | + margin: 0; /* Reset default margin of <ul> */ |
| 49 | +} |
| 50 | + |
46 | 51 | .listContainer li {
|
47 |
| - list-style-type: none; |
48 |
| - position: relative; |
49 |
| - padding: 0.28rem; |
50 |
| - font-size: 1rem; |
51 |
| - color: #444; |
52 |
| - transition: color 0.2s; |
| 52 | + list-style-type: none; /* Keep list style removed */ |
| 53 | + position: relative; /* Retain existing position */ |
| 54 | + padding-left: 0.28rem; /* Ensure list items match the padding of <h2> */ |
| 55 | + padding-top: 0.5rem; |
| 56 | + font-size: 1rem; /* Retain font size */ |
| 57 | + color: #444; /* Retain text color */ |
| 58 | + transition: color 0.2s; /* Retain hover transition */ |
53 | 59 | }
|
54 | 60 |
|
55 | 61 | .listContainer li:hover {
|
@@ -100,16 +106,18 @@ html[data-theme='dark'] .homecard:hover {
|
100 | 106 | /*box-shadow: 0 12px 30px rgba(192, 41, 240, 0.5); /* Purple shadow on hover for dark theme */
|
101 | 107 | }
|
102 | 108 |
|
| 109 | + |
| 110 | + |
103 | 111 | .homecard h2 {
|
104 |
| - display: flex; |
105 |
| - align-items: center; /* Vertically align the icon and text */ |
106 |
| - justify-content: center; /* Center the icon and text horizontally */ |
107 |
| - margin: 0 0 1rem; |
108 |
| - font-size: 1.5rem; |
109 |
| - line-height: 1.4; |
110 |
| - font-weight: 700; |
111 |
| - color: #222; |
112 |
| - text-align: left; /* Ensure text itself is centered */ |
| 112 | + margin: 0; /* Remove default margin */ |
| 113 | + padding-left: 0.28rem; /* Match the list items' padding */ |
| 114 | + font-size: 1.5rem; /* Retain existing font size */ |
| 115 | + line-height: 1.4; /* Retain line height */ |
| 116 | + font-weight: 700; /* Retain font weight */ |
| 117 | + color: #222; /* Retain text color */ |
| 118 | + text-align: left; /* Ensure the text is left-aligned */ |
| 119 | + padding-top: 0.5rem; |
| 120 | + padding-bottom: 0.5rem; |
113 | 121 | }
|
114 | 122 |
|
115 | 123 | html[data-theme='dark'] .homecard h2 {
|
|
0 commit comments