index-view-layout-top.scss 2.3 KB
.index-view-layout--top {
    font-size: var(--app-font-size);
    line-height: var(--app-line-height);
    color: var(--app-color-black);

    .index-view-header {
        height: 64px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        overflow-x: auto;
        background-color: var(--app-color-black);
        color: var(--app-color-white);

        .index-view-header__left {
            font-size: 21px;
            font-weight: 700;
            margin-left: 50px;

            .app-caption {
                color: var(--app-color-white);
            }

            .app-icon {
                width: 37px;
                height: 37px;
                margin-right: 6px;
            }
        }

        .index-view-header__right {
            display: flex;
            align-items: center;
            margin-right: 38px;
        }
    }

    .index-view-content {
        height: calc(100% - 64px);
        overflow: auto;
        padding: 0 5%;
        background-color: var(--ey-color-gray-250);
        display: flex;
        flex-direction: column;

        >.view-container,>.app-view-layout {
            flex-grow: 1;
            overflow: unset;
            height: auto;

            +.copyright-notice {
                position: relative;
            }
        }
    }

    .copyright-notice {
        height: 100px;
        width: 100%;
        text-align: center;
        flex-shrink: 0;
        position: absolute;
        bottom: 0px;

        .notice {
            padding-top: 40px;
            color: var(--app-color-gray-200);
        }
    }
}

.index-view-layout--top {
  .index-view-content{
    // 编辑视图默认使用
    .edit-view-layout.view-default-usage{
      position: inherit;
      .view-header{
        position: absolute;
        z-index: 100;
        top: 106px;
        width: calc(90% - 4px);
        background-color: var(--ey-color-white);
        border-radius: 6px 6px 0 0;
      }
    }
    // 表格视图默认使用
    .grid-view-layout.view-default-usage{
      // 为什么写在这边,因为只有上布局会有copyright,这里算高度算上
      height: calc(100% - 130px);
      display: flex;
      flex-direction: column;
      .view-content{
        flex: 1;
        overflow-y: auto;
      }
    }

  }
}