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

Styles #434

Merged
merged 4 commits into from
Oct 7, 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
24 changes: 17 additions & 7 deletions packages/cxl-lumo-styles/scss/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

html {
// Variables.
--cxl-content-max-width: 48em;
--cxl-content-max-width: 48rem;
--cxl-content-max-width-wide: calc(var(--cxl-content-max-width) * 2);
--cxl-wrap-padding: var(--lumo-space-m);
--cxl-hero-content-max-width: 650px;
Expand Down Expand Up @@ -353,16 +353,26 @@ vaadin-context-menu-item[theme~="cxl-context-menu-section-header"] {
}

/**
* Increase blog font size
* Increase font size
* @see https://app.clickup.com/t/86b1dy579
* @since 2024.08.12
*/
body.theme-conversionxl-better {
--cxl-content-max-width: 48rem;
.archive-description,
.entry-content,
.entry-summary {
font-size: var(--lumo-font-size-l);
}

vaadin-details {
h4 {
font-weight: 500;
}

.archive-description,
.entry-content,
.entry-summary {
.detail-content {
font-size: var(--lumo-font-size-l);

ul {
margin: 0;
}
}
}
1 change: 1 addition & 0 deletions packages/cxl-ui/scss/cxl-certificate-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
.description {
margin-top: var(--lumo-space-l);
font-family: var(--cxl-lumo-font-secondary);
font-size: var(--lumo-font-size-l);
line-height: var(--lumo-line-height-m);
}

Expand Down
3 changes: 2 additions & 1 deletion packages/cxl-ui/scss/cxl-course-card.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix -- some of these are necessary for line-clamp implementation */
/* stylelint-disable declaration-no-important */
/* stylelint-disable declaration-no-important, order/properties-order */

Choose a reason for hiding this comment

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

why properties-order rule is bad and you removed it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's too much of a headache remembering the CSS Spec. I prefer alphabetical.

Choose a reason for hiding this comment

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

Isn't it corrected automatically by linter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not :/ I don't mind using the default rules, though we could also use this? https://github.com/hudochenkov/stylelint-order/tree/master/rules/properties-alphabetical-order


@use "~@conversionxl/cxl-ui/scss/mixins";
@use "~@conversionxl/cxl-lumo-styles/scss/typography";

:host {
font-size: var(--lumo-font-size-m);
height: 280px;
}

Expand Down
Loading