Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
minor style tweaks
  • Loading branch information
MaxGraey committed Apr 16, 2026
commit e8cc8492b33c9fd124b74f234e022aae881ef4a1
5 changes: 2 additions & 3 deletions src/.vuepress/components/Community.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default {
position: relative;
top: 0;
transition: top 100ms;
padding: 0.15rem;
}
.community .list a:hover {
top: -4px;
Expand Down Expand Up @@ -81,7 +82,5 @@ export default {
border: 1px solid #fff;
box-shadow: 0 0 0 1px #007acc;
}
.community .list a {
padding: 0.15rem;
}

</style>
1 change: 1 addition & 0 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default defineUserConfig({
theme: defaultTheme({
hostname: 'https://www.assemblyscript.org',
logo: '/images/icon.svg',
externalLinkIcon: false,
navbar,
sidebar,
sidebarDepth: 1,
Expand Down
34 changes: 16 additions & 18 deletions src/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
.sidebar::-webkit-scrollbar {
.vp-sidebar::-webkit-scrollbar {
width: 0.3em;
}

.sidebar::-webkit-scrollbar-track {
.vp-sidebar::-webkit-scrollbar-track {
background-color: var(--vp-scrollbar-track);
}

.sidebar::-webkit-scrollbar-thumb {
.vp-sidebar::-webkit-scrollbar-thumb {
background-color: var(--vp-scrollbar-thumb);
}

.sidebar-group:is(.collapsible) .sidebar-heading {
.vp-sidebar-item.vp-sidebar-heading.collapsible {
opacity: 1 !important;
cursor: pointer !important;
}

// Nav drop-down categories
.nav-dropdown .dropdown-item h4 {
margin: 0.45rem 0 0.2rem 0 !important;
.vp-navbar-dropdown-subtitle {
margin-bottom: 0.2rem;
}

// Code blocks
.theme-default-content a code {
[vp-content] a code {
color: var(--vp-c-accent);
}

.theme-default-content pre code,
.theme-default-content pre[class*="language-"] code {
[vp-content] pre code,
[vp-content] pre[class*="language-"] code {
font-size: 1em;
}

Expand Down Expand Up @@ -73,13 +73,13 @@ div[class~="language-c"]::before {
}

// API docs: <li> starting with code block
.theme-default-content li div[class*="language-"]:first-child pre[class*="language-"] {
[vp-content] li div[class*="language-"]:first-child pre[class*="language-"] {
border: 0;
padding: 0;
font-size: 1.1em;
}

.theme-default-content li div[class*="language-"]:first-child::before {
[vp-content] li div[class*="language-"]:first-child::before {
display: none;
}

Expand All @@ -105,27 +105,25 @@ details table td {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

html.dark,
[data-theme='dark'] {
:is(.theme-default-content, .vp-page) {
[vp-content] {
color: var(--vp-c-text);
}

:is(.theme-default-content, .vp-page)
:is(h1, h2, h3, h4, h5, h6, strong, .custom-container),
.nav-dropdown .dropdown-item h4 {
[vp-content] :is(h1, h2, h3, h4, h5, h6, strong, .custom-container),
.vp-navbar-dropdown-subtitle {
color: var(--vp-c-text);
}

details summary {
color: var(--vp-c-text);
}

:is(.theme-default-content, .vp-page) table tr:nth-child(2n) {
[vp-content] table tr:nth-child(2n) {
background-color: var(--vp-c-bg-soft);
}

:is(.theme-default-content, .vp-page) table :is(th, td) {
[vp-content] table :is(th, td) {
border-color: var(--vp-c-border);
}
}