2019-06-11 17:10:14 -07:00

312 lines
4.8 KiB
CSS

/*
* FONTS
*/
@font-face {
font-family: 'Libre Baskerville';
src: url('/fonts/librebaskerville-bold-webfont.woff2') format('woff2'),
url('/fonts/librebaskerville-bold-webfont.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Libre Baskerville';
src: url('/fonts/librebaskerville-italic-webfont.woff2') format('woff2'),
url('/fonts/librebaskerville-italic-webfont.woff') format('woff');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'Libre Baskerville';
src: url('/fonts/librebaskerville-regular-webfont.woff2') format('woff2'),
url('/fonts/librebaskerville-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Lusitana';
src: url('/fonts/lusitana-bold-webfont.woff2') format('woff2'),
url('/fonts/lusitana-bold-webfont.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Lusitana';
src: url('/fonts/lusitana-regular-webfont.woff2') format('woff2'),
url('/fonts/lusitana-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
/*
* MAIN
*/
html {
font-size: 22px;
}
body {
background-color: white;
font-family: 'Libre Baskerville', serif;
font-weight: 400;
line-height: 1.45;
max-width: 864px;
margin: 0 auto;
padding: 0;
color: #333;
}
p {
margin-bottom: 1.25em;
}
p:first-child {
margin-top: 0;
}
a {
color: #3e3579;
}
h1, h2, h3, h4, h5 {
margin: 2.75rem 0 1rem;
font-family: 'Lusitana', serif;
color: #3e3579;
font-weight: 800;
line-height: 1.15;
}
h1 {
margin-top: 0;
font-size: 3.052em;
border-bottom: 2px solid #3e3579;
}
h2 {
font-size: 2.441em;
}
h3 {
font-size: 1.953em;
}
h3 a {
text-decoration: none;
}
h4 {
font-size: 1.563em;
}
h5 {
font-size: 1.25em;
}
small {
font-size: 0.8em;
}
header,
footer {
text-align: center;
}
header,
article {
margin-bottom: 2.75rem;
}
main {
padding: 0 2rem;
}
footer {
margin-bottom: 1.25em;
}
article {
display: flex;
flex-flow: column;
}
nav {
font-style: italic;
display: flex;
justify-content: space-between;
max-width: 372px;
margin: auto;
font-size: 1.25em;
}
img {
max-width: 100%;
}
.rest {
max-height: 50px;
}
.logo {
max-width: 350px;
}
.portfolio {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.social {
font-style: italic;
display: flex;
justify-content: space-between;
font-size: 1.25em;
text-align: center;
}
iframe {
width: calc(50% - 10.6665px);
margin-bottom: 1em;
}
/**
* Tooltip Styles
*/
/* Add this attribute to the element that needs a tooltip */
[data-tooltip] {
position: relative;
z-index: 2;
cursor: pointer;
}
/* Hide the tooltip content by default */
[data-tooltip]:before,
[data-tooltip]:after {
visibility: hidden;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0);
opacity: 0;
pointer-events: none;
}
/* Position tooltip above the element */
[data-tooltip]:before {
position: absolute;
bottom: 150%;
left: 50%;
margin-bottom: 5px;
margin-left: -80px;
padding: 7px;
width: 160px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background-color: #3e3579;
background-color: hsla(143, 31, 66, 0.9);
color: #fff;
content: attr(data-tooltip);
text-align: center;
font-size: 16px;
line-height: 1.2;
}
/* Triangle hack to make tooltip look like a speech bubble */
[data-tooltip]:after {
position: absolute;
bottom: 150%;
left: 50%;
margin-left: -5px;
width: 0;
border-top: 5px solid #000;
border-top: 5px solid hsla(0, 0%, 20%, 0.9);
border-right: 5px solid transparent;
border-left: 5px solid transparent;
content: " ";
font-size: 0;
line-height: 0;
}
/* Show tooltip content on hover */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
visibility: visible;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100);
opacity: 1;
}
/* Medium screens */
@media all and (max-width: 888px) {
main {
padding: 0 1rem;
}
iframe {
width: 100%;
}
.portfolio {
justify-content: space-around;
}
.social {
flex-direction: column;
}
}
/* Small screens */
@media all and (max-width: 500px) {
html {
font-size: 17px;
}
body {
line-height: 1.7;
}
nav {
max-width: 300px;
}
.logo {
max-width: 200px;
}
nav, .portfolio {
flex-direction: column;
}
}
.repeat {
display: flex;
flex-flow: row wrap;
justify-content: space-around;
color: #3e3579;
font-size: 22px !important;
}
.repeat-top {
text-align: center;
height: 5px;
border-top: 7px solid #3e3579;
border-bottom: 2px solid #3e3579;
}
.repeat-bottom {
text-align: center;
height: 8px;
border-bottom: 7px solid #3e3579;
border-top: 2px solid #3e3579;
}