|
| 1 | +/* |
| 2 | + * |
| 3 | + * @title: Compatibility fixes for MWS integration |
| 4 | + * |
| 5 | + */ |
| 6 | + |
| 7 | +main .mws-GridColumn { |
| 8 | + box-sizing: border-box; |
| 9 | + clear: both; |
| 10 | + padding-left: $grid-gutter-width / 2; |
| 11 | + padding-right: $grid-gutter-width / 2; |
| 12 | + |
| 13 | + &:has(.container) { |
| 14 | + padding-left: 0; |
| 15 | + padding-right: 0; |
| 16 | + } |
| 17 | +} |
| 18 | + |
| 19 | +main .container.responsivegrid { |
| 20 | + padding-left: 0; |
| 21 | + padding-right: 0; |
| 22 | +} |
| 23 | + |
| 24 | +/****** |
| 25 | + TODO: Evaluate if the following styles are needed for publish instance |
| 26 | +******/ |
| 27 | + |
| 28 | +/* |
| 29 | +.main-container.container-base.container.responsivegrid { |
| 30 | + margin: 0 !important; |
| 31 | + padding: 0 !important; |
| 32 | +} |
| 33 | +
|
| 34 | +.root { |
| 35 | + width: 100%; |
| 36 | +} |
| 37 | +
|
| 38 | +div:not(.wrap-container).wcontainer.container.responsivegrid { |
| 39 | + &:not([class*="aem-GridColumn--offset--xs-"], |
| 40 | + [class*="aem-GridColumn--offset--sm-"], |
| 41 | + [class*="aem-GridColumn--offset--md-"], |
| 42 | + [class*="aem-GridColumn--offset--lg-"]) { |
| 43 | + margin: 0; |
| 44 | + padding: 0; |
| 45 | + width: 100%; |
| 46 | + } |
| 47 | +} |
| 48 | +
|
| 49 | +.wcontainer.container.responsivegrid { |
| 50 | + .aem-GridColumn:not(.wrap-container) { |
| 51 | + &--xs--none, |
| 52 | + &--offset--xs--0, |
| 53 | + &--xs--12, |
| 54 | + .cq-Editable-dom .cq-Editable-dom--container { |
| 55 | + padding: 0 !important; |
| 56 | + } |
| 57 | +
|
| 58 | + // Generalize for any aem-GridColumn--default--xx, except when .wrap-container is present |
| 59 | + &[class*="aem-GridColumn--default--"]:not(.wrap-container) { |
| 60 | + padding: 0 !important; |
| 61 | + } |
| 62 | + } |
| 63 | +} |
| 64 | +
|
| 65 | +.wrap-container.container.aem-GridColumn--default--12 { |
| 66 | + float: none !important; |
| 67 | +} |
| 68 | +
|
| 69 | +.wrap-container.container { |
| 70 | + margin: 0 auto; |
| 71 | + padding: 0 15px; |
| 72 | +} |
| 73 | +
|
| 74 | +.wrap-container.container:before, |
| 75 | +.wrap-container.container:after, |
| 76 | +.wrap-container .container-fluid:before, |
| 77 | +.wrap-container .container-fluid:after { |
| 78 | + content: " "; |
| 79 | + display: table; |
| 80 | +} |
| 81 | +
|
| 82 | +.wrap-container.container:after, |
| 83 | +.wrap-container .container-fluid:after { |
| 84 | + clear: both; |
| 85 | +} |
| 86 | +
|
| 87 | +@media (min-width: 768px) { |
| 88 | + .wrap-container.container { |
| 89 | + width: 750px !important; |
| 90 | + } |
| 91 | +} |
| 92 | +
|
| 93 | +@media (min-width: 992px) { |
| 94 | + .wrap-container.container { |
| 95 | + width: 970px !important; |
| 96 | + } |
| 97 | +} |
| 98 | +
|
| 99 | +@media (min-width: 1200px) { |
| 100 | + .wrap-container.container { |
| 101 | + width: 1170px !important; |
| 102 | + } |
| 103 | +} |
| 104 | +
|
| 105 | +.wrap-container .container-fluid { |
| 106 | + margin: 0 auto; |
| 107 | + padding: 0 15px; |
| 108 | +} |
| 109 | +
|
| 110 | +.xf-content-height { |
| 111 | + margin: 0 !important; |
| 112 | +} |
| 113 | +*/ |
0 commit comments