[simple theme] simplify and justify #answers & #corrections

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-11-03 23:59:50 +01:00
parent ca971bd5e5
commit 4887c25e7f
2 changed files with 15 additions and 23 deletions

View file

@ -22,6 +22,12 @@
border-radius: @radius; border-radius: @radius;
} }
.rounded-corners-tiny (@radius: 5px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
}
// disable user selection // disable user selection
.disable-user-select () { .disable-user-select () {
-webkit-touch-callout: none; -webkit-touch-callout: none;

View file

@ -346,7 +346,6 @@ article.result-images[data-vim-selected] {
"pagination sidebar"; "pagination sidebar";
} }
#results #answers *:first-child,
#results #sidebar *:first-child, #results #sidebar *:first-child,
#results #urls *:first-child { #results #urls *:first-child {
margin-top: 0; margin-top: 0;
@ -371,9 +370,7 @@ article.result-images[data-vim-selected] {
} }
#suggestions, #suggestions,
#answers, #infoboxes {
#infoboxes,
#corrections {
input { input {
padding: 0; padding: 0;
margin: 3px; margin: 3px;
@ -405,11 +402,13 @@ article.result-images[data-vim-selected] {
h4, h4,
input[type="submit"] { input[type="submit"] {
display: inline-block; display: inline-block;
margin: 0 0.5em 0 0; padding: 0.5rem;
margin: 0.5rem;
} }
input[type="submit"]::after { input[type="submit"] {
content: ", "; font-size: 0.8rem;
.rounded-corners-tiny;
} }
} }
@ -424,21 +423,17 @@ article.result-images[data-vim-selected] {
grid-area: answers; grid-area: answers;
border: 1px solid var(--color-answer-border); border: 1px solid var(--color-answer-border);
background: var(--color-answer-background); background: var(--color-answer-background);
padding: 0.9em; padding: @result-padding;
margin-bottom: @results-margin; margin: 1rem @results-tablet-offset;
margin-top: 0;
color: var(--color-answer-font); color: var(--color-answer-font);
.rounded-corners; .rounded-corners;
h4 { h4 {
display: none; display: none;
} }
.answer {
display: block;
}
} }
#answers,
#infoboxes { #infoboxes {
form { form {
min-width: 210px; min-width: 210px;
@ -727,11 +722,6 @@ article.result-images[data-vim-selected] {
margin: 0 5px 2px 5px; margin: 0 5px 2px 5px;
} }
#corrections,
#answers {
margin: 1rem @results-tablet-offset;
}
#results { #results {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -741,13 +731,9 @@ article.result-images[data-vim-selected] {
margin: 2rem 1rem 0 1rem !important; margin: 2rem 1rem 0 1rem !important;
} }
.result {
margin: 1rem @results-tablet-offset;
border: 1px solid var(--color-result-border);
.rounded-corners; .rounded-corners;
} }
article[data-vim-selected] {
border: 1px solid var(--color-result-border); border: 1px solid var(--color-result-border);
.rounded-corners; .rounded-corners;
} }