pixel-icon-web/src/App.css
2023-12-05 12:48:05 +08:00

78 lines
1.2 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Silkscreen&display=swap');
@font-face {
font-family: 'Open Sans PX';
src: url('../fonts/OpenSansPX.ttf') format('truetype')
}
#root {
width: 100%;
}
input#search {
width: 100%;
}
#display-options {
margin-top: 18px;
font-size: 1em;
line-height: 18px;
display: flex;
gap: 0.5em;
}
ul.icon-list {
list-style: none;
margin: 36px 0 0;
padding: 0;
display: flex;
flex-wrap: wrap;
/* display: grid;
grid-template-columns: repeat( auto-fit, minmax( 54px, 1fr ) ); */
gap: 18px;
}
ul.icon-list.show-name {
/* grid-template-columns: repeat( auto-fit, minmax( 99px, 1fr ) ); */
}
ul.icon-list>li {
box-sizing: border-box;
width: 54px;
padding: 9px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
ul.icon-list.show-name>li {
padding: 9px;
width: 99px;
height: 126px;
/* border: 1px solid #ccc; */
}
ul.icon-list img.icon {
width: 36px;
height: auto;
cursor: pointer;
}
ul.icon-list .name {
font-size: 20px;
line-height: 24px;
margin-top: 9px;
font-family: "Open Sans PX";
}
.no-result {
text-align: center;
padding: 6rem 0;
}
@media (hover:hover) {
ul.icon-list>li:hover img.icon {
transform: translateY(-6px);
}
}