Skip to content

Commit e99d6b7

Browse files
authored
Merge pull request #18 from MedVIC-Lab/add-logo-fix-colors
Refactor publication styles and update logo path in configuration
2 parents e9b66f8 + b88e7ac commit e99d6b7

File tree

6 files changed

+1314
-7
lines changed

6 files changed

+1314
-7
lines changed

.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineConfig({
99
description: "MedVIC Lab's Website",
1010
appearance: false, // disable dark mode
1111
themeConfig: {
12-
logo: "/logo.png",
12+
logo: "assets/images/medvic.svg",
1313
lastUpdated: {
1414
text: 'Updated at',
1515
formatOptions: {

.vitepress/theme/custom.css

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
--vp-c-brand-2: var(--lightblue);
1010
--vp-c-brand-3: var(--orange);
1111

12-
--vp-c-text-1: var(--darkblue);
12+
--vp-c-text-1: #333;
13+
14+
--vp-nav-logo-height: 100px;
1315
}
1416

1517
/********** Custom styles **********/
@@ -24,12 +26,21 @@
2426
/* Header */
2527
.VPNavBarTitle .title {
2628
font-size: 1.75em !important;
29+
color: var(--vp-c-brand-1) !important;
2730
}
2831

2932
.VPNavBarMenuLink {
3033
font-size: 1.05em !important;
3134
}
3235

36+
body h1, body h2 {
37+
color: var(--vp-c-brand-1) !important;
38+
}
39+
40+
body h3 {
41+
color: var(--vp-c-brand-2) !important;
42+
}
43+
3344
/* Container widths */
3445
@media (min-width: 1440px) {
3546
.VPDoc:not(.has-sidebar) .content {
@@ -40,11 +51,30 @@
4051
}
4152
}
4253

54+
/* Publications page */
55+
.publication-info {
56+
color: var(--vp-c-text-1) !important;
57+
transition: color 0.2s ease-in-out;
58+
}
59+
60+
.publication:hover {
61+
background: #f5f5f5 !important;
62+
}
63+
64+
.publication-info:hover {
65+
color: var(--vp-c-brand-2) !important;
66+
}
67+
4368
/* Team page */
4469
.VPTeamPage {
4570
margin: 0 !important;
4671
}
4772

4873
vpi-social-website {
4974
display: none !important;
75+
}
76+
77+
/* Sidebar */
78+
.publication-sidebar h2 {
79+
color: var(--vp-c-brand-2) !important;
5080
}

pages/publications.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ onMounted(async () => {
129129
border-radius: 10px;
130130
}
131131

132-
.publication:hover {
133-
background-color:rgb(245, 245, 245);
134-
color: #000!important;
135-
}
136-
137132
.publication img {
138133
max-width: 150px;
139134
height: auto; /* Maintain aspect ratio */

0 commit comments

Comments
 (0)