UI Improvements to center channel (#2790)
Removing time from the center channel on sp (mobile) Liking mention color to search highlight color aswell Adjusting vertical spacing on mobile Removing profile pic from mobile LHS header Updating styles for the RHS Fixing btn-danger
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
bfc6e4e6b6
Коммит
88cbfe7f1d
@@ -212,7 +212,7 @@ export default class PostInfo extends React.Component {
|
|||||||
var dropdown = this.createDropdown();
|
var dropdown = this.createDropdown();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ul className='post__header post__header--info'>
|
<ul className='post__header--info'>
|
||||||
<li className='col'>
|
<li className='col'>
|
||||||
<TimeSince
|
<TimeSince
|
||||||
eventTime={post.create_at}
|
eventTime={post.create_at}
|
||||||
|
|||||||
@@ -20,6 +20,12 @@
|
|||||||
|
|
||||||
.app__body & {
|
.app__body & {
|
||||||
color: $white;
|
color: $white;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus,
|
||||||
|
&:active {
|
||||||
|
color: $white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
|
|||||||
@@ -67,9 +67,8 @@
|
|||||||
|
|
||||||
.channel-intro {
|
.channel-intro {
|
||||||
border-bottom: 1px solid $light-gray;
|
border-bottom: 1px solid $light-gray;
|
||||||
margin: 0 auto 35px;
|
margin: 0 30px 35px;
|
||||||
max-width: 1000px;
|
padding: 0 0 5px;
|
||||||
padding: 0 1em 5px;
|
|
||||||
|
|
||||||
.intro-links {
|
.intro-links {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|||||||
@@ -53,7 +53,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-create__container {
|
.post-create__container {
|
||||||
margin-top: 10px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.textarea-wrapper {
|
.textarea-wrapper {
|
||||||
@@ -115,7 +114,7 @@
|
|||||||
|
|
||||||
.post-right-channel__name {
|
.post-right-channel__name {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 0 0 10px 0;
|
margin: 0 0 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-right-root-container li {
|
.post-right-root-container li {
|
||||||
|
|||||||
@@ -520,6 +520,10 @@ body.ios {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post__header--info {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
p:last-child {
|
p:last-child {
|
||||||
margin-bottom: .5em;
|
margin-bottom: .5em;
|
||||||
@@ -554,16 +558,6 @@ body.ios {
|
|||||||
top: 6px;
|
top: 6px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__time {
|
|
||||||
@include opacity(0);
|
|
||||||
font-size: 11px;
|
|
||||||
left: -7px;
|
|
||||||
line-height: 37px;
|
|
||||||
position: absolute;
|
|
||||||
text-rendering: auto;
|
|
||||||
top: -2px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.post--comment {
|
&.post--comment {
|
||||||
@@ -610,10 +604,10 @@ body.ios {
|
|||||||
.post__content {
|
.post__content {
|
||||||
display: table;
|
display: table;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding: 0 15px;
|
||||||
position: relative;
|
position: relative;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 15px;
|
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
@@ -649,7 +643,7 @@ body.ios {
|
|||||||
|
|
||||||
.col__reply {
|
.col__reply {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 10px;
|
||||||
top: 30px;
|
top: 30px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
width: 65px;
|
width: 65px;
|
||||||
|
|||||||
@@ -16,6 +16,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post {
|
.post {
|
||||||
|
.post__content {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.post__header {
|
.post__header {
|
||||||
.col__name {
|
.col__name {
|
||||||
.user-popover {
|
.user-popover {
|
||||||
@@ -25,6 +29,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-create__container {
|
||||||
|
form {
|
||||||
|
padding: .5em 15px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.help__format-text {
|
.help__format-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,11 @@
|
|||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar--left .team__header .user__picture,
|
||||||
|
.sidebar--menu .team__header .user__picture {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.date-separator.hovered--before:after,
|
.date-separator.hovered--before:after,
|
||||||
.date-separator.hovered--after:before,
|
.date-separator.hovered--after:before,
|
||||||
.new-separator.hovered--after:before,
|
.new-separator.hovered--after:before,
|
||||||
@@ -22,6 +27,10 @@
|
|||||||
background: none !important;
|
background: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.channel-intro {
|
||||||
|
margin: 0 15px 35px;
|
||||||
|
}
|
||||||
|
|
||||||
.post {
|
.post {
|
||||||
.post__dropdown {
|
.post__dropdown {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -38,6 +47,27 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post__content {
|
||||||
|
padding: 0 10px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post__header {
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
.col__reply {
|
||||||
|
top: 0;
|
||||||
|
width: 65px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col__name {
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
.user-popover {
|
||||||
|
max-width: 130px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.comment-icon__container {
|
.comment-icon__container {
|
||||||
display: none;
|
display: none;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
@@ -63,7 +93,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post__body {
|
.post__body {
|
||||||
width: calc(100% - 75px);
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__reply {
|
.post__reply {
|
||||||
@@ -75,22 +105,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.other--root .post__reply {
|
&.other--root {
|
||||||
&.post__reply--hide {
|
&.post--comment {
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.post__header {
|
.post__header {
|
||||||
.col__reply {
|
.col__reply {
|
||||||
width: 65px;
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.col__name {
|
.post__reply {
|
||||||
pointer-events: none;
|
&.post__reply--hide {
|
||||||
|
visibility: hidden;
|
||||||
.user-popover {
|
|
||||||
max-width: 130px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -100,6 +126,15 @@
|
|||||||
.post__time {
|
.post__time {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post__header {
|
||||||
|
height: auto;
|
||||||
|
margin-top: 5px;
|
||||||
|
|
||||||
|
.col__name {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -714,10 +749,6 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
|
|
||||||
&.move--left {
|
|
||||||
@include translate3d(0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar__collapse,
|
.sidebar__collapse,
|
||||||
.sidebar__search-icon {
|
.sidebar__search-icon {
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@@ -12,13 +12,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar--right {
|
.sidebar--right {
|
||||||
@include single-transition(all, .5s, ease);
|
@include single-transition(all, .5s, ease);
|
||||||
@include translateX(100%);
|
@include translateX(100%);
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
|
|
||||||
&.move--left {
|
&.move--left {
|
||||||
@include translateX(0);
|
-webkit-transform: translateX(0) !important;
|
||||||
|
-moz-transform: translateX(0) !important;
|
||||||
|
-ms-transform: translateX(0) !important;
|
||||||
|
-o-transform: translateX(0) !important;
|
||||||
|
transform: translateX(0) !important;
|
||||||
|
|
||||||
.search-bar__container {
|
.search-bar__container {
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
@@ -44,8 +49,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.inner-wrap {
|
.inner-wrap {
|
||||||
|
&:not(.move--left) {
|
||||||
|
margin-right: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
&.move--left {
|
&.move--left {
|
||||||
margin-right: 0;
|
margin-right: 0 !important;
|
||||||
|
|
||||||
.channel-header__links {
|
.channel-header__links {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -60,4 +69,20 @@
|
|||||||
.second-bar {
|
.second-bar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post {
|
||||||
|
&.same--root {
|
||||||
|
&.same--user {
|
||||||
|
.post__time {
|
||||||
|
@include opacity(0);
|
||||||
|
font-size: 11px;
|
||||||
|
left: 8px;
|
||||||
|
line-height: 37px;
|
||||||
|
position: absolute;
|
||||||
|
text-rendering: auto;
|
||||||
|
top: -2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -761,7 +761,7 @@ export function applyTheme(theme) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (theme.mentionHighlightLink) {
|
if (theme.mentionHighlightLink) {
|
||||||
changeCss('.app__body .mention--highlight .mention-link', 'color:' + theme.mentionHighlightLink, 1);
|
changeCss('.app__body .mention--highlight .mention-link, .app__body .mention--highlight, .app__body .search-highlight', 'color:' + theme.mentionHighlightLink, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!theme.codeTheme) {
|
if (!theme.codeTheme) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user