cyp/app/css/search.less

29 lines
384 B
Text
Raw Normal View History

2019-04-01 04:02:26 +08:00
.search {
2019-04-01 17:18:28 +08:00
display: flex;
align-items: center;
max-width: 50%;
margin-left: auto;
transition: all 300ms;
2019-04-01 04:02:26 +08:00
.icon {
width: 32px;
2019-04-01 17:18:28 +08:00
cursor: pointer;
2019-04-01 04:02:26 +08:00
}
input {
border: none;
color: inherit;
background-color: inherit;
border-bottom: 1px solid var(--fg);
2019-04-01 17:18:28 +08:00
xtransition: all 300ms;
width: 0;
2019-04-01 04:02:26 +08:00
padding: 0;
}
2019-04-01 17:18:28 +08:00
&.open {
flex-grow: 1;
2019-04-01 04:02:26 +08:00
input {
2019-04-01 17:18:28 +08:00
flex-grow: 1;
2019-04-01 04:02:26 +08:00
}
}
}