From 7fef6c4fbdf928e31f627ae13058b676c65b5598 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Tue, 1 Nov 2022 20:55:38 +0100 Subject: Frontend: Result component: Add more font related css --- frontend/src/app.rs | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/frontend/src/app.rs b/frontend/src/app.rs index b2637ac..064d49a 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -20,20 +20,32 @@ fn result_component(props: &ResultComponentProps) -> Html { a { text-decoration: none; } - .underline-hover:hover { + + .url { + font-size: 0.75em; + } + + .title { + font-size: 1.25em; + } + .title:hover { text-decoration: underline; } + + .description { + font-size: 1em; + } "# ) .unwrap(); let style = style.get_class_name().to_owned(); html! { -
+
-

{props.result.url.clone()}

-

{props.result.title.clone()}

+

{props.result.url.clone()}

+

{props.result.title.clone()}

-

+

{match props.result.description.clone().as_str() { "" => "No Description.", otherwise => otherwise, -- cgit 1.4.1