Skip to content

Commit

Permalink
[UXE-3417] Custom Prose Table + HR (#10)
Browse files Browse the repository at this point in the history
* chore: hr color prose

* chore: update datatable style

* chore: update in light
  • Loading branch information
cesaroeduardo authored Jun 3, 2024
1 parent 35ee798 commit 4695762
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 5 deletions.
44 changes: 42 additions & 2 deletions src/azion-dark/extended-components/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,51 @@
color: var(--text-color) !important;
}

*:is(a), *:is(a > u) {
color: var(--text-color-link) !important;
}

*:is(table) {
border-collapse: separate !important;
border-spacing: .5px !important;
box-sizing: content-box !important;
border: 1px solid var(--surface-border) !important;
border-radius: 6px !important;
overflow: hidden !important;
}

*:is(table > thead) {
border-collapse: separate !important;
background: #1c1c1c !important;
}

*:is(tr > th) {
background: #1c1c1c !important;
}

*:is(tr > th) {
font-size: .875rem !important;
text-wrap: nowrap !important;
color: var(--text-color) !important;
font-weight: 600 !important;
text-align: left !important;
padding: 1rem !important;
background: #1c1c1c !important;
}

*:is(tr > td) {
font-size: .875rem;
color: var(--text-color) !important;
padding: 1rem !important;
border-top: 1px solid var(--surface-border) !important;
background: var(--surface-section) !important;
}

*:is(p), *:is(li) {
color: var(--text-color-secondary) !important;
}

*:is(a), *:is(a > u) {
color: var(--text-color-link) !important;
*:is(hr) {
border-color: var(--surface-border) !important;
}
}
47 changes: 44 additions & 3 deletions src/azion-light/extended-components/_markdown.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,53 @@
.prose {
*:not(p, a, li) {
color: var(--text-color) !important;
}

*:is(a), *:is(a > u) {
color: var(--text-color-link) !important;
}

*:is(table) {
border-collapse: separate !important;
border-spacing: .5px !important;
box-sizing: content-box !important;
border: 1px solid var(--surface-border) !important;
border-radius: 6px !important;
overflow: hidden !important;
}

*:is(table > thead) {
border-collapse: separate !important;
background: #e7e7e7 !important;
}

*:is(tr > th) {
background: #e7e7e7 !important;
}

*:is(tr > th) {
font-size: .875rem !important;
text-wrap: nowrap !important;
color: var(--text-color) !important;
font-weight: 600 !important;
text-align: left !important;
padding: 1rem !important;
background: #e7e7e7 !important;
}

color: var(--text-color) !important;
*:is(tr > td) {
font-size: .875rem;
color: var(--text-color) !important;
padding: 1rem !important;
border-top: 1px solid var(--surface-border) !important;
background: var(--surface-section) !important;
}

*:is(p), *:is(li) {
color: var(--text-color-secondary) !important;
}

*:is(a), *:is(a > u) {
color: var(--text-color-link) !important;
*:is(hr) {
border-color: var(--surface-border) !important;
}
}

0 comments on commit 4695762

Please sign in to comment.