index.vue 2.08 KB
<template>
    <section class="header">
        <div class="header-tools">
            <div class="logo"></div>
            <div class="header-content">
                <HeaderTools />
            </div>
            <div class="header-layout">
                <div style="width: calc(100vw - 193px - 88px - 300px)" />
            </div>
        </div>
    </section>
</template>
<script setup>
import HeaderTools from './header-tools.vue';
</script>
<style lang="less" scoped>
.header {
    position: relative;
    z-index: 300;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    height: 44px;
    -webkit-box-align: center;
    align-items: center;
    box-shadow: @color-split-line 0px 1px 0.5px 0px;
    background-color: rgb(255, 255, 255);
    color: rgb(51, 51, 51);
    margin-bottom: 1px;
    top: 0px;
    left: 0px;
    right: 0px;
    .user-info {
        width: 35%;
        display: flex;
        -webkit-box-pack: end;
        justify-content: flex-end;
        margin-right: 20px;
    }
    .header-tools {
        height: 100%;
        display: flex;
        -webkit-box-pack: start;
        justify-content: flex-start;
        -webkit-box-align: center;
        align-items: center;
        .logo {
            min-width: 193px;
            & img {
                display: flex;
                flex-direction: row;
                gap: 8px;
                -webkit-box-align: center;
                align-items: center;
                margin-left: 20px;
                cursor: pointer;
            }
        }
        .header-content,
        .header-machine {
            display: flex;
            margin-left: 1px;
            gap: 4px;
            height: 100%;
            border-color: @color-split-line @color-split-line @color-split-line @color-split-line;
            border-style: solid solid solid solid;
            border-width: 0px 0px 0px 1px;
            width: 350px;
        }
        .header-machine {
            width: 400px;
        }
        .header-layout {
            width: calc(100vw - 350px - 357px - 193px);
        }
    }
}
</style>