本文是《免费(共171篇)》专题的第 64 篇。阅读本文前,建议您先阅读前面的文章:
如果你喜欢这个样式的搜索
将以下Html代码放至主题模块中(主题设置-模块管理-自定义代码
HTML代码
将下列CSS代码放入WP额外CSS中(WP后台-外观-自定义-额外css)
或者将CSS拷贝至主题或者子主题的样式文件即可
/*极主题:首页动态背景搜索样式代码开始*/.search_360{
color:#fff;
background-color:#28bc5b;
}
.search_baidu{
color:#fff;
background-color:#4E6EF2;
}
.search_bing{
color:#fff;
background-color:#ffc20e;
}
.search_toutiao{
color:#fff;
background-color:#f04142;
}
.search_zhihu{
color:#fff;
background-color:#06f;
}
#page-wrapper {
padding-bottom:16px;
margin-top:-85px
}
.home-banner {
height:550px;
position:relative;
/*jitheme.com*/background-position:0 100%;
animation:gradient 12s ease-in-out infinite;
}
.home-banner .section {
position:relative;
width:100%;
overflow:hidden;
max-height:550px;
height:100vh
}
.home-banner .section .video-wrapper {
display:flex;
justify-content:center;
align-items:center;
width:100%;
height:100%;
position:absolute;
overflow:hidden;
z-index:0
}
.home-banner .section .video-wrapper video {
visibility:visible;
pointer-events:none;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
height:100%;
width:100%;
object-fit:cover
}
.home-banner .section .video-overlay {
height:100%;
width:100%;
top:0;
left:0;
position:absolute;
background:rgba(45,47,54,.15)
}
.home-banner .corner {
width: 28px;
height: 21px;
border-radius: 4px;
left: 340px;
top: 10px;
}
.home-banner .home-menus {
margin-left:70px
}
.home-banner .home-menus .cus-dropbox-trigger a,.home-banner .home-menus>a {
color:#fff;
font-size:14px;
margin-right:20px;
line-height:60px
}
.home-banner .home-menus .cus-dropbox-trigger a:hover,.home-banner .home-menus>a:hover {
color:var(--b2color);
}
.home-banner>.layout-center {
height:100%
}
.home-banner-content {
padding-top: 130px;
margin-left: 182px;
margin-bottom: 30px;
}
.home-banner-content .slogan-text p {
font-size:18px;
line-height:24px;
letter-spacing:2px;
font-weight: 600;
text-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.home-banner-content .slogan-text p:nth-of-type(1) {
font-weight:600;
font-size:28px;
line-height:46px;
letter-spacing:6px;
text-shadow:0 2px 4px rgba(0,0,0,.25);
margin-bottom:20px
}
.home-banner-search {
width:800px;
margin-left:209px;
height:auto
}
.home-banner-search .tag {
position: absolute;
right: 100px;
top: 0;
padding: 15px 10px;
}
.home-banner-search .tag a:hover {
background: var(--b2color);
color: #fff;
}
.home-banner-search .tag a {
display: inline;
padding: 0px 8px;
border-radius: 10px;
background: #EFEFEF;
float: left;
margin: 5px;
height: 20px;
line-height: 20px;
color: #A0A0A0;
font-size: 12px;
}
/*.home-banner-search form {*//*margin-bottom:10px;*//*jitheme.com*//*}*/.home-banner-search form>input {
width:100%;
height: 50px;
background:#fff;
border:none;
padding:18px 22px;
font-size:14px;
color:#333;
}
.home-banner-search form>input::placeholder {
color:#979797
}
.home-banner-search .hot-top {
position:absolute;
top:13px;
right:115px;
color: #000;
font-size:13px
}
.home-banner-search .hot-top i {
margin-right:4px
}
.home-banner-search .hot-words-container,.home-banner-search .rec-words-container {
width:100%;
top:56px
}
.home-banner-links {
width: 80%;
font-size: 14px;
height: 40px;
line-height: 40px;
text-shadow: 0 2px 4px rgba(0,0,0,.27);
}
.home-banner-links a {
margin-right:19px;
color:inherit
}
.home-banner-links a:hover {
color:var(--b2color);
}
.home-banner .search-types-cycles {
width:106px;
height:290px;
background:linear-gradient(180deg,rgba(0,0,0,0) 0,rgb(255 96 0 / 17%) 51.04%,rgba(0,0,0,0) 100%);
left:625px;
top:-95px;
text-align:center;
z-index:-1
}
.home-banner .search-types-cycles .search-types-btn {
width:100%;
height:20px;
line-height:20px;
cursor:pointer;
user-select:none;
left:0;
bottom:-20px;
z-index:1
}
.home-banner .search-types-cycles .search-types-btn i {
color:#fff;
font-size:12px
}
.home-banner .search-types-cycles .search-types-btn:nth-of-type(1) {
bottom:auto;
top:-20px
}
.home-banner .search-types-cycles .search-types-btn:nth-of-type(1) i {
transform:rotate(180deg)
}
.home-banner .search-types-cycles .search-types-btn:hover i {
color:var(--b2color);
}
.home-banner .search-types-cycles ul {
width:100%;
height:100%;
padding-top:5px
}
.home-banner .search-types-cycles ul:after,.home-banner .search-types-cycles ul:before {
content:'';
width:1px;
height:100%;
display:block;
position:absolute;
left:0;
top:0;
background:linear-gradient(0,transparent 0,var(--b2color) 50%,transparent 100%)
}
.home-banner .search-types-cycles ul:after {
left:auto;
right:0
}
.home-banner .search-types-cycles ul li {
height:30px !important;
line-height:30px !important;
font-size:16px;
text-align:center;
cursor:pointer;
user-select:none
}
.home-banner .search-types-cycles ul li:hover {
color:var(--b2color);
}
.home-banner .search-types-cycles ul li:nth-of-type(4) {
height:60px!important;
line-height:60px!important;
}
.home-banner .search-types-cycles ul li a {
color:rgba(255,255,255,.6);
transition:none
}
.home-banner .search-types-cycles ul li a:hover {
color:var(--b2color);
}
.home-banner .search-types-cycles button:hover {
background:#46dacf !important;
opacity:1;
transition:opacity .2s
}
.home-banner .search-types-cycles button i {
font-size:18px;
color:#fff;
margin-right:6px
}
.home-banner .search-types-cycles button span {
font-size:16px;
color:#fff
}
.top-navs {
width:100%;
/* height:70px; */bottom: 0px;
padding-top: 16px;
left:0;
/* padding:12px 0; *//* z-index:1; *//*jitheme.com*/backdrop-filter: blur(10px);
}
.top-navs .top-navs-l {
width: calc(100% - 180px);
display:flex;
justify-content:center;
align-items:center;
margin:0 auto;
border-right:1px solid rgb(255 255 255 / 10%)
}
.top-navs .top-navs-l-item {
width:20%;
margin:0 18px;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center
}
.top-navs .top-navs-l-item .top-navs-l-title a {
font-weight:600;
font-size:18px;
line-height:25px;
height:25px;
margin-bottom:12px;
color:#fff;
text-shadow:1px 1px 1px #000
}
.top-navs .top-navs-l-item .top-navs-l-title .wz {
font-weight:600;
font-size:18px;
line-height:25px;
height:25px;
margin-bottom:12px;
color:#fff;
text-shadow:1px 1px 1px #000
}
.top-navs .top-navs-l-item .top-navs-l-title a i {
font-size:34px;
margin-right:8px;
vertical-align:-4px
}
.top-navs .top-navs-l-item .top-navs-l-title a img {
float:left;
width:34px;
height:34px;
margin-right:8px;
vertical-align:-4px;
margin-top: -5px;
}
.top-navs .top-navs-l-item .top-navs-l-title a:hover {
color:var(--b2color);
}
.top-navs .top-navs-l-item .top-navs-l-links {
font-size:14px;
line-height:20px;
display:flex;
justify-content:space-around;
margin:0 -10px
}
.top-navs .top-navs-l-item .top-navs-l-links a {
color:#fff;
margin:0 10px;
text-shadow:1px 1px 1px #000
}
.top-navs .top-navs-l-item .top-navs-l-links a:hover {
color:var(--b2color);
}
.top-navs .top-navs-m {
width:176px;
height:61px;
border-right:1px solid rgba(255,255,255,.25);
padding:0 24px;
display:none;
flex-wrap:wrap;
justify-content:space-around;
align-items:center
}
.top-navs .top-navs-m a,.top-navs .top-navs-m p,.top-navs .top-navs-m>div {
width:50%;
text-align:center;
color:#fff;
font-size:14px;
line-height:20px;
cursor:pointer;
user-select:none;
text-shadow:1px 1px 1px #000
}
.top-navs .top-navs-m a:hover,.top-navs .top-navs-m p:hover,.top-navs .top-navs-m>div:hover {
color:var(--b2color);
}
.top-navs .top-navs-m div p,.top-navs .top-navs-m>a {
margin-bottom: 25px;
}
.top-navs .top-navs-m div p {
width:100%;
margin-bottom:0;
margin-top:-20px
}
.top-navs .top-navs-m .top-navs-m-box {
top:-16px;
left:-72px;
width:157px;
height:66px;
background:#444;
border-radius:8px;
padding:8px 14px 0;
display:none;
margin-top:-70px
}
.top-navs .top-navs-m .top-navs-m-box a {
margin-bottom:9px
}
.top-navs .top-navs-m .top-navs-m-box a:hover {
color:var(--b2color);
}
.top-navs .top-navs-r {
width:176px
}
.top-navs .top-navs-r a {
width:50%;
padding-left:30px;
text-align:center;
}
.top-navs .top-navs-r a i {
font-size:36px;
margin-bottom:10px
}
.top-navs .top-navs-r img {
height: 40px;
width: 40px;
margin-top: -3px;
}
.top-navs .top-navs-r a p {
font-size:14px;
line-height:40px;
color:#fff;
text-shadow:1px 1px 1px #000
}
.top-navs .top-navs-r a p:hover {
color:var(--b2color);
}
.por {
position:relative
}
.poa {
position:absolute
}
.pof {
position:fixed
}
.Onecad_clearfix:after {
content:'';
clear:both;
display:block;
height:0;
visibility:hidden;
font-size:0;
line-height:0
}
.fl {
float:left
}
.fr {
float:right
}
.ovh {
overflow:hidden
}
.block {
display:block
}
.icon-rank {
width:auto;
display:inline-block;
border:none;
overflow:hidden;
vertical-align:-3px
}
img.icon-rank {
width:20px;
height:20px;
margin-right:0px
}
a.hot-top.text-notify:hover {
color:var(--b2color);
}
p.top-navs-l-title {
margin-bottom:8px
}
.top-navs-l-title i{
width:1em;
height:1em;
float: left;
}
.left-cont{
border: 5px solid rgb(255 255 255 / 18%);
}
.home-banner-search>form>button {
box-sizing:border-box;
min-width:100px;
transform:translateY(0px);
font-size:15px;
border-top-right-radius:3px;
border-bottom-right-radius:3px;
position:absolute;
right:1px;
top:0;
z-index:1;
border:1px solid #23d1c3;
padding:0 15px;
width:147px;
height:56px;
background:linear-gradient(90deg,#35eee3 0,#21cec0 100%);
border-radius:0 8px 8px px 0;
right:0;
text-align:center;
padding-left:25px;
margin-right:-7px;
border-bottom-left-radius:1px;
border-top-left-radius:1px
}
.home-banner-search .search.hidden {
display:none
}
.primary-menus .left-cont button {
height: 50px;
box-sizing:border-box;
min-width:100px;
/* margin-left: 0px; */cursor:pointer;
color:#fff;
font-size:15px;
line-height:40px;
position:absolute;
right: 5px;
top: 5px;
border-radius:1px;
padding:0 15px;
width:106px;
transform:translateY(0px);
}
.slogan-text.por.fl {
margin-left: 200px;
text-align: center;
margin-bottom: 20px;
}
@media screen and (max-width:768px) {
#page-wrapper {
display:none
}
}
您已阅读完《免费(共171篇)》专题的第 64 篇。您可以继续阅读该专题下面的文章: