More design changes.

This commit is contained in:
Lars Jung 2012-02-22 23:47:05 +01:00
parent 556d206ab8
commit f1175f5149
7 changed files with 81 additions and 38 deletions

View file

@ -214,7 +214,8 @@ var H5AI_CONFIG = {
"empty": "empty", "empty": "empty",
"folders": "folders", "folders": "folders",
"files": "files", "files": "files",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"bg": { "bg": {
@ -228,7 +229,8 @@ var H5AI_CONFIG = {
"empty": "празно", "empty": "празно",
"folders": "папки", "folders": "папки",
"files": "файлове", "files": "файлове",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"cs": { "cs": {
@ -242,7 +244,8 @@ var H5AI_CONFIG = {
"empty": "prázdný", "empty": "prázdný",
"folders": "složek", "folders": "složek",
"files": "souborů", "files": "souborů",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"de": { "de": {
@ -256,7 +259,8 @@ var H5AI_CONFIG = {
"empty": "leer", "empty": "leer",
"folders": "Ordner", "folders": "Ordner",
"files": "Dateien", "files": "Dateien",
"download": "Download" "download": "Download",
"noMatch": "keine Treffer"
}, },
"es": { "es": {
@ -270,7 +274,8 @@ var H5AI_CONFIG = {
"empty": "vacío", "empty": "vacío",
"folders": "Directorios", "folders": "Directorios",
"files": "Archivos", "files": "Archivos",
"download": "Descargar" "download": "Descargar",
"noMatch": "no match"
}, },
"fr": { "fr": {
@ -284,7 +289,8 @@ var H5AI_CONFIG = {
"empty": "vide", "empty": "vide",
"folders": "Répertoires", "folders": "Répertoires",
"files": "Fichiers", "files": "Fichiers",
"download": "télécharger" "download": "télécharger",
"noMatch": "no match"
}, },
"it": { "it": {
@ -298,7 +304,8 @@ var H5AI_CONFIG = {
"empty": "vuota", "empty": "vuota",
"folders": "cartelle", "folders": "cartelle",
"files": "file", "files": "file",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"lv": { "lv": {
@ -312,7 +319,8 @@ var H5AI_CONFIG = {
"empty": "tukšs", "empty": "tukšs",
"folders": "mapes", "folders": "mapes",
"files": "faili", "files": "faili",
"download": "lejupielādēt" "download": "lejupielādēt",
"noMatch": "no match"
}, },
"nl": { "nl": {
@ -326,7 +334,8 @@ var H5AI_CONFIG = {
"empty": "lege", "empty": "lege",
"folders": "folders", "folders": "folders",
"files": "files", "files": "files",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"pl": { "pl": {
@ -340,7 +349,8 @@ var H5AI_CONFIG = {
"empty": "pusty", "empty": "pusty",
"folders": "foldery", "folders": "foldery",
"files": "pliki", "files": "pliki",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"pt": { "pt": {
@ -354,7 +364,8 @@ var H5AI_CONFIG = {
"empty": "vazio", "empty": "vazio",
"folders": "pastas", "folders": "pastas",
"files": "arquivos", "files": "arquivos",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"ru": { "ru": {
@ -368,7 +379,8 @@ var H5AI_CONFIG = {
"empty": "пусто", "empty": "пусто",
"folders": "папки", "folders": "папки",
"files": "файлы", "files": "файлы",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"sk": { "sk": {
@ -382,7 +394,8 @@ var H5AI_CONFIG = {
"empty": "prázdny", "empty": "prázdny",
"folders": "priečinkov", "folders": "priečinkov",
"files": "súborov", "files": "súborov",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"sv": { "sv": {
@ -396,7 +409,8 @@ var H5AI_CONFIG = {
"empty": "tom", "empty": "tom",
"folders": "folders", "folders": "folders",
"files": "files", "files": "files",
"download": "download" "download": "download",
"noMatch": "no match"
}, },
"tr": { "tr": {
@ -410,7 +424,8 @@ var H5AI_CONFIG = {
"empty": "boş", "empty": "boş",
"folders": "klasörler", "folders": "klasörler",
"files": "dosyalar", "files": "dosyalar",
"download": "indir" "download": "indir",
"noMatch": "no match"
}, },
"zh-cn": { "zh-cn": {
@ -424,7 +439,8 @@ var H5AI_CONFIG = {
"empty": "空文件夹", "empty": "空文件夹",
"folders": "文件夹", "folders": "文件夹",
"files": "文件", "files": "文件",
"download": "下载" "download": "下载",
"noMatch": "no match"
}, },
"zh-tw": { "zh-tw": {
@ -438,7 +454,8 @@ var H5AI_CONFIG = {
"empty": "空資料夾", "empty": "空資料夾",
"folders": "資料夾", "folders": "資料夾",
"files": "檔案", "files": "檔案",
"download": "下載" "download": "下載",
"noMatch": "no match"
} }
} }
}; };

View file

@ -146,13 +146,16 @@
} }
} }
} }
.empty { .empty, .no-match {
text-align: center; text-align: center;
margin: 50px 0; margin: 50px 0;
color: #ddd; color: #ddd;
font-size: 5em; font-size: 5em;
font-weight: bold; font-weight: bold;
} }
.no-match {
display: none;
}
} }
@ -170,8 +173,6 @@
#extended.icons-view { #extended.icons-view {
display: none; display: none;
padding: 3px; padding: 3px;
border: 1px solid #eee;
border-radius: 15px;
ul { ul {
margin: 0; margin: 0;
@ -269,7 +270,8 @@
} }
} }
} }
.empty { .empty, .no-match {
margin: 0 120px;
padding: 16px; padding: 16px;
height: 120px; height: 120px;
text-align: center; text-align: center;
@ -277,4 +279,7 @@
font-size: 5em; font-size: 5em;
font-weight: bold; font-weight: bold;
} }
.no-match {
display: none;
}
} }

View file

@ -102,9 +102,6 @@ body > footer {
background-color: rgba(255,255,255,0.8); background-color: rgba(255,255,255,0.8);
} }
} }
li:nth-child(3n+1) {
}
} }
} }
} }

View file

@ -1,4 +1,26 @@
.nav-highlight {
background-color: rgba(255,255,255,0.5);
opacity: 1.0;
}
.nav-hover {
.nav-highlight;
color: #e80;
}
@nav-sep-border: 1px solid rgba(0,0,0,0.05);
.nav-left {
float: left;
border-right: @nav-sep-border;
}
.nav-right {
float: right;
border-left: @nav-sep-border;
}
body > nav { body > nav {
position: fixed; position: fixed;
z-index: 5; z-index: 5;
@ -29,15 +51,12 @@ body > nav {
padding: 0 10px; padding: 0 10px;
&:hover, &.hover { &:hover, &.hover {
color: #e80; .nav-hover;
background-color: rgba(255,255,255,0.5);
opacity: 1.0;
} }
} }
.current { .current {
a, span.element { a, span.element {
background-color: rgba(255,255,255,0.5); .nav-highlight;
opacity: 1.0;
} }
} }
img { img {
@ -50,8 +69,7 @@ body > nav {
margin-left: 6px; margin-left: 6px;
} }
.crumb { .crumb {
float: left; .nav-left;
border-right: 1px solid rgba(0,0,0,0.05);
.hint { .hint {
margin-left: 8px; margin-left: 8px;
font-style: italic; font-style: italic;
@ -63,13 +81,11 @@ body > nav {
} }
} }
.view { .view {
float: right; .nav-right;
border-left: 1px solid rgba(0,0,0,0.05);
} }
#download { #download {
display: none; display: none;
float: right; .nav-right;
border-left: 1px solid rgba(0,0,0,0.05);
.transition(all 0.2s ease-in-out); .transition(all 0.2s ease-in-out);
&.zipping { &.zipping {
@ -80,8 +96,7 @@ body > nav {
} }
} }
#filter { #filter {
float: right; .nav-right;
border-left: 1px solid rgba(0,0,0,0.05);
input { input {
display: none; display: none;

View file

@ -49,6 +49,7 @@
if ($ul.children(".entry:not(.folder-parent)").size() === 0) { if ($ul.children(".entry:not(.folder-parent)").size() === 0) {
$("#extended").append($("<div class='empty l10n-empty'>empty</div>")); $("#extended").append($("<div class='empty l10n-empty'>empty</div>"));
} }
$("#extended").append($("<div class='no-match l10n-noMatch'>no match</div>"));
}, },
customize = function () { customize = function () {

View file

@ -23,6 +23,14 @@
match = $('#extended .entry'); match = $('#extended .entry');
} }
if ($(match).length) {
$('#extended .no-match').hide();
} else {
setTimeout(function () {
$('#extended .no-match').show();
}, 200);
}
$(match).fadeIn(200); $(match).fadeIn(200);
$(noMatch).fadeOut(200); $(noMatch).fadeOut(200);
}, },
@ -84,7 +92,6 @@
.end() .end()
.appendTo($("#navbar")); .appendTo($("#navbar"));
} }
}; };

View file

@ -131,6 +131,7 @@ class Extended {
if (count($this->content) === 0) { if (count($this->content) === 0) {
$html .= "<div class='empty l10n-empty'>empty</div>"; $html .= "<div class='empty l10n-empty'>empty</div>";
} }
$html .= "<div class='no-match l10n-noMatch'>no match</div>";
$html .="</section>"; $html .="</section>";
return $html; return $html;
} }