improve css
This commit is contained in:
parent
46fb0d3aff
commit
e0597f3239
@ -15,9 +15,9 @@ Finally, run both the backend and frontend to use the application
|
|||||||
|
|
||||||
### Using the backend crate
|
### Using the backend crate
|
||||||
|
|
||||||
See [backend/README.me](./backend/README.md)
|
See [backend/README.md](./backend/README.md)
|
||||||
|
|
||||||
### Using the frontend crate
|
### Using the frontend crate
|
||||||
|
|
||||||
See [frontend/README.me](./frontend/README.md)
|
See [frontend/README.md](./frontend/README.md)
|
||||||
|
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
.teller {
|
.title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tellee {
|
.question{
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.answer{
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.annotation {
|
.annotation {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-size: 60%;
|
font-size: 60%;
|
||||||
@ -16,7 +20,7 @@ h1 {
|
|||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.question {
|
.questions-container {
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,10 +36,9 @@ pub struct QuestionProps {
|
|||||||
pub fn question(question: &QuestionProps) -> Html {
|
pub fn question(question: &QuestionProps) -> Html {
|
||||||
let question = &question.question;
|
let question = &question.question;
|
||||||
html! { <>
|
html! { <>
|
||||||
<div class="question">
|
<div class="questions-container">
|
||||||
<span class="teller">{"Question time!"}</span><br/>
|
<p class="title">{format!("{}:",question.title.clone())}</p>
|
||||||
<span class="teller">{question.title.clone()}</span><br/>
|
<p class="question">{question.content.clone()}</p>
|
||||||
<span class="teller">{question.content.clone()}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<span class="annotation">
|
<span class="annotation">
|
||||||
{format!("[id: {}", &question.id)}
|
{format!("[id: {}", &question.id)}
|
||||||
|
Reference in New Issue
Block a user