improve styling

This commit is contained in:
Philipp Kühn
2020-10-12 13:21:16 +02:00
parent b8483f4c08
commit fb101c05f3
3 changed files with 17 additions and 13 deletions

View File

@@ -64,10 +64,6 @@ export default {
overflow: auto; overflow: auto;
max-height: unquote("max(300px, 60vh)"); max-height: unquote("max(300px, 60vh)");
padding: 1.5rem; padding: 1.5rem;
&::-webkit-scrollbar-thumb {
background-color: rgba($colorWhite, 0.25);
}
} }
.prism-editor__container { .prism-editor__container {

View File

@@ -47,10 +47,6 @@ pre[class*="language-"] {
padding: 1.2rem 1.5rem !important; padding: 1.2rem 1.5rem !important;
border-radius: 0.5rem; border-radius: 0.5rem;
max-height: unquote("max(300px, 60vh)"); max-height: unquote("max(300px, 60vh)");
&::-webkit-scrollbar-thumb {
background-color: rgba($colorWhite, 0.25);
}
} }
pre[class*="language-"].language-css > code, pre[class*="language-"].language-css > code,

View File

@@ -79,6 +79,7 @@
> p code, > p code,
> li code, > li code,
> table code,
> .remark-container code { > .remark-container code {
color: $colorPurple; color: $colorPurple;
background-color: rgba($colorPurple, 0.1); background-color: rgba($colorPurple, 0.1);
@@ -86,6 +87,7 @@
> p a, > p a,
> li a, > li a,
> table a,
> .remark-container a { > .remark-container a {
text-decoration: underline; text-decoration: underline;
} }
@@ -147,17 +149,27 @@
> table { > table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
font-size: 0.85rem;
text-align: left;
color: rgba($colorWhite, 0.8);
th, th,
td { td {
text-align: left;
font-size: 0.75rem;
padding: 0.5rem; padding: 0.5rem;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
} }
th { th {
font-weight: 600; color: $colorWhite;
background-color: rgba($colorWhite, 0.05); font-weight: 500;
border-bottom: 1px solid rgba($colorWhite, 0.2);
&:first-child { &:first-child {
border-top-left-radius: 5px; border-top-left-radius: 5px;
@@ -171,7 +183,7 @@
} }
td { td {
border-bottom: 1px solid rgba($colorWhite, 0.05); border-bottom: 1px solid rgba($colorWhite, 0.1);
} }
tr:last-child td { tr:last-child td {