Skip to content

Commit a9151e9

Browse files
committed
feat: reduced padding to make theme cleaner
1 parent df836e8 commit a9151e9

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

assets/css/semantic-content.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* Make .container and #main-content purely semantic - no styling */
2+
3+
/* Remove padding from container */
4+
.container {
5+
padding: 0 !important;
6+
/* Keep the max-width and centering for layout purposes */
7+
/* but remove any visual styling */
8+
}
9+
10+
/* Ensure main-content has no padding */
11+
#main-content {
12+
padding: 0 !important;
13+
margin: 0 !important;
14+
}
15+
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 {
25+
padding: 1.25rem;
26+
}
27+
28+
/* Or add padding only to article content */
29+
article.gdoc-post {
30+
padding: 1.25rem;
31+
}
32+
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; */
37+
}

layouts/partials/head/custom.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
<link rel="stylesheet" href="{{ $pennAICSS.RelPermalink }}">
3232
{{ end }}
3333

34+
<!-- Semantic Content - Remove padding from container and main-content -->
35+
{{ $semanticCSS := resources.Get "css/semantic-content.css" }}
36+
{{ if $semanticCSS }}
37+
<link rel="stylesheet" href="{{ $semanticCSS.RelPermalink }}">
38+
{{ end }}
39+
3440
<!-- Penn Gradient Settings -->
3541
{{/* Get site-wide default settings */}}
3642
{{ $siteSettings := .Site.Params.pennGradient | default dict }}

0 commit comments

Comments
 (0)