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
@@ -417,7 +417,7 @@ onMounted(() => {
padding: 0.8rem 1rem;
border: 2px solid var(--vp-c-divider);
background: var(--vp-c-bg);
border-radius: 8px;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
@@ -549,7 +549,7 @@ onMounted(() => {
margin-bottom: 2rem;
padding: 2rem;
background: linear-gradient(135deg, var(--vp-c-brand), #8b5cf6);
border-radius: 8px;
border-radius: 6px;
color: #fff;
}
@@ -570,7 +570,7 @@ onMounted(() => {
gap: 1rem;
padding: 0.8rem;
background: var(--vp-c-bg-soft);
border-radius: 8px;
border-radius: 6px;
transition: all 0.3s;
}
@@ -627,8 +627,8 @@ onMounted(() => {
.metric-card {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
}
.metric-header {
@@ -725,7 +725,7 @@ onMounted(() => {
.code-example {
background: var(--vp-c-bg-soft);
border-radius: 8px;
border-radius: 6px;
overflow: hidden;
}
@@ -739,7 +739,7 @@ onMounted(() => {
code {
display: block;
padding: 1rem;
padding: 0.75rem;
font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
font-size: 0.8rem;
color: var(--vp-c-text-1);
@@ -295,8 +295,8 @@ function setStep(step) {
.code-block {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
overflow-x: auto;
}
@@ -329,8 +329,8 @@ code {
.step {
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
transition: all 0.3s;
opacity: 0.6;
}
@@ -437,8 +437,8 @@ code {
.paint-box {
background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
border: 2px solid var(--vp-c-brand);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
min-width: 120px;
}
@@ -542,8 +542,8 @@ code {
.tip-card {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
display: flex;
gap: 0.8rem;
}
@@ -247,7 +247,7 @@ function selectFormat(name) {
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 10px;
padding: 1rem;
padding: 0.75rem;
cursor: pointer;
transition: all 0.3s;
}
@@ -306,7 +306,7 @@ function selectFormat(name) {
.format-preview {
height: 120px;
border-radius: 8px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
@@ -257,7 +257,7 @@ onMounted(() => {
padding: 0.6rem 1.2rem;
border: 2px solid var(--vp-c-divider);
background: var(--vp-c-bg-soft);
border-radius: 8px;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
@@ -286,7 +286,7 @@ onMounted(() => {
flex: 1;
min-width: 120px;
background: var(--vp-c-bg-soft);
border-radius: 8px;
border-radius: 6px;
padding: 0.8rem;
text-align: center;
}
@@ -311,15 +311,15 @@ onMounted(() => {
.scroll-container {
height: 400px;
overflow-y: auto;
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
margin-bottom: 1.5rem;
background: var(--vp-c-bg-soft);
}
.content-area {
padding: 1rem;
padding: 0.75rem;
}
.placeholder {
@@ -336,7 +336,7 @@ onMounted(() => {
.image-wrapper {
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
overflow: hidden;
transition: all 0.3s;
}
@@ -383,7 +383,7 @@ onMounted(() => {
height: 150px;
display: flex;
align-items: center;
padding: 1rem;
padding: 0.75rem;
gap: 1rem;
}
@@ -422,8 +422,8 @@ onMounted(() => {
.explanation-item {
background: var(--vp-c-bg-soft);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
}
.explanation-item h4 {
@@ -135,10 +135,10 @@ const clsStatus = computed(() => {
<style scoped>
.metrics-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;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -182,7 +182,7 @@ const clsStatus = computed(() => {
.metric-card {
background: var(--vp-c-bg);
border: 2px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
padding: 0.85rem;
position: relative;
transition: all 0.3s;
@@ -140,7 +140,7 @@ const currentDim = ref(dimensions[0])
border-radius: 12px;
background-color: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
font-family: var(--vp-font-family-sans);
}
@@ -200,7 +200,7 @@ const currentDim = ref(dimensions[0])
align-items: stretch;
background-color: var(--vp-c-bg);
padding: 1.5rem;
border-radius: 8px;
border-radius: 6px;
border: 1px solid var(--vp-c-divider);
}
@@ -310,7 +310,7 @@ const currentDim = ref(dimensions[0])
.summary-bar {
margin-top: 1.5rem;
padding: 1rem;
padding: 0.75rem;
background-color: var(--vp-c-brand-dimm);
border-radius: 6px;
text-align: center;
@@ -226,10 +226,10 @@ function changeOpacity() {
<style scoped>
.reflow-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;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -288,8 +288,8 @@ function changeOpacity() {
.canvas-area {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
}
.box-container {
@@ -101,10 +101,10 @@ const renderedCount = computed(() => visibleItems.value.length)
<style scoped>
.demo-container {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1rem;
margin: 1rem 0;
padding: 0.75rem;
margin: 0.5rem 0;
}
.demo-header {
@@ -153,7 +153,7 @@ const renderedCount = computed(() => visibleItems.value.length)
}
.scroll-container {
overflow-y: auto;
position: relative;
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);