Просмотр исходного кода

Small color and style changes for header and sections

seavenois 10 лет назад
Родитель
Сommit
403f2bb79e
3 измененных файлов с 23 добавлено и 11 удалено
  1. 17 9
      www/css/ui.css
  2. 1 1
      www/index.php
  3. 5 1
      www/lablanca/index.php

+ 17 - 9
www/css/ui.css

@@ -135,7 +135,8 @@ div#header{
 	margin:				-0.5em auto 2.5em auto;
 	padding:			0.5em	0 0 0;
 	width:				100%;
-	background-color:	#9bc1da;
+/* 	background-color:	#9bc1da; */
+	background-color:	#0078ff;
 /* 	border-radius:		0 0 0.3em 0.3em; */
 	border-bottom:		0.2em solid #9cd3d9;
 	box-shadow:			0 0 2em #dde;
@@ -341,7 +342,7 @@ div#cookie_popup{
 	text-align:					center;
 	position:					fixed;
 	background-color:			#4c9ed8;
-	border:						0.5em solid #265774;
+	border:					0078ff	0.5em solid #265774;
 	padding:					1em 10em 1em 10em;
 	left:						-9em;
 	bottom:						9em;
@@ -391,17 +392,24 @@ div#content{
 
 /* Sections */
 div.section{
-	background-color:	#9bc1da;
-	padding:			0.1em 0.3em 0.1em 0.1em;
-	border:				0.2em solid #9cd3d9;
+/* 	background-color:	#9bc1da; */
+/* 	padding:			0.1em 0.3em 0.1em 0.1em; */
+	border:				-0.1em solid #9cd3d9;
+	padding:			0;
+	background: linear-gradient(135deg, transparent 1.2em, #98c8ff 0) top left;
 }
 
 /* Title for each section */
-div.section .section_title{
-	font-size:	130%;
+.section_title{
+	font-size:	120%;
 	font-style:	bold;
-	margin-top:	0.5em;
-	
+/* 	margin-top:	0.5em; */
+	color:		#ffffff;
+/* 	background-color:	#0000ff; */
+	background: linear-gradient(135deg, transparent 0.8em, #0078ff 0) top left;
+	padding:			0.5em 2em 0.1em 1.5em;
+	border-bottom:		0.1em solid #003488;
+	margin:				0;
 }
 
 div.section a.go_to_section{

+ 1 - 1
www/index.php

@@ -72,7 +72,7 @@
 					echo "<meta itemprop='endDate' content='$year-08-09'/>\n";
 					echo "<meta itemprop='url' content='http://$http_host/lablanca/'/>\n";
 					echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address name' content='Vitoria-Gasteiz'/></span>\n");
-					echo "<h3>$lng[index_festivals_header] $year</h3>\n";
+					echo "<h3 class='section_title'>$lng[index_festivals_header] $year</h3>\n";
 					echo "<table class='festival_section_table'><tr>\n";
 					
 					//Summary

+ 5 - 1
www/lablanca/index.php

@@ -130,7 +130,11 @@
 				if (date("M") <= 8 || (date("M") == 8 && date("D") < 25)){
 					$year --;
 				}
-				$q_years = mysqli_query($con, "SELECT year FROM festival WHERE year != " . date("Y") . " ORDER BY year DESC;");
+				if (date("M") <= 8){
+					$q_years = mysqli_query($con, "SELECT year FROM festival WHERE year != " . date("Y") . " ORDER BY year DESC;");
+				else{
+					$q_years = mysqli_query($con, "SELECT year FROM festival WHERE year <= " . date("Y") . " ORDER BY year DESC;");
+				}
 				if (mysqli_num_rows($q_years) >= 0){
 					echo("<br/><br/><div class='section' id='past_festivals'>\n");
 					echo("<h3>$lng[lablanca_past_title]</h3>\n");