diff --git a/resources/css/ext.uls.css b/resources/css/ext.uls.css index d678770e..8655124c 100644 --- a/resources/css/ext.uls.css +++ b/resources/css/ext.uls.css @@ -30,6 +30,11 @@ background-clip: padding-box; } +.uls-menu a { + font-weight: normal; + color: #0088CC; +} + .uls-menu-header { margin: 2%; margin-top: 20px; @@ -44,7 +49,7 @@ } .uls-menu-header-left h1 { - font-weight: bold; + font-weight: normal; padding-top: 12px; border:none; padding-bottom: 3px; @@ -93,25 +98,6 @@ cursor: pointer; } -/* Language list */ -.uls-language-list { - height: 300px; - overflow: auto; - margin-top: 2%; -} - -.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; diff --git a/resources/css/ext.uls.lcd.css b/resources/css/ext.uls.lcd.css index 91bd1d0d..7de7edb8 100644 --- a/resources/css/ext.uls.lcd.css +++ b/resources/css/ext.uls.lcd.css @@ -1,16 +1,47 @@ .uls-lcd-region-section h3 { color: #999999; } - .uls-lcd-region-section ul { list-style: none; - margin-left: 0; float: left; - width: 150px; - padding: 10px; - clear: right; + width: 140px; + margin-left: 5px; + padding: 0; + display: block; +} +.uls-lcd-region-section ul li:hover { + background-color: #BFBFBF; } - .uls-lcd-region-section { clear: both; +} +/* Language list */ +.uls-language-list { + height: 300px; + overflow: auto; + margin-top: 2%; +} +.uls-language-list ul li { + font-weight: normal; + /* TODO: maybe not the best way */ + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.uls-language-list strong { + text-decoration: underline; +} +.uls-language-list a { + font-weight: normal; + color: #0088CC; +} +div.uls-lcd-row:after { + clear: both; +} +div.uls-lcd-row:before, div.uls-lcd-row:after { + content: ""; + display: table; +} +div.uls-lcd-row { + padding-bottom: 10px; } \ No newline at end of file diff --git a/resources/ext.uls.lcd.js b/resources/ext.uls.lcd.js index ba7596b2..be821cfd 100644 --- a/resources/ext.uls.lcd.js +++ b/resources/ext.uls.lcd.js @@ -69,11 +69,18 @@ getColumn: function( regionCode ) { var $divRegionCode = $( 'div#' + regionCode ); + var $rowDiv = $divRegionCode.find( 'div.uls-lcd-row:last' ); var $ul = $divRegionCode.find( 'ul:last' ); + // Each column can have maximum 10 languages. if ( $ul.length === 0 || $ul.find( 'li' ).length >= 10 ) { + // Each row can have 4 columns with 10 languages. + if ( $rowDiv.length === 0 || $rowDiv.find( 'ul' ).length >= 4 ) { + $rowDiv = $( '
' ).addClass( 'uls-lcd-row' ); + $divRegionCode.append( $rowDiv ); + } $ul = $( '