amis2/scss/layout/_hbox.scss

99 lines
1.8 KiB
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}Hbox {
display: table;
table-layout: fixed;
border-spacing: 0;
width: 100%;
height: 100%;
& > .#{$ns}Hbox-col {
2019-04-30 11:11:25 +08:00
display: table-cell;
vertical-align: top;
height: 100%;
float: none;
}
}
.#{$ns}FormHbox {
margin-left: -15px;
margin-right: -15px;
> .#{$ns}Hbox > .#{$ns}Hbox-col {
2019-04-30 11:11:25 +08:00
padding-left: 15px;
padding-right: 15px;
vertical-align: top;
> .#{$ns}Form-group {
2019-04-30 11:11:25 +08:00
margin-left: 0;
margin-right: 0;
}
> .#{$ns}Form-group:last-child {
2019-04-30 11:11:25 +08:00
margin-bottom: 0;
}
}
2019-04-30 11:11:25 +08:00
&.#{$ns}Hbox--xs {
margin-left: -5px;
margin-right: -5px;
> .#{$ns}Hbox > .#{$ns}Hbox-col {
2019-04-30 11:11:25 +08:00
padding-left: 5px;
padding-right: 5px;
}
}
2019-04-30 11:11:25 +08:00
&.#{$ns}Hbox--sm {
margin-left: -10px;
margin-right: -10px;
> .#{$ns}Hbox > .#{$ns}Hbox-col {
2019-04-30 11:11:25 +08:00
padding-left: 10px;
padding-right: 10px;
}
}
}
@include media-breakpoint-down(md) {
.#{$ns}Hbox--autoSm {
display: block;
& > .#{$ns}Hbox-col {
2019-04-30 11:11:25 +08:00
width: auto;
height: auto;
display: block;
2019-04-30 11:11:25 +08:00
&.show {
display: block !important;
}
}
2019-04-30 11:11:25 +08:00
& .#{$ns}Vbox {
height: auto;
}
2019-04-30 11:11:25 +08:00
& .cell-inner {
position: static !important;
}
}
}
@include media-breakpoint-down(sm) {
.#{$ns}Hbox--autoXs {
display: block;
& > .#{$ns}Hbox-col {
2019-04-30 11:11:25 +08:00
width: auto;
height: auto;
display: block;
}
2019-04-30 11:11:25 +08:00
& .#{$ns}Vbox {
height: auto;
}
2019-04-30 11:11:25 +08:00
& .cell-inner {
position: static !important;
}
}
}