Robert Marshall před 10 roky
rodič
revize
4da8a06297
5 změnil soubory, kde provedl 55 přidání a 42 odebrání
  1. 7 2
      View/Blog/manage.view
  2. 5 0
      style-med.css
  3. 1 5
      style-small.css
  4. 18 9
      style.css
  5. 24 26
      template.php

+ 7 - 2
View/Blog/manage.view

@@ -5,7 +5,12 @@
 	}
 }@
 @CSSSMall{
-	td:first-child, td:nth-child(3),th:first-child, th:nth-child(3){
+	@media(orientation:portrait){
+		td:nth-child(3), th:nth-child(3){
+			display:none;
+		}
+	}
+	td:first-child, th:first-child{
 		display:none;
 	}
 	
@@ -13,7 +18,7 @@
 		width:100%;
 	}
 	
-	td:last-child,th:last-child{
+	td:last-child,th:last-child,td:nth-child(3), th:nth-child(3){
 		width:1px;
 	}
 }@

+ 5 - 0
style-med.css

@@ -14,4 +14,9 @@
 
 #buttons{
 	left:0;
+}
+
+#buttons button{
+	width:60px;
+	height:60px;
 }

+ 1 - 5
style-small.css

@@ -12,7 +12,7 @@ dl{
 }
 
 #main-header .header>*{
-	padding-left: 10px !important;
+	padding-left: 15px !important;
 }
 
 #nav-container{
@@ -28,10 +28,6 @@ dl{
 	font-size:18px;
 }
 
-.header img{
-	height: 30px;
-}
-
 .header span:not(:first-child):before{
 	content:none;
 }

+ 18 - 9
style.css

@@ -34,6 +34,15 @@ nav dt:not(:first-child){
 	margin-top:3px;
 }
 
+nav dt {
+    padding: 0 10px;
+}
+
+nav dd {
+    margin: 0;
+    padding-left: 40px;
+}
+
 nav a{
 	color: black;
 	text-decoration: none;
@@ -97,25 +106,26 @@ td, th{
 	overflow-x: hidden;
 }
 
-#menu>div{
+/*#menu>div{
 	position: relative;
 	height:100%
-}
+}*/
 
-#menu>div>*{
+/*#menu>div>*{
 	padding-left:10px;
-}
+}*/
 
 #menu-button{
 	display:none;
 }
 
 #nav-container{
-	position:fixed;
+	/*position:fixed;
 	top:64px;
 	bottom:0;
-	width:270px;
+	width:270px;*/
 	overflow: auto;
+	width:100%;
 }
 
 #main{
@@ -150,7 +160,6 @@ td, th{
 	right: 20px;
 	left:280px;
 	vertical-align: bottom;
-	display: table-cell;
 }
 
 #buttons>table{
@@ -159,6 +168,7 @@ td, th{
 
 #buttons>table tr>td{
 	vertical-align: bottom;
+	padding:0;
 }
 
 #buttons>table tr>td:last-child{
@@ -227,7 +237,7 @@ td, th{
 }
 
 .header>img{
-	height:40px;
+	height:50%;
 }
 
 .header span{
@@ -252,7 +262,6 @@ td, th{
 
 .go, .expand{
 	display:none;
-	padding-right:10px;
 	float:right;
 }
 

+ 24 - 26
template.php

@@ -52,33 +52,31 @@ function FormatURI(URI $uri, $base=""){
 			</div>
 		</div>
 		<div id="menu">
-			<div>
-				<div class="header">
-					<img src="/images/logo.png" /><h1>Robware</h1>
-				</div>
-				<div id="nav-container">
-					<nav>
-						<dl>
-							<?php
-							$__controllers=Navigation::Get();
-							foreach ($__controllers as $controller){
-								$cURI=$controller->GetURI();
-								echo '<dt>',FormatURI($cURI);
-								$items=$controller->GetItems();
-								if (count($items)>0)
-									echo '<span class="go">&raquo;</span><span class="expand">+</span>';
-								echo '</dt>';
-								if (count($items)>0){
-									echo '<div class="sub-pages">';
-									foreach ($items as $uri)
-										echo '<dd>',FormatURI($uri,$cURI->GetLinkLocation().'/'),'</dd>';
-									echo '</div>';
-								}
+			<div class="header">
+				<img src="/images/logo.png" /><h1>Robware</h1>
+			</div>
+			<div id="nav-container">
+				<nav>
+					<dl>
+						<?php
+						$__controllers=Navigation::Get();
+						foreach ($__controllers as $controller){
+							$cURI=$controller->GetURI();
+							echo '<dt>',FormatURI($cURI);
+							$items=$controller->GetItems();
+							if (count($items)>0)
+								echo '<span class="go">&raquo;</span><span class="expand">+</span>';
+							echo '</dt>';
+							if (count($items)>0){
+								echo '<div class="sub-pages">';
+								foreach ($items as $uri)
+									echo '<dd>',FormatURI($uri,$cURI->GetLinkLocation().'/'),'</dd>';
+								echo '</div>';
 							}
-							?>
-						</dl>
-					</nav>
-				</div>
+						}
+						?>
+					</dl>
+				</nav>
 			</div>
 		</div>
 		<div id="main">