Skip to content

Commit 8024882

Browse files
Merge pull request #155 from phel-lang/design-adjustments-2
Keep improving design
2 parents 7df911f + dd90a41 commit 8024882

File tree

11 files changed

+35
-243
lines changed

11 files changed

+35
-243
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ compile_sass = false
1010
# Whether to build a search index to be used later on by a JavaScript library
1111
build_search_index = false
1212

13-
generate_feeds = true
13+
generate_feeds = false
1414

1515
[markdown]
1616
# Whether to do syntax highlighting

css/components/blog.css

Lines changed: 15 additions & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Blog post list - clean style */
1+
/* Blog post list */
22
@utility post-list {
33
list-style: none;
44
padding: 0;
@@ -15,11 +15,8 @@
1515
display: none;
1616
}
1717

18-
/* Blog post card */
19-
.post-list li a {
20-
text-decoration: none;
21-
transition: all var(--duration-fast) var(--ease-out);
22-
position: relative;
18+
.blog-entry .meta {
19+
color: var(--color-gray-light);
2320
}
2421

2522
.post-list li a::after {
@@ -37,141 +34,6 @@
3734
width: 100%;
3835
}
3936

40-
/* Blog post title */
41-
.post-list li a h2 {
42-
color: var(--color-light-text-primary);
43-
margin: 0 0 var(--space-sm) 0;
44-
font-size: var(--text-xl);
45-
font-weight: 700;
46-
transition: color var(--duration-fast) var(--ease-out);
47-
}
48-
49-
.post-list li a:hover h2 {
50-
color: var(--color-light-link);
51-
}
52-
53-
/* Blog post meta */
54-
.post-list li a .meta {
55-
display: flex;
56-
align-items: center;
57-
gap: var(--space-md);
58-
color: var(--color-gray-light);
59-
font-size: var(--text-sm);
60-
font-weight: 500;
61-
margin-bottom: var(--space-md);
62-
}
63-
64-
.post-list li a .meta time {
65-
display: flex;
66-
align-items: center;
67-
gap: var(--space-xs);
68-
}
69-
70-
.post-list li a .meta time::before {
71-
content: '📅';
72-
font-size: var(--text-base);
73-
}
74-
75-
/* Blog post excerpt */
76-
.post-list li a .excerpt {
77-
color: var(--color-light-text-secondary);
78-
line-height: var(--leading-relaxed);
79-
font-size: var(--text-base);
80-
margin: 0;
81-
}
82-
83-
/* Blog entry (single post view) */
84-
@utility blog-entry {
85-
max-width: var(--container-content);
86-
margin: 0 auto;
87-
}
88-
89-
.blog-entry header {
90-
margin-bottom: var(--space-3xl);
91-
padding-bottom: var(--space-xl);
92-
border-bottom: 1px solid var(--color-light-border);
93-
}
94-
95-
.blog-entry header h1 {
96-
margin-top: 0;
97-
margin-bottom: var(--space-md);
98-
font-size: clamp(2rem, 5vw, 3rem);
99-
color: var(--color-light-text-primary);
100-
}
101-
102-
.blog-entry .meta {
103-
display: flex;
104-
align-items: center;
105-
gap: var(--space-xs);
106-
flex-wrap: wrap;
107-
color: var(--color-gray-light);
108-
font-size: var(--text-base);
109-
}
110-
111-
.blog-entry .meta time {
112-
display: flex;
113-
align-items: center;
114-
gap: var(--space-sm);
115-
font-weight: 500;
116-
}
117-
118-
.blog-entry .meta .author {
119-
display: flex;
120-
align-items: center;
121-
gap: var(--space-sm);
122-
font-weight: 500;
123-
}
124-
125-
.blog-entry .meta .author::before {
126-
content: '✍️';
127-
font-size: var(--text-lg);
128-
}
129-
130-
/* Blog content styling */
131-
.blog-entry .content {
132-
font-size: var(--text-body);
133-
line-height: var(--leading-relaxed);
134-
color: var(--color-light-text-secondary);
135-
}
136-
137-
.blog-entry .content > *:first-child {
138-
margin-top: 0;
139-
}
140-
141-
/* Blog tags */
142-
.blog-tags {
143-
display: flex;
144-
flex-wrap: wrap;
145-
gap: var(--space-sm);
146-
margin: var(--space-2xl) 0;
147-
padding-top: var(--space-xl);
148-
border-top: 1px solid var(--color-light-border);
149-
}
150-
151-
.blog-tag {
152-
display: inline-flex;
153-
align-items: center;
154-
padding: var(--space-sm) var(--space-lg);
155-
background: var(--color-light-bg-secondary);
156-
color: var(--color-light-link);
157-
border: 1px solid var(--color-light-border);
158-
border-radius: var(--radius-full);
159-
font-size: var(--text-sm);
160-
font-weight: 600;
161-
text-decoration: none;
162-
transition: all var(--duration-fast) var(--ease-out);
163-
}
164-
165-
.blog-tag::before {
166-
content: '#';
167-
opacity: 0.5;
168-
margin-right: var(--space-xs);
169-
}
170-
171-
.blog-tag::after {
172-
display: none;
173-
}
174-
17537
/* Pagination */
17638
@utility pagination {
17739
display: flex;
@@ -221,55 +83,15 @@
22183
}
22284

22385
/* Featured post highlight */
224-
.post-list li.featured a {
225-
border: 2px solid var(--color-light-link);
226-
background: linear-gradient(
227-
135deg,
228-
rgba(99, 102, 241, 0.05),
229-
transparent
230-
);
231-
}
232-
233-
.post-list li.featured a::before {
234-
transform: scaleY(1);
235-
}
236-
237-
/* Reading time indicator */
238-
.reading-time {
239-
display: inline-flex;
240-
align-items: center;
241-
gap: var(--space-xs);
242-
padding: var(--space-xs) var(--space-md);
243-
background: var(--color-light-bg-secondary);
244-
border-radius: var(--radius-full);
245-
font-size: var(--text-xs);
246-
font-weight: 600;
247-
color: var(--color-gray-base);
248-
}
249-
250-
.reading-time::before {
251-
content: '⏱️';
252-
}
253-
254-
/* Blog section header */
255-
.blog-header {
256-
text-align: center;
257-
padding: var(--space-3xl) 0;
258-
margin-bottom: var(--space-2xl);
259-
}
260-
261-
.blog-header h1 {
262-
font-size: clamp(2.5rem, 6vw, 4rem);
263-
margin-bottom: var(--space-md);
264-
background: linear-gradient(135deg, var(--color-light-link), var(--color-light-text-accent));
265-
-webkit-background-clip: text;
266-
-webkit-text-fill-color: transparent;
267-
background-clip: text;
268-
}
269-
270-
.blog-header p {
271-
font-size: var(--text-xl);
272-
color: var(--color-light-text-secondary);
273-
max-width: 600px;
274-
margin: 0 auto;
275-
}
86+
/*.post-list li.featured a {*/
87+
/* border: 2px solid var(--color-light-link);*/
88+
/* background: linear-gradient(*/
89+
/* 135deg,*/
90+
/* rgba(99, 102, 241, 0.05),*/
91+
/* transparent*/
92+
/* );*/
93+
/*}*/
94+
95+
/*.post-list li.featured a::before {*/
96+
/* transform: scaleY(1);*/
97+
/*}*/

css/components/dark-mode.css

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,15 @@
340340

341341
/* Dark mode for sidebar toggle */
342342
.dark .sidebar-toggle {
343-
background: var(--color-dark-bg-secondary);
344-
border-color: var(--color-dark-border);
343+
background: var(--color-dark-surface);
344+
border-color: var(--color-dark-text-secondary);
345345
color: var(--color-dark-text-primary);
346346
}
347347

348348
.dark .sidebar-toggle:hover {
349349
background: var(--color-dark-surface-hover);
350350
border-color: var(--color-dark-text-accent);
351+
color: var(--color-dark-text-accent);
351352
}
352353

353354
/* Dark mode for sidebar accordion open state */
@@ -672,15 +673,9 @@
672673
}
673674

674675
.dark .result-type-badge--api {
675-
background: rgba(191, 164, 255, 0.3);
676-
color: #bfa4ff;
677-
border: 1px solid rgba(191, 164, 255, 0.5);
678-
}
679-
680-
.dark .result-type-badge--docs {
681-
background: rgba(191, 164, 255, 0.3);
682-
color: #bfa4ff;
683-
border: 1px solid rgba(191, 164, 255, 0.5);
676+
background: var(--color-dark-text-accent);
677+
color: var(--color-dark-bg);
678+
border: 1px solid var(--color-dark-text-accent);
684679
}
685680

686681
.dark .search-results__item .fn-name {

css/components/documentation.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,13 @@
317317
@media (max-width: 767px) {
318318
.api-namespace-content {
319319
gap: var(--space-xs);
320-
max-width: 100vw;
320+
max-width: 100%;
321321
padding: 0;
322322
}
323+
324+
.api-namespace-toggle[aria-expanded="false"] + .api-namespace-content.has-overflow {
325+
width: 100%;
326+
}
323327
}
324328

325329
/* Collapsed state - show preview with fade */

css/components/layout.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@
6767
border: 1px solid var(--color-light-border);
6868
border-radius: var(--radius-lg);
6969
color: var(--color-light-text-primary);
70-
font-weight: 600;
71-
font-size: var(--text-sm);
7270
cursor: pointer;
73-
margin: var(--space-md) 0;
71+
margin: var(--space-xl) 0;
7472
transition: all var(--duration-fast) var(--ease-out);
7573
position: relative;
7674
z-index: 10;
@@ -82,10 +80,14 @@
8280
}
8381

8482
.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-text::before {
83+
font-weight: 600;
84+
font-size: var(--text-base);
8585
content: 'Hide navigation';
8686
}
8787

8888
.sidebar-toggle[aria-expanded="false"] .sidebar-toggle-text::before {
89+
font-weight: 600;
90+
font-size: var(--text-base);
8991
content: 'Show navigation';
9092
}
9193

css/components/performance.css

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

css/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
--color-light-text-primary: #0f172a;
1212
--color-light-text-secondary: #475569;
1313
--color-light-text-muted: #64748b;
14-
--color-light-text-accent: #0ea5e9;
14+
--color-light-text-accent: #915bd5;
1515
--color-light-link: #512da8;
1616
--color-light-border: #e2e8f0;
1717
--color-light-border-subtle: #f1f5f9;

scripts/concat-tailwind.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const parts = [
1717
'css/components/blog.css',
1818
'css/components/features.css',
1919
'css/components/dark-mode.css',
20-
'css/components/performance.css',
2120
];
2221

2322
// Check if we're in watch mode

templates/base.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@
3535
<meta property="og:image" content="https://phel-lang.org/favicon-512.png" />
3636
<meta property="og:image:width" content="512" />
3737
<meta property="og:image:height" content="512" />
38-
39-
{% block rss %}
40-
{% if config.generate_feeds %}
41-
<link type="application/atom+xml" rel="alternate" title="{{ config.title }} - Blog" href="{{ get_url(path=config.feed_filename | default(value='atom.xml')) | safe }}">
42-
<link type="application/rss+xml" rel="alternate" title="{{ config.title }} - Blog" href="{{ get_url(path=config.feed_filename | default(value='atom.xml')) | safe }}" >
43-
{% endif %}
44-
{% endblock %}
4538
</head>
4639

4740
<body>

templates/blog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% endblock meta_content %}
77
{% block content %}
88
<h1>Blog</h1>
9-
<p>Find the newest information about Phel in our Blog. Subscribe the <a href="{{ get_url(path="atom.xml", trailing_slash=false) }}">Atom/RSS feed</a> if you never want to miss a new entry.</p>
9+
<p>Find the newest information about Phel in our Blog.</p>
1010
<ul class="post-list">
1111
{% for page in paginator.pages %}
1212
<li>

0 commit comments

Comments
 (0)