@matrixage/picpic
Version:
A awesome image bed by github pages and github actions.
141 lines (121 loc) • 4.69 kB
text/less
.header_wrap_placeholder {
height: 75px;
}
.header_wrap {
z-index: 10;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border-bottom: 1px solid var(--color_border);
.header {
width: 80vw;
height: 72px;
.left_wrap {
&.scrolled {
.name {
color: white;
}
}
.logo {
max-width: 40px;
margin-left: -4px;
}
.name {
font-size: 30px;
font-weight: bold;
margin-left: 10px;
}
}
.search_wrap {
left: calc(50% - 180px);
&.scrolled {
.search {
.input {
border: 1px solid white;
color: white;
&::placeholder {
color: rgba(255, 255, 255, 0.72);
}
}
}
}
.search {
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
color: black;
.input {
width: 360px;
height: 40px;
padding: 0 24px;
box-sizing: border-box;
border: none;
outline: none;
line-height: 40px;
color: black;
border-radius: 40px;
background-color: transparent;
text-align: center;
border: 1px solid black;
transition: all ease 0.3s;
}
}
}
.right_wrap {
&.scrolled {
.d_line {
background-color: rgba(241, 241, 241, 0.2);
}
.options {
.option_item {
background-color: rgba(248, 249, 253, 0.6);
}
}
.link_items {
.link {
background-color: rgba(248, 249, 253, 0.6);
}
}
}
.options {
margin-right: 15px;
.option_item {
display: flex;
justify-content: center;
align-items: center;
width: 36px;
height: 36px;
border-radius: 50%;
transition: all ease 0.3s;
background-color: white;
cursor: pointer;
}
}
.d_line {
width: 1px;
height: 20px;
background-color: var(--color_border);
}
.link_items {
margin-left: 15px;
.link {
display: flex;
justify-content: center;
align-items: center;
width: 36px;
height: 36px;
border-radius: 50%;
transition: all ease 0.3s;
background-color: white;
&:hover {
box-shadow: 0 0 30px #eee;
}
.logo_matrixage {
max-width: 18px;
border-radius: 4px;
}
}
}
}
}
}