Merge pull request #1468 from asaadmahmoodspin/ui-improvements
Multiple UI Improvements
Этот коммит содержится в:
@@ -74,6 +74,23 @@ export default class PostInfo extends React.Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.props.allowReply === 'true') {
|
||||||
|
dropdownContents.push(
|
||||||
|
<li
|
||||||
|
key='replyLink'
|
||||||
|
role='presentation'
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
className='reply-link visible-xs theme'
|
||||||
|
href='#'
|
||||||
|
onClick={this.props.handleCommentClick}
|
||||||
|
>
|
||||||
|
{'Reply'}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (dropdownContents.length === 0) {
|
if (dropdownContents.length === 0) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -561,8 +561,6 @@ export function applyTheme(theme) {
|
|||||||
if (theme.sidebarTextActiveColor) {
|
if (theme.sidebarTextActiveColor) {
|
||||||
changeCss('.sidebar--left .nav-pills__container li.active a, .sidebar--left .nav-pills__container li.active a:hover, .sidebar--left .nav-pills__container li.active a:focus, .settings-modal .nav-pills>li.active a, .settings-modal .nav-pills>li.active a:hover, .settings-modal .nav-pills>li.active a:active', 'color:' + theme.sidebarTextActiveColor, 2);
|
changeCss('.sidebar--left .nav-pills__container li.active a, .sidebar--left .nav-pills__container li.active a:hover, .sidebar--left .nav-pills__container li.active a:focus, .settings-modal .nav-pills>li.active a, .settings-modal .nav-pills>li.active a:hover, .settings-modal .nav-pills>li.active a:active', 'color:' + theme.sidebarTextActiveColor, 2);
|
||||||
changeCss('.sidebar--left .nav li.active a, .sidebar--left .nav li.active a:hover, .sidebar--left .nav li.active a:focus', 'background:' + changeOpacity(theme.sidebarTextActiveColor, 0.1), 1);
|
changeCss('.sidebar--left .nav li.active a, .sidebar--left .nav li.active a:hover, .sidebar--left .nav li.active a:focus', 'background:' + changeOpacity(theme.sidebarTextActiveColor, 0.1), 1);
|
||||||
changeCss('.search-help-popover .search-autocomplete__item:hover', 'background:' + changeOpacity(theme.sidebarTextActiveColor, 0.05), 1);
|
|
||||||
changeCss('.search-help-popover .search-autocomplete__item.selected', 'background:' + changeOpacity(theme.sidebarTextActiveColor, 0.15), 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.sidebarHeaderBg) {
|
if (theme.sidebarHeaderBg) {
|
||||||
@@ -656,8 +654,10 @@ export function applyTheme(theme) {
|
|||||||
changeCss('.date-separator.hovered--before:after, .date-separator.hovered--after:before, .new-separator.hovered--after:before, .new-separator.hovered--before:after', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
changeCss('.date-separator.hovered--before:after, .date-separator.hovered--after:before, .new-separator.hovered--after:before, .new-separator.hovered--before:after', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
||||||
changeCss('.command-name:hover, .mentions-name:hover, .mentions-focus, .dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover, .bot-indicator', 'background:' + changeOpacity(theme.centerChannelColor, 0.15), 1);
|
changeCss('.command-name:hover, .mentions-name:hover, .mentions-focus, .dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover, .bot-indicator', 'background:' + changeOpacity(theme.centerChannelColor, 0.15), 1);
|
||||||
changeCss('code', 'background:' + changeOpacity(theme.centerChannelColor, 0.1), 1);
|
changeCss('code', 'background:' + changeOpacity(theme.centerChannelColor, 0.1), 1);
|
||||||
changeCss('.post.current--user:hover .post__body ', 'background: none;', 1);
|
changeCss('@media(min-width: 960px){.post.current--user:hover .post__body ', 'background: none;', 1);
|
||||||
changeCss('.sidebar--right', 'color:' + theme.centerChannelColor, 2);
|
changeCss('.sidebar--right', 'color:' + theme.centerChannelColor, 2);
|
||||||
|
changeCss('.search-help-popover .search-autocomplete__item:hover', 'background:' + changeOpacity(theme.centerChannelColor, 0.05), 1);
|
||||||
|
changeCss('.search-help-popover .search-autocomplete__item.selected', 'background:' + changeOpacity(theme.centerChannelColor, 0.15), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.newMessageSeparator) {
|
if (theme.newMessageSeparator) {
|
||||||
|
|||||||
@@ -122,6 +122,10 @@ a:focus, a:hover {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
@include border-radius(2px);
|
@include border-radius(2px);
|
||||||
&:focus {
|
&:focus {
|
||||||
|
|||||||
@@ -382,9 +382,11 @@ body.ios {
|
|||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
|
|
||||||
p:last-child {
|
p:last-child {
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.post--root {
|
&.post--root {
|
||||||
@@ -508,6 +510,7 @@ body.ios {
|
|||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
table-layout: fixed;
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
@@ -532,7 +535,7 @@ body.ios {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 30px;
|
top: 30px;
|
||||||
width: 70px;
|
width: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -584,12 +587,15 @@ body.ios {
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
padding: 0.2em 0.5em 0em;
|
padding: 0.2em 0.5em 0em;
|
||||||
@include legacy-pie-clearfix;
|
@include legacy-pie-clearfix;
|
||||||
width: calc(100% - 80px);
|
width: calc(100% - 70px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__link {
|
.post__link {
|
||||||
margin: 2px 0 5px;
|
margin: 2px 0 5px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__time {
|
.post__time {
|
||||||
@@ -612,7 +618,6 @@ body.ios {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comment-icon__container {
|
.comment-icon__container {
|
||||||
margin-right: 7px;
|
|
||||||
fill: $primary-color;
|
fill: $primary-color;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
|||||||
@@ -57,10 +57,55 @@
|
|||||||
|
|
||||||
.post {
|
.post {
|
||||||
|
|
||||||
.dropdown, .comment-icon__container {
|
&.same--root {
|
||||||
|
|
||||||
|
&.same--user {
|
||||||
|
|
||||||
|
.post__time {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-list__content & {
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: transparent;
|
||||||
|
|
||||||
|
.comment-icon__container {
|
||||||
|
visibility: hidden;
|
||||||
|
|
||||||
|
&.icon--show {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post__dropdown {
|
||||||
|
line-height: 9px;
|
||||||
|
text-decoration: none;
|
||||||
|
width: 20px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
height: 20px;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
font-size: 20px;
|
||||||
|
content: '...'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.post__img {
|
.post__img {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
|
|
||||||
@@ -232,7 +277,8 @@
|
|||||||
}
|
}
|
||||||
.modal-header {
|
.modal-header {
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
}
|
}
|
||||||
@@ -358,6 +404,7 @@
|
|||||||
#navbar {
|
#navbar {
|
||||||
.navbar-default {
|
.navbar-default {
|
||||||
.navbar-header {
|
.navbar-header {
|
||||||
|
float: none;
|
||||||
margin: 0 -15px;
|
margin: 0 -15px;
|
||||||
.dropdown__icon {
|
.dropdown__icon {
|
||||||
background: url("../images/dropdown-icon.png");
|
background: url("../images/dropdown-icon.png");
|
||||||
|
|||||||
5
web/sass-files/sass/partials/_tooltips.scss
Обычный файл
5
web/sass-files/sass/partials/_tooltips.scss
Обычный файл
@@ -0,0 +1,5 @@
|
|||||||
|
#recentMentionsTooltip {
|
||||||
|
.tooltip-arrow {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -41,6 +41,9 @@
|
|||||||
@import "partials/tutorial";
|
@import "partials/tutorial";
|
||||||
@import "partials/statistics";
|
@import "partials/statistics";
|
||||||
|
|
||||||
|
// Elements
|
||||||
|
@import "partials/tooltips";
|
||||||
|
|
||||||
// Responsive Css
|
// Responsive Css
|
||||||
@import "partials/responsive";
|
@import "partials/responsive";
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user