Basic language selector

* uses setlang attribute in URL to switch language
* introduced a language filter widget by extending
  jquery.ui.autocomplete
* UI rendering is done by using SkinAfterContent hook

Change-Id: Ifa63a04ba1d060b6db8fba14bb868045cf6b97c3
This commit is contained in:
Santhosh Thottingal
2012-06-19 15:04:24 +05:30
parent 8527e33475
commit 9087825e6d
9 changed files with 302 additions and 71 deletions

View File

@@ -5,17 +5,15 @@
}
.uls-menu {
position: absolute;
top: 100%;
left: 0;
position: fixed;
z-index: 1000;
display: none;
float: left;
min-width: 400px;
min-height: 400px;
padding: 4px 0;
margin: 1px 0 0;
list-style: none;
min-width: 600px;
min-height: 500px;
margin-top: 1px;
width: 50%;
/* Styling */
background-color: #ffffff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
@@ -30,20 +28,109 @@
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
width: 50%
}
.uls-menu h2 {
float:left;
}
a.close{
float: right;
padding: 10px;
}
div#worldmap {
.uls-menu-header {
margin: 2%;
margin-top: 20px;
}
.uls-lang-selector {
margin: 2%;
}
.uls-menu-header-left {
float: left;
}
.uls-menu-header-left h1 {
font-weight: bold;
padding-top: 12px;
border:none;
padding-bottom: 3px;
}
.uls-menu-header-right {
float: right;
}
.uls-worldmap {
/* @embed */
background: url('../images/world_map.png') no-repeat scroll left center transparent;
float: right;
width: 400px;
height: 200px;
height: 197px;
}
.uls-region {
float: left;
cursor: pointer;
text-align: center;
width: 133px;
padding: 0;
margin: 0;
height: 197px;
}
.uls-region:hover {
outline: 1px solid #0E90D2;
background: black;
opacity: 0.4;
}
.uls-region.active {
background: black;
opacity: 0.4;
}
.icon-close {
/* @embed */
background: url('../images/close.png') no-repeat scroll left center transparent;
float: right;
padding: 10px;
cursor: pointer;
}
/* Language list */
.uls-language-list {
height: 300px;
overflow: auto;
margin-top: 2%;
}
.uls-language-list ul {
list-style: none;
margin-left: 0;
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
}
.uls-language-list ul li {
font-weight: bold;
}
.uls-language-list strong {
text-decoration: underline;
}
.uls-language-list a {
color: #0645AD;
}
input#languagefilter {
height: 20px;
border: 1px solid #0E90D2;
border-right: none;
width: 95%;
}
span.search-button {
/* @embed */
background: url('../images/search.png') no-repeat scroll left center transparent;
cursor: pointer;
height: 22px;
border: 1px solid #0E90D2;
position: absolute;
width: 20px;
border-left: none;
}