From 353216e05c84727a43445bc5c4bb79fe94dcfca4 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Mon, 6 Jun 2016 17:46:03 +0500 Subject: PLT-3182 - Improving switch channels modal and some minor UI improvements (#3238) * PLT-3182 - Improving switch channels modal and some minor UI improvements Enabling link previews Adding compact layout to RHS Improving timestamps * Adding update code for RHS components --- webapp/sass/responsive/_tablet.scss | 138 +++++++++++++++++++----------------- 1 file changed, 74 insertions(+), 64 deletions(-) (limited to 'webapp/sass/responsive/_tablet.scss') diff --git a/webapp/sass/responsive/_tablet.scss b/webapp/sass/responsive/_tablet.scss index 0a62c0f79..9e09c3f42 100644 --- a/webapp/sass/responsive/_tablet.scss +++ b/webapp/sass/responsive/_tablet.scss @@ -85,85 +85,103 @@ .post { &.post--compact { - padding: 5px .5em 0 80px; + &:not(.post--thread) { + padding: 5px .5em 0 70px; - .post__link { - margin: 4px 0 7px; - } + .post__link { + margin: 4px 0 7px; + } - .post__time { - font-size: .85em; - left: -70px; - position: absolute; - top: 2px; - } + .post__time { + font-size: .85em; + left: -70px; + position: absolute; + text-align: right; + top: 4px; + width: 60px; + } - span { - p { - &:last-child { - margin-bottom: .3em; + span { + p { + &:last-child { + margin-bottom: .3em; + } } } - } - .post__header { - float: left; - height: 18px; - padding-top: 3px; - - .col__name { - font-weight: bold; - margin-right: 2px; - padding-right: 10px; - position: relative; - z-index: 1; - - &:after { - content: ':'; - display: inline-block; - font-family: FontAwesome; - font-size: 19px; - position: absolute; - right: 3px; - text-rendering: auto; - top: -5px; + .post__header { + float: left; + height: 21px; + padding-top: 3px; + + .col__name { + font-weight: bold; + margin-right: 2px; + padding-right: 10px; + position: relative; + z-index: 1; + + &:after { + content: ':'; + display: inline-block; + font-family: FontAwesome; + font-size: 19px; + position: absolute; + right: 3px; + text-rendering: auto; + top: -5px; + } } - } - .col__reply { - top: 2px; + .col__reply { + top: 2px; + } } - } - &.other--root { - .post__body { - > div { - &:first-child { - min-height: 21px; + &.other--root { + .post__body { + > div { + &:first-child { + min-height: 21px; + } + } + } + + .post__link + .post__body { + clear: both; + } + + &.post--comment { + .post__header { + .col__reply { + top: 0; + } } } } - .post__link + .post__body { + .post-code { clear: both; } - &.post--comment { - .post__header { - .col__reply { - top: 0; - } - } + .post__body { + width: 100%; } - } - .post-code { - clear: both; + .post__content { + padding-right: 85px; + } } &.same--root { &.same--user { - padding-left: 80px; + padding-left: 70px; + + .post__header { + .col__reply { + top: 4px; + } + } .post__img { img { @@ -194,14 +212,6 @@ } } } - - .post__body { - width: 100%; - } - - .post__content { - padding-right: 85px; - } } &.same--root { -- cgit v1.2.3-1-g7c22