Skip to content

Commit

Permalink
fix(cxl-ui): cxl-dashboard-header -> remove unnecessary padding
Browse files Browse the repository at this point in the history
  • Loading branch information
freudFlintstone committed Dec 18, 2023
1 parent 96a42a2 commit a0bd010
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
20 changes: 12 additions & 8 deletions packages/cxl-lumo-styles/scss/themes/cxl-tabs-slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
width: var(--lumo-size-s);
height: var(--lumo-size-s);
color: var(--cxl-brand-color-blue);
background-color: #1F7A9933;
background-color: #1f7a9933;
border: 1px solid transparent;
border-radius: 100%;
box-shadow: unset;
Expand Down Expand Up @@ -121,7 +121,6 @@
[part="forward-button"] {
margin-right: var(--lumo-space-l);
}

}

/**
Expand Down Expand Up @@ -185,20 +184,20 @@
}

[part="back-button"] {
left: calc(-1 * var(--lumo-space-l));
left: calc(-1 * var(--lumo-space-m));
margin-left: var(--lumo-space-s);

@media #{mq.$small} {
left: calc(-1 * var(--lumo-space-xl));
left: calc(-1 * var(--lumo-space-l));
}
}

[part="forward-button"] {
right: calc(-1 * var(--lumo-space-l));
right: calc(-1 * var(--lumo-space-m));
margin-right: var(--lumo-space-s);

@media #{mq.$small} {
right: calc(-1 * var(--lumo-space-xl));
right: calc(-1 * var(--lumo-space-l));
}
}
}
Expand Down Expand Up @@ -235,7 +234,8 @@
* Theme "cxl-course-slider" and "cxl-slider-dashboard-header"
*/

:host([theme~="cxl-course-slider"][theme~="cxl-slider-dashboard-header"]) {
:host([theme~="cxl-course-slider"][theme~="cxl-slider-dashboard-header"]),
:host([theme~="cxl-course-slider"][theme~="minimal"][theme~="cxl-category-accordion"]) {
margin-inline: 0;

@media #{mq.$small} {
Expand Down Expand Up @@ -265,6 +265,10 @@
:host([theme~="cxl-course-slider"][theme~="cxl-category-slider"][theme~="unfinished"]) {
&::before,
&::after {
background: linear-gradient(270deg, var(--cxl-color-medium-gray) 0%, rgba(255, 255, 255, 0) 100%);
background: linear-gradient(
270deg,
var(--cxl-color-medium-gray) 0%,
rgba(255, 255, 255, 0) 100%
);
}
}
8 changes: 1 addition & 7 deletions packages/cxl-ui/scss/cxl-dashboard-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
.container {
position: relative;
z-index: 1;
padding: 0 var(--lumo-space-m) var(--lumo-space-xl);

@media #{mq.$medium} {
padding: calc(var(--lumo-space-m) * 2) var(--lumo-space-l);
}
}

.updates {
Expand Down Expand Up @@ -59,7 +54,6 @@
.title {
margin: 0;
}

}

.header-flex {
Expand Down Expand Up @@ -122,7 +116,7 @@
}

.slider {
margin-top: calc(var(--lumo-space-l) + var(--lumo-space-s)); ;
margin-top: calc(var(--lumo-space-l) + var(--lumo-space-s));
}

.slider-title {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ export const CXLDashboard = () => {
${CXLMarketingNav()}
<div>
${CXLDashboardHeader(CXLDashboardHeader.args)}
<div style="padding: 0 var(--lumo-space-m)">
<h1 class="cxl-separator">Explore all courses</h1>
</div>
${DashboardSlider()}
${CXLDashboardSections()}
<h1 class="cxl-separator">Explore all courses</h1>
${DashboardSlider()} ${CXLDashboardSections()}
</div>
${CXLFooterNav()}
</cxl-app-layout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
};

export const CXLDashboardSections = () => html`
<div style="margin-top: var(--lumo-space-xl); padding: 0 var(--lumo-space-m)">
<div style="margin-top: var(--lumo-space-xl)">
${categoryData.map(
(cat) => html`
<cxl-dashboard-section image=${cat.image}>
Expand Down

0 comments on commit a0bd010

Please sign in to comment.