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."; ?>" /> - + - +