Skip to content

Commit 3939cc4

Browse files
authored
UX: general styling improvements, maintenance (#72)
1 parent 2efca77 commit 3939cc4

File tree

4 files changed

+41
-30
lines changed

4 files changed

+41
-30
lines changed

about.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"highlight": "e6cb37",
2222
"danger": "d05454",
2323
"success": "71bd9f",
24-
"love": "c16ad7"
24+
"love": "c16ad7",
25+
"selected": "e1ebfb"
2526
},
2627
"air-dark": {
2728
"primary": "e0e0e0",
@@ -33,7 +34,9 @@
3334
"highlight": "9a5cfd",
3435
"danger": "d05454",
3536
"success": "71bd9f",
36-
"love": "c16ad7"
37+
"love": "c16ad7",
38+
"selected": "2f0177",
39+
"hover": "535353"
3740
}
3841
},
3942
"screenshots": ["screenshots/light.png", "screenshots/dark.png"]

common/common.scss

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
max-width: unset;
55
color: var(--secondary);
66
h1 {
7-
font-size: 4em;
7+
line-height: var(--line-height-small);
8+
@include breakpoint("large", min-width) {
9+
font-size: 4em;
10+
}
811
}
912
p {
10-
font-size: 1.25em !important;
11-
font-weight: bold;
12-
margin-bottom: 1em;
13+
margin-top: 0.5em;
14+
margin-bottom: 2em;
15+
@include breakpoint("large", min-width) {
16+
font-size: var(--font-up-1);
17+
}
1318
}
1419
.btn {
1520
height: 100%;
@@ -368,7 +373,6 @@ html body #main-outlet {
368373
}
369374
}
370375
.topic-list-item {
371-
width: 100%;
372376
display: flex;
373377
margin-bottom: 0.5em;
374378
background-color: var(--secondary);
@@ -428,6 +432,15 @@ html body #main-outlet {
428432
justify-content: center;
429433
align-items: center;
430434
}
435+
&.selected {
436+
td:nth-of-type(1) {
437+
box-shadow: none;
438+
}
439+
&:focus-visible td:nth-of-type(2) {
440+
box-shadow: inset 3px 0 0 var(--tertiary);
441+
border-radius: calc(1em - 3px);
442+
}
443+
}
431444
}
432445
}
433446
}
@@ -516,10 +529,6 @@ html body #main-outlet {
516529
}
517530
}
518531

519-
.navigation-container {
520-
margin-top: 2em;
521-
}
522-
523532
// published page additions
524533
.published-page-content-wrapper {
525534
max-width: 1000px;
@@ -560,20 +569,6 @@ html body #main-outlet {
560569
border-radius: 0.5em;
561570
}
562571

563-
.topic-list tr.selected td:nth-child(2),
564-
.topic-list-item.selected td:nth-child(2),
565-
.latest-topic-list-item.selected,
566-
.search-results .fps-result.selected {
567-
box-shadow: inset 3px 0 0 var(--danger);
568-
}
569-
570-
.topic-list tr.selected td:first-child,
571-
.topic-list-item.selected td:first-child,
572-
.latest-topic-list-item.selected,
573-
.search-results .fps-result.selected {
574-
box-shadow: none;
575-
}
576-
577572
.topic-list .main-link.focused + .posters {
578573
box-shadow: inset 3px 0 0 var(--tertiary);
579574
}

mobile/mobile.scss

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ html
2929
background-color: transparent;
3030
}
3131

32+
#main-outlet {
33+
margin-inline: auto;
34+
}
35+
3236
html body #main-outlet .docs {
3337
padding: 1em;
3438
background-color: var(--secondary);
@@ -175,10 +179,15 @@ ol.category-breadcrumb {
175179
flex-wrap: wrap;
176180
}
177181

178-
.topic-list-item .discourse-tags {
179-
order: 3;
180-
width: 100%;
181-
margin-top: 0.5em;
182+
.topic-list-item {
183+
> .topic-list-data {
184+
width: 100%;
185+
}
186+
.discourse-tags {
187+
order: 3;
188+
width: 100%;
189+
margin-top: 0.5em;
190+
}
182191
}
183192

184193
.full-width .contents .topic-list .topic-list-item .posts-map {
@@ -219,3 +228,7 @@ ol.category-breadcrumb {
219228
padding-right: 0.25em;
220229
}
221230
}
231+
232+
.list-controls .nav-pills .list-control-toggle-link-trigger {
233+
color: var(--secondary);
234+
}

scss/chat-desktop.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ html body.has-sidebar-page.has-full-page-chat {
1212
}
1313

1414
.chat-channel {
15-
height: calc(100vh - (var(--header-offset) + 10em));
15+
height: calc(100vh - (var(--header-offset) + 7.85em));
1616
}
1717

1818
.c-navbar-container {

0 commit comments

Comments
 (0)