Skip to content

Commit 457a975

Browse files
committed
feat: updated code comments and modified the shadow's intensity of light theme.
1 parent d7f7eeb commit 457a975

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ <h1>Pascal</h1>
1919
- To add a new example:
2020
1) Add a button here with data-example="yourkey"
2121
2) Add a matching <div class="code-example" id="example-yourkey"> below.
22-
3) Define a Hugo variable with backticks (e.g., $yourCode := `...`) and render with
23-
{{ highlight $yourCode "objectpascal" "linenos=false" }}
22+
3) Define a Hugo variable with backticks and render with appropriate options
23+
2424
- The tab switching is implemented in JS inside layouts/_default/baseof.html.
2525
-->
2626
<div class="code-selector">

static/css/main.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
--accent-hover: #0256cc;
1616
--border-color: #e1e4e8;
1717
--code-bg: #f6f8fa;
18-
--shadow: rgba(27, 31, 35, 0.04);
18+
--shadow: rgba(27, 31, 35, 0.25);
1919

2020
/* Typography */
2121
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
@@ -51,7 +51,7 @@
5151
--accent-hover: #1f6feb;
5252
--border-color: #30363d;
5353
--code-bg: #161b22;
54-
--shadow: rgba(0, 0, 0, 0.4);
54+
--shadow: rgba(0, 0, 0, 0.35);
5555
}
5656

5757
/* Reset and base styles */
@@ -637,7 +637,6 @@ hr {
637637
border-bottom: 1px solid var(--border-color);
638638
gap: var(--spacing-md);
639639
padding: var(--spacing-md) var(--spacing-lg);
640-
box-shadow: 0 8px 25px var(--shadow);
641640
z-index: 110;
642641
/* hidden state */
643642
max-height: 0;
@@ -646,9 +645,12 @@ hr {
646645
transform: translateY(-8px);
647646
pointer-events: none;
648647
visibility: hidden;
649-
transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
648+
transition: max-height 0.25s ease,
649+
opacity 0.2s ease,
650+
transform 0.2s ease,
651+
visibility 0.2s ease,
652+
box-shadow 0.2s ease; /* animate shadow */
650653
}
651-
652654
/* Shown when hamburger is toggled */
653655
.navbar-menu.is-open {
654656
max-height: 60vh;

0 commit comments

Comments
 (0)