Estava vendo a aula e percebi que o meu não tinha ficado igual ao do professor e eu não sei o pq
css:
@media screen and (min-width: 1440px){
body {
display: grid;
grid-template-columns: auto 1fr;
}
}
.cabecalho {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #15191C;
padding: 8px 16px;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.16);
}
.cabecalho__menu i::before {
content: "\e904";
font-size: 24px;
}
.cabecalho__notificacao i::before {
content: "\e906";
font-size: 24px;
}
.cabecalho__logo {
width: 40px;
}
.cabecalho__perfil {
display: none;
}
@media screen and (min-width: 1440px){
.cabecalho {
background-color: #1D232A;
display: grid;
column-gap: 32px;
grid-template-columns: 1fr auto;
padding: 16px 60px;
height: 80px;
box-sizing: border-box;
}
.cabecalho__menu {
display: none;
}
.cabecalho__logo {
display: none;
}
.cabecalho__perfil{
display: grid;
grid-template-columns: repeat(3, auto);
column-gap: 8px;
align-items: center;
justify-self: flex-end;
color: #95999C;
padding: 8px 32px;
border-right: 1px solid #95999C;
}
.cabecalho__perfil::before {
content: "";
display: block;
width: 32px;
height: 32px;
background-image: url(../img/profile_2.png);
background-repeat: no-repeat;
background-position: center;
}
.cabecalho__perfil::after {
content: "\e90d";
color: #FFFFFF;
font-size: 1.5rem;
}
}
.menu-lateral {
display: flex;
flex-direction: column;
background-color: #15191C;
width: 75vw;
height: 100vh;
position: absolute;
left: -100vw;
transition: .25s;
}
.menu-lateral--ativo{
left: 0;
transition: .25s;
}
.menu-lateral__logo {
width: 118px;
align-self: center;
padding: 16px;
}
.menu-lateral__link {
height: 64px;
color: #95999C;
padding-left: 64px;
display: flex;
align-items: center;
}
.menu-lateral__link--ativo{
color: #FFFFFF;
padding-left: 56px;
border-left: 8px solid #FFFFFF;
}
.menu-lateral__link::before{
content: "";
width: 24px;
height: 24px;
font-size: 24px;
position: absolute;
left: 24px;
}
@media screen and (min-width: 1440px){
.menu-lateral{
position: static;
width: 200px;
}
}
.principal {
padding: 24px 16px;
display: grid;
gap: 16px;
}
.titulo-pagina {
font-size: 1.5rem;
font-weight: 700;
}
.titulo-secao {
font-size: 1.2rem;
font-weight: 700;
}
@media screen and (min-width: 1440px) {
.princial {
display: grid;
grid-template-columns: auto 1fr auto;
column-gap: 32px;
padding: 16px 60px;
}
}
.cartao {
width: 100%;
border-radius: 15px;
overflow: hidden;
background-color: #2C343A;
}
.cartao--destaque {
margin-bottom: 16px;
}
.cartao__conteudo {
padding: 16px;
display: grid;
grid-template-columns: auto 1fr;
gap: 8px;
}
.cartao__destaque {
grid-column: span 2;
}
.cartao__titulo {
font-size: 1.2rem;
font-weight: 700;
grid-column: span 2;
}
.cartao__perfil {
color: #95999C;
font-size: 0.9rem;
grid-column: span 2;
}
@media screen and (min-width: 1440px) {
.cartao--recentes {
display: grid;
grid-template-columns: repeat(2, auto);
align-items: center;
row-gap: 24px;
width: 256px;
padding: 16px;
box-sizing: border-box;
}
.cartao--recentes .cartao__titulo{
grid-column: auto;
}
.cartao__link {
font-size: 0.8rem;
font-weight: 600;
color: #0480DC;
justify-self: flex-end;
}
.carato__lista {
display: grid;
row-gap: 16px;
grid-column: span 2;
}
.cartao__item {
display: grid;
grid-template-columns: auto 1fr;
gap: 8px;
}
.cartao__item-thumbnail {
width: 32px;
grid-row: span 2;
}
.cartao__item-titulo{
font-size: 0.9rem;
line-height: 1.2rem;
font-weight: 700;
}
.cartao__item-perfil {
font-size: 0.8rem;
color: #95999C;
}
}