Cosmetics on demos

pull/4591/head
Cagatay Civici 2023-10-07 17:59:09 +03:00
parent a744a759fe
commit fb5b36d3da
3 changed files with 33 additions and 5 deletions

View File

@ -286,8 +286,6 @@ pre[class*="language-"] {
code { code {
border-left: 1rem solid transparent !important; border-left: 1rem solid transparent !important;
box-shadow: none !important; box-shadow: none !important;
background: #505b67
!important;
margin: 0; margin: 0;
color: var(--gray-0); color: var(--gray-0);
font-size: 14px; font-size: 14px;
@ -346,3 +344,19 @@ pre[class*="language-"] {
.copy-to-clipboard-button { .copy-to-clipboard-button {
display: none; display: none;
} }
.layout-wrapper-dark {
pre[class*="language-"] {
code {
background: var(--surface-card) !important;
}
}
}
.layout-wrapper-light {
pre[class*="language-"] {
code {
background: #505b67 !important;
}
}
}

View File

@ -6,8 +6,24 @@
display: flex; display: flex;
gap: 4rem; gap: 4rem;
} }
}
.layout-wrapper-light {
.card { .card {
@include card; background: var(--surface-ground);
border: 1px solid var(--surface-border);
padding: 2rem;
border-radius: 10px;
margin-bottom: 1rem;
}
}
.layout-wrapper-dark {
.card {
background: var(--surface-card);
border: 0 none;
padding: 2rem;
border-radius: 10px;
margin-bottom: 1rem;
} }
} }

View File

@ -247,14 +247,12 @@
.doc-tablewrapper { .doc-tablewrapper {
overflow: auto; overflow: auto;
@include card;
} }
.doc-table { .doc-table {
border-collapse: collapse; border-collapse: collapse;
width: 100%; width: 100%;
min-width: 960px; min-width: 960px;
background-color: var(--surface-card);
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
th { th {