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:
@@ -223,14 +223,14 @@ const setMode = (mode) => {
|
||||
<style scoped>
|
||||
.embedding-demo {
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
background-color: var(--vp-c-bg-soft);
|
||||
margin: 1rem 0;
|
||||
margin: 0.5rem 0;
|
||||
font-family: var(--vp-font-family-mono);
|
||||
}
|
||||
|
||||
.demo-controls {
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
border-bottom: 1px solid var(--vp-c-divider);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -264,7 +264,7 @@ button.active {
|
||||
}
|
||||
|
||||
.canvas-container {
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
background-color: var(--vp-c-bg);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@@ -348,7 +348,7 @@ const connectionCount = computed(() => {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: var(--vp-c-bg-alt);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 15px;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -438,7 +438,7 @@ const connectionCount = computed(() => {
|
||||
margin-top: 20px;
|
||||
background: var(--vp-c-bg-mute);
|
||||
padding: 15px;
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
font-size: 0.9em;
|
||||
line-height: 1.6;
|
||||
border-left: 4px solid var(--vp-c-brand);
|
||||
|
||||
@@ -217,7 +217,7 @@ const scrollToBottom = () => {
|
||||
|
||||
.messages {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -294,7 +294,7 @@ const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
||||
display: inline-flex;
|
||||
background: var(--vp-c-bg-mute);
|
||||
padding: 4px;
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
||||
width: 100%;
|
||||
background: var(--vp-c-bg);
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
padding: 16px;
|
||||
position: relative;
|
||||
}
|
||||
@@ -415,7 +415,7 @@ const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
||||
.dense-block {
|
||||
width: 80%;
|
||||
background: var(--vp-c-bg-mute);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
padding: 12px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
@@ -468,7 +468,7 @@ const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
||||
.router-node {
|
||||
background: var(--vp-c-bg-mute);
|
||||
border: 2px dashed var(--vp-c-text-3);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
margin-bottom: 12px;
|
||||
|
||||
@@ -224,10 +224,10 @@ onMounted(() => {
|
||||
<style scoped>
|
||||
.prediction-demo {
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
background-color: var(--vp-c-bg-soft);
|
||||
overflow: hidden;
|
||||
margin: 1rem 0;
|
||||
margin: 0.5rem 0;
|
||||
font-family: var(--vp-font-family-mono);
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ select {
|
||||
}
|
||||
|
||||
.prediction-panel {
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
|
||||
@@ -249,9 +249,9 @@ const getAttentionColor = (sourceIdx, targetIdx) => {
|
||||
<style scoped>
|
||||
.arch-demo {
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
background-color: var(--vp-c-bg-soft);
|
||||
margin: 1rem 0;
|
||||
margin: 0.5rem 0;
|
||||
font-family: var(--vp-font-family-mono);
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -323,7 +323,7 @@ const getAttentionColor = (sourceIdx, targetIdx) => {
|
||||
width: 100px;
|
||||
height: 80px;
|
||||
border: 2px solid var(--vp-c-text-2);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -381,7 +381,7 @@ const getAttentionColor = (sourceIdx, targetIdx) => {
|
||||
.attention-info {
|
||||
text-align: center;
|
||||
min-height: 3rem;
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
background-color: var(--vp-c-bg);
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
|
||||
@@ -181,7 +181,7 @@ const toggleThoughts = () => {
|
||||
.thinking-demo {
|
||||
padding: 20px;
|
||||
background: var(--vp-c-bg-soft);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
margin: 20px 0;
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
}
|
||||
@@ -243,7 +243,7 @@ const toggleThoughts = () => {
|
||||
padding: 10px 15px;
|
||||
background: var(--vp-c-brand-dimm);
|
||||
border: 2px solid var(--vp-c-brand);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
font-weight: bold;
|
||||
color: var(--vp-c-brand-dark);
|
||||
white-space: nowrap;
|
||||
|
||||
@@ -166,10 +166,10 @@ const tokens = computed(() => {
|
||||
<style scoped>
|
||||
.token-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;
|
||||
font-family: var(--vp-font-family-mono);
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ textarea:focus {
|
||||
background-color: var(--vp-c-bg);
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 6px;
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
min-height: 100px;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
@@ -198,9 +198,9 @@ const getHeatmapColor = (val) => {
|
||||
<style scoped>
|
||||
.matrix-demo {
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
background-color: var(--vp-c-bg-soft);
|
||||
margin: 1rem 0;
|
||||
margin: 0.5rem 0;
|
||||
font-family: var(--vp-font-family-mono);
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ const getHeatmapColor = (val) => {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
background-color: var(--vp-c-bg-alt);
|
||||
border-bottom: 1px solid var(--vp-c-divider);
|
||||
}
|
||||
|
||||
@@ -707,9 +707,9 @@ const alignmentState = ref('base')
|
||||
<style scoped>
|
||||
.ti-demo {
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
background-color: var(--vp-c-bg-soft);
|
||||
margin: 1rem 0;
|
||||
margin: 0.5rem 0;
|
||||
font-family: var(--vp-font-family-mono);
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -781,7 +781,7 @@ const alignmentState = ref('base')
|
||||
.result-box {
|
||||
background: var(--vp-c-bg);
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 1rem;
|
||||
min-height: 3rem;
|
||||
@@ -841,7 +841,7 @@ const alignmentState = ref('base')
|
||||
background: var(--vp-c-bg);
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 6px 6px 0 0;
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
@@ -887,12 +887,12 @@ const alignmentState = ref('base')
|
||||
flex: 1;
|
||||
background: #1e1e1e;
|
||||
color: #d4d4d4;
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
border-radius: 6px;
|
||||
font-family: 'Menlo', 'Monaco', monospace;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.4;
|
||||
overflow-y: auto;
|
||||
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
@@ -974,8 +974,8 @@ const alignmentState = ref('base')
|
||||
position: relative;
|
||||
background: var(--vp-c-bg-alt);
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
border-radius: 6px;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.stage-label {
|
||||
@@ -1224,7 +1224,7 @@ const alignmentState = ref('base')
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #1e1e1e;
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
@@ -1267,7 +1267,7 @@ const alignmentState = ref('base')
|
||||
.log-console {
|
||||
flex: 1;
|
||||
padding: 10px;
|
||||
overflow-y: auto;
|
||||
|
||||
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
||||
font-size: 0.75rem;
|
||||
color: #d4d4d4;
|
||||
@@ -1329,7 +1329,7 @@ const alignmentState = ref('base')
|
||||
background: var(--vp-c-brand);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
font-weight: bold;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
@@ -1374,7 +1374,7 @@ const alignmentState = ref('base')
|
||||
.scenario {
|
||||
background: var(--vp-c-bg);
|
||||
border: 1px solid var(--vp-c-divider);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
@@ -1401,7 +1401,7 @@ const alignmentState = ref('base')
|
||||
|
||||
.bubble {
|
||||
background: var(--vp-c-bg-alt);
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
border-radius: 0 12px 12px 12px;
|
||||
flex: 1;
|
||||
position: relative;
|
||||
|
||||
Reference in New Issue
Block a user