poem_front/assets/css/header.css
ZHANG ZENGXUAN d0dd647fac feat: INIT
2025-05-19 21:59:43 +08:00

587 lines
11 KiB
CSS

body {
min-width: 360px;
}
html,
body,
div,
span,
ul,
li,
header,
menu,
nav {
margin: 0;
padding: 0;
outline: 0;
border: 0;
background: transparent;
vertical-align: baseline;
font-size: 100%;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box
}
html {
font-size: 10px;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}
body {
color: #666;
font-family: "Microsoft Yahei", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.42857143;
background-color: #f5f5f5;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: top center;
}
header,
menu,
nav {
display: block;
}
nav ul {
list-style: none;
}
li {
list-style: none;
}
a {
margin: 0;
padding: 0;
background: transparent;
color: #333;
vertical-align: baseline;
text-decoration: none;
font-size: 100%;
font-family: "Open Sans", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", Arial, Verdana, Tahoma, sans-serif;
}
.w {
margin: 0 auto;
width: 1200px;
}
a:hover,
a:focus {
color: #4693e9;
text-decoration: none;
cursor: pointer;
}
a:focus {
color: #333;
}
p {
line-height: 20px;
}
img {
margin: 0;
padding: 0;
max-width: 100%;
height: auto;
vertical-align: middle;
-webkit-transition: all .3s ease-out 0s;
-o-transition: all .3s ease-out 0s;
transition: all .3s ease-out 0s;
}
.left,
.fl {
float: left;
}
.right,
.fr {
float: right;
}
.clear {
clear: both;
}
.clearfix:after {
clear: both;
content: "";
display: block;
height: 0;
visibility: hidden;
}
/*顶部导航开始*/
.pull-left {
float: left;
margin: 0px 25px;
}
.pull-right {
float: right;
}
.top-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 99999;
box-shadow: 0px 5px 40px 0px rgba(17, 58, 93, 0.1) !important;
background-color: rgba(255, 255, 255, .96);
}
.new-header {
background-color: rgba(255, 255, 255, 0);
position: relative;
background-position: center right;
background-size: auto 100%;
border-bottom: 1px solid rgba(0, 0, 0, .05);
background-image: url(http://cdn.shuguangwl.com/2022/02/05/3aeebf0fffd5f.png);
background-size: auto 100%;
border-radius: 15px;
}
a.header_logo,
.top-bar-left .logo img.d-none {
display: none;
}
.top-bar-left a{
text-decoration: none;
}
.navbar-item a{
text-decoration: none;
}
a.logo.box {
position: relative;
overflow: hidden;
cursor: pointer;
margin: 0 auto;
width: 1000px;
line-height: 50px;
white-space: nowrap;
}
a.logo.box img {
display: inline-block;
height: 56px;
}
.top-admin {
letter-spacing: 1px;
color: #555;
font-size: 14px;
line-height: 50px;
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
}
.top-admin .login {
height: 55px;
}
.top-admin a {
color: #555;
line-height: 55px;
padding-right: 10px;
}
.top-admin a:last-child {
padding-right: 0;
}
.top-bar.fixed-nav {
position: fixed;
top: 0;
}
.nav-pills {
float: left;
font-size: 14px;
margin-bottom: 0px;
}
.nav-pills li {
width: auto;
position: relative;
list-style: none;
display: block;
float: left;
margin-right: 30px;
}
.nav-pills li a {
line-height: 55px;
display: block;
color: #000000;
font-size: 15px;
text-decoration: none;
}
.nav-pills li:before {
width: 0;
height: 2px;
position: absolute;
bottom: -1px;
left: 50%;
background-color: #0188FB;
content: '';
transition: all .6s;
z-index: -1;
}
.nav-pills>li:hover:before,
.nav-pills>li.active:before {
width: 100%;
left: 0;
}
.nav-pills li:hover>a,
.nav-pills li.active>a {
color: #0188FB;
}
.menu-item-has-children>a:after {
content: ".";
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px solid;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
position: relative;
left: 5px;
overflow: hidden;
}
.nav-pills li>ul {
float: left;
opacity: 0;
visibility: hidden;
position: absolute;
top: 55px;
left: -2px;
padding: 8px 10px;
border-radius: 4px;
z-index: 100;
}
.nav-pills li:hover>ul {
opacity: 1;
visibility: visible;
background-color: rgba(255, 255, 255, .96);
box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22);
filter: alpha(opacity=100);
}
.nav-pills li>ul>li {
color: #448EF6;
position: relative;
display: block;
float: left;
-webkit-transform: rotateY(90deg);
-moz-transform: rotateY(90deg);
-ms-transform: rotateY(90deg);
-o-transform: rotateY(90deg);
transform: rotateY(90deg);
margin-right: 0;
padding: 0 15px;
}
.nav-pills li:hover ul li {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
}
.nav-pills li>ul>li>a {
padding: 0;
line-height: inherit;
display: block;
padding: 4px 0 4px 0;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
font-size: 14px;
white-space: nowrap;
}
.nav-pills li>ul>li a:before {
content: '';
height: 1px;
width: 10px;
background-color: #448EF6;
opacity: 0;
-webkit-transition: all 300ms linear 0ms;
-khtml-transition: all 300ms linear 0ms;
-moz-transition: all 300ms linear 0ms;
-ms-transition: all 300ms linear 0ms;
-o-transition: all 300ms linear 0ms;
transition: all 300ms linear 0ms;
position: absolute;
left: -2px;
top: 50%;
-webkit-transform: translate(0%, -50%);
-khtml-transform: translate(0%, -50%);
-moz-transform: translate(0%, -50%);
-ms-transform: translate(0%, -50%);
-o-transform: translate(0%, -50%);
transform: translate(0%, -50%);
}
.nav-pills li>ul>li>a:hover:before {
opacity: 1;
}
#mask {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .5);
z-index: 89;
display: none;
background: rgba(0, 0, 0, 0.65);
-webkit-backdrop-filter: blur(5px);
backdrop-filter: blur(5px);
transition: visibility 0.35s, opacity 0.35s;
}
@-webkit-keyframes ballPulseDouble {
0%,
100% {
-webkit-transform: scale(0);
transform: scale(0)
}
50% {
-webkit-transform: scale(1);
transform: scale(1)
}
}
@keyframes ballPulseDouble {
0%,
100% {
-webkit-transform: scale(0);
transform: scale(0)
}
50% {
-webkit-transform: scale(1);
transform: scale(1)
}
}
@media screen and (max-width:1200px) {
.container-nav {
padding: 0 0px 0 20px;
transform: none;
position: fixed;
width: 100%;
}
.nav-pills li {
margin-right: 20px;
}
}
@media screen and (min-width:1300px) {
.container {
max-width: 1200px;
}
.top-header .container {
max-width: 95%;
}
}
@media screen and (max-width:999px) {
.top_fr_login,
.menu-item-has-children>a:after,
.nav-pills li:before,
.secnav,
.top-bar-right,
.side-list small,
form.searchform {
display: none;
}
.top-header {
height: 56px;
margin-bottom: 30px;
}
a.header_logo {
display: block;
margin-left: 15px;
}
a.header_logo img {
width: 100%;
display: inline-block;
}
a.header_logo {
max-width: 160px;
line-height: 55px;
}
header.header {
height: 55px;
}
a.header_logo strong {
line-height: 55px;
}
/* */
.header.fixed-nav.fixed-enabled .container-nav {
top: 0;
-webkit-box-shadow: 0 4px 8px 0 rgba(7, 17, 27, 0.1);
box-shadow: 0 4px 8px 0 rgba(7, 17, 27, 0.1);
}
span.toggle-btn i.icon.active:before {
content: "\e7c5";
}
.nav-pills {
margin: -15px;
position: relative;
padding: 15px 0 10px 0;
border-radius: 12px;
background: rgba(255, 255, 255, 0.88);
box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22);
float: none;
}
.nav-pills li>ul {
float: none;
position: relative;
top: 0;
left: 0;
padding: 0;
opacity: 1;
visibility: visible;
border-radius: 8px;
z-index: 100;
display: none;
-moz-transition: ease-in-out 0s;
-webkit-transition: ease-in-out 0s;
-o-transition: ease-in-out 0s;
-ms-transition: ease-in-out 0s;
transition: ease-in-out 0s;
background: rgba(218, 218, 218, 0.38);
}
.nav-pills li:hover>ul {
opacity: 1;
visibility: visible;
background-color: rgba(218, 218, 218, 0.38);
box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22);
filter: alpha(opacity=100);
}
}
@media screen and (max-width:768px) {
a.header_logo strong {
font-size: 26px;
}
#comments .msg .msgarticle {
padding-right: 0px;
}
}
a.header_logo strong {
font-size: 24px;
}
a.header_logo {
max-width: 150px;
}
.nav-pills li a {
font-size: 14px;
}
@media screen and (max-width:425px) {
.sale-article #font-change,
li.brick-list span.comment-tip,
ul.pic-box-list li p span.viewd,
i.single-avatar,
span.single-comment,
.entry-meta a:first-child {
display: none;
}
ul.pic-box-list li p {
margin-top: 0px;
}
a.header_logo strong {
font-size: 22px;
}
span {
font-size: 100px;
padding: 8px;
}
.sub-menu {
border-bottom: 2px solid red;
}
.new-header {
border-bottom: 1px solid rgba(0, 0, 0, .05);
background-image: url(http://cdn.shuguangwl.com/2022/02/05/3aeebf0fffd5f.png);
background-size: auto 100%;
border-radius: 15px;
}
.new-header {
border-bottom: 1px solid rgba(0, 0, 0, .05);
background-image: url(http://cdn.shuguangwl.com/2022/02/05/3aeebf0fffd5f.png);
background-size: auto 100%;
border-radius: 15px;
}
.top-header {
margin-bottom: 30px;
z-index: 9999999;
}
.top-header a{
text-decoration: none;
}
span {
font-size: 100px;
padding: 8px;
}
.sub-menu {
border-bottom: 2px solid red;
}
.new-header {
border-bottom: 1px solid rgba(0, 0, 0, .05);
background-image: url(http://cdn.shuguangwl.com/2022/02/05/3aeebf0fffd5f.png);
background-size: auto 100%;
border-radius: 15px;
background-color: rgba(255, 255, 255, 0);
position: relative;
background-position: center right;
background-size: auto 100%;
}
.new-header {
border-bottom: 1px solid rgba(0, 0, 0, .05);
background-image: url(http://cdn.shuguangwl.com/2022/02/05/3aeebf0fffd5f.png);
background-size: auto 100%;
border-radius: 15px;
}
.new-header a{
text-decoration: none;
}
.top-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 99999;
box-shadow: 0px 5px 40px 0px rgba(17, 58, 93, 0.1) !important;
background-color: rgba(255, 255, 255, .96);
}
}