提交 7fb5599f 编写于 作者: guojing.hao's avatar guojing.hao

yqy-home-header

上级 89ccb928
<template> <template>
<div class="space-between header"> <div class="space-between header">
<div class="search"> <div :class="resourceData.isTransparent?'searchTransparent':'bgWhite'" class="search">
<input type="search" class="input" v-model="message" :placeholder="resourceData.placeholder"/> <input type="search" :class="resourceData.isTransparent?'searchTransparent':''" class="input" v-model="message" :placeholder="resourceData.placeholder"/>
<img class="searchImg" :src="resourceData.img"> <img class="searchImg" :src="resourceData.img">
</div> </div>
<div class="headerRight"> <div class="headerRight">
...@@ -55,6 +55,14 @@ html,body{ ...@@ -55,6 +55,14 @@ html,body{
height: 100%; height: 100%;
background-color: #F8F8F8; background-color: #F8F8F8;
} }
.searchTransparent{
background: transparent;
border: 1px solid #fff;
color: #fff;
}
.searchTransparent::-webkit-input-placeholder{
color: #fff;
}
.white{ .white{
color: #fff; color: #fff;
} }
...@@ -81,7 +89,6 @@ html,body{ ...@@ -81,7 +89,6 @@ html,body{
width: px2rem(290px); width: px2rem(290px);
height: px2rem(30px); height: px2rem(30px);
border-radius: px2rem(19px); border-radius: px2rem(19px);
background-color: #fff;
} }
.input{ .input{
outline: none; outline: none;
......
...@@ -50,6 +50,11 @@ ...@@ -50,6 +50,11 @@
.fw{ .fw{
font-weight: 600; font-weight: 600;
} }
//背景颜色
.bgWhite{
background-color: #fff;
}
//字体颜色
.gray{ .gray{
color: RGBA(177, 181, 184, 1); color: RGBA(177, 181, 184, 1);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册