Skip to content

Commit 4159d92

Browse files
committed
Fully Fix Overflows
1 parent 696fa91 commit 4159d92

9 files changed

Lines changed: 176 additions & 291 deletions

File tree

_data/hobbies.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ taste:
1010
title: "Taste"
1111
emoji: "🍽️"
1212
excerpt: "From fine dining tables to my own kitchen, a curated log of my epicurean journey."
13-
instagram_url: "https://www.instagram.com/gastronomy_hajae/"
13+
instagram_url: "https://www.instagram.com/taste_hajae/"
1414
sub_topics:
1515
- topic_title: "Gastronomy"
1616
topic_id: "gastronomy"
@@ -59,11 +59,11 @@ taste:
5959
url: "https://www.instagram.com/p/DNuXJq0Wt9F/"
6060
title: "The Ultimate Steak Sandwich"
6161
tags: [steak, sandwich, gordon ramsay]
62-
# - type: blog
63-
# url: "/posts/perfect-steak-philosophy/"
64-
# title: "The Philosophy of a Perfect Steak"
65-
# excerpt: "A deep dive into searing techniques, resting times, and the science of the Maillard reaction for the ultimate steak."
66-
# tags: [steak, technique, cooking, ramsay]
62+
- type: blog
63+
url: "/posts/perfect-steak-philosophy/"
64+
title: "The Philosophy of a Perfect Steak"
65+
excerpt: "A deep dive into searing techniques, resting times, and the science of the Maillard reaction for the ultimate steak."
66+
tags: [steak, technique, cooking, ramsay]
6767

6868
# ----------------------------------------------------
6969
# 2. ATHLETICS
@@ -90,13 +90,13 @@ athletics:
9090
logs: []
9191

9292
# ----------------------------------------------------
93-
# 3. NARRATIVE ARTS
93+
# 3. STORIES
9494
# ----------------------------------------------------
95-
narrative_arts:
96-
title: "Narrative Arts"
95+
stories:
96+
title: "Stories"
9797
emoji: "📚"
9898
excerpt: "An archive of captivating stories found in novels, manga, and manhwa."
99-
instagram_url: "https://www.instagram.com/narrative_arts_hajae/"
99+
instagram_url: "https://www.instagram.com/stories_hajae/"
100100
sub_topics:
101101
- topic_title: "Novels"
102102
topic_id: "novels"

_pages/hobbies/narrative.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

_pages/hobbies/stories.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
permalink: /hobbies/stories/
3+
layout: hobby-detail
4+
hobby_key: stories
5+
---

_sass/custom/_hobby-details.scss

Lines changed: 65 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,26 @@
1+
/* ==========================================================================
2+
FINAL & DEFINITIVE STYLES FOR HOBBIES PAGE
3+
========================================================================== */
14

2-
/* --- Page Layout --- */
3-
.hobby-detail-page {
4-
max-width: 1280px;
5-
margin: 0 auto;
6-
padding: 4rem 2rem;
7-
}
8-
.hobby-hero {
9-
text-align: center;
10-
margin-bottom: 4rem;
11-
}
12-
.hobby-title {
13-
font-size: 3em;
14-
font-weight: 800;
15-
margin-bottom: 1rem;
16-
}
17-
.hobby-excerpt {
18-
font-size: 1.2em;
19-
color: #555;
20-
margin-bottom: 2rem;
21-
max-width: 800px;
22-
margin-left: auto;
23-
margin-right: auto;
24-
}
5+
/* --- Page Layout & Hero --- */
6+
.hobby-detail-page { max-width: 1280px; margin: 0 auto; padding: 4rem 1rem; }
7+
.hobby-hero { text-align: center; margin-bottom: 4rem; }
8+
.hobby-title { font-size: 3em; font-weight: 800; margin-bottom: 1rem; }
9+
.hobby-excerpt { font-size: 1.2em; color: #555; max-width: 800px; margin: 0 auto 2rem; }
2510

26-
/* --- Tabs & Search --- */
11+
/* --- Tabs & Search (DEFINITIVE FIX) --- */
2712
.hobby-tabs {
2813
display: flex;
29-
gap: 0.5rem;
3014
border-bottom: 1px solid #ddd;
3115
margin-bottom: 2rem;
16+
/* Make the container scrollable on the x-axis */
17+
overflow-x: auto;
18+
/* Hide the scrollbar for a cleaner look */
19+
-ms-overflow-style: none; /* IE and Edge */
20+
scrollbar-width: none; /* Firefox */
21+
}
22+
.hobby-tabs::-webkit-scrollbar {
23+
display: none; /* Chrome, Safari, and Opera */
3224
}
3325
.tab-link {
3426
border: none;
@@ -40,123 +32,95 @@
4032
cursor: pointer;
4133
border-bottom: 3px solid transparent;
4234
transition: all 0.2s ease;
35+
/* Prevent tabs from shrinking or wrapping */
36+
flex-shrink: 0;
37+
white-space: nowrap;
4338
}
4439
.tab-link:hover { color: #111; }
4540
.tab-link.active { color: #0071e3; border-bottom-color: #0071e3; }
4641

4742
.tab-content { display: none; }
4843
.tab-content.active { display: block; }
49-
5044
.hobby-search-wrapper { position: relative; margin-bottom: 2rem; }
5145
.hobby-search-wrapper .fa-search { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); color: #aaa; }
5246
.hobby-search-input { width: 100%; padding: 0.8rem 1rem 0.8rem 3rem; font-size: 1em; border-radius: 12px; border: 1px solid #ddd; background-color: #f8f8fa; }
5347

54-
/* --- Content Structure --- */
48+
/* --- Content Structure (DEFINITIVE FIX) --- */
5549
.hobby-sub-group { margin-top: 4rem; }
5650
.sub-group-title { font-size: 1.8em; font-weight: 700; margin-bottom: 2rem; border-bottom: 1px solid #eef0f2; padding-bottom: 1rem; }
5751

52+
/* Default style for desktop and tablets */
5853
.content-grid {
5954
display: grid;
6055
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
61-
gap: 2rem;
62-
align-items: stretch; /* Ensures items in a row stretch to the same height */
56+
gap: 1.5rem;
57+
align-items: stretch;
58+
}
59+
/* Rule for mobile screens (e.g., less than 420px wide) */
60+
@media (max-width: 420px) {
61+
.content-grid {
62+
/* On mobile, force a single-column layout */
63+
grid-template-columns: 1fr;
64+
}
6365
}
6466

65-
/* --- Base Card Style (for all cards) --- */
67+
/* --- UNIFIED CARD STYLES --- */
6668
.hobby-card {
67-
display: flex; /* Enables flex properties for children */
68-
flex-direction: column; /* Stacks content vertically */
69-
height: 100%; /* Important for stretching */
69+
display: flex;
70+
flex-direction: column;
71+
height: 100%;
7072
border-radius: 20px;
7173
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
7274
transition: transform 0.3s ease, box-shadow 0.3s ease;
75+
overflow: hidden;
7376
}
74-
.hobby-card:hover {
75-
transform: translateY(-8px);
76-
box-shadow: 0 8px 25px rgba(0,0,0,0.12);
77-
}
77+
.hobby-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
7878
.hobby-card a {
7979
display: flex;
8080
flex-direction: column;
81-
flex-grow: 1; /* Makes the link fill the entire card height */
81+
flex-grow: 1;
8282
text-decoration: none;
8383
color: #1d1d1f;
84+
padding: 2rem;
8485
}
86+
.hobby-card .card-title { font-size: 1.5em; font-weight: 700; margin-top: 1rem; margin-bottom: 0.5rem; }
87+
.hobby-card .card-link {
88+
display: inline-block;
89+
background-color: #f0f0f5;
90+
color: #0071e3;
91+
border-radius: 99px;
92+
padding: 0.75rem 1.5rem;
93+
font-size: 1em;
94+
font-weight: 600;
95+
text-decoration: none;
96+
transition: background-color 0.2s ease;
97+
margin-top: 1rem;
98+
align-self: flex-start;
99+
}
100+
.hobby-card .card-link:hover { background-color: #e0e0e5; }
85101

86-
/* --- Specific Card Styles --- */
87-
88-
/* Blog Post Card */
102+
/* --- Specific Card Overrides --- */
89103
.blog-card { background-color: #fff; }
90-
.blog-card a { padding: 2rem; }
91-
.blog-card .card-title { font-size: 1.5em; font-weight: 700; margin: 0 0 0.5rem; }
92-
.blog-card .card-excerpt { color: #555; line-height: 1.6; flex-grow: 1; /* Fills empty space */ }
93-
.blog-card .card-link { font-weight: 600; color: #0071e3; margin-top: 1rem; display: inline-block; }
94-
95-
/* Redesigned Instagram Card (No Image) - Final Version */
96-
.insta-card-no-image {
97-
display: flex; /* Use flexbox for vertical alignment */
98-
background: linear-gradient(145deg, #f9f9fb, #f0f0f5);
99-
border: 1px solid #e5e5e5;
100-
border-radius: 20px;
101-
box-shadow: 0 4px 15px rgba(0,0,0,0.02);
102-
transition: transform 0.3s ease, box-shadow 0.3s ease;
103-
}
104+
.blog-card .card-excerpt { color: #555; line-height: 1.6; flex-grow: 1; margin-bottom: 0.5rem; margin-top:0.5rem; }
104105

106+
.insta-card-no-image { background: linear-gradient(145deg, #f9f9fb, #f0f0f5); border: 1px solid #e5e5e5; }
105107
.insta-card-no-image a {
106108
display: flex;
107109
flex-direction: column;
108-
justify-content: center; /* Vertically center the content */
110+
justify-content: center;
109111
text-align: center;
110112
flex-grow: 1;
111-
padding: 2rem;
113+
padding: 2.5rem;
112114
text-decoration: none;
113115
color: #1d1d1f;
114116
}
115-
116-
.insta-card-no-image .insta-icon {
117-
font-size: 1.8rem;
118-
color: transparent;
119-
background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
120-
-webkit-background-clip: text;
121-
background-clip: text;
122-
margin-bottom: 1.5rem;
123-
}
124-
125-
.insta-card-no-image .card-title {
126-
font-size: 1.5em;
127-
font-weight: 700;
128-
margin-top: 0.8rem;
129-
margin-bottom: 0.5rem;
130-
}
131-
132-
.insta-card-no-image .card-description {
133-
font-size: 1.1em;
134-
color: #555;
135-
line-height: 1.6;
136-
flex-grow: 1; /* Pushes the button to the bottom */
137-
}
138-
139117
.insta-card-no-image .card-link {
140-
display: inline-block;
141-
background-color: #f0f0f5;
142-
color: #0071e3; /* Apple Blue for emphasis */
143-
border-radius: 99px;
144-
padding: 0.75rem 1.5rem;
145-
font-size: 1em;
146-
font-weight: 600;
147-
text-decoration: none;
148-
transition: background-color 0.2s ease;
149-
margin-top: 0.5rem;
150-
align-self: center; /* Center the button */
118+
background-color: #fff; /* White background for contrast */
119+
border: 1px solid #e0e0e5;
120+
align-self: center; /* Center-align */
151121
}
122+
.insta-card-no-image .insta-icon { font-size: 1.8rem; margin-bottom: 1.5rem; color: #c13584; }
123+
.insta-card-no-image .card-description { font-size: 1.1em; color: #555; line-height: 1.6; flex-grow: 1; margin-bottom: 0.5rem; }
124+
.insta-card-no-image.featured { border-color: #0071e3; }
152125

153-
.insta-card-no-image .card-link:hover {
154-
background-color: #e0e0e5;
155-
}
156-
157-
.insta-card-no-image.featured {
158-
border-color: #0071e3;
159-
box-shadow: 0 6px 20px rgba(0, 113, 227, 0.1);
160-
}
161-
/* General log-card wrapper for search */
162126
.log-card { display: block; }

_sass/custom/_kb-post.scss

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/* ==========================================================================
2+
FINAL & DEFINITIVE STYLES FOR CUSTOM POST LAYOUT V6
3+
========================================================================== */
4+
.post--custom {
5+
/* --- Global Word Wrapping --- */
6+
overflow-wrap: break-word;
7+
word-break: break-word;
8+
9+
/* --- Main Layout Structure --- */
10+
.post__inner-wrap {
11+
max-width: 1280px;
12+
margin: 0 auto;
13+
padding: 3rem 1rem;
14+
}
15+
16+
.content-wrapper {
17+
display: grid;
18+
grid-template-columns: 1fr;
19+
gap: 3rem;
20+
}
21+
22+
@media (min-width: 1024px) {
23+
.content-wrapper {
24+
grid-template-columns: minmax(0, 1fr) 300px;
25+
}
26+
}
27+
28+
/*
29+
* ===============================================================
30+
* ## THE DEFINITIVE FIX ##
31+
* This allows the main content area to shrink below its
32+
* natural minimum width, solving the overflow issue on mobile.
33+
* ===============================================================
34+
*/
35+
.post__content-main {
36+
min-width: 0;
37+
}
38+
39+
/* --- Header --- */
40+
.post__header {
41+
margin-bottom: 2rem;
42+
border-bottom: 1px solid #eef0f2;
43+
padding-bottom: 2rem;
44+
}
45+
.post__category-link { text-decoration: none; }
46+
.post__category { font-size: 0.9rem; font-weight: 700; color: #0071e3; text-transform: uppercase; }
47+
.post__title { font-size: 3em; font-weight: 800; margin: 0.5rem 0 0; line-height: 1.2; }
48+
49+
/* --- Main Content & Responsive Fixes --- */
50+
.page__content {
51+
font-size: 1.1rem;
52+
line-height: 1.8;
53+
54+
img, video, iframe { max-width: 100%; height: auto; border-radius: 12px; }
55+
pre { overflow-x: auto; padding: 1.5rem; border-radius: 12px; background: #f5f5f7; }
56+
table { display: block; max-width: 100%; overflow-x: auto; }
57+
}
58+
59+
/* --- TOC Sidebar --- */
60+
.post__toc-sidebar.sticky {
61+
position: sticky;
62+
top: 2rem;
63+
align-self: start;
64+
.toc { background: #f5f5f7; border: none; border-radius: 12px; padding: 1.5rem; }
65+
.toc .nav__title { border-bottom: none; font-weight: 700; margin-top: 0; }
66+
}
67+
68+
/* --- Footer Taxonomy Card --- */
69+
.page__meta {
70+
margin-top: 3rem;
71+
.taxonomy-block { background-color: #f8f8fa; border-radius: 12px; padding: 1rem 1.5rem; margin-top: 2rem; border: 1px solid #e5e5e5; }
72+
.taxonomy-row { display: flex; align-items: center; padding: 0.75rem 0; }
73+
.taxonomy-row + .taxonomy-row { border-top: 1px solid #e5e5e5; }
74+
.taxonomy-label { font-size: 0.8rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.05em; width: 120px; flex-shrink: 0; }
75+
.taxonomy-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; }
76+
.taxonomy-pill { display: inline-block; background-color: #e0e0e5; color: #333 !important; border-radius: 99px; padding: 0.5rem 1.25rem; font-size: 0.9em; font-weight: 600; text-decoration: none !important; transition: background-color 0.2s ease; }
77+
.taxonomy-pill:hover { background-color: #c8c8d0; }
78+
}
79+
@media (max-width: 480px) {
80+
.post--custom .taxonomy-row { flex-direction: column; align-items: flex-start; }
81+
.post--custom .taxonomy-label { width: auto; margin-bottom: 0.75rem; }
82+
}
83+
}

_sass/custom/_knowledge-base.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@
6262
margin-top: 2rem;
6363
}
6464

65+
@media (max-width: 480px) {
66+
.kb-post-grid {
67+
/* On mobile, force a single-column layout */
68+
grid-template-columns: 1fr;
69+
gap: 1rem; /* Optionally reduce the gap on mobile */
70+
}
71+
}
72+
6573
.kb-post-card {
6674
background-color: #fff;
6775
border-radius: 20px;

0 commit comments

Comments
 (0)