Skip to content

Commit dc68d93

Browse files
committed
fix: fixed padding problems
1 parent 2a6a2b3 commit dc68d93

1 file changed

Lines changed: 21 additions & 24 deletions

File tree

assets/css/semantic-content.css

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
1-
/* Make .container and #main-content purely semantic - no styling */
1+
/* Targeted semantic content adjustments */
22

3-
/* Remove padding from container */
4-
.container {
3+
/* Remove padding ONLY from #main-content, not all containers */
4+
#main-content {
55
padding: 0 !important;
6-
/* Keep the max-width and centering for layout purposes */
7-
/* but remove any visual styling */
86
}
97

10-
/* Ensure main-content has no padding */
11-
#main-content {
8+
/* If main-content has the container class, still remove padding */
9+
#main-content.container {
1210
padding: 0 !important;
13-
margin: 0 !important;
1411
}
1512

16-
/* Optional: If you want to add padding back to specific pages/sections,
17-
you can use more specific selectors like:
18-
.gdoc-markdown { padding: 1.25rem; }
19-
or add a wrapper div with padding inside your content
20-
*/
21-
22-
/* Note: You may want to add padding to specific content areas instead
23-
For example: */
24-
.content-wrapper {
13+
/* But preserve padding for other specific content wrappers if needed */
14+
#main-content .content-wrapper,
15+
#main-content article {
16+
/* These can have padding if needed */
2517
padding: 1.25rem;
2618
}
2719

28-
/* Or add padding only to article content */
29-
article.gdoc-post {
30-
padding: 1.25rem;
20+
/* Fix breadcrumb padding asymmetry */
21+
/* The header has padding-bottom: 1.5rem and margin-bottom: 2rem = 3.5rem total! */
22+
/* Let's make it more balanced */
23+
.gdoc-page__header {
24+
padding-top: 0.75rem !important; /* Add some top padding for balance */
25+
padding-bottom: 0.75rem !important; /* Reduce from 1.5rem */
26+
margin-bottom: 1rem !important; /* Reduce from 2rem */
27+
/* Total bottom space now: 1.75rem instead of 3.5rem */
3128
}
3229

33-
/* Keep padding for markdown content if desired */
34-
.gdoc-markdown {
35-
/* Uncomment if you want to restore padding for markdown content */
36-
/* padding: 1.25rem; */
30+
/* Ensure breadcrumb itself is symmetrical */
31+
.gdoc-breadcrumb {
32+
padding: 0.5rem 0 !important;
33+
margin: 0 !important;
3734
}

0 commit comments

Comments
 (0)