Skip to content

Commit 86c4dae

Browse files
committed
Add custom css img && edit table styles
1 parent 3f0b80a commit 86c4dae

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

styles/global.scss

+21-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,20 @@ table {
3131
border-collapse: collapse;
3232
border-radius: 0.75rem;
3333
border-style: hidden; /* hide standard table (collapsed) border */
34-
box-shadow: 0 0 0 1px #666; /* this draws the table border */
34+
box-shadow: 0 0 0 1px rgb(39 39 42); /* this draws the table border */
35+
}
36+
37+
th {
38+
border-color: rgb(39 39 42) !important;
3539
}
3640

3741
td {
38-
border: 1px solid #ccc;
42+
border: 1px solid rgb(39 39 42);
43+
border-color: rgb(39 39 42) !important;
44+
}
45+
46+
tr {
47+
border-color: rgb(39 39 42) !important;
3948
}
4049

4150
tr:last-child {
@@ -48,6 +57,16 @@ tr:last-child {
4857
}
4958
}
5059

60+
// Custom IMG Styles in docs
61+
62+
.nextra-content img {
63+
border-radius: 0.75rem;
64+
outline: 1px solid rgb(39 39 42);
65+
outline-offset: -1px; /* Сдвигает контур внутрь элемента */
66+
margin-left: auto;
67+
margin-right: auto;
68+
}
69+
5170
/* Custom Light Theme */
5271

5372
html:not([class~="dark"]) {

0 commit comments

Comments
 (0)