misuzu/assets/misuzu.css/search/categories.css

38 lines
942 B
CSS

.search__categories {
display: flex;
}
.search__category {
display: block;
color: inherit;
text-decoration: none;
background-color: var(--accent-colour);
box-shadow: 0 1px 2px #000A;
text-shadow: 0 1px 4px #000;
overflow: hidden;
border: 1px solid transparent;
border-radius: 5px;
font-size: 1.1em;
margin: 1px 1px 1px 0;
}
.search__category__background {
background-color: var(--background-colour-translucent-9);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transition: background-color .2s;
}
.search__category:hover .search__category__background,
.search__category:focus .search__category__background {
background-color: var(--background-colour-translucent-8);
}
.search__category:active .search__category__background {
background-color: var(--background-colour-translucent-7);
}
.search__category__content {
padding: 2px 5px;
}