Ver Fonte

Make the login page more mobile friendly.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4041 a333f486-631f-4898-b8df-5754b55c2be0
dflaven há 9 anos atrás
pai
commit
8397bd9da2
2 ficheiros alterados com 10 adições e 0 exclusões
  1. 1 0
      application/webpage.class.inc.php
  2. 9 0
      css/login.css

+ 1 - 0
application/webpage.class.inc.php

@@ -483,6 +483,7 @@ class WebPage implements Page
         echo "<html>\n";
         echo "<head>\n";
 		echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";
+		echo "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, shrink-to-fit=no\" />";
         echo "<title>".htmlentities($this->s_title, ENT_QUOTES, 'UTF-8')."</title>\n";
         echo $this->get_base_tag();
         foreach($this->a_linked_scripts as $s_script)

+ 9 - 0
css/login.css

@@ -21,6 +21,15 @@ body {
 	border-bottom: 0;
 	text-align: center;
 }
+@media (max-height: 700px)
+{ 
+	#login-logo {
+		margin-top: 0;
+	} 
+	h1 {
+		margin-top: 0;
+	}
+}
 #login-logo img {
 	border: 0;
 }