abdullahtarawneh.com/assets/scss/content/work.scss

182 lines
3.4 KiB
SCSS
Raw Normal View History

2021-12-13 11:17:15 +00:00
#work {
overflow: hidden;
2021-12-20 11:27:10 +00:00
.title {
font-size: 2em;
font-weight: 700;
margin-top: 2rem;
margin-bottom: 2em;
2021-12-20 11:27:10 +00:00
&:before {
font-size: 3em;
font-weight: 700;
color: #ddd;
position: absolute;
top: -0.425em;
left: -0.15em;
z-index: -1;
2021-12-13 11:30:50 +00:00
}
2021-12-20 11:27:10 +00:00
position: relative;
2021-12-13 11:30:50 +00:00
}
#timeline .title:before {
content: 'timeline';
}
#hireme .title:before {
content: ''
}
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;
bottom: -4rem;
left: 1.25em;
2021-12-14 20:35:42 +00:00
}
2021-12-13 11:17:15 +00:00
&::after {
content: '';
position: absolute;
width: 0.5rem;
2021-12-16 00:25:13 +00:00
background: #ddd;
top: 0rem;
bottom: -5rem;
left: 0.5rem;
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-bottom: 2em;
@media (min-width: 30em) {
display: grid;
grid-template-areas:
"dates title"
"at title"
"readmore summary"
2021-12-13 11:17:15 +00:00
;
grid-template-columns: 20ch 1fr;
2021-12-13 11:17:15 +00:00
grid-template-rows: auto auto auto;
padding-top: 1.5em;
}
margin-left: 2.5rem;
2021-12-13 11:17:15 +00:00
&::before {
content: " ";
position: absolute;
top: 0.75rem;
width: 2rem;
height: 2rem;
2021-12-13 11:17:15 +00:00
z-index: 1;
left: -3rem;
border-width: 1rem;
2021-12-13 11:17:15 +00:00
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 {
2021-12-20 11:27:10 +00:00
background: url("/images/logos/trilogy.png");
2021-12-13 11:17:15 +00:00
background-size: cover;
}
&.workmastodon::before {
2021-12-20 11:27:10 +00:00
background: url("/images/logos/mastodon.png");
2021-12-13 11:17:15 +00:00
background-size: cover;
}
&.workpixelfed::before {
2021-12-20 11:27:10 +00:00
background: url("/images/logos/pixelfed.svg");
2021-12-13 11:17:15 +00:00
background-size: cover;
background-color: pink;
}
2021-12-23 05:32:17 +00:00
&.workgo-fed::before {
background: url("/images/logos/go-fed.png");
background-size: cover;
}
2021-12-13 11:17:15 +00:00
&.workeqin::before {
2021-12-20 11:27:10 +00:00
background: url("/images/logos/eqin.png");
2021-12-13 11:17:15 +00:00
background-size: cover;
2021-12-14 20:35:42 +00:00
}
2021-12-16 13:02:45 +00:00
&.workuab:before {
2021-12-20 11:27:10 +00:00
background: url("/images/logos/uab.png");
2021-12-16 13:02:45 +00:00
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-16 13:02:45 +00:00
.workeqin, .workuab, .workpixelfed {
.timeline-item__readmore {display: none;}
2021-12-16 13:02:45 +00:00
}
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;
2021-12-20 11:27:10 +00:00
&:before {content: ''}
2021-12-14 20:35:42 +00:00
}
.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;
.button {
width: unset;
}
2021-12-14 20:35:42 +00:00
}
gap: 1em;
}
}
2021-12-13 11:17:15 +00:00
}