Fixed mobile css fixes #9

Merged
rodude123 merged 1 commits from mobile-css-fixes into master 2021-09-06 19:33:59 +01:00
5 changed files with 337 additions and 338 deletions

1
dist/css/main.css vendored

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,7 @@ class TimelineData
function getWorkData()
{
$conn = dbConn();
$stmt = $conn->prepare("SELECT DATE_FORMAT(startPeriod, '%b, %Y') as startPeriod, DATE_FORMAT(endPeriod, '%b, %Y') as endPeriod, companyName, area, title FROM work ORDER BY startPeriod DESC;");
$stmt = $conn->prepare("SELECT DATE_FORMAT(startPeriod, '%b, %Y') as startPeriod, DATE_FORMAT(endPeriod, '%b, %Y') as endPeriod, companyName, area, title FROM work ORDER BY work.startPeriod DESC;");
$stmt->execute();
// set the resulting array to associative

View File

@ -5,7 +5,7 @@
@import "nav.css";
@import "about.css";
@import "cv.css";
@import "mediaQueries.css";
@import "templateStyles.css";
/****** Root Style ******/
:root {
@ -28,84 +28,272 @@
--headingFS: 1.5rem;
}
/*** Template Styles ****/
html {
scroll-behavior: smooth;
/**** Media Queries *****/
@media screen and (max-width: 90em) {
/****** CV Styles *******/
section#curriculumvitae .cvGrid {
flex-direction: column;
justify-content: center;
align-items: center;
}
section#curriculumvitae .cvGrid > div {
width: 100%;
}
section#curriculumvitae .cvGrid > div:first-child {
padding-bottom: 2.5em;
margin-bottom: 2.5em;
border-bottom: 5px #FFFFFF solid;
}
section#curriculumvitae .cvGrid h2 {
margin-left: 5em;
}
section#curriculumvitae .cvGrid .timeline {
margin: 0 auto;
}
}
body {
font-family: Noto Sans KR, sans-serif;
font-style: normal;
font-weight: 500;
font-size: var(--generalFS);
line-height: 1.625rem;
@media screen and (max-width: 75em) {
/*** Template Styles ****/
section#about, section#curriculumvitae h1 {
padding: 0 1em;
}
/*** Navigation Styles **/
/** Default Nav Styles **/
nav {
display: block;
height: 50px;
width: 100%;
background-color: var(--navBack);
position: fixed;
top: 0;
padding: 0;
}
nav a h1{
margin-left: 1ch;
}
nav .nav-btn {
display: inline-block;
position: absolute;
right: 75px;
top: -360px;
}
nav ul {
position: fixed;
display: block;
width: 100%;
background-color: #333;
transition: all 0.4s ease-in;
overflow-y: hidden;
padding-left: 0;
margin-top: 7px;
}
nav ul li a {
display: block;
width: 100%;
transform: translateX(-30px);
transition: all 0.4s ease-in;
opacity: 0;
}
.nav-btn label {
display: inline-block;
cursor: pointer;
width: 60px;
height: 50px;
position: fixed;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .5s ease-in;
-moz-transition: .5s ease-in;
-o-transition: .5s ease-in;
transition: .5s ease-in;
}
.nav-btn label span {
display: block;
position: absolute;
height: 5px;
width: 100%;
background-color: #FFFFFF;
opacity: 1;
right: 0;
top: 20px;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .25s ease-in;
-moz-transition: .25s ease-in;
-o-transition: .25s ease-in;
transition: .25s ease-in;
}
/** Burger Not Clicked **/
nav #nav-check:not(:checked) ~ ul{
height: auto;
max-height: 0;
}
nav #nav-check:not(:checked) ~ .nav-btn label span:nth-child(1) {
top: 8px;
-webkit-transform-origin: left center;
-moz-transform-origin: left center;
-o-transform-origin: left center;
transform-origin: left center;
}
nav #nav-check:not(:checked) ~ .nav-btn label span:nth-child(2) {
top: 23px;
-webkit-transform-origin: left center;
-moz-transform-origin: left center;
-o-transform-origin: left center;
transform-origin: left center;
}
nav #nav-check:not(:checked) ~ .nav-btn label span:nth-child(3) {
top: 38px;
-webkit-transform-origin: left center;
-moz-transform-origin: left center;
-o-transform-origin: left center;
transform-origin: left center;
}
nav .nav-btn label:hover, nav #nav-check:checked ~ .nav-btn label {
background-color: rgba(-1, 0, 0, 0.3);
}
/**** Burger Clicked ****/
nav #nav-check:checked ~ ul{
max-height: 50vh;
overflow-y: hidden;
}
nav #nav-check:checked ~ ul li a {
opacity: 1;
transform: translateX(0px);
}
nav #nav-check:checked ~ ul li:nth-child(1) a {
transition-delay: 0.15s;
}
nav #nav-check:checked ~ ul li:nth-child(2) a {
transition-delay: 0.25s;
}
nav #nav-check:checked ~ ul li:nth-child(3) a {
transition-delay: 0.35s;
}
nav #nav-check:checked ~ ul li:nth-child(4) a {
transition-delay: 0.45s;
}
nav #nav-check:checked ~ ul li:nth-child(5) a {
transition-delay: 0.55s;
}
nav #nav-check:checked ~ .nav-btn label span:first-child {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
nav #nav-check:checked ~ .nav-btn label span:nth-child(2){
width: 0;
opacity: 0;
}
nav #nav-check:checked ~ .nav-btn label span:last-child {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}
/***** About Styles *****/
section#about div {
padding: 0.1em 2.5em;
}
/****** CV Styles *******/
section#curriculumvitae .cvGrid {
padding: 0;
}
}
a:visited {
color: inherit;
@media screen and (max-width: 55em) {
/****** CV Styles *******/
section#curriculumvitae .cvGrid .timeline, section#curriculumvitae .cvGrid .timeline#work {
margin: 0 auto;
width: 100%;
}
section#curriculumvitae .timeline:before {
border: none;
}
section#curriculumvitae .timelineItem, section#curriculumvitae .timelineItem:nth-child(2n) {
width: 95%;
padding: 0;
margin: 0 auto;
}
section#curriculumvitae .timelineItem:before {
right: unset;
left: unset;
border:none
}
}
h1, nav {
font-family: Share Tech Mono, monospace;
font-style: normal;
font-weight: normal;
font-size: var(--titleFS);
line-height: 2.5625rem;
text-transform: lowercase;
}
@media screen and (max-width: 31em) {
h2 {
font-family: Noto Sans KR, sans-serif;
font-style: normal;
font-weight: 500;
font-size: var(--headingFS);
line-height: 2.1875rem;
}
/*** Template Styles ****/
a.btn, form input[type="submit"] {
text-decoration: none;
display: inline-block;
padding: 1rem 2rem;
border-radius: 0.625em;
border: 0.3215em solid var(--primaryDefault);
color: #FFFFFF;
}
section#about, section#curriculumvitae h1 {
padding: 0 1em;
}
a.btn:hover {
border: 0.3215em solid var(--primaryHover);
}
/*** Navigation Styles **/
a.btnPrimary, form input[type="submit"] {
background: var(--primaryDefault);
cursor: pointer;
}
header div h1 {
text-align: center;
height: 5.125rem;
}
a.btnOutline {
background: #FFFFFF;
color: var(--primaryDefault);
}
/***** About Styles *****/
a.btnPrimary:hover, form input[type="submit"]:hover {
background: var(--primaryHover);
}
section#about div {
padding: 0.1em 1em;
}
a.btn:active, form input[type="submit"]:active {
padding: 0.8rem 1.8rem;
}
.boxShadowOut:hover {
box-shadow: 0 6px 4px 0 var(--mutedBlack);
}
.boxShadowIn:active {
box-shadow: inset 0 6px 4px 0 var(--mutedBlack);
}
.textShadow:hover {
text-shadow: 0 6px 4px var(--mutedBlack);
}
section#about, section#curriculumvitae h1 {
padding: 0 5rem;
}

View File

@ -1,269 +0,0 @@
/**** Media Queries *****/
@media screen and (max-width: 90em) {
/****** CV Styles *******/
section#curriculumvitae .cvGrid {
flex-direction: column;
justify-content: center;
align-items: center;
}
section#curriculumvitae .cvGrid > div {
width: 100%;
}
section#curriculumvitae .cvGrid > div:first-child {
padding-bottom: 2.5em;
margin-bottom: 2.5em;
border-bottom: 5px #FFFFFF solid;
}
section#curriculumvitae .cvGrid h2 {
margin-left: 5em;
}
section#curriculumvitae .cvGrid .timeline {
margin: 0 auto;
}
}
@media screen and (max-width: 75em) {
/*** Template Styles ****/
section#about, section#curriculumvitae h1 {
padding: 0 1em;
}
/*** Navigation Styles **/
/** Default Nav Styles **/
nav {
display: block;
height: 50px;
width: 100%;
background-color: var(--navBack);
position: fixed;
top: 0;
padding: 0;
}
nav a h1{
margin-left: 1ch;
}
nav .nav-btn {
display: inline-block;
position: absolute;
right: 75px;
top: -360px;
}
nav ul {
position: fixed;
display: block;
width: 100%;
background-color: #333;
transition: all 0.4s ease-in;
overflow-y: hidden;
padding-left: 0;
margin-top: 7px;
}
nav ul li a {
display: block;
width: 100%;
transform: translateX(-30px);
transition: all 0.4s ease-in;
opacity: 0;
}
.nav-btn label {
display: inline-block;
cursor: pointer;
width: 60px;
height: 50px;
position: fixed;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .5s ease-in;
-moz-transition: .5s ease-in;
-o-transition: .5s ease-in;
transition: .5s ease-in;
}
.nav-btn label span {
display: block;
position: absolute;
height: 5px;
width: 100%;
background-color: #FFFFFF;
opacity: 1;
right: 0;
top: 20px;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .25s ease-in;
-moz-transition: .25s ease-in;
-o-transition: .25s ease-in;
transition: .25s ease-in;
}
/** Burger Not Clicked **/
nav #nav-check:not(:checked) ~ ul{
height: auto;
max-height: 0;
}
nav #nav-check:not(:checked) ~ .nav-btn label span:nth-child(1) {
top: 8px;
-webkit-transform-origin: left center;
-moz-transform-origin: left center;
-o-transform-origin: left center;
transform-origin: left center;
}
nav #nav-check:not(:checked) ~ .nav-btn label span:nth-child(2) {
top: 23px;
-webkit-transform-origin: left center;
-moz-transform-origin: left center;
-o-transform-origin: left center;
transform-origin: left center;
}
nav #nav-check:not(:checked) ~ .nav-btn label span:nth-child(3) {
top: 38px;
-webkit-transform-origin: left center;
-moz-transform-origin: left center;
-o-transform-origin: left center;
transform-origin: left center;
}
nav .nav-btn label:hover, nav #nav-check:checked ~ .nav-btn label {
background-color: rgba(-1, 0, 0, 0.3);
}
/**** Burger Clicked ****/
nav #nav-check:checked ~ ul{
max-height: 50vh;
overflow-y: hidden;
}
nav #nav-check:checked ~ ul li a {
opacity: 1;
transform: translateX(0px);
}
nav #nav-check:checked ~ ul li:nth-child(1) a {
transition-delay: 0.15s;
}
nav #nav-check:checked ~ ul li:nth-child(2) a {
transition-delay: 0.25s;
}
nav #nav-check:checked ~ ul li:nth-child(3) a {
transition-delay: 0.35s;
}
nav #nav-check:checked ~ ul li:nth-child(4) a {
transition-delay: 0.45s;
}
nav #nav-check:checked ~ ul li:nth-child(5) a {
transition-delay: 0.55s;
}
nav #nav-check:checked ~ .nav-btn label span:first-child {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
nav #nav-check:checked ~ .nav-btn label span:nth-child(2){
width: 0;
opacity: 0;
}
nav #nav-check:checked ~ .nav-btn label span:last-child {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}
/***** About Styles *****/
section#about div {
padding: 0.1em 2.5em;
}
/****** CV Styles *******/
section#curriculumvitae .cvGrid {
padding: 0;
}
}
@media screen and (max-width: 55em) {
/****** CV Styles *******/
section#curriculumvitae .cvGrid .timeline {
margin: 0 1em;
max-width: 100%;
}
section#curriculumvitae .timeline:before {
border: none;
}
section#curriculumvitae .timelineItem{
width: 95%;
}
section#curriculumvitae .timelineItem:nth-child(2n) {
margin-left: 0;
}
section#curriculumvitae .timelineItem:before {
right: unset;
left: unset;
border:none
}
}
@media screen and (max-width: 31em) {
/*** Template Styles ****/
section#about, section#curriculumvitae h1 {
padding: 0 1em;
}
/*** Navigation Styles **/
header div h1 {
text-align: center;
height: 5.125rem;
}
/***** About Styles *****/
section#about div {
padding: 0.1em 1em;
}
}

View File

@ -0,0 +1,81 @@
/*** Template Styles ****/
html {
scroll-behavior: smooth;
}
body {
font-family: Noto Sans KR, sans-serif;
font-style: normal;
font-weight: 500;
font-size: var(--generalFS);
line-height: 1.625rem;
}
a:visited {
color: inherit;
}
h1, nav {
font-family: Share Tech Mono, monospace;
font-style: normal;
font-weight: normal;
font-size: var(--titleFS);
line-height: 2.5625rem;
text-transform: lowercase;
}
h2 {
font-family: Noto Sans KR, sans-serif;
font-style: normal;
font-weight: 500;
font-size: var(--headingFS);
line-height: 2.1875rem;
}
a.btn, form input[type="submit"] {
text-decoration: none;
display: inline-block;
padding: 1rem 2rem;
border-radius: 0.625em;
border: 0.3215em solid var(--primaryDefault);
color: #FFFFFF;
}
a.btn:hover {
border: 0.3215em solid var(--primaryHover);
}
a.btnPrimary, form input[type="submit"] {
background: var(--primaryDefault);
cursor: pointer;
}
a.btnOutline {
background: #FFFFFF;
color: var(--primaryDefault);
}
a.btnPrimary:hover, form input[type="submit"]:hover {
background: var(--primaryHover);
}
a.btn:active, form input[type="submit"]:active {
padding: 0.8rem 1.8rem;
}
.boxShadowOut:hover {
box-shadow: 0 6px 4px 0 var(--mutedBlack);
}
.boxShadowIn:active {
box-shadow: inset 0 6px 4px 0 var(--mutedBlack);
}
.textShadow:hover {
text-shadow: 0 6px 4px var(--mutedBlack);
}
section#about, section#curriculumvitae h1 {
padding: 0 5rem;
}