1 Star 1 Fork 0

汐涌及岸 / navigation-page

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
style.css 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
汐涌及岸 提交于 2021-04-14 08:38 . 首次提交
* {
margin: 0;
padding: 0;
outline: 0;
border: 0;
}
body {
background: #000;
}
.bg {
filter: blur(20px);
position: fixed;
z-index: -1;
width: 100%;
height: 100%;
background: url("bg.webp");
background-repeat: no-repeat;
background-position: 30%;
background-size: auto 100%;
}
#search-box {
position: absolute;
height: 50px;
width: 40%;
border-radius: 10px;
top: calc(50vh - 50px);
left: 30%;
background: rgba(255, 255, 255, 0.8);
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.15);
}
#search-box:focus {
background: rgba(255, 255, 255, 0.9);
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
}
#search-box > * {
font-size: 20px;
height: 100%;
float: left;
background: transparent;
}
#search-engine {
display: inline-block;
width: 34px;
height: 34px;
margin: 8px 8px;
border-radius: 8px;
background-size: 100% 100% !important;
}
#search-engine.active::before {
content: "";
display: inline-block;
border-radius: 8px;
width: 34px;
height: 34px;
background: rgba(0, 0, 0, 0.3);
}
#search-input {
width: calc(100% - 50px);
padding: 0 5px;
}
#search-engine-list {
display: none;
list-style: none;
border-radius: 10px;
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.15);
width: 100%;
margin-top: 5px;
overflow: hidden;
height: max-content;
cursor: pointer;
}
#search-engine-list > li {
background: rgba(255, 255, 255, 0.8);
padding: 3px 15px;
color: #333;
}
#search-engine-list > li:hover {
background: rgba(255, 255, 255, 0.9);
}
#search-engine-list.active {
display: unset;
}
@media screen and (max-width:800px) {
#search-box {
width: 90%;
left: 5%;
}
}
1
https://gitee.com/coderxi1/navigation-page.git
git@gitee.com:coderxi1/navigation-page.git
coderxi1
navigation-page
navigation-page
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891