* @param string $link
* @param integer $pageNo
* @param integer $activePage
+ * @param integer $pages
* @return string
*/
- protected function makeLink($link, $pageNo, $activePage, $break = false) {
+ protected function makeLink($link, $pageNo, $activePage, $pages) {
// first page
if ($activePage != $pageNo) {
return '<li class="button"><a href="'.$this->insertPageNumber($link, $pageNo).'" title="'.WCF::getLanguage()->getDynamicVariable('wcf.page.pageNo', array('pageNo' => $pageNo)).'">'.StringUtil::formatInteger($pageNo).'</a></li>'."\n";
}
else {
- return '<li class="button active"><span>'.StringUtil::formatInteger($pageNo).'</span></li>'."\n";
+ return '<li class="button active"><span>'.StringUtil::formatInteger($pageNo).'</span><span class="invisible">'.WCF::getLanguage()->getDynamicVariable('wcf.page.pagePosition', array('pageNo' => $pageNo, 'pages' => $pages)).'</span></li>'."\n";
}
}
$html .= $this->makePreviousLink($link, $tagArgs['page']);
// first page
- $html .= $this->makeLink($link, 1, $tagArgs['page']);
+ $html .= $this->makeLink($link, 1, $tagArgs['page'], $tagArgs['pages']);
// calculate page links
$maxLinks = static::SHOW_LINKS - 4;
// left ... links
if ($left > 1) {
if ($left - 1 < 2) {
- $html .= $this->makeLink($link, 2, $tagArgs['page']);
+ $html .= $this->makeLink($link, 2, $tagArgs['page'], $tagArgs['pages']);
}
else {
$html .= '<li class="button jumpTo"><a title="'.WCF::getLanguage()->getDynamicVariable('wcf.global.page.jumpTo').'" class="jsTooltip">'.StringUtil::HELLIP.'</a></li>'."\n";
// visible links
for ($i = $left + 1; $i < $right; $i++) {
- $html .= $this->makeLink($link, $i, $tagArgs['page']);
+ $html .= $this->makeLink($link, $i, $tagArgs['page'], $tagArgs['pages']);
}
// right ... links
if ($right < $tagArgs['pages']) {
if ($tagArgs['pages'] - $right < 2) {
- $html .= $this->makeLink($link, $tagArgs['pages'] - 1, $tagArgs['page']);
+ $html .= $this->makeLink($link, $tagArgs['pages'] - 1, $tagArgs['page'], $tagArgs['pages']);
}
else {
$html .= '<li class="button jumpTo"><a title="'.WCF::getLanguage()->getDynamicVariable('wcf.global.page.jumpTo').'" class="jsTooltip">'.StringUtil::HELLIP.'</a></li>'."\n";
}
// last page
- $html .= $this->makeLink($link, $tagArgs['pages'], $tagArgs['page']);
+ $html .= $this->makeLink($link, $tagArgs['pages'], $tagArgs['page'], $tagArgs['pages']);
// next page
$html .= $this->makeNextLink($link, $tagArgs['page'], $tagArgs['pages']);
}
/* hide user panel labels */
- > a > span:not(.icon),
+ > a > span:not(.icon):not(.badge),
&#pageLanguageContainer > div > div > hgroup {
display: none;
}
+
+ > a > .badge {
+ top: -4px;
+ }
}
}
@media only screen and (max-width: 640px) {
/* hide sidebar */
#main {
+ position: relative;
margin-top: 7px;
- .sidebar {
- display: none;
+ &.sidebarOrientationRight {
+ .sidebar {
+ display: none;
+ }
+ }
+
+ &.sidebarOrientationLeft {
+ .sidebar {
+ float: none;
+ padding-top: 0;
+ position: absolute;
+ right: 0px;
+ top: 14px;
+ width: 100%;
+
+ &.mobileSidebar {
+ &:before {
+ content: "\f03a";
+ font-family: FontAwesome;
+ font-size: 21px;
+ right: 7px;
+ position: absolute;
+ top: 0;
+ }
+
+ &:hover {
+ > div {
+ display: block;
+ }
+ }
+
+ > div {
+ background-color: @wcfSidebarBackgroundColor;
+ margin-top: 28px;
+ padding-top: 14px;
+ }
+ }
+
+ > div {
+ display: none;
+
+ > fieldset.jsOnly {
+ display: none;
+ }
+ }
+ }
}
.content {
.containerContentType {
display: none;
}
+
+ > div > div > .buttonList {
+ display: none;
+ }
}
&.infoBoxList {
white-space: nowrap;
}
}
-
- &.doubleColumned,
- &.tripleColumned {
- .clearfix();
-
- > li {
- float: left;
+}
+
+@media only screen and (min-width: 641px) {
+ .containerBoxList {
+ &.doubleColumned,
+ &.tripleColumned {
+ .clearfix();
- > div {
- margin-right: @wcfGapLarge;
+ > li {
+ float: left;
+
+ > div {
+ margin-right: @wcfGapLarge;
+ }
}
}
- }
-
- &.doubleColumned {
- > li {
- width: 50%;
+
+ &.doubleColumned {
+ > li {
+ width: 50%;
+ }
}
- }
-
- &.tripleColumned {
- > li {
- width: 33%;
+
+ &.tripleColumned {
+ > li {
+ width: 33%;
+ }
}
}
}
margin-bottom: @wcfGapSmall;
}
+@media only screen and (max-width: 640px) {
+ .tabMenu {
+ > ul {
+ margin-left: @wcfGapTiny;
+ margin-right: @wcfGapTiny;
+
+ > li {
+ &.ui-state-active {
+ > a {
+ font-size: 100%;
+ padding-left: 10px;
+ padding-right: 10px;
+ }
+ }
+
+ > a {
+ font-size: 100%;
+ padding-left: 5px;
+ padding-right: 5px;
+ }
+ }
+ }
+
+ }
+}
+
/* ToDo: 2x hidden? */
.ui-tabs .ui-tabs-hide {
display: none !important;
.textShadow(@wcfButtonBackgroundColor);
}
- > span {
+ > span:not(.invisible) {
display: inline-block;
}
}
&:not(.skip):not(.active) {
display: none;
}
+
+ &.active {
+ > span {
+ &.invisible {
+ display: inline-block;
+ }
+
+ &:not(.invisible) {
+ display: none;
+ }
+ }
+ }
}
}
}