提交 844d8a0e 编写于 作者: N nenyah

fix(search-bar): update style

上级 a9e7ee7b
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -3,20 +3,21 @@
* @Author: Steven
* @Date: 2020-09-08 09:23:10
* @LastEditors: Steven
* @LastEditTime: 2020-09-10 09:10:02
* @LastEditTime: 2020-09-11 15:36:20
-->
<template>
<view class="flex bg-white opacity-25 p-2 my-2">
<view
class="flex w-full py-2 border-b-2 border-r-0 border-l-0 border-t-0 border-solid border-gray-200 "
>
<input
class="px-4 block w-full"
type="text"
placeholder="搜索编号/参与项目"
placeholder-class="text-gray-900"
/>
<view class="fa fa-search text-orange-500"></view>
<view class="flex search-box border-img my-2">
<view class="w-full" style="padding:0;">
<view class="input-group flex">
<input
type="text"
class="keyword form-control pl-2"
placeholder="搜索编号、参与项目"
/>
<view class="flex items-center" style="background:#3945ad;">
<view class="fa fa-search text-orange-500 pr-2"></view>
</view>
</view>
</view>
</view>
</template>
......@@ -32,4 +33,67 @@ export default Vue.extend({
})
</script>
<style></style>
<style lang="scss" scoped>
.search-box {
position: relative;
overflow: hidden;
.input-group {
position: relative;
width: 100%;
}
.input-group::after {
content: "";
position: absolute;
left: 0;
bottom: 10px;
width: 100%;
height: 1px;
border: 1px solid #6b76d1;
z-index: 10;
}
.keyword {
width: 100%;
height: 50px;
line-height: 50px;
color: #b6bdf3;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
background: #3945ad;
outline: none;
box-shadow: none;
border: none;
}
.keyword::placeholder {
color: #b6bdf3;
}
}
.border-img {
position: relative;
}
.border-img::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 10px;
height: 10px;
background: $input-bg1-base64-code;
background-repeat: no-repeat;
background-size: 100% 100%;
z-index: 10;
}
.border-img::after {
content: "";
position: absolute;
right: 0;
bottom: 0;
width: 10px;
height: 10px;
background: $input-bg2-base64-code;
background-repeat: no-repeat;
background-size: 100% 100%;
z-index: 10;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册