Skip to content

Commit

Permalink
refactor(cxl-ui): cxl-certificate-header[completed] credential adjust…
Browse files Browse the repository at this point in the history
…ments

Adjust width of the content and credential depending on the screen size.
  • Loading branch information
pawelkmpt committed Jan 11, 2024
1 parent dfb2882 commit 786298d
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions packages/cxl-ui/scss/cxl-certificate-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,39 @@
}

:host([theme~="completed"]) {
&::before {
display: none;
}

color: var(--lumo-shade);
background-color: var(--lumo-tint);

@media #{mq.$medium} {
@include mixins.pesudo-element-full-width(var(--lumo-tint));
.container {
@media #{mq.$small} {
display: block;
}

@media #{mq.$medium} {
display: flex;
justify-content: space-between;
gap: var(--lumo-space-m);
}
}

.credential {
padding-top: 0;
border-top: none;

@media #{mq.$small} {
max-width: var(--cxl-hero-certificate-max-width);
}

@media #{mq.$medium} {
max-width: calc( var(--cxl-hero-certificate-max-width) / 2 );
}

@media #{mq.$large} {
max-width: var(--cxl-hero-certificate-max-width);
}
}
}

0 comments on commit 786298d

Please sign in to comment.