SunInfo: Cleaning up css & adding spaces
parent
13e4dd96d6
commit
ddf1784dc9
|
@ -20,7 +20,7 @@ category 'calculations';
|
|||
topics 'everyday';
|
||||
attribution github => ['https://github.com/duckduckgo', 'duckduckgo'];
|
||||
|
||||
my $time_format = '%l:%M%P';
|
||||
my $time_format = '%l:%M %P';
|
||||
my $datestring_regex = datestring_regex();
|
||||
|
||||
my $sunrise_svg = goodie_img_tag({
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
.zci--answer .zci--suninfo .suninfo--header {
|
||||
font-size:0.75em;
|
||||
font-weight:300;
|
||||
padding-bottom: 0.5em;
|
||||
text-align: bottom;
|
||||
}
|
||||
|
||||
.zci--answer .zci--suninfo .suninfo--row span {
|
||||
|
@ -32,15 +30,10 @@
|
|||
margin: 0 0.5em;
|
||||
}
|
||||
|
||||
.zci--answer .zci--suninfo .suninfo--setbox {
|
||||
.zci--answer .zci--suninfo .suninfo--setbox,
|
||||
.zci--answer .zci--suninfo .suninfo--risebox {
|
||||
display:inline-block;
|
||||
width:48px;
|
||||
height:48px;
|
||||
padding: 0 0 0 0.5em;
|
||||
}
|
||||
.zci--answer .zci--suninfo .suninfo--risebox {
|
||||
display:inline-block;
|
||||
width:48px;
|
||||
height:48px;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ zci is_cached => 0;
|
|||
my @now = (qr/^On.*Phoenixville, PA.*AM.*PM\.$/, html => qr/Phoenixville.*AM.*PM/);
|
||||
my @aug = (qr/^On 30 Aug.*AM.*PM\.$/, html => qr/Phoenixville.*AM.*PM/);
|
||||
my @exact = (
|
||||
'On 01 Jan 2015, sunrise in Phoenixville, PA is at 7:23AM; sunset at 4:46PM.',
|
||||
html => qr{^<div class='zci--suninfo'><div class='suninfo--header text--secondary'><span class='ddgsi'>.*<img.*4:46PM</span></span></div></div>$},
|
||||
'On 01 Jan 2015, sunrise in Phoenixville, PA is at 7:23 AM; sunset at 4:46 PM.',
|
||||
html => qr{^<div class='zci--suninfo'><div class='suninfo--header text--secondary'><span class='ddgsi'>.*<img.*4:46 PM</span></span></div></div>$},
|
||||
);
|
||||
|
||||
ddg_goodie_test(
|
||||
|
|
Loading…
Reference in New Issue