RegexCheatSheet: Added a heading and a media query.

Should change the layout at around 380px.
master
Jag Talon 2013-12-05 17:19:01 -05:00
parent 59e371931d
commit cca3ba60e8
2 changed files with 7 additions and 1 deletions

View File

@ -267,7 +267,7 @@ handle remainder => sub {
my $html_output = "<div id='regex-container'><div class='regex-column'>"; my $html_output = "<div id='regex-container'><div class='regex-column'>";
$html_output .= join ("</div><div class='regex-column'>", @html_columns); $html_output .= join ("</div><div class='regex-column'>", @html_columns);
$html_output .= "</div></div>"; $html_output .= "</div></div>";
return answer => $text_output, html => append_css($html_output); return answer => $text_output, html => append_css($html_output), heading => 'Regex Cheat Sheet';
}; };
1; 1;

View File

@ -24,3 +24,9 @@
width: 100%; width: 100%;
margin-bottom: 1ex; margin-bottom: 1ex;
} }
@media (max-width: 380px) {
#zero_click_abstract .regex-column {
width: 100%;
}
}