Skip to content

Commit 4a8eaa4

Browse files
phiro56madolson
andauthored
feat: restyle Topics Page layout and components (#248)
## Description Restyle Topics Page layout and components - Update left-aside layout with reversed flex direction - Style topic cards with new background and hover states - Add rounded corners to main content area - Implement responsive layout adjustments for mobile/desktop - Update typography and spacing for topic descriptions ### Dependencies - This PR depends on #[242](#242) (feat-ui-redesign-commands-page) - The changes in this PR should be reviewed and merged after the base PR is merged <img width="1728" alt="Screenshot 2025-04-24 at 1 20 16 PM" src="https://github.com/user-attachments/assets/31875fcc-5331-41d7-85bf-5ac5523f096b" /> --------- Signed-off-by: Daniel Phillips <[email protected]> Signed-off-by: Madelyn Olson <[email protected]> Co-authored-by: Madelyn Olson <[email protected]>
1 parent a13d5bc commit 4a8eaa4

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

sass/_valkey.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ p {
504504
color: #000;
505505
text-transform: uppercase;
506506
cursor: pointer;
507+
font-weight: 600;
507508

508509
&:hover {
509510
background-color: #b9c6ff;
@@ -514,6 +515,12 @@ p {
514515
}
515516
}
516517

518+
.topic-description {
519+
display: block;
520+
text-transform: none;
521+
font-size: 90%;
522+
}
523+
517524
.search-container {
518525
display: flex;
519526
align-items: center;
@@ -939,8 +946,7 @@ pre table {
939946
margin-bottom: 0.5em;
940947
}
941948

942-
.block-menu ul li,
943-
.index-entry {
949+
.block-menu ul li {
944950
border: 1px solid $line;
945951
border-radius: 3px;
946952
a {

templates/docs.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
{% extends "right-aside.html" %}
1+
{% extends "left-aside.html" %}
22

33
{% import "macros/docs.html" as docs %}
44

55
{% block subhead_content %}
6-
<h1 class="page-title">Documentation by topic</h1>
6+
<div class="styled-title">
7+
<h1>Documentation by Topic</h1>
8+
</div>
79
{% endblock subhead_content %}
810

911
{% block main_content %}
@@ -42,10 +44,15 @@ <h2>Alphabetical Index</h2>
4244
{% set joined_list = list | join(sep=",") %}
4345
{% set topic_list = load_data(literal= "[" ~ joined_list ~ "]", format="json") | sort(attribute="title") %}
4446

45-
{% for topic in topic_list %}
46-
<div class="index-entry">
47-
<a href="{{ topic.path }}">{{ topic.title }}</a> {{ topic.description | safe }} <br />
48-
</div>
49-
{% endfor %}
47+
<ul class="topic-list">
48+
{% for topic in topic_list %}
49+
<li>
50+
<a href="{{ topic.path }}">
51+
{{ topic.title }}
52+
<span class="topic-description">{{ topic.description | safe }}</span>
53+
</a>
54+
</li>
55+
{% endfor %}
56+
</ul>
5057

5158
{% endblock related_content %}

0 commit comments

Comments
 (0)