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.
 
 

335 lines
5.4 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'
'main main main'
'footer footer footer';
grid-gap: 2px;
grid-template-columns: 1fr;
}
.header{
grid-area: header;
width: 100%;
display: flex;
justify-content: center;
background-color: var(--primary-color);
}
.header__content{
width: 1450px;
}
.header__menu{
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5em 1em 0.5em 1em;
}
.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__menu > .header__nav > ul {
display: flex;
align-items: center;
gap: 1.4em;
}
.header__nav-item > a{
color: #FFF;
font-size: 0.9em;
position: relative;
padding: 0.2em 0em;
}
.header__nav-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__nav-item > a:hover::after {
width: 100%;
}
.header__title{
width: 100%;
padding: 1em;
position: relative;
display: flex;
justify-content: center;
}
.header__title h1{
width: 100%;
font-weight:bold;
font-style: italic;
font-family: var(--second-font);
color: var(--second-color);
border-bottom: 2px solid var(--second-color);
padding: 0.2em 0em;
}
.header__options{
display: flex;
}
.header__options > .options__search > input{
border: none;
font-size: 1em;
padding: 0.3em;
outline: none;
border-radius: 4px;
}
.header__options > .options__search > button{
font-size: 1em;
border: none;
background-color: var(--second-color);
padding: 0.3em;
cursor: pointer;
font-weight: bold;
border-radius: 4px;
}
.header__options > .options__search > button:hover{
box-shadow: var(--second-color) 0px 0px 20px;
transition: 0.3s;
}
.main{
grid-area: main;
width: 100%;
display: flex;
justify-content: center;
padding: 0.5em 0em 0em 0em;
}
.main .main__content{
width: 1450px;
height: 100%;
display: flex;
justify-content: space-between;
gap: 1em;
padding: 0.5em;
}
.content__posts{
width: 100%;
box-shadow: 0px 0px 15px;
}
.sidebar{
grid-area: sidebar;
height: 100vh;
}
.sidebar__content{
height: 100%;
width: 100%;
box-shadow: 0px 0px 15px;
display: flex;
flex-direction: column;
align-items: center;
}
.sidebar .siderbar__title{
width: 100%;
text-align: center;
padding: 0.4em 0.2em;
background-color: #000;
color: #FFF;
}
.sidebar .siderbar__title > h1{
font-size: 1.4em;
font-style: italic;
font-family: var(--second-font);
color: var(--second-color);
}
.sidebar .sidebar__new-posts{
display: flex;
height: 100%;
flex-direction: column;
align-items: center;
overflow: auto;
width: 100%;
padding: 1em;
}
.footer{
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;
margin-top: 1em;
}
.footer__content{
width: 1450px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1em 0em;
}
.footer__content > .footer__network{
display: flex;
flex-direction: column;
gap: 0.6em;
}
.footer__content > .footer__network > li{
list-style: none
}
.footer__content > .footer__network > li > a{
font-size: 1.1em;
color: #FFF
}
.footer__content > .footer__network > li > a:hover{
transition: 0.3s;
color: var(--second-color)
}
.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;
}
.card{
width: 280px;
border: 1px solid #000;
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%;
}
.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;
}
.post{
width: 100%;
display: flex;
justify-content: center;
padding: 1em;
}
.post > .post__content{
width: 80%;
border: 1px solid #000;
margin: 1em 0em;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.post__image {
width: 100%;
}
.post__image > img{
width: 100%;
}
.post__info{
width: 100%;
padding: 1em;
}
.post__info > .post__title, .post__body, .post__by{
margin-bottom: 0.5em;
}
.post__tags{
display: flex;
width: 100%;
gap: 0.5em;
padding: 0.5em 0em;
color: #0000ff;
}
.post__by{
font-weight: bold;
}