Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX: general styling improvements, maintenance #72

Merged
merged 3 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions about.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"highlight": "e6cb37",
"danger": "d05454",
"success": "71bd9f",
"love": "c16ad7"
"love": "c16ad7",
"selected": "e1ebfb"
},
"air-dark": {
"primary": "e0e0e0",
Expand All @@ -33,7 +34,9 @@
"highlight": "9a5cfd",
"danger": "d05454",
"success": "71bd9f",
"love": "c16ad7"
"love": "c16ad7",
"selected": "2f0177",
"hover": "535353"
}
},
"screenshots": ["screenshots/light.png", "screenshots/dark.png"]
Expand Down
47 changes: 22 additions & 25 deletions common/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@
max-width: unset;
color: var(--secondary);
h1 {
font-size: 4em;
line-height: var(--line-height-small);
@include breakpoint("large", min-width) {
font-size: 4em;
}
}
p {
font-size: 1.25em !important;
font-weight: bold;
margin-bottom: 1em;
margin-top: 0.5em;
margin-bottom: 2em;
@include breakpoint("large", min-width) {
font-size: var(--font-up-1);
}
}
.btn {
height: 100%;
Expand Down Expand Up @@ -244,7 +249,8 @@ div.ac-wrap {

// graceful ish style
@mixin box-shadow($value: 0px) {
box-shadow: 0 24px 40px rgba(0, 0, 0, 0.07),
box-shadow:
0 24px 40px rgba(0, 0, 0, 0.07),
0 10.8529px 24.1177px rgba(0, 0, 0, 0.0456112),
0 4.50776px 10.0172px rgba(0, 0, 0, 0.035),
0 1.63037px 3.62304px rgba(0, 0, 0, 0.0243888);
Expand Down Expand Up @@ -368,7 +374,6 @@ html body #main-outlet {
}
}
.topic-list-item {
width: 100%;
display: flex;
margin-bottom: 0.5em;
background-color: var(--secondary);
Expand Down Expand Up @@ -428,6 +433,15 @@ html body #main-outlet {
justify-content: center;
align-items: center;
}
&.selected {
td:nth-of-type(1) {
box-shadow: none;
}
&:focus-visible td:nth-of-type(2) {
box-shadow: inset 3px 0 0 var(--tertiary);
border-radius: calc(1em - 3px);
}
}
}
}
}
Expand Down Expand Up @@ -516,10 +530,6 @@ html body #main-outlet {
}
}

.navigation-container {
margin-top: 2em;
}

// published page additions
.published-page-content-wrapper {
max-width: 1000px;
Expand All @@ -528,7 +538,8 @@ html body #main-outlet {
background: var(--secondary);
border-radius: 1em;
padding: 3em 3em 5%;
box-shadow: 0 24px 40px rgba(0, 0, 0, 0.07),
box-shadow:
0 24px 40px rgba(0, 0, 0, 0.07),
0 10.8529px 24.1177px rgba(0, 0, 0, 0.0456112),
0 4.50776px 10.0172px rgba(0, 0, 0, 0.035),
0 1.63037px 3.62304px rgba(0, 0, 0, 0.0243888);
Expand Down Expand Up @@ -560,20 +571,6 @@ html body #main-outlet {
border-radius: 0.5em;
}

.topic-list tr.selected td:nth-child(2),
.topic-list-item.selected td:nth-child(2),
.latest-topic-list-item.selected,
.search-results .fps-result.selected {
box-shadow: inset 3px 0 0 var(--danger);
}

.topic-list tr.selected td:first-child,
.topic-list-item.selected td:first-child,
.latest-topic-list-item.selected,
.search-results .fps-result.selected {
box-shadow: none;
}

.topic-list .main-link.focused + .posters {
box-shadow: inset 3px 0 0 var(--tertiary);
}
Expand Down
21 changes: 17 additions & 4 deletions mobile/mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ html
background-color: transparent;
}

#main-outlet {
margin-inline: auto;
}

html body #main-outlet .docs {
padding: 1em;
background-color: var(--secondary);
Expand Down Expand Up @@ -175,10 +179,15 @@ ol.category-breadcrumb {
flex-wrap: wrap;
}

.topic-list-item .discourse-tags {
order: 3;
width: 100%;
margin-top: 0.5em;
.topic-list-item {
> .topic-list-data {
width: 100%;
}
.discourse-tags {
order: 3;
width: 100%;
margin-top: 0.5em;
}
}

.full-width .contents .topic-list .topic-list-item .posts-map {
Expand Down Expand Up @@ -219,3 +228,7 @@ ol.category-breadcrumb {
padding-right: 0.25em;
}
}

.list-controls .nav-pills .list-control-toggle-link-trigger {
color: var(--secondary);
}
2 changes: 1 addition & 1 deletion scss/chat-desktop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ html body.has-sidebar-page.has-full-page-chat {
}

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

.c-navbar-container {
Expand Down
Loading