Skip to content

Commit

Permalink
feat(style): modify style panel widget margin && style
Browse files Browse the repository at this point in the history
  • Loading branch information
wenmine committed Sep 25, 2024
1 parent aec49fc commit ebac8f1
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 51 deletions.
8 changes: 5 additions & 3 deletions packages/common/component/MetaCodeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,14 @@ export default {
<style lang="less" scoped>
.editor-wrap {
width: 100%;
display: flex;
text-align: center;
.edit-btn {
color: var(--ti-lowcode-meta-codeEditor-color);
border-color: var(--ti-lowcode-meta-codeEditor-border-color);
display: flex;
align-items: center;
flex: 1;
text-align: center;
margin-right: 0;
&:hover {
color: var(--ti-lowcode-meta-codeEditor-hover-color);
border-color: var(--ti-lowcode-meta-codeEditor-border-hover-color);
Expand Down
2 changes: 1 addition & 1 deletion packages/layout/src/DesignSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default {
}
:deep(.tiny-collapse-item__content) {
padding: 8px 8px 8px 12px;
padding: 0 8px 12px 12px; // 这里的bottom为4px + 内部行元素与底部的距离为8px = 12px
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
padding: 4px 0 12px;
position: relative;
.background-image-icon {
font-size: 16px;
Expand Down
32 changes: 9 additions & 23 deletions packages/settings/styles/src/components/border/BorderGroup.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="['radius-row', { 'show-border': isRaduisSelected(RADIUS_SETTING.Single) }]">
<div class="radius-row item-row">
<div
:class="['radius-label', { 'is-setting': isRadiusSetting() }]"
@click="openSetting(BORDER_RADIUS_PROPERTY.BorderRadius, $event)"
Expand Down Expand Up @@ -95,7 +95,7 @@
</div>
</div>

<div class="border-label">
<div class="border-label item-row">
<span
:class="{ 'is-setting': isBorderSetting(), 'set-border-style': true }"
@click="openSetting(BORDER_PROPERTY.Border, $event)"
Expand Down Expand Up @@ -145,7 +145,7 @@
</div>
<div class="border-input">
<div class="border-input-right">
<div class="border-row">
<div class="border-row item-row">
<div class="border-label">
<span
:class="{ 'is-setting': isBorderColorSetting() }"
Expand Down Expand Up @@ -215,7 +215,6 @@
</tiny-tooltip>
</div>
</div>
<div class="border-row"></div>
</div>
</div>

Expand Down Expand Up @@ -560,7 +559,6 @@ export default {
<style lang="less" scoped>
.border-row {
display: flex;
.border-col {
flex: 1;
display: flex;
Expand All @@ -579,22 +577,13 @@ export default {
color: var(--ti-lowcode-toolbar-breadcrumb-color);
}
}
.item-row {
margin-bottom: 8px;
}
.radius-row {
display: flex;
align-items: center;
padding-bottom: 8px;
position: relative;
&.show-border::after {
content: '';
height: 1px;
width: calc(100% + 32px);
background: var(--ti-lowcode-toolbar-border-color);
position: absolute;
bottom: 0;
left: -16px;
}
svg {
color: var(--ti-lowcode-input-icon-color);
font-size: 16px;
Expand Down Expand Up @@ -622,6 +611,7 @@ export default {
.radius-content-svg {
&:hover,
&.selected {
color: var(--ti-lowcode-property-active-color);
svg {
color: var(--ti-lowcode-property-active-color);
}
Expand Down Expand Up @@ -694,7 +684,6 @@ export default {
.border-label {
width: 100%;
margin: 10px 0 5px 0;
color: var(--ti-lowcode-component-setting-panel-label-color);
.set-border-style {
line-height: 24px;
Expand All @@ -717,16 +706,14 @@ export default {
}
}
.row-item {
padding: 5px;
border-radius: 3px;
&:hover {
svg {
color: var(--ti-lowcode-toolbar-icon-color);
}
}
&.selected {
// background-color: var(--ti-lowcode-tabs-bg);
color: var(--ti-lowcode-property-active-color);
svg {
color: var(--ti-lowcode-property-active-color);
}
Expand All @@ -747,8 +734,6 @@ export default {
.border-row {
display: flex;
align-items: center;
margin: 5px 0;
.border-label {
flex: 0 0 40px;
}
Expand All @@ -764,6 +749,7 @@ export default {
justify-content: center;
&.selected,
&:hover {
color: var(--ti-lowcode-property-active-color);
svg {
color: var(--ti-lowcode-property-active-color);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ const handleDeleteCurSelector = () => {
::-webkit-scrollbar {
display: block;
}
padding: 12px 8px 11px 12px;
padding: 12px 8px 12px 12px;
}
.title {
margin: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,10 @@ export default {
gap: 8px;
grid-template-columns: 44px auto;
align-items: center;
padding: 8px 0;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
.opacity-label,
.outline-label,
.cursor-label {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export default {
<style lang="less" scoped>
.background-image {
width: 100%;
.icon {
font-size: 20px;
color: var(--ti-lowcode-toolbar-breadcrumb-color);
Expand Down
17 changes: 12 additions & 5 deletions packages/settings/styles/src/components/size/SizeGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,14 @@ export default {
<style lang="less" scoped>
.size-row {
display: flex;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
.size-col {
flex: 1;
display: flex;
align-items: center;
padding: 5px 0;
&:not(:last-child) {
margin-right: 8px;
}
Expand All @@ -471,7 +472,10 @@ export default {
.overflow-row {
display: flex;
align-items: center;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
.overflow-label {
flex: 0 0 54px;
padding: 0 2px;
Expand Down Expand Up @@ -554,7 +558,10 @@ export default {
.fit-row {
display: flex;
align-items: center;
padding: 5px 0;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
.fit-label {
flex: 0 0 54px;
padding: 0 2px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</div>
</div>

<div class="typography-row split line">
<div class="typography-row split">
<div class="left typography-col">
<label
:class="['typography-label', { 'is-setting': getSettingFlag(TYPO_PROPERTY.LineHeight) }]"
Expand Down Expand Up @@ -474,19 +474,8 @@ export default {
grid-template-columns: 15px 1fr;
align-items: center;
margin-bottom: 8px;
&.line {
position: relative;
padding-bottom: 10px;
&::after {
content: '';
height: 1px;
width: calc(100% + 32px);
background: var(--ti-lowcode-toolbar-border-color);
position: absolute;
bottom: 0;
left: -16px;
}
&:last-child {
margin-bottom: 0;
}
&.split {
Expand Down

0 comments on commit ebac8f1

Please sign in to comment.