You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

180 lines
3.0 KiB

@import url("./variables.css");
*{padding: 0; margin: 0; box-sizing: border-box; font-family: var(--font-main);}
html, body{
width: 100%;
height: 100%;
}
a{
text-decoration: none;
}
.container{
height: 100%;
display: grid;
grid-template-areas:
'header header header header header header header'
'main main main main main main sidebar '
'footer footer footer footer footer footer footer';
}
.header{
grid-area: header;
display: flex;
justify-content: space-between;
align-items: center;
height: 8vh;
background-color: var(--primary-color);
padding: 0.5em 2em;
border-bottom: 2px solid var(--second-color);
}
.header .header__logo > h1{
color: #FFF;
font-size: 1.5em;
font-weight: 300;
text-shadow: 2px 2px 2px var(--second-color);
}
.header .header__logo > h1 > span{
font-weight: 500;
}
.header > .header__menu > ul {
display: flex;
align-items: center;
gap: 1.4em;
}
.header__menu-item > a{
color: #FFF;
font-weight: bold;
font-size: 1em;
position: relative;
padding: 0.2em 0em;
}
.header__menu-item > a::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 4px;
background-color: var(--second-color);
transition: width 0.3s ease-out;
}
.header__menu-item > a:hover::after {
width: 100%;
}
.sidebar{
grid-area: sidebar;
height: 82vh;
display: flex;
flex-direction: column;
align-items: center;
background-color: var(--primary-background);
}
.sidebar .siderbar__title{
width: 100%;
background-color: #4B0082;
text-align: center;
padding: 0.4em 0.2em;
margin-bottom: 1em;
}
.sidebar .sidebar__new-posts{
display: flex;
flex-direction: column;
align-items: center;
overflow: auto;
width: 100%;
padding: 1em 0.3em;
}
.main{
height: 82vh;
grid-area: main;
background-color: blue;
}
.footer{
height: 10vh;
grid-area: footer;
background-color: var(--primary-color);
border-top: 2px solid var(--second-color);
color: #FFF;
display: flex;
justify-content: center;
align-items: center;
}
.btn{
background: none;
padding: 0.4em 0.5em;
border: 1px solid #FFF;
font-size:1em;
border-radius: 3px;
}
.btn--success{
color: #000;
background-color: #4B0082;
border: none;
}
.btn--danger{}
.card{
width: 280px;
border: 1px solid #000;
border-radius: 10px;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
background-color: #FFF;
margin-bottom: 2em;
}
.card > .card__img{
width: 100%;
}
.card > .card__img > img{
width: 100%;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
.card > .card__info{
width: 100%;
}
.card > .card__info{
width: 100%;
padding: 1em;
}
.card > .card__info > .card__title{
margin-bottom: 1em;
}
.card > .card__info > .card__title > *{
font-size: 1.2em;
}
.card > .card__info > .card__body{
margin-bottom: 1em;
}
.card .card__info .card__posted-by{
}