Skip to content

Commit

Permalink
style: extract css out of :host (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
wghglory authored Oct 31, 2024
1 parent b3412df commit 88f2442
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 59 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:host {
display: block;
}

.alert-text {
word-break: break-all;
}
.alert-text {
word-break: break-all;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
max-width: unset;
max-height: unset;
}
}

.text-success {
color: var(--cds-alias-status-success);
}
.text-warning {
color: var(--cds-alias-status-warning);
}
.text-danger {
color: var(--cds-alias-status-danger);
}
.text-success {
color: var(--cds-alias-status-success);
}
.text-warning {
color: var(--cds-alias-status-warning);
}
.text-danger {
color: var(--cds-alias-status-danger);
}

.certificate-status {
display: inline-block;
.certificate-status {
display: inline-block;

& > * + * {
margin-left: 0.25rem;
}
& > * + * {
margin-left: 0.25rem;
}
}
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
:host {
.certificate-container {
padding: 0 0.5rem 0.5rem;
}
.certificate-container {
padding: 0 0.5rem 0.5rem;
}

.certificate-subtitle {
margin-top: 1.2rem;
margin-bottom: 0.7rem;
font-weight: 500;
.certificate-subtitle {
margin-top: 1.2rem;
margin-bottom: 0.7rem;
font-weight: 500;

&:first-of-type {
margin-top: 0;
}
&:first-of-type {
margin-top: 0;
}
}

.certificate-content {
display: grid;
column-gap: 1rem;
font-size: 0.6rem;
.certificate-content {
display: grid;
column-gap: 1rem;
font-size: 0.6rem;

dt {
font-weight: 500;
}
dt {
font-weight: 500;
}

dd {
margin-bottom: 0.5rem;
}
dd {
margin-bottom: 0.5rem;
}
}

@media screen and (min-width: 768px) {
.certificate-content {
grid-template-columns: 1fr 2fr;
font-size: 0.7rem;
}
@media screen and (min-width: 768px) {
.certificate-content {
grid-template-columns: 1fr 2fr;
font-size: 0.7rem;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
padding: 0;
height: auto;
max-height: unset;
}

.btn-close {
padding: 0 0.2rem;
}
.btn-close {
padding: 0 0.2rem;
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
:host {
display: contents;
}

.spinner-block {
margin-top: 1.5rem;
margin-bottom: 1.5rem;
display: block;
}
.spinner-block {
margin-top: 1.5rem;
margin-bottom: 1.5rem;
display: block;
}

.mx-auto {
margin-left: auto;
margin-right: auto;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
:host {
display: flex;
align-items: center;
}

cds-icon.theme-toggle,
button:hover cds-icon.theme-toggle {
color: hsl(198, 20%, 91%);
}
cds-icon.theme-toggle,
button:hover cds-icon.theme-toggle {
color: hsl(198, 20%, 91%);
}

0 comments on commit 88f2442

Please sign in to comment.