home.vue 1.2 KB
<template>
    <div class="layout">
        <layout-header></layout-header>
        <div class="layout-content">
            <div class="layout-left">
                <layout-search></layout-search>
            </div>
            <div class="layout-right">
                <layout-list></layout-list>
            </div>
        </div>
        <BackTop></BackTop>
    </div>
</template>

<script>
export default {
    name: 'home'
};
</script>

<style lang="scss">
.layout {
    display: flex;
    flex-direction: column;
    background: #f5f7f9;
}
.layout-content {
    background: #fff;
    width: 90%;
    margin: 30px auto 20px;
    border-radius: 6px;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
    display: flex;
    flex-direction: row;
    flex: auto;
}
.layout-left {
    width: 380px;
    padding: 20px;
    padding-top: 10px;
    border-right: solid 1px #dddee1;
}
.layout-right {
    flex: 1;
    padding: 20px;
    padding-top: 10px;
    position: relative;

    & article:after {
        content: "";
        display: block;
        width: 1px;
        height: 100%;
        background: #dddee1;
        position: absolute;
        top: 0;
        bottom: 0;
        left: -1px;
        z-index: 1
    }
}
</style>