@stianlarsen/react-ui-kit
Version:
A versatile React UI kit focused on delivering ready-to-use, customizable buttons for every use case. Designed to save developers time and streamline UI development, this kit offers a range of button styles and loaders, ensuring immediate integration and
83 lines (81 loc) • 1.92 kB
CSS
.simple-card {
width: 100%;
max-width: 600px;
padding: 1.5rem 2rem;
background-color: hsl(var(--background));
display: flex;
flex-wrap: nowrap;
gap: 1rem;
justify-content: flex-start;
align-items: center;
border-radius: calc(var(--radius));
border: 1px solid hsl(var(--muted-foreground));
}
.simple-card__icon-wrapper {
width: 1.5rem;
height: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
}
.simple-card__icon-wrapper img,
.simple-card__icon-wrapper svg {
width: 1.5rem;
height: 1.5rem;
}
.simple-card__icon-wrapper svg path {
stroke-width: 1px;
stroke: hsl(var(--muted-foreground)/0.8);
border: none;
fill: transparent;
}
.simple-card__content {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 0.25rem;
}
.simple-card__content__title {
color: hsl(var(--foreground)/0.87);
font-size: 0.975rem;
}
.simple-card__content__description {
color: hsl(var(--muted-foreground));
font-size: 0.875rem;
}
.simple-card__linkIcon {
flex: 0 1 auto;
display: flex;
align-items: center;
justify-content: center;
margin-left: auto;
}
.simple-card__linkIcon svg {
width: 1rem;
height: 1rem;
transition: transform 200ms ease;
color: hsl(var(--muted-foreground)/0.5);
}
.simple-card:hover .simple-card__linkIcon svg {
transform: translateX(4px);
color: hsl(var(--muted-foreground)/0.98);
}
.simple-card-clickable {
cursor: pointer;
transition: all 147ms ease;
}
.simple-card-clickable:hover {
border: 1px solid hsl(var(--muted-foreground)/0.98);
}
@media screen and (prefers-color-scheme = dark) {
.simple-card {
background-color: hsl(var(--muted));
border: 1px solid hsl(var(--muted-foreground)/0.5);
}
.simple-card__icon-wrapper img,
.simple-card__icon-wrapper svg {
stroke-width: initial;
border: initial;
}
}/*# sourceMappingURL=simpleCard.css.map */