Skip to content

Commit 9012205

Browse files
authored
main page text aligned and shadow removed (#450)
1 parent 6145cd8 commit 9012205

File tree

4 files changed

+28
-16
lines changed

4 files changed

+28
-16
lines changed

src/components/HomepageFeatures.module.css

+2
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010
width: 200px;
1111
}
1212

13+
14+
1315
/* a:link {color:#FF0000;} */

src/components/HomepageNavBoxes.module.css

+2
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010
width: 200px;
1111
}
1212

13+
14+
1315
/* a:link {color:#FF0000;} */

src/components/homepage/homeNavBoxes.module.css

+23-15
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,19 @@
4343
}
4444
}
4545

46+
.listContainer ul {
47+
padding-left: 0; /* Remove any left padding from the <ul> */
48+
margin: 0; /* Reset default margin of <ul> */
49+
}
50+
4651
.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 */
5359
}
5460

5561
.listContainer li:hover {
@@ -100,16 +106,18 @@ html[data-theme='dark'] .homecard:hover {
100106
/*box-shadow: 0 12px 30px rgba(192, 41, 240, 0.5); /* Purple shadow on hover for dark theme */
101107
}
102108

109+
110+
103111
.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;
113121
}
114122

115123
html[data-theme='dark'] .homecard h2 {

src/css/custom.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ height: 85% !important;
805805
/*background: linear-gradient(90deg, #c029f0, #ff00d4a5); /* Gradient from purple to blue */
806806
-webkit-background-clip: text; /* Clip gradient to text */
807807
/* -webkit-text-fill-color: transparent; /* Make the text itself transparent */
808-
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
808+
/*text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
809809
margin-top: 2rem;
810810
transition: transform 0.3s ease, text-shadow 0.3s ease; /* Smooth transition */
811811
}

0 commit comments

Comments
 (0)