feat: 拆分组件 用Vue3重写Main.vue

This commit is contained in:
ZiuChen
2022-08-15 15:18:19 +08:00
parent 94161453b4
commit 6b63c7a4f7
7 changed files with 263 additions and 249 deletions

View File

@@ -0,0 +1,22 @@
@import '../variable.less';
.clip-search {
width: 40%;
margin-right: 30px;
input {
width: 100%;
/* normalize */
background: none;
outline: none;
border: none;
/* custom */
color: @text-color;
background-color: white;
height: fit-content;
font-size: 15px;
padding: 10px;
border-radius: 5px;
&::placeholder {
color: @text-color-lighter;
}
}
}

View File

@@ -0,0 +1,34 @@
@import '../variable.less';
.clip-switch {
z-index: 999;
position: fixed;
top: 0px;
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row;
width: 100%;
background-color: #eeeeee;
.active {
color: @primary-color;
background-color: white;
transition: all 0.15s ease-in-out;
}
.clip-switch-items {
display: flex;
justify-content: left;
align-items: center;
flex-direction: row;
.clip-switch-item {
padding: 10px 15px 10px 15px;
margin: 10px 5px 10px 10px;
cursor: pointer;
border-radius: 5px;
font-size: 14px;
&:hover {
background-color: rgb(222, 222, 222);
transition: all 0.15s ease-in-out;
}
}
}
}