summaryrefslogtreecommitdiff
path: root/css/blog-styles.css
diff options
context:
space:
mode:
authorPeter Nguyen <peteralistairnguyen@gmail.com>2025-02-05 00:44:12 -0600
committerPeter Nguyen <peteralistairnguyen@gmail.com>2025-02-05 00:44:12 -0600
commit110dc2831488937c1afb70c11657a341912fc8cd (patch)
tree16b35df40e150d68344337b17c800b04b1435355 /css/blog-styles.css
Initial commit 2/25/2025
Diffstat (limited to 'css/blog-styles.css')
-rw-r--r--css/blog-styles.css320
1 files changed, 320 insertions, 0 deletions
diff --git a/css/blog-styles.css b/css/blog-styles.css
new file mode 100644
index 0000000..58c4377
--- /dev/null
+++ b/css/blog-styles.css
@@ -0,0 +1,320 @@
+/* These main CSS elements were made between 1/27/2025 and 1/28/2025 by Peter Nguyen for peten.ca */
+
+/* MAIN */
+
+body {
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ overflow: auto;
+ position: relative;
+ background-color: #f9f9f9;
+ margin: 0 !important;
+ padding: 0 !important;
+}
+
+/* FONTS */
+
+.font-ubuntu {
+ font-family: "Ubuntu Sans", serif;
+ font-optical-sizing: auto;
+ font-weight: bold;
+ font-style: normal;
+ font-variation-settings: "wdth" 100;
+}
+
+.font-montserrat {
+ font-family: "Montserrat", serif;
+ font-optical-sizing: auto;
+ font-weight: normal;
+ font-style: normal;
+}
+
+/* TEXT */
+
+h1 {
+ font-size: 1.3rem !important;
+ font-weight: bold;
+ margin: 0;
+}
+
+h2 {
+ font-size: 1.1rem !important;
+ font-weight: bold;
+}
+
+h3 {
+ font-size: 1.5rem !important;
+ font-weight: bold;
+}
+
+p {
+ font-size: 1rem !important;
+ font-weight: 400;
+ max-width: 300px;
+ text-wrap: wrap;
+}
+
+a {
+ text-decoration: none !important;
+ color: inherit !important;
+}
+
+/* ANIMS */
+
+.fade-in {
+ opacity: 1;
+ animation-name: fadeInOpacity;
+ animation-iteration-count: 1;
+ animation-timing-function: ease-in;
+ animation-duration: 0.5s;
+}
+
+@keyframes fadeInOpacity {
+ 0% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 1;
+ }
+}
+
+/* PAGE SPECIFIC */
+
+.blog-container {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ text-align: left;
+ width: 100%;
+ padding-top: 3%;
+ flex-grow: 1;
+}
+
+.blog-content {
+ padding-top: 1%;
+ padding-left: 5%;
+ flex-grow: 1;
+ max-width: 800px;
+}
+
+.profile-pic {
+ width: 100px;
+ border-radius: 50%;
+}
+
+.sidebar {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ padding-top: 1%;
+ /* Keeps everything left-aligned */
+}
+
+.sidebar img {
+ padding-bottom: 5%;
+}
+
+article {
+ display: block;
+}
+
+article h1 {
+ margin: 0 !important;
+}
+
+article p {
+ font-size: 1rem !important;
+ font-weight: 400;
+ max-width: 600px;
+ text-wrap: wrap;
+ padding-top: 0.25rem;
+}
+
+.date {
+ font-size: small;
+}
+
+/* NAV */
+
+.sidebar nav ul {
+ list-style-type: none;
+ padding: 0;
+ margin: 0;
+}
+
+.nav-link {
+ font-size: 1.5rem !important;
+}
+
+.active {
+ font-weight: 500 !important;
+}
+
+.articles {
+ padding-top: 5%;
+}
+
+/* BOTTOM OF PAGE */
+
+.footer {
+ width: 100%;
+ text-align: center;
+ font-size: 0.75rem;
+ padding: 10px;
+ margin-top: auto;
+ opacity: 0.5;
+}
+
+/* FORM FOR CONTACT PAGE */
+
+/* FORM CONTAINER */
+form {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ /* Allow it to take all available space */
+ max-width: 700px;
+ /* Give it a better max-width */
+ margin: 0 auto;
+ /* Center it */
+}
+
+/* FORM LABELS */
+form label {
+ font-size: 0.9rem;
+ font-weight: bold;
+ text-transform: uppercase;
+ margin-top: 10px;
+ letter-spacing: 1px;
+}
+
+/* FORM INPUT FIELDS */
+form input,
+form textarea {
+ width: 100%;
+ padding: 1%;
+ border: 1px solid black;
+ font-size: 1rem;
+ margin-top: 5px;
+ font-family: "Montserrat", sans-serif;
+}
+
+/* TEXTAREA */
+form textarea {
+ height: 150px;
+ resize: vertical;
+}
+
+/* SUBMIT BUTTON */
+form button {
+ background: white;
+ border: 1px solid black;
+ padding: 10px 15px;
+ font-size: 1rem;
+ font-weight: bold;
+ text-transform: uppercase;
+ cursor: pointer;
+ margin-top: 10px;
+ width: fit-content;
+}
+
+/* CENTER THE BUTTON */
+form button:hover {
+ background: black;
+ color: white;
+}
+
+.g-recaptcha {
+ padding-top: 2%;
+}
+
+/* MOBILE CSS ADAPTATIONS */
+
+@media (max-width: 768px) {
+
+ /* Ensure the body is scrollable */
+ body {
+ overflow: scroll;
+ }
+
+ /* Profile pic adjustments */
+ .profile-pic {
+ width: 100px;
+ border-radius: 50%;
+ }
+
+ /* Blog container adjustments */
+ .blog-container {
+ flex-direction: column;
+ align-items: left;
+ width: 100%;
+ padding: 5% !important;
+ height: auto;
+ /* REMOVE fixed height to prevent extra space */
+ flex-grow: 0;
+ }
+
+ /* Sidebar adjustments */
+ .sidebar {
+ width: 100%;
+ align-items: left;
+ text-align: left;
+ padding-bottom: 20px;
+ }
+
+ .sidebar nav ul {
+ display: flex;
+ flex-direction: column;
+ align-items: left;
+ }
+
+ .sidebar nav ul li {
+ text-align: left;
+ }
+
+ /* Blog content adjustments */
+ .blog-content {
+ padding-left: 0;
+ /* Remove extra left padding */
+ }
+
+ /* Date adjustments */
+ .date {
+ padding-top: 0.5rem;
+ }
+
+ /* Headings adjustments */
+ h1 {
+ font-size: 1.2rem !important;
+ font-weight: bold;
+ }
+
+ h2 {
+ font-size: 1.1rem !important;
+ }
+
+ /* Paragraph adjustments */
+ p {
+ font-size: 1rem !important;
+ max-width: 100%;
+ }
+
+ /* Navigation link font size adjustments */
+ .nav-link {
+ font-size: 1.5rem !important;
+ }
+
+ /* Footer adjustments */
+ .footer {
+ text-align: center;
+ padding: 15px;
+ font-size: 0.8rem;
+ }
+
+ hr {
+ margin-left: 0;
+ margin-right: auto;
+ }
+} \ No newline at end of file