Files
phosphor-icons/src/components/IconGrid/IconGrid.css
2020-10-07 16:00:27 -04:00

180 lines
2.7 KiB
CSS

.grid-container {
padding: 32px 16px;
min-height: 80vh;
}
.grid {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
max-width: 1120px;
margin: auto;
}
.grid-item {
display: flex;
box-sizing: border-box;
width: 160px;
height: 160px;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 4px;
border-radius: 16px;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
cursor: pointer;
/* transition: background-color 100ms ease; */
}
.grid-item:hover {
background-color: rgba(163, 159, 171, 0.1);
}
.grid-item:focus {
outline: none;
border: 2px solid rgba(163, 159, 171, 0.1);
}
.grid-item p {
font-size: 12px;
line-height: 16px;
color: #86838b;
margin-top: 12px;
text-align: center;
}
.info-box {
position: relative;
display: flex;
width: 100%;
height: 0px;
margin: 0 4px;
border-radius: 16px;
background-color: rgba(163, 159, 171, 0.1);
}
@media screen and (max-width: 1023px) {
.icon-preview {
display: none !important;
}
.icon-usage {
padding-left: 10% !important;
}
}
.icon-preview {
width: 30%;
display: flex;
text-align: center;
flex-direction: column;
align-items: center;
margin-top: 72px;
}
.icon-preview p {
margin: 0;
font-size: 12px;
line-height: 16px;
}
.icon-usage {
flex: 1;
padding: 56px 10% 56px 0;
}
.snippet {
margin-bottom: 24px;
}
.snippet pre {
display: flex;
align-items: center;
text-overflow: ellipsis;
color: black;
user-select: all;
-moz-user-select: all;
-webkit-user-select: all;
}
.snippet pre:focus {
animation: select 50ms step-end forwards;
}
@keyframes select {
to {
user-select: text;
-moz-user-select: text;
-webkit-user-select: text;
}
}
.snippet span {
flex: 1;
}
.snippet button {
background-color: transparent;
margin: 0;
padding: 0;
height: 24px;
cursor: pointer;
}
.snippet button:disabled {
cursor: not-allowed;
}
.button-row {
display: flex;
flex-wrap: wrap;
}
.button-row button {
background-color: transparent;
font-size: 16px;
line-height: 24px;
margin: 0 48px 0 0;
padding: 0;
height: 48px;
cursor: pointer;
}
.button-row button svg {
margin-right: 8px;
}
.close-icon {
position: absolute;
top: 24px;
right: 24px;
text-align: end;
cursor: pointer;
}
.empty-list {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 16px 4px;
min-height: 80vh;
max-width: 1120px;
margin: auto;
}
.empty-list p {
max-width: 80%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 0;
}
.beacon {
position: relative;
top: -96px;
}