Improved styling of tags
authorMarcel Werk <burntime@woltlab.com>
Thu, 16 Jun 2016 10:54:45 +0000 (12:54 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 16 Jun 2016 10:54:45 +0000 (12:54 +0200)
com.woltlab.wcf/templates/article.tpl
wcfsetup/install/files/style/element/list.scss
wcfsetup/install/files/style/ui/article.scss

index 9657dd227ac155feb7e3ca2467b4b42c80e69ff5..519bc035ff0b4d1171988a7180056fbfbad29e36 100644 (file)
        </div>
        
        {if !$tags|empty}
-               <ul class="tagList articleTagList">
+               <ul class="tagList articleTagList section">
                        {foreach from=$tags item=tag}
-                               <li><a href="{link controller='Tagged' object=$tag}objectType=com.woltlab.wcf.article{/link}" class="articleTag">{$tag->name}</a></li>
+                               <li><a href="{link controller='Tagged' object=$tag}objectType=com.woltlab.wcf.article{/link}" class="tag">{$tag->name}</a></li>
                        {/foreach}
                </ul>
        {/if}
index 6beb95396ea4817b87636180cb6832478af175af..be839e1f8854499594f29f445a8f464b7459d71d 100644 (file)
@@ -24,6 +24,45 @@ ol.nativeList {
        
        align-items: baseline;
        
+       > li:not(:last-child) {
+               margin-right: 8px;
+       }
+       
+       .tag {
+               background-color: $wcfButtonBackground;
+               color: $wcfButtonText;
+               display: inline-block;
+               margin-left: 11px;
+               padding: 3px 6px 2px 2px;
+               position: relative;
+               text-decoration: none;
+               text-transform: uppercase;
+               
+               @include wcfFontSmall;
+               @include wcfFontBold;
+               
+               &::before {
+                       border: 11px solid transparent;
+                       border-left-width: 0;
+                       border-right-color: $wcfButtonBackground;
+                       content: "";
+                       display: block;
+                       left: -11px;
+                       position: absolute;
+                       top: 0;
+               }
+               
+               &:hover {
+                       background-color: $wcfButtonPrimaryBackgroundActive;
+                       color: $wcfButtonPrimaryTextActive;
+                       text-decoration: none;
+                       
+                       &::before {
+                               border-right-color: $wcfButtonPrimaryBackgroundActive;
+                       }
+               }
+       }
+       
        .tagWeight1 {
                font-size: 12px;
        }
index ac8e348abafa091ede627e327d4dbaba16dd9dcf..1aa234818e66cedda49ad0eab7b0c04f0e895bc7 100644 (file)
                @include wcfFontBold;
        }
        
-       .articleTagList {
-               margin-top: 20px;
-               
-               > li {
-                       padding-left: 11px;
-               }
-               
-               .articleTag {
-                       background-color: $wcfButtonBackground;
-                       color: $wcfButtonText;
-                       display: inline-block;
-                       padding: 3px 6px 2px 2px;
-                       position: relative;
-                       text-transform: uppercase;
-                       
-                       @include wcfFontSmall;
-                       @include wcfFontBold;
-                       
-                       &::before {
-                               border: 11px solid transparent;
-                               border-left-width: 0;
-                               border-right-color: $wcfButtonBackground;
-                               content: "";
-                               display: block;
-                               left: -11px;
-                               position: absolute;
-                               top: 0;
-                       }
-                       
-                       &:hover {
-                               background-color: $wcfButtonPrimaryBackgroundActive;
-                               color: $wcfButtonPrimaryTextActive;
-                               
-                               &::before {
-                                       border-right-color: $wcfButtonPrimaryBackgroundActive;
-                               }
-                       }
-               }
-       }
-       
        .articleLikesSummery:not(:empty) {
                margin-top: 20px;
        }