From fa9f10bf5c9ba11546d635ebb835b734a7f07002 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sat, 21 Mar 2015 14:46:12 -0400 Subject: [PATCH] styled the post bar --- less/categories.less | 30 +-- less/topic.less | 314 +++++++++----------------------- templates/partials/post_bar.tpl | 33 ++-- templates/topic.tpl | 138 +------------- 4 files changed, 124 insertions(+), 391 deletions(-) diff --git a/less/categories.less b/less/categories.less index 118b927..101d6ea 100644 --- a/less/categories.less +++ b/less/categories.less @@ -38,20 +38,6 @@ } } - .stats { - font-size: 20px; - text-align: center; - margin-top: 5px; - line-height: 22px; - - small { - text-transform: uppercase; - color: @gray-light; - font-weight: 300; - font-size: 12px; - } - } - .card { border-left: 4px solid #ccc; text-align: left; @@ -129,7 +115,6 @@ } } } - } .category-header-image-auto { @@ -154,4 +139,19 @@ -o-background-size: contain!important; background-size: contain!important; background-position: center!important; +} + + +.stats { + font-size: 20px; + text-align: center; + margin-top: 5px; + line-height: 22px; + + small { + text-transform: uppercase; + color: @gray-light; + font-weight: 300; + font-size: 12px; + } } \ No newline at end of file diff --git a/less/topic.less b/less/topic.less index 509f178..e030223 100644 --- a/less/topic.less +++ b/less/topic.less @@ -1,57 +1,55 @@ .topic { - .post-content { - > blockquote { - > *:not(:first-child) { - display: none; - } + .posts { + .icon { + font-size: 17px; + line-height: 17px; + border-radius: 50%; + margin-right: 15px; + min-width: 46px; + min-height: 46px; + margin-top: 2px; - > blockquote { - display: block!important; - > *:not(:first-child) { - display: none; - } + img { + margin-right: 15px; + width: 46px; + height: 46px; + border-radius: 50%; } } - > blockquote.uncollapsed { - > *:not(:first-child) { - display: block; - } - - > blockquote { - display: block!important; - > *:not(:first-child) { - display: block; - } - } + h1 { + font-size: 22px; + line-height: 24px; + margin: 0; } + } - .toggle { - padding: 0px 5px; - border: 1px solid #e0e0e0; - background: #fcfcfc; - width: 50px; - text-align: center; - display:block!important; + .browsing-users { + span { + text-transform: uppercase; + color: @gray-light; } + } - pre { - max-height: 350px; - - code { - white-space: pre; - word-wrap: normal; - } - } + .stats { + width: 60px; + float: left; + margin-top: -5px; + } - @media (max-width: @screen-sm-min) { - pre { - max-height: 250px; - } - } + .topic-main-buttons a { + margin-left: 20px; } +} + + + + + + +.topic { &.deleted { -moz-opacity: 0.30; opacity: 0.30; @@ -71,224 +69,84 @@ } } - @media (max-width: 475px) { - .favourite-text { - display: none; - } - } - - .well { - padding-top: 10px; - padding-bottom: 10px; - } - - .topic-stats { - height: 34px; - line-height: 34px; - } - - .topic-main-buttons { - padding-bottom: 0px; - } - - @media (max-width: 767px) { - .topic-main-buttons { - margin-bottom: 0px; - } - } - .posts { + .post-content { + ul { + > li { + list-style-type: disc; - .post-info, .post-block { - position: relative; - border: 1px solid rgba(0, 0, 0, 0.06); - border-radius: 0 0 5px 5px; - padding: 10px; - - .post-signature { - font-size: 12px; - border-top: 1px solid #ddd; - display: inline-block; - - > p { - padding-top: 5px; - } + ul > li { + list-style-type: circle; - img { - max-width: 200px; - max-height: 60px; + ul > li { + list-style-type: square; + } + } } - - margin-left: 5px; } - } - - .post-block { - border-radius: 5px; - margin-bottom: 15px; - - .topic-buttons { - background: rgba(0, 0, 0, 0.02); - border: 1px solid rgba(0, 0, 0, 0.06); - margin: -5px 0 0 0; - padding: 8px 0 0 23px; - button.show { - display: inline-block !important; + > blockquote { + > *:not(:first-child) { + display: none; } - @media (max-width: 767px) { - padding-left: 9px; + > blockquote { + display: block!important; + > *:not(:first-child) { + display: none; + } } } - .post-content { - padding: 10px 5px 0 5px; - word-wrap: break-word; - clear: left; - - > ul, ol { - padding-bottom: 10px; + > blockquote.uncollapsed { + > *:not(:first-child) { + display: block; } - ul { - > li { - list-style-type: disc; - - ul > li { - list-style-type: circle; - - ul > li { - list-style-type: square; - } - } + > blockquote { + display: block!important; + > *:not(:first-child) { + display: block; } } - - blockquote p { - font-size: 14px; - } - } - - .post-images{ - padding: 2px 5px 0 5px; - } - } - } - - .posts { - .main-post { - display: none; - } - - .post-block { - .post-signature { - margin-left: 15px; - } - - .topic-buttons { - margin: -11px -10px 0px -10px; - border: 0; - border-bottom: 1px solid rgba(0, 0, 0, 0.06); - padding: 8px 9px 7px 23px; - } - - .post-content { - margin-left: 10px; - } - } - - .img-thumbnail { - float:none; - padding: 2px; - border-radius: 0; - margin-bottom: 5px; - } - } - - .posts li[data-index="0"] { - .sub-post { - display: none !important; - } - - .main-post { - display: block; - } - - .col-md-11 { - width: 100%; - } - - .topic-title { - line-height: 1.5em; - width: auto; - overflow: hidden; - margin: 0 0 -5px 0; - padding: 0 0 5px 0; - - i { - opacity: 0.7; } - } - .avatar { - position: relative; - float: left; - margin: 0 10px 0 0; - padding-bottom: 0px; - text-align: center; - width: 100px; - - @media (max-width: 767px) { - display: none; - } - - .img-thumbnail { - padding: 2px; - border-radius: 0; + .toggle { + padding: 0px 5px; + border: 1px solid #e0e0e0; + background: #fcfcfc; + width: 50px; + text-align: center; + display:block!important; } - } - - .post-content { - min-height: 80px; - } - .post-block { - >h3 { - margin:0px; - } - .topic-buttons { - background: rgba(0, 0, 0, 0.02); - border: 1px solid rgba(0, 0, 0, 0.06); - margin: 0 -11px 0 92px; - padding: 10px; - border-right: 0; + pre { + max-height: 350px; - @media (max-width: 767px) { - margin-left: -11px; - border-left: 0; + code { + white-space: pre; + word-wrap: normal; } + } - button.show { - display: inline-block!important; + @media (max-width: @screen-sm-min) { + pre { + max-height: 250px; } } } } - - .loading-indicator { - display: inline-block; - font-size: 14px; - margin-right: 1em; - } } .thread_active_users { - a[data-uid] { img { - height:24px; - width:24px; + border-radius: 50%; + margin-top: -4px; + margin-left: 1px; + margin-right: -12px; + width: 46px; + height: 46px; } &::after { diff --git a/templates/partials/post_bar.tpl b/templates/partials/post_bar.tpl index 09b80e6..5cad732 100644 --- a/templates/partials/post_bar.tpl +++ b/templates/partials/post_bar.tpl @@ -1,5 +1,6 @@ -
+
+
{tags.value}{tags.score} @@ -10,28 +11,32 @@ | - - [[global:posts]] - {postcount} | - [[global:views]] - {viewcount} - +
-
-