abdullahtarawneh.com/content/work/trilogy/style.scss

248 lines
3.9 KiB
SCSS
Raw Normal View History

2024-06-02 05:04:04 +00:00
main.trilogy {
2021-12-14 20:35:42 +00:00
background: #002663;
color: white;
2024-06-02 05:04:04 +00:00
.container {
max-width: 60rem;
}
2021-12-14 20:35:42 +00:00
.page-header {
.container {
display: grid;
2024-06-02 05:04:04 +00:00
@media (min-width: 60rem) {
2021-12-14 20:35:42 +00:00
grid-template-columns: auto 1fr;
}
gap: 1em;
justify-items: center;
}
}
.page-title {
color: white;
line-height: 1.4;
2021-12-15 10:00:41 +00:00
font-weight: 700;
2021-12-14 20:35:42 +00:00
font-size: 1.75em;
text-align: center;
@media (min-width: 51.75em) {
text-align: left;
}
}
.cover-image {
2024-06-02 05:04:04 +00:00
width: 100%;
max-width: max-content;
height: auto;
place-self: center;
2021-12-14 20:35:42 +00:00
}
.separator {
width: 10em;
height: 0.5em;
border-radius: 100em;
border: none;
background: white;
}
2021-12-15 10:00:41 +00:00
.title {
font-size: 2em;
font-weight: 700;
position: relative;
margin-bottom: 2em;
margin-top: 3em;
}
#about {
.title {
&:before {
content: 'intro';
position: absolute;
top: -1.5em;
left: 0;
font-size: 2em;
font-weight: 900;
2021-12-17 06:54:52 +00:00
color: #A9B7D1;
2021-12-15 10:00:41 +00:00
text-align: right;
}
}
.companies {
list-style: none;
2021-12-15 10:00:41 +00:00
display: flex;
flex-flow: row wrap;
font-size: 3em;
font-family: monospace;
gap: 1em;
margin: 2em 0;
2021-12-17 06:54:52 +00:00
color: #B3BAD0;
2021-12-15 10:00:41 +00:00
}
strong {
display: block;
font-weight: 700;
2021-12-17 06:54:52 +00:00
background: #277766;
2021-12-15 10:00:41 +00:00
color: white;
white-space: pre;
padding: 0.25em 0.5em;
margin-top: 0.15em;
width: min-content;
}
}
2021-12-14 20:35:42 +00:00
#responsibilities {
display: flex;
flex-flow: column;
overflow: hidden;
.container {
display: flex;
flex-flow: column;
gap: 2em;
}
.title {
&::before {
2021-12-17 06:54:52 +00:00
content: 'what i did';
2021-12-14 20:35:42 +00:00
position: absolute;
2021-12-15 10:00:41 +00:00
top: -1.5em;
right: -.2em;
font-size: 2em;
2021-12-14 20:35:42 +00:00
font-weight: 900;
2021-12-15 10:00:41 +00:00
opacity: 0.5;
text-align: center;
2021-12-14 20:35:42 +00:00
}
}
section {
width: 100%;
max-width: 45em;
margin: auto;
}
}
.subtitle {
font-size: 1.6em;
font-weight: 700;
margin-top: 2em;
margin-bottom: 1em;
position: relative;
}
2021-12-15 10:00:41 +00:00
p {
2021-12-14 20:35:42 +00:00
line-height: 1.4;
max-width: 45ch;
font-size: 1.2em;
2021-12-15 10:00:41 +00:00
margin-bottom: 1.4em;
2021-12-14 20:35:42 +00:00
}
#quick-learning {
.subtitle {
&:before {
content: '01';
position: absolute;
2021-12-15 10:00:41 +00:00
top: -1em;
left: -0em;
2021-12-14 20:35:42 +00:00
font-size: 4em;
font-weight: 900;
2021-12-17 06:54:52 +00:00
color: #54A090;
2021-12-14 20:35:42 +00:00
}
}
}
#problem-solving {
text-align: right;
2021-12-15 10:00:41 +00:00
p {margin-left: auto;}
2021-12-14 20:35:42 +00:00
.subtitle {
2021-12-15 10:00:41 +00:00
margin-top: 5em;
2021-12-14 20:35:42 +00:00
&:before {
content: '02';
position: absolute;
2021-12-15 10:00:41 +00:00
top: -1em;
right: 0em;
2021-12-14 20:35:42 +00:00
font-size: 4em;
font-weight: 900;
2021-12-17 06:54:52 +00:00
color: #54A090;
2021-12-14 20:35:42 +00:00
}
}
}
#writing-articles {
display: flex;
flex-flow: column;
align-items: center;
.subtitle {
2021-12-15 10:00:41 +00:00
margin-top: 5em;
2021-12-14 20:35:42 +00:00
&:before {
content: '03';
position: absolute;
2021-12-15 10:00:41 +00:00
top: -1em;
2021-12-14 20:35:42 +00:00
right: calc(50% - 1ch);
font-size: 4em;
font-weight: 900;
2021-12-17 06:54:52 +00:00
color: #54A090;
2021-12-14 20:35:42 +00:00
}
}
}
#kba {
display: grid;
gap: 1em;
@media (min-width: 40em) {
grid-template-columns: 1fr 1fr;
}
section {
background: white;
color: black;
height: 100%;
padding: 1em;
border-radius: 0.375em;
}
}
.card {
2021-12-20 11:27:10 +00:00
box-shadow: 0 1px 1px rgba(0,0,0,0.11),
0 2px 2px rgba(0,0,0,0.11),
0 4px 4px rgba(0,0,0,0.11),
0 6px 8px rgba(0,0,0,0.11),
0 8px 16px rgba(0,0,0,0.11);
2021-12-14 20:35:42 +00:00
&__title {
margin-top: 1em;
margin-bottom: 2em;
font-size: 1.25em;
}
&__text {
font-size: 1em;
line-height: 1.4;
}
}
#skb {
text-align: right;
.card__title {
position: relative;
&:before {
content: 'SKB';
position: absolute;
top: -0.5em;
left: 0;
font-size: 4em;
font-weight: 900;
2021-12-15 10:00:41 +00:00
opacity: 0.35;
color: #002663;
2021-12-14 20:35:42 +00:00
}
}
2021-12-15 10:00:41 +00:00
.card__text {
margin-left: auto;
}
2021-12-14 20:35:42 +00:00
}
#tkb {
2021-12-15 10:00:41 +00:00
position: relative;
2021-12-14 20:35:42 +00:00
.card__title {
position: relative;
2021-12-15 10:00:41 +00:00
z-index: 1;
2021-12-14 20:35:42 +00:00
&:before {
content: 'TKB';
position: absolute;
top: -0.5em;
right: 0;
font-size: 4em;
font-weight: 900;
2021-12-15 10:00:41 +00:00
opacity: 0.35;
color: #002663;
z-index: -1;
2021-12-14 20:35:42 +00:00
}
}
}
#tnc {
.subtitle {
2021-12-15 10:00:41 +00:00
margin-top: 5em;
2021-12-14 20:35:42 +00:00
&:before {
content: '04';
position: absolute;
2021-12-15 10:00:41 +00:00
top: -1em;
left: 0;
2021-12-14 20:35:42 +00:00
font-size: 4em;
font-weight: 900;
2021-12-17 06:54:52 +00:00
color: #54A090;
2021-12-14 20:35:42 +00:00
}
}
}
}