Skip to content

Commit

Permalink
fix: alert line size
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Jul 13, 2023
1 parent a85e2d5 commit 60123b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/theme/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
}
th, td {
border: revert;
font-size: inherit;
}
th {
color: revert;
Expand Down
3 changes: 3 additions & 0 deletions src/alert/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ function draw(rc: RoughSVG, svg: SVGSVGElement) {
padding-inline: calc(var(--r-common-box-padding-inline) + var(--r-alert-line-length) / 2);
color: var(--r-alert-color);
text-align: center;
:deep(.r-graphics) {
font-size: inherit;
}
&.is-inline {
display: inline-block;
}
Expand Down
3 changes: 3 additions & 0 deletions src/button/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ function draw(rc: RoughSVG, svg: SVGSVGElement) {
text-align: center;
cursor: pointer;
text-decoration-thickness: calc(var(--r-button-border-width) + 1px);
:deep(.r-graphics) {
font-size: inherit;
}
&:hover {
--r-button-border-dash: 8px;
}
Expand Down
2 changes: 0 additions & 2 deletions src/table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ function draw(rc: RoughSVG, svg: SVGSVGElement) {
td, th {
padding-block: var(--r-common-box-padding-block);
padding-inline: var(--r-common-box-padding-inline);
color: var(--r-button-color);
font-size: var(--r-common-font-size);
}
}
</style>

0 comments on commit 60123b9

Please sign in to comment.