summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-12-14 21:16:18 -0500
committermattkae <mattkae@protonmail.com>2022-12-14 21:16:18 -0500
commitac5a69c5bdff67e67991ac5fdfae39f2d2f157d3 (patch)
treefebe86fefa7bfb37e224984cf084a4bcfcd74db5
parent902081f4811a149d2aedceb155e70266e45c9a76 (diff)
Updating css around resume and posts for small screens
-rw-r--r--posts.css9
-rwxr-xr-xresume.css230
2 files changed, 125 insertions, 114 deletions
diff --git a/posts.css b/posts.css
index e9e5abc..169a18d 100644
--- a/posts.css
+++ b/posts.css
@@ -1,11 +1,18 @@
#tag_list {
- width: 100%;
+ width: 65%;
display: grid;
+ margin: auto;
grid-template-columns: repeat(3, 1fr);
column-gap: 8px;
row-gap: 8px
}
+@media (max-width: 767.98px) {
+ #tag_list {
+ width: 100%;
+ }
+}
+
#tag_list button {
padding: 16px;
cursor: pointer;
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;
+ }
+}