layout.less 1.36 KB
/*
 * ADOBE CONFIDENTIAL
 *
 * Copyright 2015 Adobe Systems Incorporated
 * All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and may be covered by U.S. and Foreign Patents,
 * patents in process, and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 */

@import (reference) "utilities.less";

.aem-Layout {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  overflow: hidden;

  padding: 0;
  margin: 0;

  clear: both;
}

.aem-Layout > .sequence {
  padding: 0;
}

.aem-Layout > .aem-Grid,
.aem-Layout > .sequence > .cq-Sequence {
  width: 100%;
  height: 100%;
}

/* in Editing mode */

.aem-AuthorLayer-Edit.aem-Layout,
.aem-AuthorLayer-Edit .aem-Layout {
  position: static;
  overflow: auto;

  .new {
    clear: both;
  }

  .cq-Editable-dom--container {
    padding: 0 !important;
  }

}

/* in Preview mode */

.aem-AuthorLayer-Preview.aem-Layout,
.aem-AuthorLayer-Preview .aem-Layout {

  .cq-Editable-dom--container {
    padding: 0 !important;
  }
}