Skip to content

DRAFT: Discourse variables work #33383

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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

DRAFT: Discourse variables work #33383

wants to merge 12 commits into from

Conversation

jordanvidrine
Copy link
Contributor

This draft PR is to track work related to introducing more css variables into discourse.


// used for padding & margin
--space: 0.25rem; // 4px
--space-sm: calc(var(--space) / 2); // 2px
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe --space-0.5 is more consistent?

left: 32px;
bottom: -3em;
bottom: calc(-1 * var(--space-1));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-3em would be more like --space-12 right? or did this change because of rems?


// Main reply line
&::before {
content: "";
position: absolute;
top: -1.5em;
top: calc(-1 * var(--space-4));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be --space-6?

@@ -38,7 +38,7 @@
align-items: center;
justify-content: center;
border-radius: var(--d-border-radius);
border: 1px solid var(--primary-low);
border: 1px solid var(--content-border-color);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the difference between an input border and a content border?

@@ -125,12 +125,19 @@
--gold: #{$gold};
--silver: #{$silver};
--bronze: #{$bronze};
--read-color: var(--primary-medium);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably fine for now, but might be better to keep color changes in a separate PR (makes it cleaner to revert if anything goes wrong)

--metadata-color: var(--primary-medium);
--table-border-color: var(--primary-low);
--content-border-color: var(--primary-low);
--title-color: var(--primary);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what kind of title? topic lists? within topics? is it worth specifying or will we use this for lots of titles?

--table-border-color: var(--primary-low);
--content-border-color: var(--primary-low);
--title-color: var(--primary);
--header-title-color: var(--header_primary);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we maybe try a modifier pattern (I think I've done this elsewhere?)... something like --title-color--header?

@@ -94,17 +94,17 @@

.sidebar-section-header-text {
line-height: normal;
margin-right: 0.25em;
margin-right: var(--space-0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--space-0 doesn't exist right?

@@ -101,7 +103,7 @@
flex-direction: column;
box-sizing: border-box;
flex: 1;
padding: 1.5rem 1rem 1rem;
padding: var(--sidebar-section-wrapper-padding);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this increases the top padding to 1.75rem, is that intentional?

@@ -66,7 +66,7 @@
font-size: var(--font-up-6);
line-height: $line-height-medium;
font-weight: bold;
margin-bottom: 0.5rem;
margin-bottom: var(--space-52);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants