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: fix dark mode and header extra info #25

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
15 changes: 0 additions & 15 deletions javascripts/discourse/connectors/home-logo__before/logo.gjs

This file was deleted.

2 changes: 1 addition & 1 deletion scss/blocks/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
position: relative;
display: flex;
box-sizing: border-box;
color: var(--c, var(--neutral-10));
color: var(--neutral-10);
background: var(--bg, var(--neutral-100));
border-radius: var(--br, var(--rounded-md));
border: var(--b, var(--border-outer));
Expand Down
13 changes: 0 additions & 13 deletions scss/blocks/chart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,6 @@
margin-top: 0.5rem;

position: relative;

// &:before {
// content: "";
// position: absolute;
// top: -2.5rem;
// width: 100%;
// height: 2rem;
// background: linear-gradient(
// rgba(var(--primary-rgb), 0),
// var(--primary-50)
// );
// pointer-events: none;
// }
}

&__list {
Expand Down
2 changes: 1 addition & 1 deletion scss/discourse/d-menu.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--shadow-menu-panel: 0 0.25rem 2rem rgba(var(--neutral-0-rgb), 0.1);
--shadow-menu-panel: 0 0.25rem 2rem rgba(0, 0, 0, 0.1);
}

.fk-d-button-tooltip {
Expand Down
44 changes: 13 additions & 31 deletions scss/discourse/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
border-bottom: 1px solid var(--neutral-90);
box-shadow: none;

.header-sidebar-toggle {
display: none;
}

.wrap {
.contents {
@include breakpoint(large) {
Expand All @@ -19,17 +23,9 @@

display: grid;
grid-template-areas: "logo search utility";
grid-template-columns: var(--column-navigation) var(--column-content) var(
--column-blocks
);

&
> *:not(
.home-logo-wrapper-outlet,
.before-header-panel-outlet,
.panel
) {
display: none;
grid-template-columns: 21rem var(--column-content) var(--column-blocks);
@media screen and (max-width: 1080px) {
grid-template-columns: auto var(--column-content) var(--column-blocks);
}
}
}
Expand All @@ -38,32 +34,18 @@
display: none;
}

.title {
display: none;
}

.home-logo-wrapper-outlet {
grid-area: logo;
display: flex;
flex-shrink: 0;

.logo-temp {
@include headline-small;

display: flex;
width: min-content;
margin: 0;

img {
width: auto;
max-width: 12rem;
height: auto;
max-height: 2.5rem;
}
}
}

.extra-info-wrapper {
display: none;
grid-area: search;
}

.panel {
grid-area: utility;
}

.d-header-icons {
Expand Down
77 changes: 13 additions & 64 deletions scss/standards/colors.scss
Original file line number Diff line number Diff line change
@@ -1,66 +1,15 @@
:root {
--neutral-0: rgba(0, 0, 0, 1);
--neutral-5: rgba(30, 31, 32, 1);
--neutral-10: rgba(59, 60, 62, 1);
--neutral-20: rgba(67, 69, 71, 1);
--neutral-30: rgba(76, 80, 82, 1);
--neutral-40: rgba(90, 94, 96, 1);
--neutral-50: rgba(105, 110, 113, 1);
--neutral-60: rgba(132, 137, 140, 1);
--neutral-70: rgba(173, 177, 179, 1);
--neutral-80: rgba(207, 209, 210, 1);
--neutral-90: rgba(230, 231, 231, 1);
--neutral-95: rgba(245, 246, 246, 1);
--neutral-100: rgba(255, 255, 255, 1);

--neutral-0-rgb: 0, 0, 0;
--neutral-5-rgb: 30, 31, 32;
--neutral-10-rgb: 59, 60, 62;
--neutral-20-rgb: 67, 69, 71;
--neutral-30-rgb: 76, 80, 82;
--neutral-40-rgb: 90, 94, 96;
--neutral-50-rgb: 105, 110, 113;
--neutral-60-rgb: 132, 137, 140;
--neutral-70-rgb: 173, 177, 179;
--neutral-80-rgb: 207, 209, 210;
--neutral-90-rgb: 230, 231, 231;
--neutral-95-rgb: 245, 246, 246;
--neutral-100-rgb: 255, 255, 255;

// --primary-0: #000000; /* Black */
// --primary-10: #1a237e; /* Very Dark Blue */
// --primary-20: #283593; /* Dark Blue */
// --primary-3rgb(51, 55, 76)f9f; /* Medium Dark Blue */
// --primary-40: #3949ab; /* Medium Blue */
// --primary-50: #3f51b5; /* Slightly Lighter Medium Blue */
// --primary-60: #5c6bc0; /* Medium Light Blue */
// --primary-70: #7986cb; /* Lighter Blue */
// --primary-80: #9fa8da; /* Light Blue */
// --primary-90: #c5cae9; /* Very Light Blue */
// --primary-95: #e8eaf6; /* Pale Blue */
// --primary-99: #f5f5f5; /* Near White */
// --primary-100: #ffffff;

--primary-100: #fff;
--primary-95: #fef0e9; /* orange-50 */
--primary-90: #fbd0bc; /* orange-100 */
--primary-80: #f9ba9b; /* orange-200 */
--primary-70: #f69a6e; /* orange-300 */
--primary-60: #f58651; /* orange-400 */
--primary-50: #f26826; /* orange-500 */
--primary-40: #dc5f23; /* orange-600 */
--primary-30: #ac4a1b; /* orange-700 */
--primary-20: #853915; /* orange-800 */
--primary-10: #662c10; /* orange-900 */
--primary-0: #000;

--tertiary: var(--primary-50);
}

@mixin c($type, $shade, $alpha: 1) {
color: rgba(var(--#{$type}-#{$shade}), $alpha);
}

@mixin bgc($type, $shade, $alpha: 1) {
background-color: rgba(var(--#{$type}-#{$shade}), $alpha);
--neutral-0: var(--primary);
--neutral-5: var(--primary-900);
--neutral-10: var(--primary-800);
--neutral-20: var(--primary-700);
--neutral-30: var(--primary-600);
--neutral-40: var(--primary-500);
--neutral-50: var(--primary-400);
--neutral-60: var(--primary-300);
--neutral-70: var(--primary-200);
--neutral-80: var(--primary-200);
--neutral-90: var(--primary-200);
--neutral-95: var(--primary-50);
--neutral-100: var(--secondary);
}