You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Styles/components/_grid.scss

618 lines
10 KiB

@import '../abstracts/variables';
.grid {
width: 100%;
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
}
.grid-item {
margin: 0;
box-sizing: border-box;
}
.grid-spacing-xs-1 {
width: calc(100% + 8px);
margin: -4px;
}
.grid-spacing-xs-1 > .grid-item {
padding: 4px;
}
.grid-spacing-xs-2 {
width: calc(100% + 16px);
margin: -8px;
}
.grid-spacing-xs-2 > .grid-item {
padding: 8px;
}
.grid-spacing-xs-3 {
width: calc(100% + 24px);
margin: -12px;
}
.grid-spacing-xs-3 > .grid-item {
padding: 12px;
}
.grid-spacing-xs-4 {
width: calc(100% + 32px);
margin: -16px;
}
.grid-spacing-xs-4 > .grid-item {
padding: 16px;
}
.grid-spacing-xs-5 {
width: calc(100% + 40px);
margin: -20px;
}
.grid-spacing-xs-5 > .grid-item {
padding: 20px;
}
.grid-spacing-xs-6 {
width: calc(100% + 48px);
margin: -24px;
}
.grid-spacing-xs-6 > .grid-item {
padding: 24px;
}
.grid-spacing-xs-7 {
width: calc(100% + 56px);
margin: -28px;
}
.grid-spacing-xs-7 > .grid-item {
padding: 28px;
}
.grid-spacing-xs-8 {
width: calc(100% + 64px);
margin: -32px;
}
.grid-spacing-xs-8 > .grid-item {
padding: 32px;
}
.grid-spacing-xs-9 {
width: calc(100% + 72px);
margin: -36px;
}
.grid-spacing-xs-9 > .grid-item {
padding: 36px;
}
.grid-spacing-xs-10 {
width: calc(100% + 80px);
margin: -40px;
}
.grid-spacing-xs-10 > .grid-item {
padding: 40px;
}
.grid-item-xs-auto {
flex-grow: 0;
max-width: none;
flex-basis: auto;
}
.grid-item-xs-true {
flex-grow: 1;
max-width: 100%;
flex-basis: 0;
}
.grid-item-xs-1 {
flex-grow: 0;
max-width: 8.333333%;
flex-basis: 8.333333%;
}
.grid-item-xs-2 {
flex-grow: 0;
max-width: 16.666667%;
flex-basis: 16.666667%;
}
.grid-item-xs-3 {
flex-grow: 0;
max-width: 25%;
flex-basis: 25%;
}
.grid-item-xs-4 {
flex-grow: 0;
max-width: 33.333333%;
flex-basis: 33.333333%;
}
.grid-item-xs-5 {
flex-grow: 0;
max-width: 41.666667%;
flex-basis: 41.666667%;
}
.grid-item-xs-6 {
flex-grow: 0;
max-width: 50%;
flex-basis: 50%;
}
.grid-item-xs-7 {
flex-grow: 0;
max-width: 58.333333%;
flex-basis: 58.333333%;
}
.grid-item-xs-8 {
flex-grow: 0;
max-width: 66.666667%;
flex-basis: 66.666667%;
}
.grid-item-xs-9 {
flex-grow: 0;
max-width: 75%;
flex-basis: 75%;
}
.grid-item-xs-10 {
flex-grow: 0;
max-width: 83.333333%;
flex-basis: 83.333333%;
}
.grid-item-xs-11 {
flex-grow: 0;
max-width: 91.666667%;
flex-basis: 91.666667%;
}
.grid-item-xs-12 {
flex-grow: 0;
max-width: 100%;
flex-basis: 100%;
}
@media (min-width:$breakpoint-sm) {
.grid-item-sm-auto {
flex-grow: 0;
max-width: none;
flex-basis: auto;
}
.grid-item-sm-true {
flex-grow: 1;
max-width: 100%;
flex-basis: 0;
}
.grid-item-sm-1 {
flex-grow: 0;
max-width: 8.333333%;
flex-basis: 8.333333%;
}
.grid-item-sm-2 {
flex-grow: 0;
max-width: 16.666667%;
flex-basis: 16.666667%;
}
.grid-item-sm-3 {
flex-grow: 0;
max-width: 25%;
flex-basis: 25%;
}
.grid-item-sm-4 {
flex-grow: 0;
max-width: 33.333333%;
flex-basis: 33.333333%;
}
.grid-item-sm-5 {
flex-grow: 0;
max-width: 41.666667%;
flex-basis: 41.666667%;
}
.grid-item-sm-6 {
flex-grow: 0;
max-width: 50%;
flex-basis: 50%;
}
.grid-item-sm-7 {
flex-grow: 0;
max-width: 58.333333%;
flex-basis: 58.333333%;
}
.grid-item-sm-8 {
flex-grow: 0;
max-width: 66.666667%;
flex-basis: 66.666667%;
}
.grid-item-sm-9 {
flex-grow: 0;
max-width: 75%;
flex-basis: 75%;
}
.grid-item-sm-10 {
flex-grow: 0;
max-width: 83.333333%;
flex-basis: 83.333333%;
}
.grid-item-sm-11 {
flex-grow: 0;
max-width: 91.666667%;
flex-basis: 91.666667%;
}
.grid-item-sm-12 {
flex-grow: 0;
max-width: 100%;
flex-basis: 100%;
}
}
@media (min-width:$breakpoint-md) {
.grid-item-md-auto {
flex-grow: 0;
max-width: none;
flex-basis: auto;
}
.grid-item-md-true {
flex-grow: 1;
max-width: 100%;
flex-basis: 0;
}
.grid-item-md-1 {
flex-grow: 0;
max-width: 8.333333%;
flex-basis: 8.333333%;
}
.grid-item-md-2 {
flex-grow: 0;
max-width: 16.666667%;
flex-basis: 16.666667%;
}
.grid-item-md-3 {
flex-grow: 0;
max-width: 25%;
flex-basis: 25%;
}
.grid-item-md-4 {
flex-grow: 0;
max-width: 33.333333%;
flex-basis: 33.333333%;
}
.grid-item-md-5 {
flex-grow: 0;
max-width: 41.666667%;
flex-basis: 41.666667%;
}
.grid-item-md-6 {
flex-grow: 0;
max-width: 50%;
flex-basis: 50%;
}
.grid-item-md-7 {
flex-grow: 0;
max-width: 58.333333%;
flex-basis: 58.333333%;
}
.grid-item-md-8 {
flex-grow: 0;
max-width: 66.666667%;
flex-basis: 66.666667%;
}
.grid-item-md-9 {
flex-grow: 0;
max-width: 75%;
flex-basis: 75%;
}
.grid-item-md-10 {
flex-grow: 0;
max-width: 83.333333%;
flex-basis: 83.333333%;
}
.grid-item-md-11 {
flex-grow: 0;
max-width: 91.666667%;
flex-basis: 91.666667%;
}
.grid-item-md-12 {
flex-grow: 0;
max-width: 100%;
flex-basis: 100%;
}
}
@media (min-width:$breakpoint-lg) {
.grid-item-lg-auto {
flex-grow: 0;
max-width: none;
flex-basis: auto;
}
.grid-item-lg-true {
flex-grow: 1;
max-width: 100%;
flex-basis: 0;
}
.grid-item-lg-1 {
flex-grow: 0;
max-width: 8.333333%;
flex-basis: 8.333333%;
}
.grid-item-lg-2 {
flex-grow: 0;
max-width: 16.666667%;
flex-basis: 16.666667%;
}
.grid-item-lg-3 {
flex-grow: 0;
max-width: 25%;
flex-basis: 25%;
}
.grid-item-lg-4 {
flex-grow: 0;
max-width: 33.333333%;
flex-basis: 33.333333%;
}
.grid-item-lg-5 {
flex-grow: 0;
max-width: 41.666667%;
flex-basis: 41.666667%;
}
.grid-item-lg-6 {
flex-grow: 0;
max-width: 50%;
flex-basis: 50%;
}
.grid-item-lg-7 {
flex-grow: 0;
max-width: 58.333333%;
flex-basis: 58.333333%;
}
.grid-item-lg-8 {
flex-grow: 0;
max-width: 66.666667%;
flex-basis: 66.666667%;
}
.grid-item-lg-9 {
flex-grow: 0;
max-width: 75%;
flex-basis: 75%;
}
.grid-item-lg-10 {
flex-grow: 0;
max-width: 83.333333%;
flex-basis: 83.333333%;
}
.grid-item-lg-11 {
flex-grow: 0;
max-width: 91.666667%;
flex-basis: 91.666667%;
}
.grid-item-lg-12 {
flex-grow: 0;
max-width: 100%;
flex-basis: 100%;
}
}
@media (min-width:$breakpoint-xl) {
.grid-item-xl-auto {
flex-grow: 0;
max-width: none;
flex-basis: auto;
}
.grid-item-xl-true {
flex-grow: 1;
max-width: 100%;
flex-basis: 0;
}
.grid-item-xl-1 {
flex-grow: 0;
max-width: 8.333333%;
flex-basis: 8.333333%;
}
.grid-item-xl-2 {
flex-grow: 0;
max-width: 16.666667%;
flex-basis: 16.666667%;
}
.grid-item-xl-3 {
flex-grow: 0;
max-width: 25%;
flex-basis: 25%;
}
.grid-item-xl-4 {
flex-grow: 0;
max-width: 33.333333%;
flex-basis: 33.333333%;
}
.grid-item-xl-5 {
flex-grow: 0;
max-width: 41.666667%;
flex-basis: 41.666667%;
}
.grid-item-xl-6 {
flex-grow: 0;
max-width: 50%;
flex-basis: 50%;
}
.grid-item-xl-7 {
flex-grow: 0;
max-width: 58.333333%;
flex-basis: 58.333333%;
}
.grid-item-xl-8 {
flex-grow: 0;
max-width: 66.666667%;
flex-basis: 66.666667%;
}
.grid-item-xl-9 {
flex-grow: 0;
max-width: 75%;
flex-basis: 75%;
}
.grid-item-xl-10 {
flex-grow: 0;
max-width: 83.333333%;
flex-basis: 83.333333%;
}
.grid-item-xl-11 {
flex-grow: 0;
max-width: 91.666667%;
flex-basis: 91.666667%;
}
.grid-item-xl-12 {
flex-grow: 0;
max-width: 100%;
flex-basis: 100%;
}
}
@media (min-width:$breakpoint-xxl) {
.grid-item-xxl-auto {
flex-grow: 0;
max-width: none;
flex-basis: auto;
}
.grid-item-xxl-true {
flex-grow: 1;
max-width: 100%;
flex-basis: 0;
}
.grid-item-xxl-1 {
flex-grow: 0;
max-width: 8.333333%;
flex-basis: 8.333333%;
}
.grid-item-xxl-2 {
flex-grow: 0;
max-width: 16.666667%;
flex-basis: 16.666667%;
}
.grid-item-xxl-3 {
flex-grow: 0;
max-width: 25%;
flex-basis: 25%;
}
.grid-item-xxl-4 {
flex-grow: 0;
max-width: 33.333333%;
flex-basis: 33.333333%;
}
.grid-item-xxl-5 {
flex-grow: 0;
max-width: 41.666667%;
flex-basis: 41.666667%;
}
.grid-item-xxl-6 {
flex-grow: 0;
max-width: 50%;
flex-basis: 50%;
}
.grid-item-xxl-7 {
flex-grow: 0;
max-width: 58.333333%;
flex-basis: 58.333333%;
}
.grid-item-xxl-8 {
flex-grow: 0;
max-width: 66.666667%;
flex-basis: 66.666667%;
}
.grid-item-xxl-9 {
flex-grow: 0;
max-width: 75%;
flex-basis: 75%;
}
.grid-item-xxl-10 {
flex-grow: 0;
max-width: 83.333333%;
flex-basis: 83.333333%;
}
.grid-item-xxl-11 {
flex-grow: 0;
max-width: 91.666667%;
flex-basis: 91.666667%;
}
.grid-item-xxl-12 {
flex-grow: 0;
max-width: 100%;
flex-basis: 100%;
}
}