From ac5a69c5bdff67e67991ac5fdfae39f2d2f157d3 Mon Sep 17 00:00:00 2001 From: mattkae Date: Wed, 14 Dec 2022 21:16:18 -0500 Subject: Updating css around resume and posts for small screens --- resume.css | 230 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 117 insertions(+), 113 deletions(-) (limited to 'resume.css') diff --git a/resume.css b/resume.css index b91ab25..346b02a 100755 --- a/resume.css +++ b/resume.css @@ -1,36 +1,33 @@ html { - overflow-y: overlay; -} - -body { - font-size: 14px !important; + overflow-y: overlay; + font-size: 16px; } header { - padding-bottom: 1rem; + padding-bottom: 1rem; } #actions_container { - padding-bottom: 1rem; - - display: flex; - flex-direction: row; - justify-content: flex-end; + padding-bottom: 1rem; + + display: flex; + flex-direction: row; + justify-content: flex-end; } #resume { - position: relative; - text-align: left; - background-color: white; - color: black; - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; - line-height: 1.2rem; - padding-bottom: 1rem; + position: relative; + text-align: left; + background-color: white; + color: black; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + line-height: 1.325rem; + padding-bottom: 1rem; } #resume_container { - display: flex; - flex-direction: row; + display: flex; + flex-direction: row; } #resume a { @@ -38,63 +35,64 @@ header { } #resume_sidebar { - width: 204px; - margin-right: 24px; + width: 12rem; + margin-right: 1.5rem; } #resume_header { - display: flex; - flex-direction: row; - align-items: center; - justify-content: space-between; - flex-direction: column; - align-items: flex-start; - margin-bottom: 32px; + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + flex-direction: column; + align-items: flex-start; + margin-bottom: 2rem; } .resume_header_name { - font-size: 48px; - font-variant: small-caps; - word-wrap: break-word; - padding: 0; - margin: 0; + font-size: 3rem; + font-variant: small-caps; + word-wrap: break-word; + padding: 0; + margin: 0; font-weight: 500; - margin-bottom: 32px; + margin-bottom: 2rem; } #resume_header_contact { - margin-top: 16px; - display: flex; - flex-direction: row; - flex-direction: column; + margin-top: 1rem; + display: flex; + flex-direction: row; + flex-direction: column; } #resume_header_contact span { - margin-bottom: 8px; - font-size: 16px; - display: flex; - flex-direction: row; - align-items: center; + margin-bottom: 0.5rem; + font-size: 1rem; + display: flex; + flex-direction: row; + align-items: center; } #resume_header_contact i { - margin-right: 8px; - font-style: normal; + margin-right: 0.5rem; + font-style: normal; } .resume_section { - width: 100%; - text-align: left; + width: 100%; + text-align: left; + font-size: 1rem; } .resume_section > h2 { - font-size: 18px !important; - font-variant: small-caps; - font-weight: bold; - padding: 0; - margin: 0; - padding: 5px; - background-color: #2E4C6D; + font-size: 1.125rem; + font-variant: small-caps; + font-weight: bold; + padding: 0; + margin: 0; + padding: 0.25rem; + background-color: #2E4C6D; color: white; } @@ -103,114 +101,120 @@ header { } .experience-header > div { - display: flex; - flex-direction: row; - justify-content: space-between; + display: flex; + flex-direction: row; + justify-content: space-between; } .experience-item li { - width: 100%; + width: 100%; } .experience-tech { - font-size: 14px; - width: 100%; - display: flex; - flex-direction: row; - justify-content: flex-start; + font-size: 1rem; + width: 100%; + display: flex; + flex-direction: row; + justify-content: flex-start; } .experience-tech > svg { - width: 20px; - height: 20px; - margin-right: 8px; + width: 1.125rem; + height: 1.125rem; + margin-right: 0.5rem; } #skills_section { - display: flex; - flex-direction: column; + display: flex; + flex-direction: column; } .skills_section_item { - display: flex; - flex-direction: column; - margin-bottom: 24px; + display: flex; + flex-direction: column; + margin-bottom: 1.5rem; } .skills_section_bar { - position: relative; - width: 100%; - height: 16px; - background-color: white; - border-radius: 3px; - border: 1px solid lightgray; + position: relative; + width: 100%; + height: 1rem; + background-color: white; + border-radius: 3px; + border: 1px solid lightgray; } .skills_section_bar_fill { - position: absolute; - top: 0; - left: 0; - height: 100%; - width: 100%; - background-image: linear-gradient(to right,#007acc, #00E091); - border-radius: 3px; - background-size: 204px 100%; + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + background-image: linear-gradient(to right,#007acc, #00E091); + border-radius: 3px; + background-size: 12rem 100%; } .skills_section_bar_fill.one { - width: 20%; + width: 20%; } .skills_section_bar_fill.two { - width: 40%; + width: 40%; } .skills_section_bar_fill.three { - width: 60%; + width: 60%; } .skills_section_bar_fill.four { - width: 80%; + width: 80%; } .skills_section_bar_fill.five { - width: 100%; + width: 100%; } .skills_section_label { - width: 100%; - margin-top: 4px; - color: black; - font-size: 16px; + width: 100%; + margin-top: 0.25rem; + color: black; + font-size: 1rem; } /** Web-only **/ #resume_button_container { - width: 100%; - text-align: right; - margin-right: 1rem; - margin-bottom: 1rem; - + width: 100%; + text-align: right; + margin-right: 1rem; + margin-bottom: 1rem; + } #resume_button_container > button { - border: none; - background-color: transparent; - font-size: 20px; + border: none; + background-color: transparent; + font-size: 20px; } #resume_button_container > button:hover { - cursor: pointer; - opacity: 0.8; + cursor: pointer; + opacity: 0.8; } #resume.resume_fullscreen { - position: fixed; - top: 0; - left: 0; - padding: 2rem; - width: calc(100vw - 4rem); - height: calc(100vh - 4rem); - overflow: auto; -} \ No newline at end of file + position: fixed; + top: 0; + left: 0; + padding: 2rem; + width: calc(100vw - 4rem); + height: calc(100vh - 4rem); + overflow: auto; +} + +@media (max-width: 767.98px) { + html { + font-size: 12px; + } +} -- cgit v1.2.1