This commit is contained in:
haoouba
2021-02-14 20:17:09 +08:00
parent 2d1ecf1e0c
commit dcbe642606
10 changed files with 91 additions and 114 deletions

File diff suppressed because one or more lines are too long

View File

@@ -46,24 +46,6 @@
}
}
.joe_mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(5px);
opacity: 0;
visibility: hidden;
transition: visibility 0.35s, opacity 0.35s;
z-index: 888;
&.active {
visibility: visible;
opacity: 1;
}
}
.joe_header {
position: sticky;
top: 0;
@@ -72,50 +54,11 @@
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
&__above {
position: relative;
z-index: 998;
z-index: 999;
background: var(--background);
.joe_container {
align-items: center;
}
&-slide {
display: none;
position: relative;
width: 20px;
height: 20px;
cursor: pointer;
margin-right: 10px;
.line {
position: absolute;
height: 2px;
width: 20px;
opacity: 1;
left: 0;
top: 0;
transform: rotate(0deg);
background-color: var(--routine);
border-radius: 1px;
transition: top 0.35s ease, transform 0.35s, opacity 0.35s;
&:nth-child(2) {
top: 9px;
}
&:nth-child(3) {
top: 18px;
}
}
&.active {
.line:nth-child(1) {
top: 9px;
transform: rotate(45deg);
}
.line:nth-child(2) {
opacity: 0;
}
.line:nth-child(3) {
top: 9px;
transform: rotate(-45deg);
}
}
}
&-logo {
position: relative;
display: flex;
@@ -329,14 +272,17 @@
}
}
}
&-searchicon {
&-searchicon,
&-slideicon {
display: none;
width: 20px;
height: 20px;
fill: var(--routine);
margin-left: auto;
cursor: pointer;
}
&-searchicon {
margin-left: auto;
}
}
&__below {
position: relative;
@@ -400,7 +346,7 @@
top: 60px;
left: 0;
right: 0;
z-index: 990;
z-index: 890;
background: var(--background);
border-top: 1px solid var(--classC);
transform: translate3d(0, -100%, 0);
@@ -421,10 +367,11 @@
flex: 1;
height: 36px;
padding: 0 10px;
border: 1px solid var(--classA);
border: 1px solid var(--classB);
border-right: none;
border-radius: 2px 0 0 2px;
color: var(--routine);
background: var(--classD);
}
button {
padding: 0 10px;
@@ -469,11 +416,11 @@
}
&__slideout {
position: fixed;
top: 55px;
top: 0;
bottom: 0;
left: 0;
width: 80%;
z-index: 990;
z-index: 1020;
background: var(--classD);
transform: translate3d(-100%, 0, 0);
visibility: hidden;
@@ -501,7 +448,6 @@
margin-bottom: 15px;
background: var(--background);
border-radius: var(--radius-wrap);
overflow: hidden;
padding: 15px;
box-shadow: var(--box-shadow);
.avatar {
@@ -511,19 +457,22 @@
border-radius: var(--radius-inner);
}
.info {
overflow: hidden;
line-height: 25px;
.link,
.motto {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.link {
display: block;
line-height: 25px;
font-size: 15px;
font-weight: 500;
color: var(--main);
}
.motto {
line-height: 25px;
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--routine);
}
}
@@ -572,6 +521,26 @@
}
}
}
&__mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(5px);
opacity: 0;
visibility: hidden;
transition: visibility 0.35s, opacity 0.35s;
z-index: 880;
&.active {
visibility: visible;
opacity: 1;
}
&.slideout {
z-index: 1010;
}
}
}
.joe_aside {

File diff suppressed because one or more lines are too long

View File

@@ -117,23 +117,34 @@ html {
}
}
@media (max-width: 768px) {
.joe_header__above-nav {
display: none;
}
.joe_header__below {
display: none;
}
.joe_header__above-logo {
height: 55px;
}
.joe_header__above-logo img {
max-height: 45px;
}
.joe_header__searchout {
top: 55px;
}
.joe_header__above-slide {
display: block;
.joe_header {
&__above {
.joe_container {
justify-content: space-between;
}
&-nav {
display: none;
}
&-logo {
height: 55px;
margin-right: 0;
img {
max-height: 45px;
}
}
&-searchicon {
margin-left: 0;
}
&-slideicon {
display: block;
}
}
&__below {
display: none;
}
&__searchout {
top: 55px;
}
}
.swiper-container {
height: 180px;
@@ -367,7 +378,7 @@ html {
}
}
}
.body .text{
.body .text {
height: 140px;
}
}