abdullahtarawneh.com/assets/scss/work/index.scss

175 lines
3.2 KiB
SCSS
Raw Normal View History

2021-12-13 11:17:15 +00:00
#work {
2021-12-13 11:30:50 +00:00
.page-header .container {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
align-content: center;
.page-title {
margin-right: 1em;
margin-bottom: 1em;
}
}
2021-12-13 11:17:15 +00:00
.timeline {
position: relative;
max-width: 60em;
margin: 0 auto;
2021-12-14 20:35:42 +00:00
&::before {
content: 'TODAY';
position: absolute;
2021-12-16 00:25:13 +00:00
bottom: 0;
2021-12-14 20:35:42 +00:00
left: 2.5em;
}
2021-12-13 11:17:15 +00:00
&::after {
content: '';
position: absolute;
width: 0.5em;
2021-12-16 00:25:13 +00:00
background: #ddd;
top: -2em;
2021-12-13 11:17:15 +00:00
bottom: 0;
left: 1.5em;
2021-12-16 00:25:13 +00:00
z-index: -1;
border-radius: 100em;
2021-12-13 11:17:15 +00:00
}
&-item {
padding: 1em 0;
position: relative;
margin-left: 2.5em;
margin-bottom: 2em;
@media (min-width: 30em) {
display: grid;
grid-template-areas:
"dates title title"
"at title title"
"readmore summary summary"
;
grid-template-columns: 20ch auto 1fr;
grid-template-rows: auto auto auto;
padding-top: 1.5em;
}
&::before {
content: " ";
position: absolute;
2021-12-16 00:25:13 +00:00
top: 0.75em;
2021-12-13 11:17:15 +00:00
width: 2em;
height: 2em;
z-index: 1;
2021-12-14 20:35:42 +00:00
left: -3em;
2021-12-13 11:17:15 +00:00
border-width: 1em;
border-color: #06f;
border-radius: 100em;
background-color: #06f;
2021-12-14 20:35:42 +00:00
border: 0.25em solid #ddd;
2021-12-13 11:17:15 +00:00
}
&.worktrilogy::before {
background: url("/icons/trilogy.png");
background-size: cover;
}
&.workmastodon::before {
background: url("/icons/mastodon.png");
background-size: cover;
}
&.workpixelfed::before {
background: url("/icons/pixelfed.svg");
background-size: cover;
background-color: pink;
}
&.workeqin::before {
background: url("/icons/eqin.png");
background-size: cover;
2021-12-14 20:35:42 +00:00
}
&.workuab {
&::before {
background: url("/icons/uab.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-color: white;
}
2021-12-13 11:17:15 +00:00
}
&__daterange {
margin-left: 0em;
flex-basis: 10ch;
grid-area: dates;
text-transform: uppercase;
}
&__at {
display: block;
margin-bottom: 0.5em;
}
&__title {
font-size: 1.4em;
font-weight: 700;
margin-bottom: 0.5em;
2021-12-16 00:25:13 +00:00
margin-top: 0.5em;
2021-12-13 11:17:15 +00:00
grid-area: title;
@media (min-width: 30em) {
margin-top: -0.125em;
}
}
&__summary {
flex-basis: 30ch;
grid-area: summary;
2021-12-13 11:30:50 +00:00
line-height: 1.4;
margin-bottom: 0.5em;
2021-12-13 11:17:15 +00:00
}
&__readmore {
2021-12-16 00:25:13 +00:00
width: max-content;
height: min-content;
2021-12-13 11:17:15 +00:00
grid-area: readmore;
2021-12-16 00:25:13 +00:00
background: #06f;
padding: 0.5em 1em;
color: white;
text-decoration: none;
border-radius: 0.25em;
display: block;
2021-12-13 11:17:15 +00:00
}
}
}
2021-12-14 20:35:42 +00:00
.cta {
.container {
display: flex;
flex-flow: column;
align-items: start;
}
.title {
font-size: 1.4em;
font-weight: 700;
margin-bottom: 1.4em;
}
.blurb {
line-height: 1.4;
margin-bottom: 1.4em;
strong {
font-weight: 700;
2021-12-16 00:25:13 +00:00
color: green;
2021-12-14 20:35:42 +00:00
}
}
.buttons {
margin-top: 1em;
display: grid;
grid-template-columns: 1fr;
width: 100%;
font-size: 1.25em;
2021-12-16 00:25:13 +00:00
@media (min-width: 33.75em) {
grid-template-columns: 1fr 1fr 1fr;
2021-12-14 20:35:42 +00:00
width: unset;
}
gap: 1em;
.button {
justify-content: start;
width: 100%;
i {margin-right: 1em;}
}
}
.email.button {
}
.resume.button {
background: white;
border: 2px solid #06f;
color: #06f;
}
}
2021-12-13 11:17:15 +00:00
}