motarawneh.com/assets/scss/main.scss
2020-08-28 23:50:01 -05:00

337 lines
7.2 KiB
SCSS

/* reset.css */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* begin custom css */
html {scroll-behavior: smooth; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif}
.section {padding: 2em 0;}
.container {max-width: 960px; margin: 0 auto; padding: 0 1em;}
/* sections */
.section-header {
font-size: 2em;
font-weight: 700;
margin-bottom: 0.7em;
line-height: 1.2;
}
.section {
p, a {
line-height: 1.4;
font-size: 1em;
margin-bottom: 1.4em;
&:last-child {margin-bottom: 0;}
}
}
.read-more {color: #00a3ff}
/* header bar */
.site-header {background: #ddd; filter: drop-shadow(0px -1px 2px rgba(0,0,0,0.2))}
.site-header a {text-decoration: none; color: inherit;}
.site-title {font-weight: 700; font-size: 22px; line-height: 2em;}
.site-header .container {display: flex; flex-flow: row wrap;}
.site-nav {flex-basis: 100%; display: flex; flex-flow: column;}
.site-nav a {display: block; padding: 1em 0;}
/* css menu */
.site-nav {display: none}
.site-header {position: fixed; bottom: 0; width: 100%;}
body {margin-bottom: 44px;}
.hamburger-label::before {content:"Menu"; position: absolute; left: -3em; }
#hamburger:checked ~ .site-nav {
display: flex;
}
#hamburger {
transition: all 0.5s;
box-sizing: border-box;
display: none;
}
.hamburger-label {
transition: all 0.5s;
box-sizing: border-box;
cursor: pointer;
position: absolute;
z-index: 99;
height: 100%;
width: 100%;
top: 16px;
right: 15px;
height: 22px;
width: 22px;
}
.spinner {
transition: all 0.5s;
box-sizing: border-box;
position: absolute;
height: 3px;
width: 100%;
background-color: black;
}
.horizontal {
transition: all 0.5s;
box-sizing: border-box;
position: relative;
float: left;
margin-top: 3px;
}
.diagonal.part-1 {
position: relative;
transition: all 0.5s;
box-sizing: border-box;
float: left;
}
.diagonal.part-2 {
transition: all 0.5s;
box-sizing: border-box;
position: relative;
float: left;
margin-top: 3px;
}
#hamburger:checked ~ .hamburger-label > .horizontal {
transition: all 0.5s;
box-sizing: border-box;
opacity: 0;
}
#hamburger:checked ~ .hamburger-label > .diagonal.part-1 {
transition: all 0.5s;
box-sizing: border-box;
transform: rotate(135deg);
margin-top: 8px;
}
#hamburger:checked ~ .hamburger-label > .diagonal.part-2 {
transition: all 0.5s;
box-sizing: border-box;
transform: rotate(-135deg);
margin-top: -9px;
}
/* personal summary */
.personal-summary {
background: #eee;
em {font-weight: 700;}
.container {
display: grid;
grid-template-columns: auto;
grid-template-rows: auto auto auto;
justify-items: center;
img {
width: 100%;
max-width: 192px;
grid-area: 1/1;
border-radius: 50%;
filter: drop-shadow(0px 0px 1px #ddd)
}
p {
grid-area: 2/1;
font-size: 1.2em;
line-height: 1.4;
width: 100%;
margin: 1em 0;
br {display: none;}
}
.cta {
grid-area: 3/1;
display: flex;
flex-flow: row wrap;
width: 100%;
a {
display: flex;
box-sizing: border-box;
color: #00a3ff;
text-decoration: none;
justify-content: center;
align-items: center;
padding: 0.5em;
border-radius: 4px;
margin-bottom: 0.5em;
width: 10em;
transition: background 0.4s ease-in-out;
i {margin-right: 0.5em;}
}
a:first-child {
margin-right: 1em;
background: #00a3ff;
color: white;
}
a:not(:first-child) {
border: 2px solid #00a3ff;
}
a:hover {background: rgba(#00a3ff,0.4)}
}
}
}
/* about logos */
.organization-logos {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
br {display: none;}
img {
flex-basis: 50%;
width: 50%;
height: 100%;
padding: 1em;
@media (min-width: 480px) {
flex-basis: 25%;
width: 25%;
}
}
img:first-child, img:nth-child(3) {
flex-basis: 100%;
width: 100%;
@media (min-width: 480px) {
flex-basis: 50%;
width: 50%;
max-width: unset;
}
}
margin-bottom: 2em;
}
/* contact section and footer */
#consultancy, #contact {background: #eee}
.contact-methods {font-size: 1.4em; margin-bottom: 0.7em;}
.contact-method {line-height: 1.4}
.contact-method i {margin-right: 0.5em;}
.site-footer {
background: #ddd;
display: flex;
flex-flow: column;
align-items: center;
.container {
padding: 1em;
.social-links {
font-size: 2em;
display: flex;
flex-flow: row;
justify-content: center;
width: 100%;
margin: 1em 0;
.social-link {
color: #333;
transition: color 0.4s ease-in-out;
margin-left: 0.5em;
width: 1em;
display: flex;
justify-content: center;
text-decoration: none;
span {display: none;}
}
.social-link:first-child {margin-left: 0;}
.twitter:hover {color: #1da1f2}
.facebook:hover {color: #1778f2}
.linkedin:hover {color: #0e76a8}
}
p {
text-align: center;
line-height: 1.2;
a {color: inherit; font-weight: 700; transition: color 0.4s ease-in-out}
a:hover {color: #00a3ff}
}
};
}
/* responsive */
@media (min-width: 600px) {
.personal-summary {
.container {
grid-template-columns: 1fr auto;
grid-template-rows: auto auto;
align-items: center;
justify-content: start;
img {grid-area: 1/2; width: 160px;}
p {
grid-area: 1/1;
br {display: initial;}
font-size: 1.5em;
}
.cta {grid-area: 2/1;}
}
}
.site-header {position: sticky; bottom: unset; top: 0; z-index: 2;}
body {margin-bottom: unset;}
#hamburger, .hamburger-label {display: none;}
.site-nav {display: flex; flex-basis: unset; flex-flow: row;}
.site-header .container {justify-content: space-between; flex-flow: row wrap; height: 64px; align-items: center;}
.site-nav a {
margin-left: 1em;
box-sizing: border-box;
}
.site-header a {height: 44px;}
.site-header a:hover {border-bottom: 2px solid #00a3ff;}
.section p, .section a {font-size: 1.25em}
}
@media (min-width: 768px) {
.personal-summary {
font-size: 1.25em;
.container {
img {width: 192px;}
.cta {
font-size: 0.8em;
}
}
}
.section-header {font-size: 2.5em}
.section p, .section a {font-size: 1.5em}
}
@media (min-width: 62em) {
.container {padding: 0;}
.personal-summary {
font-size: 1.5em;
padding: 2em 0;
.container {
padding: 0;
img {width: 256px; max-width: 256px;}
}
}
}