Skip to content

Commit

Permalink
[Improve] code style improvement (#381)
Browse files Browse the repository at this point in the history
Co-authored-by: benjobs <[email protected]>
  • Loading branch information
wolfboys and benjobs authored Jun 8, 2024
1 parent 8ce5095 commit d6af5a2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
5 changes: 2 additions & 3 deletions docs/components/TableData.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.table-data {
font-size: 14px;

th, td {
padding: 0.6rem
padding: 0.6rem;
}

.icon-check {
Expand Down Expand Up @@ -69,4 +68,4 @@
background: rgba(0, 0, 0, .5);
color: #fff;
font-size: 14px;
}
}
31 changes: 21 additions & 10 deletions src/css/custom/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,21 @@ article[itemprop="blogPost"] {
}

code {
font-weight: 600;
padding: 1px 2px;
font-size: 12px;
background-color: var(--ifm-code-background) !important;

background-color: #edf2fa;
border: none;
word-break: normal;
padding: 3px 4px;
border-radius: 4px;
span {
font-style: normal !important;
}
}

[data-theme='dark'] code {
background-color: var(--ifm-code-background) !important;
font-weight: bolder;
}

.markdown h1:first-child {
font-size: 32px !important;
}
Expand Down Expand Up @@ -201,9 +206,7 @@ code {
}

.table-of-contents__link:hover,
.table-of-contents__link:hover code,
.table-of-contents__link--active,
.table-of-contents__link--active code {
.table-of-contents__link--active {
font-weight: 600;
color: var(--click-color-text);
}
Expand Down Expand Up @@ -930,7 +933,7 @@ button.DocSearch {
fill: white;
}

// -- custom --
// -- custom --

/** global */

Expand Down Expand Up @@ -1155,4 +1158,12 @@ img {
max-width: 1920px !important;
min-width: 1200px !important;
}
}
}

.table-data {
thead tr td {
background-color: var(--ifm-table-head-background);
}
border: 1px solid var(--ifm-table-head-background);
}

0 comments on commit d6af5a2

Please sign in to comment.