Skip to content

Commit b768bc2

Browse files
committed
【fix】 修复title和logo居中问题; review by xiongjj
1 parent 0ae2fb1 commit b768bc2

File tree

1 file changed

+15
-33
lines changed

1 file changed

+15
-33
lines changed

examples/css/header.css

Lines changed: 15 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
font-size: 20px;
2525
color: #FFFFFF;
2626
font-family: "Microsoft Yahei";
27-
}
27+
}
2828

2929

3030
.pre-release {
@@ -90,6 +90,10 @@
9090
padding: 0;
9191
}
9292

93+
.nav-header {
94+
border-bottom: 2px solid rgba(255, 255, 255, 0.12);
95+
}
96+
9397
.navbar-nav > li {
9498
height: 60px;
9599
display: table;
@@ -100,11 +104,11 @@
100104
vertical-align: middle;
101105
}
102106

103-
.navbar-menu .menu-sub-warp {
107+
.menu-sub-warp {
104108
max-height: 0;
105109
}
106110

107-
.navbar-menu:hover .menu-sub-warp {
111+
.show_menu-sub-warp {
108112
max-height: 660px;
109113
transform-origin: 50% 0;
110114
-webkit-transform-origin: 50% 0;
@@ -325,9 +329,6 @@ ul.icl-nav-menu-sub:nth-child(1) {
325329
float: none;
326330
}
327331

328-
.menu-box {
329-
top: 120px;
330-
}
331332
}
332333

333334
@media screen and (max-width: 1030px) {
@@ -348,9 +349,6 @@ ul.icl-nav-menu-sub:nth-child(1) {
348349
float: none;
349350
}
350351

351-
.menu-box {
352-
top: 120px;
353-
}
354352
}
355353

356354
@media screen and (max-width: 992px) {
@@ -457,11 +455,6 @@ ul.icl-nav-menu-sub:nth-child(1) {
457455
}
458456
}
459457

460-
@media screen and (max-width: 659px) {
461-
.menu-box {
462-
top: 180px;
463-
}
464-
}
465458

466459
@media screen and (max-width: 540px) {
467460
.navbar-custom-menu > .navbar-nav > li {
@@ -525,7 +518,11 @@ ul.icl-nav-menu-sub:nth-child(1) {
525518
line-height: 14px;
526519
height: auto;
527520
font-size: 12px;
528-
margin-left: 43px;
521+
margin-left: 32px;
522+
}
523+
524+
#logo {
525+
margin-top: 20px;
529526
}
530527
}
531528

@@ -548,17 +545,13 @@ ul.icl-nav-menu-sub:nth-child(1) {
548545

549546
/*尺寸小于410px时,logo、产品名称、右侧收缩按钮的样式,主要是为了适应iphone6等移动端的浏览器*/
550547
@media screen and (max-width: 410px) {
551-
#logo {
552-
width: 20px;
553-
height: 20px;
554-
}
555548

556549
#suffix-title {
557550
font-size: 8px;
558551
}
559552

560553
#title {
561-
font-size: 11px;
554+
font-size: 12px;
562555
}
563556

564557
.pre-release {
@@ -570,12 +563,6 @@ ul.icl-nav-menu-sub:nth-child(1) {
570563
}
571564
}
572565

573-
@media screen and (max-width: 370px) {
574-
#logo {
575-
width: 32px;
576-
width: 32px;
577-
}
578-
}
579566

580567
/*尺寸小于376px时,logo、产品名称、右侧收缩按钮的样式,主要是为了适应iphone5等移动端的浏览器*/
581568
@media screen and (max-width: 356px) {
@@ -584,8 +571,8 @@ ul.icl-nav-menu-sub:nth-child(1) {
584571
padding-right: 6px;
585572
}
586573

587-
.menu-box {
588-
top: 240px;
574+
.navbar-header #suffix-title {
575+
margin-left: 22px;
589576
}
590577

591578
#logo {
@@ -600,8 +587,3 @@ ul.icl-nav-menu-sub:nth-child(1) {
600587
}
601588
}
602589

603-
@media screen and (max-height: 640px) {
604-
.navbar-menu:hover .menu-sub-warp {
605-
max-height: 400px;
606-
}
607-
}

0 commit comments

Comments
 (0)