Skip to content

Commit 9d0b2c4

Browse files
committed
Added padding to elements on Activities page
1 parent b2d64da commit 9d0b2c4

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

app/assets/stylesheets/components/activities.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
1+
.activities-header {
2+
display: flex;
3+
justify-content: space-between;
4+
align-items: center;
5+
padding: var(--spacing-3);
6+
border-bottom: var(--border-width) solid var(--color-border);
7+
8+
& h2 {
9+
font-size: var(--font-size-2xl);
10+
font-weight: var(--font-weight-semibold);
11+
color: var(--color-text-primary);
12+
margin: 0;
13+
}
14+
}
15+
116
.activity-search {
217
display: flex;
318
gap: var(--spacing-3);
419
margin: var(--spacing-3) 0;
20+
padding: 0 var(--spacing-3);
521
}
622

723
.activities-list {
824
display: flex;
925
flex-direction: column;
1026
gap: var(--spacing-3);
11-
margin-top: var(--spacing-2);
27+
margin: var(--spacing-2) 0;
28+
padding: 0 var(--spacing-3);
1229
}
1330

1431
.activity-card {

app/assets/stylesheets/components/topics.css

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,6 @@
5959

6060
/* ─────────────────────────────────────────────────────────────────── */
6161

62-
.section-header {
63-
display: flex;
64-
justify-content: space-between;
65-
align-items: center;
66-
margin-bottom: var(--spacing-6);
67-
padding-bottom: var(--spacing-3);
68-
border-bottom: var(--border-width) solid var(--color-border);
69-
70-
& h2 {
71-
font-size: var(--font-size-2xl);
72-
font-weight: var(--font-weight-semibold);
73-
color: var(--color-text-primary);
74-
margin: 0;
75-
}
76-
}
77-
7862
.new-topics-banner {
7963
background: linear-gradient(to right, var(--color-primary-50), var(--color-primary-100));
8064
border: var(--border-width) solid var(--color-primary-300);

app/views/activities/index.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- content_for :title, "Activity"
22

3-
.section-header
3+
.activities-header
44
h2 Activity
55
- if @unread_count.positive?
66
= button_to "Mark all read (#{@unread_count})", mark_all_read_activities_path, method: :post, class: "button-secondary"

0 commit comments

Comments
 (0)