add css to independence day answer ouput

master
Jarmo Kivekas 2014-10-31 21:19:31 +02:00
parent 945e983855
commit 297b5acf68
2 changed files with 7 additions and 2 deletions

View File

@ -62,7 +62,7 @@ handle query_clean => sub {
# ouput string formatting
my $prolog = $country . ' assumed independence on ';
my $prolog = 'Independence Day of ' . $country;
# date and year of independence
my $date_str = $data->{$country_key}[0]{'date'} . ', ' . $data->{$country_key}[0]{'year'};
# Some coutries have two dates, add it to the answer if a second one exists.
@ -72,8 +72,10 @@ handle query_clean => sub {
# html formatted answer
my $html = '<div class="text--secondary">' . $prolog . '</div>';
my $html = '<div class="zci--independence-day">';
$html .= '<div class="text--primary">' . $date_str . '</div>';
$html .= '<div class="text--secondary">' . $prolog . '</div>';
$html .= '</div>';
# plain text answer
my $text = $prolog . $date_str;

View File

@ -0,0 +1,3 @@
.zci--independence-day .text--primary{
font-size: 1.5em;
}