wikijs-fork/client/scss/components/search.scss

67 lines
1.2 KiB
SCSS
Raw Normal View History

2017-04-02 23:56:47 +00:00
.searchresults {
position: fixed;
2017-05-21 03:21:16 +00:00
top: 50px;
2017-04-02 23:56:47 +00:00
left: 0;
right: 0;
margin: 0 auto;
width: 500px;
z-index: 1;
2017-05-21 03:21:16 +00:00
background-color: darken(mc('blue-grey', '900'), 2%);
border: 1px solid mc('blue-grey', '900');
box-shadow: 0 0 5px mc('blue-grey', '500');
2017-04-02 23:56:47 +00:00
color: #FFF;
2017-05-21 03:21:16 +00:00
transition: max-height 1s ease;
2017-04-02 23:56:47 +00:00
2017-05-21 03:21:16 +00:00
&-enter-active, &-leave-active {
overflow: hidden;
}
&-enter-to, &-leave {
max-height: 500px;
}
&-enter, &-leave-to {
max-height: 0px;
}
2017-04-02 23:56:47 +00:00
.searchresults-label {
2017-05-21 03:21:16 +00:00
background-color: mc('blue-grey', '800');
color: mc('blue-grey', '300');
padding: 8px;
2017-04-02 23:56:47 +00:00
font-size: 13px;
2017-05-21 03:21:16 +00:00
letter-spacing: 1px;
text-transform: uppercase;
box-shadow: 0 0 5px rgba(0,0,0,0.3);
2017-04-02 23:56:47 +00:00
}
.searchresults-list {
2017-05-21 03:21:16 +00:00
padding-bottom: 5px;
2017-04-02 23:56:47 +00:00
> li {
display: flex;
font-size: 14px;
2017-05-21 03:21:16 +00:00
transition: background-color .2s linear;
2017-04-02 23:56:47 +00:00
&:nth-child(odd) {
2017-05-21 03:21:16 +00:00
background-color: mc('blue-grey', '900');
2017-04-02 23:56:47 +00:00
}
&.is-active, &:hover {
2017-05-21 03:21:16 +00:00
background-color: mc('blue-grey', '600');
2017-04-02 23:56:47 +00:00
color: #FFF;
}
a {
2017-05-21 03:21:16 +00:00
color: mc('blue-grey', '50');
2017-04-02 23:56:47 +00:00
display: flex;
align-items: center;
height: 30px;
padding: 0 20px;
width: 100%;
cursor: pointer;
}
}
}
}