index.vue
2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<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>