Some bug fixes and improvements (#1063)

* Prevent the line breaks of buttons on Safari

* Fix a math symbol

* Small improvements

* Bug fixes and improvements.
This commit is contained in:
Yudong Jin
2024-01-25 12:50:53 +08:00
committed by GitHub
parent 82da279c60
commit c69ae9534d
5 changed files with 37 additions and 32 deletions

View File

@@ -204,7 +204,7 @@ body {
background-color: var(--md-default-bg-color);
color: var(--md-default-fg-color);
font-size: 0.9rem;
padding: 2em;
padding: 3em 2em;
text-align: center;
}
@@ -221,7 +221,7 @@ body {
justify-content: center;
border-radius: 10em;
margin: 0 0.1em;
padding: 0.5em 1.3em;
padding: 0.6em 1.3em;
border: none;
background-color: var(--md-typeset-btn-color);
color: var(--md-primary-fg-color) !important;
@@ -234,9 +234,10 @@ body {
background-color: var(--md-typeset-btn-hover-color);
}
.rounded-button p {
.rounded-button span {
margin: 0;
margin-bottom: 0.1em;
margin-bottom: 0.07em;
white-space: nowrap;
}
.rounded-button svg {
@@ -257,18 +258,22 @@ body {
}
.text-button {
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
color: var(--md-typeset-btn-color);
text-decoration: none;
margin: 0 1em;
}
.text-button:hover {
text-decoration: underline;
}
.text-button span {
white-space: nowrap;
}
.text-button svg {
display: inline-block;
fill: var(--md-typeset-btn-color);
@@ -288,7 +293,7 @@ body {
padding: 0;
position: relative;
color: white;
font-size: min(2vh, 2.5vw);
font-size: min(1.8vh, 2.5vw);
font-weight: 500;
}