2022-10-25 00:25:30 +02:00
|
|
|
/*
|
2020-10-01 00:18:42 +02:00
|
|
|
* Challenge resolutions:
|
|
|
|
* 375x667 & 1440x800
|
2020-10-01 15:53:16 +02:00
|
|
|
* 327x512 - 730x280
|
2020-10-01 00:18:42 +02:00
|
|
|
*/
|
|
|
|
|
2022-10-25 00:25:30 +02:00
|
|
|
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700&display=swap");
|
2020-10-01 15:53:16 +02:00
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
:root {
|
|
|
|
/* font stuff */
|
|
|
|
font-size: 20px;
|
|
|
|
/* colors */
|
|
|
|
--veryDarkGrayishBlue: hsl(217, 19%, 35%);
|
|
|
|
--desaturatedDarkBlue: hsl(214, 17%, 51%);
|
|
|
|
--grayishBlue: hsl(212, 23%, 69%);
|
|
|
|
--lightGrayishBlue: hsl(210, 46%, 95%);
|
|
|
|
/* corner radius */
|
|
|
|
--cornerRadius: 10px;
|
|
|
|
}
|
|
|
|
|
2022-10-25 00:25:30 +02:00
|
|
|
/* Base styling */
|
2020-10-01 00:18:42 +02:00
|
|
|
|
|
|
|
body {
|
2022-10-25 00:25:30 +02:00
|
|
|
font-family: "Manrope", sans-serif;
|
2020-10-01 00:18:42 +02:00
|
|
|
background-color: var(--lightGrayishBlue);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
font-size: 13px;
|
|
|
|
justify-content: center;
|
2022-10-25 00:25:30 +02:00
|
|
|
min-height: 100vh;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.articlePreview {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
border-radius: var(--cornerRadius);
|
2020-10-04 01:34:27 +02:00
|
|
|
overflow: hidden;
|
2020-10-01 00:18:42 +02:00
|
|
|
background-color: white;
|
2020-10-01 15:53:16 +02:00
|
|
|
width: 87%;
|
2020-10-01 00:18:42 +02:00
|
|
|
margin: 0 auto;
|
2020-10-03 14:05:43 +02:00
|
|
|
|
|
|
|
box-shadow: 0px 40px 40px -10px rgba(201, 213, 225, 0.503415);
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
2020-10-01 15:53:16 +02:00
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
.previewImage {
|
2020-10-04 01:57:50 +02:00
|
|
|
flex: 1 40%;
|
2020-10-01 15:53:16 +02:00
|
|
|
overflow: hidden;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
2020-10-01 15:53:16 +02:00
|
|
|
|
|
|
|
.previewImage > img {
|
|
|
|
width: 100%;
|
2022-10-25 00:25:30 +02:00
|
|
|
margin: -5% 0 -14.5% 0%;
|
2020-10-01 15:53:16 +02:00
|
|
|
}
|
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
.previewBody {
|
2020-10-01 15:53:16 +02:00
|
|
|
flex: 1 60%;
|
2020-10-03 14:05:43 +02:00
|
|
|
margin-top: 0.85rem;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
2020-10-01 15:53:16 +02:00
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
.articleSummary {
|
2020-10-04 01:34:27 +02:00
|
|
|
padding: 1rem 1.75rem 1rem 1.5rem;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
2020-10-03 14:05:43 +02:00
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
.articleTitle {
|
|
|
|
color: var(--veryDarkGrayishBlue);
|
2020-10-03 14:05:43 +02:00
|
|
|
font-size: 16px;
|
|
|
|
line-height: 24px;
|
|
|
|
font-weight: 700;
|
|
|
|
letter-spacing: 0.2px;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
2020-10-03 14:05:43 +02:00
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
.articleSell {
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
color: var(--desaturatedDarkBlue);
|
2020-10-03 14:05:43 +02:00
|
|
|
font-size: 13px;
|
|
|
|
font-weight: 500;
|
|
|
|
letter-spacing: 0.12px;
|
|
|
|
line-height: 20px;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
2020-10-03 14:05:43 +02:00
|
|
|
|
2020-10-04 01:34:27 +02:00
|
|
|
.articleFooter {
|
2020-10-01 00:18:42 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
2020-10-04 01:34:27 +02:00
|
|
|
padding: 1rem 1.5rem 1rem 1.5rem;
|
|
|
|
|
|
|
|
transition: 250ms ease-in-out;
|
2020-10-04 13:04:01 +02:00
|
|
|
|
|
|
|
position: relative;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.authorImage {
|
|
|
|
border-radius: 50%;
|
2020-10-03 14:05:43 +02:00
|
|
|
width: 2rem;
|
|
|
|
height: 2rem;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
2020-10-01 15:53:16 +02:00
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
.nameAndDate {
|
2020-10-03 14:05:43 +02:00
|
|
|
margin-left: 0.8rem;
|
2020-10-01 00:18:42 +02:00
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
|
|
|
}
|
2020-10-01 15:53:16 +02:00
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
.authorName {
|
2020-10-03 14:05:43 +02:00
|
|
|
color: var(--veryDarkGrayishBlue);
|
|
|
|
font-weight: 700;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
2020-10-01 15:53:16 +02:00
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
.articleDate {
|
|
|
|
margin-top: 0.3rem;
|
|
|
|
color: var(--desaturatedDarkBlue);
|
2020-10-03 14:05:43 +02:00
|
|
|
font-weight: 500;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
2020-10-01 15:53:16 +02:00
|
|
|
|
2020-10-04 01:34:27 +02:00
|
|
|
.articleShareButton {
|
2020-10-01 00:18:42 +02:00
|
|
|
background-color: var(--lightGrayishBlue);
|
2022-10-25 00:25:30 +02:00
|
|
|
color: #6e8098;
|
2020-10-04 01:34:27 +02:00
|
|
|
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
2020-10-01 00:18:42 +02:00
|
|
|
margin-left: auto;
|
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
2020-10-04 01:34:27 +02:00
|
|
|
|
|
|
|
transition: 250ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.buttonDark {
|
2020-10-04 11:56:44 +02:00
|
|
|
background-color: var(--desaturatedDarkBlue);
|
|
|
|
color: var(--lightGrayishBlue);
|
2020-10-04 01:34:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.articleShareButtonTooltip {
|
|
|
|
display: none;
|
2020-10-04 13:04:01 +02:00
|
|
|
position: absolute;
|
2020-10-04 01:34:27 +02:00
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
|
|
|
background: var(--veryDarkGrayishBlue);
|
|
|
|
box-shadow: 0px 10px 10px rgba(201, 213, 225, 0.503415);
|
|
|
|
|
|
|
|
width: 170px;
|
|
|
|
padding: 0.75rem 1rem;
|
2020-10-04 13:04:01 +02:00
|
|
|
top: -60px;
|
|
|
|
right: -47px;
|
2020-10-04 01:34:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.articleShareButtonTooltip::before {
|
|
|
|
content: "";
|
|
|
|
width: 0px;
|
|
|
|
height: 0px;
|
|
|
|
border: 0.8rem solid transparent;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
left: 45%;
|
|
|
|
bottom: -25px;
|
|
|
|
border-top: 10px solid var(--veryDarkGrayishBlue);
|
|
|
|
}
|
|
|
|
|
|
|
|
.articleShareSection {
|
|
|
|
display: none;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
|
|
width: 80%;
|
|
|
|
height: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.backgroundDark {
|
|
|
|
background: var(--veryDarkGrayishBlue);
|
|
|
|
}
|
|
|
|
|
2022-10-25 00:25:30 +02:00
|
|
|
.articleShareButtonTooltip > p,
|
|
|
|
.articleShareSection > p {
|
2020-10-04 01:34:27 +02:00
|
|
|
letter-spacing: 5px;
|
|
|
|
color: var(--grayishBlue);
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
|
2020-10-04 11:56:44 +02:00
|
|
|
@media screen and (min-width: 650px) {
|
2020-10-01 00:18:42 +02:00
|
|
|
body {
|
|
|
|
align-content: center;
|
2022-10-25 00:25:30 +02:00
|
|
|
align-items: center;
|
2020-10-01 00:18:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.articlePreview {
|
|
|
|
flex-direction: row;
|
|
|
|
width: 50%;
|
2020-10-04 01:57:50 +02:00
|
|
|
min-width: 600px;
|
2020-10-04 11:56:44 +02:00
|
|
|
overflow: visible;
|
2022-10-25 00:25:30 +02:00
|
|
|
}
|
2020-10-01 00:18:42 +02:00
|
|
|
|
|
|
|
.previewImage {
|
2020-10-01 15:53:16 +02:00
|
|
|
width: 100%;
|
2020-10-04 11:56:44 +02:00
|
|
|
border-radius: var(--cornerRadius) 0 0px var(--cornerRadius);
|
2020-10-01 15:53:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.previewImage > img {
|
2022-10-25 00:25:30 +02:00
|
|
|
margin: 0;
|
2020-10-01 15:53:16 +02:00
|
|
|
height: 105%;
|
|
|
|
object-fit: cover;
|
|
|
|
object-position: left;
|
|
|
|
}
|
2020-10-03 14:05:43 +02:00
|
|
|
|
|
|
|
.previewBody {
|
2020-10-04 11:56:44 +02:00
|
|
|
margin-top: 0.65rem;
|
2020-10-04 01:34:27 +02:00
|
|
|
margin-left: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.articleSummary {
|
2020-10-04 11:56:44 +02:00
|
|
|
padding: 1rem 1.75rem 1rem 1.5rem;
|
2020-10-03 14:05:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.articleTitle {
|
|
|
|
font-size: 20px;
|
|
|
|
letter-spacing: 0.25px;
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
|
|
|
.articleSell {
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
}
|
2022-10-25 00:25:30 +02:00
|
|
|
|
2020-10-04 01:34:27 +02:00
|
|
|
.articleFooter {
|
2020-10-04 11:56:44 +02:00
|
|
|
padding: 0rem 1.75rem 1.5rem 1.5rem;
|
2020-10-03 14:05:43 +02:00
|
|
|
}
|
2020-10-04 11:56:44 +02:00
|
|
|
}
|
|
|
|
|
2022-10-25 00:25:30 +02:00
|
|
|
.attribution {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
font-size: 11px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.attribution a {
|
|
|
|
color: hsl(228, 45%, 44%);
|
|
|
|
}
|