style: 还原容器边距 (#7820)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2023-08-15 10:15:02 +08:00 committed by GitHub
parent 9bdd6116b7
commit a8dce61f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 13 deletions

View File

@ -33,7 +33,7 @@ export const defaultFlexColumnSchema = (title?: string) => {
// 默认的布局容器Schema
const defaultFlexContainerSchema = {
type: 'flex',
className: '',
className: 'p-1',
items: [
defaultFlexColumnSchema('第一列'),
defaultFlexColumnSchema('第二列'),

View File

@ -14,7 +14,7 @@ export default class Layout_fixed_top extends FlexPluginBase {
type: 'flex',
isSorptionContainer: true,
sorptionPosition: 'top',
className: '',
className: 'p-1',
items: [
defaultFlexColumnSchema(),
defaultFlexColumnSchema(),

View File

@ -1,22 +1,22 @@
.#{$ns}Wrapper,
.#{$ns}Container {
&--xs {
// padding: var(--gap-xs);
padding: var(--gap-xs);
}
&--sm {
// padding: var(--gap-sm);
padding: var(--gap-sm);
}
&--md {
// padding: var(--gap-md);
padding: var(--gap-md);
}
&--lg {
// padding: var(--gap-lg);
padding: var(--gap-lg);
}
&--xl {
// padding: var(--gap-xl);
padding: var(--gap-xl);
}
}

View File

@ -17,23 +17,23 @@
min-height: 1px;
max-width: 100%;
width: 100%;
// padding-left: math.div($Grid-gutterWidth, 2);
// padding-right: math.div($Grid-gutterWidth, 2);
padding-left: math.div($Grid-gutterWidth, 2);
padding-right: math.div($Grid-gutterWidth, 2);
}
.#{$ns}Grid-col--#{$class}Auto {
flex: 0 0 auto;
width: auto;
max-width: 100%;
// padding-left: math.div($Grid-gutterWidth, 2);
// padding-right: math.div($Grid-gutterWidth, 2);
padding-left: math.div($Grid-gutterWidth, 2);
padding-right: math.div($Grid-gutterWidth, 2);
}
}
// Generate Grid row
@mixin make-row($gutter: $Grid-gutterWidth) {
// margin-left: math.div($gutter, -2);
// margin-right: math.div($gutter, -2);
margin-left: math.div($gutter, -2);
margin-right: math.div($gutter, -2);
display: flex;
flex-wrap: wrap;
}