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
@@ -125,10 +125,10 @@ const reset = () => {
<style scoped>
.branch-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background-color: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.controls {
display: flex;
@@ -157,10 +157,10 @@ const reset = () => {
}
.graph {
background: var(--vp-c-bg);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
border: 1px solid var(--vp-c-divider);
margin: 1rem 0;
margin: 0.5rem 0;
}
.graph svg {
width: 100%;
@@ -171,7 +171,7 @@ const reset = () => {
gap: 2rem;
}
.info-box {
padding: 1rem;
padding: 0.75rem;
background: var(--vp-c-bg);
border-left: 4px solid var(--vp-c-brand);
border-radius: 4px;
@@ -292,17 +292,17 @@ const toggleFreeMode = () => {
<style scoped>
.command-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background-color: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.terminal {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
margin-bottom: 1rem;
font-family: var(--vp-font-family-mono);
}
@@ -395,7 +395,7 @@ const toggleFreeMode = () => {
}
.info-box {
padding: 1rem;
padding: 0.75rem;
background: var(--vp-c-bg);
border-left: 4px solid var(--vp-c-brand);
border-radius: 4px;
@@ -52,15 +52,15 @@ const resolve = (choice) => {
<style scoped>
.conflict-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background-color: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.editor {
background: #1f2937;
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
font-family: monospace;
margin-bottom: 1rem;
}
@@ -105,7 +105,7 @@ const resolve = (choice) => {
color: var(--vp-c-bg);
}
.info-box {
padding: 1rem;
padding: 0.75rem;
background: var(--vp-c-bg);
border-left: 4px solid var(--vp-c-brand);
border-radius: 4px;
@@ -98,10 +98,10 @@ const reset = () => {
<style scoped>
.remote-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background-color: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.repos {
display: grid;
@@ -112,8 +112,8 @@ const reset = () => {
}
.repo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
background: var(--vp-c-bg);
}
.header {
@@ -172,7 +172,7 @@ const reset = () => {
.empty {
color: var(--vp-c-text-3);
text-align: center;
padding: 1rem;
padding: 0.75rem;
}
.controls {
display: flex;
@@ -199,7 +199,7 @@ const reset = () => {
border-color: var(--vp-c-divider);
}
.info-box {
padding: 1rem;
padding: 0.75rem;
background: var(--vp-c-bg);
border-left: 4px solid var(--vp-c-brand);
border-radius: 4px;
@@ -294,10 +294,10 @@ const copy = async (text) => {
<style scoped>
.git-scenarios-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background: var(--vp-c-bg-soft);
padding: 1.25rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.header {
@@ -404,8 +404,8 @@ const copy = async (text) => {
.step-card {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
}
.step-top {
@@ -494,8 +494,8 @@ const copy = async (text) => {
.tips {
margin-top: 1rem;
padding: 1rem;
border-radius: 8px;
padding: 0.75rem;
border-radius: 6px;
border: 1px solid var(--vp-c-divider);
background: var(--vp-c-bg);
}
@@ -68,10 +68,10 @@ const reset = () => {
<style scoped>
.stash-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background-color: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.areas {
display: grid;
@@ -81,8 +81,8 @@ const reset = () => {
}
.area {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
padding: 1rem;
border-radius: 6px;
padding: 0.75rem;
background: var(--vp-c-bg);
}
.header {
@@ -117,7 +117,7 @@ const reset = () => {
color: var(--vp-c-text-3);
text-align: center;
font-style: italic;
padding: 1rem;
padding: 0.75rem;
}
.controls {
display: flex;
@@ -144,7 +144,7 @@ const reset = () => {
border-color: var(--vp-c-divider);
}
.info-box {
padding: 1rem;
padding: 0.75rem;
background: var(--vp-c-bg);
border-left: 4px solid var(--vp-c-brand);
border-radius: 4px;
@@ -65,10 +65,10 @@ const savedPercent = computed(() =>
<style scoped>
.storage-demo {
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
background-color: var(--vp-c-bg-soft);
padding: 1.5rem;
margin: 1rem 0;
margin: 0.5rem 0;
}
.mode-selector {
@@ -140,7 +140,7 @@ const savedPercent = computed(() =>
}
.info-box {
padding: 1rem;
padding: 0.75rem;
background: var(--vp-c-bg);
border-left: 4px solid var(--vp-c-brand);
border-radius: 4px;
@@ -251,13 +251,13 @@ const commitFiles = () => {
<style scoped>
.three-areas-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;
font-family: var(--vp-font-family-mono);
max-height: 600px;
overflow-y: auto;
}
.demo-header {
@@ -299,7 +299,7 @@ const commitFiles = () => {
.zone {
flex: 1;
background: var(--vp-c-bg);
border-radius: 8px;
border-radius: 6px;
padding: 12px;
border: 1px solid var(--vp-c-divider);
display: flex;
@@ -356,7 +356,7 @@ const commitFiles = () => {
padding: 8px;
background: var(--vp-c-bg-soft);
background-size: 10px 10px;
border-radius: 8px;
border-radius: 6px;
border: 1px dashed var(--vp-c-divider);
}
@@ -449,7 +449,7 @@ const commitFiles = () => {
align-content: flex-start;
padding: 8px;
gap: 4px;
overflow-y: auto;
}
.file-card.mini {
@@ -606,7 +606,7 @@ const commitFiles = () => {
.block {
background: var(--vp-c-bg);
border: 1px solid var(--vp-c-divider);
border-radius: 8px;
border-radius: 6px;
padding: 0.75rem;
min-width: 260px;
}
@@ -230,12 +230,12 @@ const reset = () => {
<style scoped>
.git-workflow-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;
max-height: 550px;
overflow-y: auto;
}
.demo-header {