From 75825230abcc5f303a29f1f74b29c36e6140a064 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 13 Sep 2015 22:46:48 +0200 Subject: Implement package details page --- web/xhtml | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) (limited to 'web/xhtml') diff --git a/web/xhtml b/web/xhtml index 708655c..d683469 100644 --- a/web/xhtml +++ b/web/xhtml @@ -278,6 +278,10 @@ namespace web s.start_element (xmlns, "meta"); s.attribute ("charset", "UTF-8"); s.end_element (); + s.start_element (xmlns, "meta"); + s.attribute ("name", "viewport"); + s.attribute ("content", "device-width, initial-scale=1"); + s.end_element (); } }; static const head_element HEAD; @@ -297,24 +301,33 @@ namespace web static const element BODY ("body"); static const element DIV ("div"); + static const element H1 ("h1"); + static const element H2 ("h2"); + static const element H3 ("h3"); + static const element H4 ("h4"); + static const element H5 ("h5"); + static const element H6 ("h6"); + static const element META ("meta"); static const element P ("p"); static const element TITLE ("title"); - static const inline_element A ("a"); - static const inline_element B ("b"); - static const inline_element I ("i"); - static const inline_element U ("u"); - - static const inline_element EM ("em"); - static const inline_element BR ("br"); + static const inline_element A ("a"); + static const inline_element B ("b"); + static const inline_element BR ("br"); + static const inline_element EM ("em"); + static const inline_element I ("i"); + static const inline_element SPAN ("span"); + static const inline_element U ("u"); // Attributes. // - static const attribute CLASS ("class"); - static const attribute HREF ("href"); - static const attribute ID ("id"); - static const attribute STYLE ("style"); - static const attribute TYPE ("type"); + static const attribute CLASS ("class"); + static const attribute CONTENT ("content"); + static const attribute HREF ("href"); + static const attribute ID ("id"); + static const attribute NAME ("name"); + static const attribute STYLE ("style"); + static const attribute TYPE ("type"); } } -- cgit v1.1