From 2a23c45b44f0c85075401b577cc432a533005d93 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 29 Mar 2012 00:48:30 +0200 Subject: [PATCH] Added message options to package list (bit buggy) --- .../files/acp/templates/packageList.tpl | 27 ++++++----- wcfsetup/install/files/style/layout.less | 40 ++++++++++++++++ wcfsetup/install/files/style/message.less | 46 +------------------ 3 files changed, 54 insertions(+), 59 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/packageList.tpl b/wcfsetup/install/files/acp/templates/packageList.tpl index 12f50b2ca6..be78aa0aee 100644 --- a/wcfsetup/install/files/acp/templates/packageList.tpl +++ b/wcfsetup/install/files/acp/templates/packageList.tpl @@ -42,15 +42,14 @@

{lang}wcf.acp.package.application.installed{/lang}

-
    +
      {foreach from=$applications key=packageID item=package} -
    1. +
    2. {$package->getName()} - - -
      +
      +
      {lang}wcf.acp.package.identifier{/lang}
      {$package->package}
      @@ -75,16 +74,16 @@
      {lang}wcf.acp.package.author{/lang}
      {if $package->authorURL}{/if}{$package->author}{if $package->authorURL}{/if}
      + +
      - -
    3. {/foreach} diff --git a/wcfsetup/install/files/style/layout.less b/wcfsetup/install/files/style/layout.less index 30cc3df701..5f80809ca6 100644 --- a/wcfsetup/install/files/style/layout.less +++ b/wcfsetup/install/files/style/layout.less @@ -222,6 +222,46 @@ dl.dataList { } } +.contentOptions { + font-size: 100%; + line-height: 1; + position: relative; + + nav { + bottom: -2px; + opacity: 0; + position: absolute; + right: -21px; + text-align: right; + + .transition(opacity, .1s); + + ul.smallButtons > li { + display: inline-block; + margin-left: -5px; + + &:first-child a.button { + border-top-left-radius: 14px; + } + + &:last-child a.button { + border-bottom-right-radius: @wcfContainerBorderRadius; + } + + a.button { + margin: 0; + padding-right: @wcfGapSmall; + + .borderRadius(0); + } + } + } +} + +.applicationList:hover .contentOptions nav { + opacity: 1; +} + /* -- -- -- Shadows -- -- -- */ /* Shadows for boxes - do not use on small boxes! */ diff --git a/wcfsetup/install/files/style/message.less b/wcfsetup/install/files/style/message.less index 2c4b22d7ed..47a026f11c 100644 --- a/wcfsetup/install/files/style/message.less +++ b/wcfsetup/install/files/style/message.less @@ -12,7 +12,7 @@ display: block; } - &:hover .messageFooter nav { + &:hover .contentOptions nav { opacity: 1; } @@ -314,50 +314,6 @@ margin: 10px 0 0; padding: 10px 0; } - - .messageFooter { - font-size: 100%; - line-height: 1; - position: relative; - - /* - &:after { - clear: both; - content: ""; - position: relative; - } - */ - - nav { - bottom: -2px; - opacity: 0; - position: absolute; - right: -21px; - text-align: right; - - .transition(opacity, .1s); - - li { - display: inline-block; - margin-left: -5px; - - &:first-child a.button { - border-top-left-radius: 14px; - } - - &:last-child a.button { - border-bottom-right-radius: @wcfContainerBorderRadius; - } - - a.button { - margin: 0; - padding-right: @wcfGapSmall; - - .borderRadius(0); - } - } - } - } } li:nth-child(2n+1) .message { -- 2.20.1