hexo-butterfly-categories-card
Version:
A categories card plugin for theme-butterfly
84 lines (83 loc) • 2.05 kB
CSS
#categoryBar {
width: 100% ;
}
ul.categoryBar-list {
margin: 5px 5px 0 5px ;
padding: 0 ;
}
li.categoryBar-list-item {
font-weight: bold;
display: inline-block;
height: 180px ;
margin: 5px 0.5% 0 0.5% ;
background-image: linear-gradient(rgba(0,0,0,0.4) 25%, rgba(16,16,16,0) 100%);
border-radius: 10px;
padding: 25px 0 25px 25px ;
box-shadow: rgba(50,50,50,0.3) 50px 50px 50px 50px inset;
overflow: hidden;
background-size: 100% ;
background-position: center ;
}
li.categoryBar-list-item:hover {
background-size: 110% ;
box-shadow: inset 500px 50px 50px 50px rgba(50,50,50,0.6);
}
li.categoryBar-list-item:hover span.categoryBar-list-descr {
transition: all 0.5s;
transform: translate(-100%, 0);
}
a.categoryBar-list-link {
color: #fff ;
font-size: 20px ;
}
a.categoryBar-list-link::before {
content: '|' ;
color: #fff ;
font-size: 20px ;
}
a.categoryBar-list-link:after {
content: '';
position: relative;
width: 0;
bottom: 0;
display: block;
height: 3px;
border-radius: 3px;
background-color: #fff;
}
a.categoryBar-list-link:hover:after {
width: 90%;
left: 1%;
transition: all 0.5s;
}
span.categoryBar-list-count {
display: block ;
color: #fff ;
font-size: 20px ;
}
span.categoryBar-list-count::before {
content: '\f02d' ;
padding-right: 15px ;
display: inline-block;
font-weight: 600;
font-style: normal;
font-variant: normal;
font-family: 'Font Awesome 6 Free';
text-rendering: auto;
-webkit-font-smoothing: antialiased;
}
span.categoryBar-list-descr {
padding: 5px;
display: block ;
color: #fff ;
font-size: 20px ;
position: relative;
right: -100%;
}
@media screen and (max-width: 650px) {
li.categoryBar-list-item {
width: 48% ;
height: 150px ;
margin: 5px 1% 0 1% ;
}
}