mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
style: 还原容器边距 (#7820)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
9bdd6116b7
commit
a8dce61f76
@ -33,7 +33,7 @@ export const defaultFlexColumnSchema = (title?: string) => {
|
||||
// 默认的布局容器Schema
|
||||
const defaultFlexContainerSchema = {
|
||||
type: 'flex',
|
||||
className: '',
|
||||
className: 'p-1',
|
||||
items: [
|
||||
defaultFlexColumnSchema('第一列'),
|
||||
defaultFlexColumnSchema('第二列'),
|
||||
|
@ -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(),
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user