(Criou página com ' .home-header { margin-top: 2rem; margin-bottom: 2rem; padding-top: 2rem; } .header-rune { margin-top: 2rem; margin-bottom: 2rem; padding-top: 1rem; } .home-header__title { margin-top: 0; font-size: 1.5rem; } .home-header .home-header__subtitle { margin-top: 0.4rem; color: var(--color-base--subtle); font-size: 0.875rem; } .home-header__search { max-width: 600px; padding: 0.6rem 0.8rem; margin: 0.8rem auto 0 auto; background: var(--color-surface-1); bo...') |
mSem resumo de edição |
||
(8 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
Linha 1: | Linha 1: | ||
.grid-card { | |||
.grid- | |||
display: grid; | display: grid; | ||
grid: auto-flow dense/repeat(auto-fit, minmax( | grid: auto-flow dense/repeat(auto-fit,minmax(18rem,1fr)); | ||
grid-auto-rows: minmax( | grid-auto-rows: minmax(4.5rem,auto); | ||
grid-gap: 0.625rem; | grid-gap: 0.625rem; | ||
} | } | ||
. | .card-home { | ||
position: relative; | position: relative; | ||
padding: 15px; | padding: 15px; | ||
background: var(--color-surface-1); | /*background: var(--color-surface-1);*/ | ||
border-radius: | border-radius: 15px; | ||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0. | box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.8); | ||
font-size: 0.875rem; | font-size: 0.875rem; | ||
display: flex; | display: flex; | ||
align-items: | align-items: flex-end; | ||
transition: 0.4s ease-out; | |||
} | } | ||
. | .card-home__background { | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
Linha 267: | Linha 24: | ||
bottom: 0; | bottom: 0; | ||
left: 0; | left: 0; | ||
background: #242a31; | /*background: #242a31;*/ | ||
border-radius: | border-radius: 15px; | ||
} | } | ||
. | .card-home__background img { | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
border-radius: 15px; | |||
object-fit: cover; | object-fit: cover; | ||
object-position: center; | object-position: center; | ||
} | } | ||
. | #card-nav .card-home__foreground { | ||
pointer-events: none; | |||
height: 50%; | |||
width: 100%; | |||
display: flex; | |||
align-items: center; | |||
padding: 0 15px; | |||
color: #fff; | |||
font-weight: 500; | |||
} | } | ||
. | .card-home__foreground { | ||
color: | position: relative; | ||
z-index: 3; | |||
color: white; | |||
opacity: 1; | |||
transform: translateY(00px); | |||
transition: 0.5s; | |||
} | } | ||
. | .card-home p { | ||
margin-top: 0.2rem; | margin-top: 0.2rem; | ||
font-size: 0.875rem; | font-size: 0.875rem; | ||
} | } | ||
.home- | .card-home.card-home--button { | ||
overflow: hidden; | overflow: hidden; | ||
padding: 0; | padding: 0; | ||
Linha 301: | Linha 67: | ||
} | } | ||
.home | .card-home--button a { | ||
display: flex; | display: flex; | ||
height: 100%; | height: 100%; | ||
Linha 312: | Linha 78: | ||
} | } | ||
.home | .card-home--button .card-home__background a { | ||
padding: 0; | padding: 0; | ||
} | } | ||
.home | .card-home--button img { | ||
transition: transform 0.2s ease; | transition: transform 0.2s ease; | ||
} | } | ||
.home | .card-home--button:hover img { | ||
transform: scale(1.1); | transform: scale(1.1); | ||
opacity: 1; | |||
} | } | ||
#card-nav .card-home__background:after{ | |||
position: absolute; | |||
pointer-events: none; | |||
top: 0; | |||
right: 0; | |||
bottom: 0; | |||
left: 0; | |||
display: block; | |||
background: linear-gradient(to right,#000,transparent); | |||
content: ""; | |||
# | |||
. | |||
} | } |
Edição atual tal como às 21h59min de 28 de novembro de 2024
.grid-card { display: grid; grid: auto-flow dense/repeat(auto-fit,minmax(18rem,1fr)); grid-auto-rows: minmax(4.5rem,auto); grid-gap: 0.625rem; } .card-home { position: relative; padding: 15px; /*background: var(--color-surface-1);*/ border-radius: 15px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.8); font-size: 0.875rem; display: flex; align-items: flex-end; transition: 0.4s ease-out; } .card-home__background { position: absolute; top: 0; right: 0; bottom: 0; left: 0; /*background: #242a31;*/ border-radius: 15px; } .card-home__background img { width: 100%; height: 100%; border-radius: 15px; object-fit: cover; object-position: center; } #card-nav .card-home__foreground { pointer-events: none; height: 50%; width: 100%; display: flex; align-items: center; padding: 0 15px; color: #fff; font-weight: 500; } .card-home__foreground { position: relative; z-index: 3; color: white; opacity: 1; transform: translateY(00px); transition: 0.5s; } .card-home p { margin-top: 0.2rem; font-size: 0.875rem; } .card-home.card-home--button { overflow: hidden; padding: 0; background: #242a31; } .card-home--button a { display: flex; height: 100%; justify-content: center; align-items: center; padding: 0 15px; background: transparent; color: #fff; font-weight: 500; } .card-home--button .card-home__background a { padding: 0; } .card-home--button img { transition: transform 0.2s ease; } .card-home--button:hover img { transform: scale(1.1); opacity: 1; } #card-nav .card-home__background:after{ position: absolute; pointer-events: none; top: 0; right: 0; bottom: 0; left: 0; display: block; background: linear-gradient(to right,#000,transparent); content: ""; }