From 5286ab76a8df04cc41594a93a0fdc3cbbe57b6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphae=CC=88l=20Renaudon?= Date: Sun, 2 Jun 2013 14:41:35 +0200 Subject: [PATCH] Add : separated CSS file Dev : better responsive design --- htdocs/css/style.css | 118 +++++++++++++++++++++++++++++++++++++++++++ htdocs/index.php | 84 ++++++++++++------------------ 2 files changed, 149 insertions(+), 53 deletions(-) create mode 100644 htdocs/css/style.css diff --git a/htdocs/css/style.css b/htdocs/css/style.css new file mode 100644 index 0000000..c40a998 --- /dev/null +++ b/htdocs/css/style.css @@ -0,0 +1,118 @@ +body{ + background: #eee; + font-family: 'Source Sans Pro', Arial, Trebuchet MS, sans-serif; +} + +.char{ + display: inline-block; + width: 100px; + height: 85px; + float: left; + text-align: center; + border: #ccc 1px solid; + background: #fff; + margin: 5px; + font-size: 12px; + color: #666; + text-decoration: none; + overflow: hidden; +} + +.char strong{ + font-size: 40px; + display: block; + color: #000; + font-family: Arial, sans-serif; + padding: 5px; +} + +.clear{ + clear: both; +} + +a, a.char strong{ + color: #006699; +} + +.welcome{ + width: 548px; +} + +.welcome a{ + color: #006699; + text-decoration: none; +} + +.socials{ + width: 314px; + padding-top: 26px; + height: 59px; + text-align: center; + padding-left: 10px; +} + +.socials>div{ + display: inline-block; + max-height: 38px; + min-width: 250px; +} + +.footer{ + width: 864px; + padding: 10px; + height: auto; + text-align: center; + padding-left: 10px; +} + +/** + * RESPONSIVE + */ +@media (max-width: 912px){ + .welcome{ + width: 548px; + } + .socials{ + width: 538px; + padding-top: 10px; + padding-bottom: 10px; + height: 36px; + text-align: center; + padding-left: 10px; + } + .footer{ + width: 528px; + } +} + +@media (max-width: 563px){ + .welcome{ + width: 324px; + } + .socials{ + width: 314px; + padding-top: 10px; + padding-bottom: 10px; + height: 36px; + text-align: center; + padding-left: 10px; + } + + .footer{ + width: 314px; + } +} + +@media (max-width: 370px){ + .socials{ + display: none; + } + .footer{ + display: none; + } + .welcome{ + width: 100%; + border: none; + background: none; + } +} \ No newline at end of file diff --git a/htdocs/index.php b/htdocs/index.php index b39b9cb..85625cf 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -5,60 +5,34 @@ - 0 ? "UTF-8 and HTML charmap, Page " . $_GET["page"] . ", from char nr.".(($_GET["page"]-1)*1000)." to char nr.".($_GET["page"]*1000-1)."." : "Certainly the biggest unicode character map in the world. Each char is associated with its HTML code."; ?>" /> + 0 ? "UTF-8 and HTML charmap, Page " . $_GET["page"] . ", from char nr." . (($_GET["page"] - 1) * 1000) . " to char nr." . ($_GET["page"] * 1000 - 1) . "." : "Certainly the biggest unicode character map in the world. Each char is associated with its HTML code."; ?>" /> - + - +
uuu.tf The biggest HTML UTF-8 charmap you can imagine !
+
+
+ + + + + + +
+
0) { - echo '«Previous'; + if ($_GET['page'] > 1) { + echo '«Previous'; + } elseif ($_GET['page'] == 1) { + echo '«Previous'; + }else{ + echo '
'; } if (!is_numeric($_GET['page']) || $_GET["page"] < 1) { $charmap = array("←", "↑", "→", "↓", "↔", "↕", "↖", "↗", "↘", "↙", "↚", "↛", "↜", "↝", "↞", @@ -72,14 +46,14 @@ "➸", "➹", "➺", "➻", "➼", "➽", "➾", "⬅", "⬆", "⬇", "☚", "☛", "☜", "☝", "☞", "☟", "⏎", "★", "☆", "⭐", "⍟", "☑", "☒", "☓", "❏", "❐", "❑", "❒", "✁", "✂", "✃", "⚐", "⚑", "⚒", "⚔", "⚖", "⚛", "✌", "✿", "❀", - "♂", "⚢", "⚣", "⚤", "⚥", "⚦", "♲", "♺", "♻", "☸", "⚓", "✚", "☤", "⌽", "⌨", "⌘", - "⌦", "☕", "♨", + "♂", "⚢", "⚣", "⚤", "⚥", "⚦", "♲", "♺", "♻", "☸", "⚓", "✚", "☤", "⌽", "⌨", "⌘", + "⌦", "☕", "♨", "⛲", "⛳", "⛵", "⛺", "⛽", "✈", "⚽", "⚾", "⚰", "⚱", "☠", "⛔", "♿", "⊘", "⊗", "☨", "☩", "☭", "☮", "☯", "∝", "☢", "☣", "⚠", "⚡", "♔", "♕", "♖", "♗", "♘", "♙", "♚", "♛", "♜", "♝", "♞", "♟", "♠", "♡", "♢", "♣", "♤", "♥", "❤", "♦", "♧", "⚀", "⚁", "⚂", "⚃", "⚄", "⚅", "☎", "☏", "✆", "•", "‣", "⏩", "⏪", "⏫", "⏬", "✉", - "✏", "✒", "✍", "✎", "✏", "✐", "⏰", "⌚", "⏳", "⌛", "✝", "✡", "☪", + "✏", "✒", "✍", "✎", "✏", "✐", "⏰", "⌚", "⏳", "⌛", "✝", "✡", "☪", "⛪", "☥", "♰", "♱", "☀", "☁", "☂", "☃", "❄", "☼", "☽", "☾", "☔", "⛄", "⛅", "℃", "℉", "℡", "™", "₩", "€", "₧", "⁇", "⁈", "⁉", "⁋", "‽", "®", "©", "œ", "É", "ᴙ", "«", "»", "¿", "∅", "∘", "∞", "≃", "≄", "≈", "≉", @@ -87,7 +61,7 @@ "┗", "┛", "━", "┃", "├", "┤", "┴", "┬", "═", "║", "╔", "╗", "╚", "╝", "╣", "╠", "╦", "╩", "╭", "╮", "╰", "╯", "♩", "♪", "♫", "♬", "♭", "♮", "♯", "『", "』", "【", "】", "〒", "〖", "〗", "'ᴥ'", "〠", "☺", "☹", "☻", "シ", "ῳ", "㎅", - "㎆", "㎇", "㎈", "㎉", "㎍", "㎎", "㎏", "㎐", "㎛", "㎜", "㎝", "㎞", "㎟", "㎠", "㎡", + "㎆", "㎇", "㎈", "㎉", "㎍", "㎎", "㎏", "㎐", "㎛", "㎜", "㎝", "㎞", "㎟", "㎠", "㎡", "㎢", "㎣", "㎤", "㎥", "㎦", "Ⓐ", "Ⓑ", "Ⓒ", "Ⓓ", "Ⓔ", "Ⓕ", "Ⓖ", "Ⓗ", "Ⓘ", "Ⓙ", "Ⓚ", "Ⓛ", "Ⓜ", "Ⓝ", "Ⓞ", "Ⓟ", "Ⓠ", "Ⓡ", "Ⓢ", "Ⓣ", "Ⓤ", "Ⓥ", "Ⓦ", "Ⓧ", "Ⓨ", "Ⓩ", "ⓐ", "ⓑ", "ⓒ", "ⓓ", "ⓔ", "ⓕ", @@ -105,10 +79,14 @@ } echo '»Next'; ?> - -
- Fork this charmap - Made and hosted by OnLineCreation.pro + + \ No newline at end of file