website/assets/css/pretendo-home.css
2018-11-23 16:59:05 +01:00

93 lines
1.6 KiB
CSS

/* home header */
header {
text-align: center;
color: white;
background: #673db6;
padding: 5rem 1rem;
}
header hr {
width: 175px;
height: 2px;
background: white;
display: inline-block;
border: 0;
margin: 0 auto;
display: block;
}
header h1 {
font-size: 3.5em;
font-weight: 400;
letter-spacing: 0.25em;
margin: 0;
margin-bottom: 10px;
text-transform: uppercase;
}
header h3 {
font-weight: normal;
max-width: 80%;
display: inline-block;
font-size: 1.1rem;
}
/* news cards */
.smallCard {
padding: 20px;
border: 1px solid #9474cc; border-radius: 10px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
position: relative;
margin-left: 3em;
height: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.smallCard h3 {
font-size: 1.5em;
margin: 0;
}
.smallCard p {
flex: 1;
}
/* specific */
.smallCardWidth {
width: 100%;
max-width: 300px;
}
@media screen and (max-width: 1050px) {
.bigCard.cont-flex {
flex-direction: column;
}
.bigCard > .flex-item {
margin-bottom: 3em;
}
.smallCardWidth .smallCard {
margin-left: 0;
margin: 1em;
}
.bigCard.cont-flex > .cont-flex {
align-items: center;
justify-content: center;
}
}
@media screen and (max-width: 888px) {
.profile {
width: 100%;
max-width: 100%;
min-width: 100%;
}
.smallCard {
width: 100%;
max-width: 250px;
height: auto;
}
.bigCard.cont-flex > .cont-flex {
flex-direction: column;
}
header h1 {
font-size: 2.5em;
}
}