Skip to content

Commit 2a6a2b3

Browse files
committed
feat: added "discrete-math" sample header preset for bg images
1 parent 8e65698 commit 2a6a2b3

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

data/backgrounds/presets.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,31 @@ header:
2626
toolbar:
2727
color: "var(--penn-white)"
2828

29+
# Discrete Math theme with algorithm background
30+
discrete-math:
31+
height: "100px"
32+
image: "./discrete-math.png" # Algorithm/graph theory background image
33+
imageOpacity: 0.85
34+
imageSize: "cover"
35+
imagePosition: "center center"
36+
textureImage: "/backgrounds/textures/penn-subtle-texture.png"
37+
textureOpacity: 0.05 # Very subtle texture overlay
38+
logo:
39+
background: "rgba(1, 31, 91, 0.7)" # Penn blue with 70% opacity
40+
color: "var(--penn-white)"
41+
padding: "0.5rem"
42+
borderRadius: "4px"
43+
title:
44+
background: "rgba(1, 31, 91, 0.7)" # Penn blue with 70% opacity
45+
color: "var(--penn-white)"
46+
padding: "0.25rem 0.75rem"
47+
borderRadius: "4px"
48+
toolbar:
49+
background: "rgba(1, 31, 91, 0.5)" # Penn blue with 50% opacity
50+
color: "var(--penn-white)"
51+
padding: "0.25rem"
52+
borderRadius: "4px"
53+
2954
# Engineering lab with photo
3055
engineering-lab:
3156
height: "180px"

static/backgrounds/background-system.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@
124124
}
125125

126126
/* Ensure header content is above background layers */
127-
.gdoc-header__wrapper {
127+
.gdoc-header__wrapper,
128+
.gdoc-header .container,
129+
.gdoc-header > * {
128130
position: relative;
129131
z-index: 10;
130132
}

static/discrete-math.png

623 KB
Loading

0 commit comments

Comments
 (0)