style: update border-radius and padding values across components

- standardize border-radius from 8px to 6px for consistent styling
- adjust padding values from 1rem to 0.75rem for better visual hierarchy
- remove redundant overflow-y properties for cleaner code
This commit is contained in:
sanbuphy
2026-02-14 20:23:34 +08:00
parent 81e4284b87
commit d35211071a
373 changed files with 3441 additions and 5629 deletions
@@ -194,12 +194,12 @@ const selectNode = (nodeId) => {
<style scoped>
.component-hierarchy-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -242,7 +242,7 @@ const selectNode = (nodeId) => {
.demo-content {
background: var(--vp-c-bg);
border-radius: 6px;
padding: 1rem;
padding: 0.75rem;
margin-bottom: 0.75rem;
}
@@ -290,7 +290,7 @@ const selectNode = (nodeId) => {
padding: 0.75rem 1rem;
background: var(--vp-c-bg-soft);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
min-width: 180px;
@@ -346,7 +346,7 @@ const selectNode = (nodeId) => {
.node-details {
margin-top: 1rem;
padding: 1rem;
padding: 0.75rem;
background: var(--vp-c-bg-soft);
border-radius: 6px;
border: 1px solid var(--vp-c-divider);
@@ -101,12 +101,12 @@ const sendEvent = (comp) => {
<style scoped>
.event-bus-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -181,8 +181,8 @@ const sendEvent = (comp) => {
.component-node {
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
@@ -223,8 +223,8 @@ const sendEvent = (comp) => {
.event-log {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
}
.log-title {
@@ -108,12 +108,12 @@ const toggleTodo = (id) => {
<style scoped>
.mobx-reactivity-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -164,8 +164,8 @@ const toggleTodo = (id) => {
.reaction-display {
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
}
.state-header,
@@ -105,12 +105,12 @@ const handleEmit = () => {
<style scoped>
.props-flow-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -106,12 +106,12 @@ const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms))
<style scoped>
.redux-flow-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -165,7 +165,7 @@ const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms))
gap: 0.75rem;
padding: 2rem;
background: var(--vp-c-bg-soft);
border-radius: 8px;
border-radius: 6px;
margin-bottom: 1rem;
}
@@ -207,7 +207,7 @@ const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms))
background: var(--vp-c-brand);
color: white;
border: none;
border-radius: 8px;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
@@ -232,9 +232,9 @@ const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms))
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 1rem;
padding: 0.75rem;
background: var(--vp-c-bg-soft);
border-radius: 8px;
border-radius: 6px;
}
.flow-stage {
@@ -244,7 +244,7 @@ const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms))
padding: 0.75rem 1rem;
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
font-size: 0.85rem;
transition: all 0.3s ease;
}
@@ -166,12 +166,12 @@ function getSizeClass(size) {
<style scoped>
.state-management-comparison {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -96,12 +96,12 @@ const activeTab = ref('pinia')
<style scoped>
.vuex-pinia-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -155,8 +155,8 @@ const activeTab = ref('pinia')
.card {
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
cursor: pointer;
transition: all 0.2s ease;
}
@@ -225,7 +225,7 @@ const activeTab = ref('pinia')
.code-example {
background: var(--vp-c-bg);
border-radius: 6px;
padding: 1rem;
padding: 0.75rem;
}
.code-title {
@@ -237,7 +237,7 @@ const activeTab = ref('pinia')
.code-block {
margin: 0;
padding: 1rem;
padding: 0.75rem;
background: #1e1e1e;
border-radius: 6px;
overflow-x: auto;
@@ -127,12 +127,12 @@ const tabs = [
<style scoped>
.zustand-jotai-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
max-height: 600px;
overflow-y: auto;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -191,7 +191,7 @@ const tabs = [
padding: 0.6rem 1.2rem;
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
font-size: 0.85rem;
color: var(--vp-c-text-2);
cursor: pointer;
@@ -219,8 +219,8 @@ const tabs = [
.tab-content {
background: var(--vp-c-bg);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
}
.feature-showcase {
@@ -235,9 +235,9 @@ const tabs = [
flex-direction: column;
align-items: center;
gap: 0.5rem;
padding: 1rem;
padding: 0.75rem;
background: var(--vp-c-bg-soft);
border-radius: 8px;
border-radius: 6px;
text-align: center;
}
@@ -259,7 +259,7 @@ const tabs = [
.code-example {
background: #1e1e1e;
border-radius: 6px;
padding: 1rem;
padding: 0.75rem;
overflow-x: auto;
}