mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-14 00:41:26 +08:00
100 lines
1.6 KiB
SCSS
100 lines
1.6 KiB
SCSS
.#{$ns}Hbox {
|
|
display: table;
|
|
table-layout: fixed;
|
|
border-spacing: 0;
|
|
width: 100%;
|
|
// height: 100%;
|
|
|
|
&-col {
|
|
display: table-cell;
|
|
vertical-align: top;
|
|
height: 100%;
|
|
width: 100%;
|
|
float: none;
|
|
}
|
|
|
|
&.#{$ns}Hbox--xs {
|
|
margin-left: -5px;
|
|
margin-right: -5px;
|
|
|
|
> .#{$ns}Hbox-col {
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
}
|
|
}
|
|
|
|
&.#{$ns}Hbox--sm {
|
|
margin-left: -10px;
|
|
margin-right: -10px;
|
|
|
|
> .#{$ns}Hbox-col {
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// .#{$ns}FormHbox {
|
|
// margin-left: calc(var(--gap-md) * -1);
|
|
// margin-right: calc(var(--gap-md) * -1);
|
|
|
|
// > .#{$ns}Hbox > .#{$ns}Hbox-col {
|
|
// padding-left: var(--gap-md);
|
|
// padding-right: var(--gap-md);
|
|
// vertical-align: top;
|
|
|
|
// > .#{$ns}Form-group {
|
|
// margin-left: 0;
|
|
// margin-right: 0;
|
|
// }
|
|
|
|
// > .#{$ns}Form-group:last-child {
|
|
// margin-bottom: 0;
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
@include media-breakpoint-down(md) {
|
|
.#{$ns}Hbox--autoSm {
|
|
display: block;
|
|
|
|
& > .#{$ns}Hbox-col {
|
|
width: auto;
|
|
height: auto;
|
|
display: block;
|
|
|
|
&.show {
|
|
display: block !important;
|
|
}
|
|
}
|
|
|
|
& .#{$ns}Vbox {
|
|
height: auto;
|
|
}
|
|
|
|
& .cell-inner {
|
|
position: static !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include media-breakpoint-down(sm) {
|
|
.#{$ns}Hbox--autoXs {
|
|
display: block;
|
|
|
|
& > .#{$ns}Hbox-col {
|
|
width: auto;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
& .#{$ns}Vbox {
|
|
height: auto;
|
|
}
|
|
|
|
& .cell-inner {
|
|
position: static !important;
|
|
}
|
|
}
|
|
}
|