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

117 lines
2.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;
}
}
.resume-link {
height: 3em;
background: #06f;
color: white;
display: flex;
justify-content: center;
align-items: center;
padding: 0 1em;
border-radius: 6px;
text-decoration: none;
font-weight: 700;
}
2021-12-13 11:17:15 +00:00
.timeline {
position: relative;
max-width: 60em;
margin: 0 auto;
&::after {
content: '';
position: absolute;
width: 0.5em;
background-color: #ddd;
top: 0;
bottom: 0;
left: 1.5em;
}
&-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;
top: 1em;
width: 2em;
height: 2em;
z-index: 1;
left: -2.75em;
border-width: 1em;
border-color: #06f;
border-radius: 100em;
background-color: #06f;
}
&.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;
box-shadow: 0px 0px 2px black;
}
&__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;
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 {
width: 15ch;
grid-area: readmore;
}
}
}
}