Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ export default defineConfig({
head: [
['link', { rel: 'icon', href: '/img/logo.ico' }],
['meta', { name: 'theme-color', content: '#0066CC' }],
[
'script',
{
defer: '',
src: 'https://um.fis.ink/script.js',
'data-website-id': '4e7333ce-6a82-408f-9ed5-bd0d0784cb5b',
},
],
// SEO 基础标签
['meta', { name: 'author', content: 'PCL Community' }],
['meta', { name: 'keywords', content: DEFAULT_KEYWORDS }],
Expand Down
24 changes: 24 additions & 0 deletions .vitepress/theme/components/HistoryReleases.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ const releaseHtml = computed(() => {
max-width: 960px;
margin: 0 auto;
padding: 2rem 1.5rem 3rem;
width: 100%;
box-sizing: border-box;
}

.history-header {
Expand Down Expand Up @@ -353,12 +355,14 @@ const releaseHtml = computed(() => {
position: relative;
flex: 1;
min-width: 220px;
min-width: 0;
}

.history-select {
width: 100%;
flex: 1;
min-width: 220px;
min-width: 0;
padding: 0.55rem 0.9rem;
border-radius: 10px;
border: 1px solid rgba(2, 102, 193, 0.4);
Expand Down Expand Up @@ -390,6 +394,10 @@ const releaseHtml = computed(() => {
display: inline-flex;
align-items: center;
gap: 0.5rem;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.history-select-arrow {
Expand Down Expand Up @@ -428,6 +436,7 @@ const releaseHtml = computed(() => {
gap: 0.75rem;
text-align: left;
cursor: pointer;
min-width: 0;
}

.history-select-option:hover {
Expand All @@ -436,6 +445,8 @@ const releaseHtml = computed(() => {

.history-select-title {
font-weight: 600;
min-width: 0;
overflow-wrap: anywhere;
}

.history-changelog {
Expand Down Expand Up @@ -464,6 +475,8 @@ const releaseHtml = computed(() => {
margin: 0 0 0.5rem;
line-height: 1.55;
color: inherit;
overflow-wrap: anywhere;
word-break: break-word;
}

.history-changelog-body :deep(p) {
Expand Down Expand Up @@ -508,6 +521,8 @@ const releaseHtml = computed(() => {
padding: 0.6rem 0.8rem;
border-radius: 10px;
background: rgba(255, 255, 255, 0.08);
overflow-x: auto;
max-width: 100%;
}

.history-changelog-body :deep(hr) {
Expand Down Expand Up @@ -619,5 +634,14 @@ const releaseHtml = computed(() => {
.history-header h1 {
font-size: 1.6rem;
}

.history-selector {
flex-direction: column;
align-items: stretch;
}

.history-label {
width: 100%;
}
}
</style>
7 changes: 7 additions & 0 deletions .vitepress/theme/components/SiteFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ onMounted(() => (currentYear.value = new Date().getFullYear().toString()));
max-width: 65%;
}

.list-container section {
text-align: center;
}

.list-title {
margin-bottom: 0.5em;
font-weight: 600;
Expand All @@ -162,6 +166,9 @@ onMounted(() => (currentYear.value = new Date().getFullYear().toString()));
}

.list-links {
list-style: none;
padding: 0;
margin: 0;
font-weight: 500;
font-size: 0.75em;
line-height: 2.4;
Expand Down
54 changes: 54 additions & 0 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,60 @@ a:focus-visible {
border-bottom: none;
}

.VPNavBarMenu {
justify-content: center;
}

.VPNavBarMenu .VPNavBarMenuLink,
.VPNavBarMenu .VPNavBarMenuGroup {
justify-content: center;
}

.VPNavScreenMenuLink,
.VPNavScreenMenuGroup {
text-align: center;
justify-content: center;
}

.VPNavBarExtra .VPNavBarMenuGroup,
.VPNavBarExtra .VPNavBarMenuGroup .button,
.VPNavBarExtra .VPNavBarMenuGroup .text {
text-align: center;
justify-content: center;
}

.VPNavScreenMenuGroup .button,
.VPNavScreenMenuGroup .button .text {
text-align: center;
justify-content: center;
width: 100%;
}

.VPNavScreenTranslations {
text-align: center;
}

.VPNavScreenTranslations .title {
justify-content: center;
width: 100%;
}

.VPNavScreenTranslations .list {
padding: 4px 0 0 0;
text-align: center;
}

.VPNavScreenTranslations .item {
display: flex;
justify-content: center;
}

.VPNavScreenTranslations .link {
display: inline-flex;
justify-content: center;
width: 100%;
}

.divider {
display: none;
}
Expand Down
Loading