Predefinição:Cartão/styles.css

De Guia Galáctico
.card {
	position: relative;
	border-radius: 8px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
	font-size: 0.875rem;
	min-height: 100px;
	display: flex;
	flex-flow: column;
}

.card__foreground {
	position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    padding: 15px;
    font-weight: 500;
    background: linear-gradient(to right, #2361a7, transparent);
}

.card__foreground a {
	color: #fff;
	flex: 1;
}

.card__background {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 8px;
	overflow: hidden;
}

.card__background img {
	border-radius: 8px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .2s ease;
}

.card:hover .card__background img {
	transform: scale( 1.1 );
}
Cookies nos ajudam a entregar nossos serviços. Ao usar nossos serviços, você concorda com o uso de cookies.