Bug fixes and UI improvements for multiple tickets

Этот коммит содержится в:
Asaad Mahmood
2015-09-25 16:38:11 +05:00
родитель 6a4a73c2d3
Коммит b1a7225f30
10 изменённых файлов: 49 добавлений и 20 удалений

Просмотреть файл

@@ -84,6 +84,8 @@ export default class ChannelLoader extends React.Component {
});
});
$('body').tooltip({selector: '[data-toggle=tooltip]', trigger: 'hover click'});
$('body').on('mouseenter mouseleave', '.post', function mouseOver(ev) {
if (ev.type === 'mouseenter') {
$(this).parent('div').prev('.date-separator, .new-separator').addClass('hovered--after');

Просмотреть файл

@@ -153,7 +153,9 @@ export default class PostInfo extends React.Component {
<li className='post-header-col'>
<time
className='post-profile-time'
data-toggle='tooltip'
title={`${utils.displayDate(post.create_at)} at ${utils.displayTime(post.create_at)}`}
data-placement='top'
>
{utils.displayDateTime(post.create_at)}
</time>

Просмотреть файл

@@ -32,7 +32,6 @@ export default class UserProfile extends React.Component {
componentDidMount() {
UserStore.addChangeListener(this.onChange);
$('#profile_' + this.uniqueId).popover({placement: 'right', container: 'body', trigger: 'hover', html: true, delay: {show: 200, hide: 100}});
$('body').tooltip({selector: '[data-toggle=tooltip]', trigger: 'hover click'});
}
componentWillUnmount() {
UserStore.removeChangeListener(this.onChange);

Просмотреть файл

@@ -616,8 +616,9 @@ export function applyTheme(theme) {
}
if (theme.centerChannelColor) {
changeCss('.app__content', 'color:' + theme.centerChannelColor, 2);
changeCss('.app__content, .post-create__container .post-create-body .btn-file', 'color:' + theme.centerChannelColor, 1);
changeCss('#post-create', 'color:' + theme.centerChannelColor, 2);
changeCss('.post-body hr', 'background:' + theme.centerChannelColor, 1);
changeCss('.channel-header .heading', 'color:' + theme.centerChannelColor, 1);
changeCss('.markdown__table tbody tr:nth-child(2n)', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
changeCss('.channel-header__info>div.dropdown .header-dropdown__icon', 'color:' + changeOpacity(theme.centerChannelColor, 0.8), 1);

Просмотреть файл

@@ -2,10 +2,20 @@
font-weight: 700;
}
.markdown__paragraph-inline {
display: inline;
+ .markdown__paragraph-inline {
margin-left: 4px;
}
display: inline;
+ .markdown__paragraph-inline {
margin-left: 4px;
}
}
.post-body {
hr {
height: 4px;
padding: 0;
margin: 15px 0 16px;
background-color: #e7e7e7;
border: 0 none;
@include opacity(0.2);
}
}
.markdown__table {
background: #fff;
@@ -21,6 +31,26 @@
}
}
}
blockquote {
border: none;
position: relative;
font-size: 16px;
padding: 10px 10px 10px 38px;
margin-bottom: 0;
&:before {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
display: inline-block;
text-decoration: inherit;
content: "\f10d";
left: 8px;
top: 5px;
position: absolute;
font-size: 20px;
@include opacity(0.6);
}
}
pre {
border: none;
background-color: #f7f7f7;

Просмотреть файл

@@ -66,8 +66,4 @@
.mention-highlight {
background-color:#fff2bb;
color: #333;
}
.mention-link {
color:$primary-color;
}

Просмотреть файл

@@ -185,7 +185,7 @@ body.ios {
.post-create__container {
form {
width: 100%;
padding: 0 1em;
padding: 10px 1em 0 1em;
margin: 0;
}
.post-create-body {
@@ -229,12 +229,13 @@ body.ios {
right: 0;
position: absolute;
top: 1px;
color: #999;
color: #444;
@include opacity(0.5);
@include single-transition(all, 0.15s);
font-size: 16px;
padding: 7px 9px 6px;
&:hover, &:active {
color: #444;
@include opacity(0.9);
box-shadow: none;
}
}

Просмотреть файл

@@ -417,7 +417,7 @@
padding: 0 1em;
}
form {
padding: 0;
padding: 10px 0 0 0;
}
.post-create-body {
padding-bottom: 10px;

Просмотреть файл

@@ -19,7 +19,7 @@
}
.video-type {
color:grey;
@include opacity(0.8);
font-size:15px;
font-weight:200;
margin:0px;
@@ -27,10 +27,9 @@
}
.video-uploader {
font-size:15px;
margin-top:3px;
margin-bottom:0px;
padding:0px;
font-size: 15px;
margin: 18px 0 15px;
font-weight: 600;
}
.video-title {

Просмотреть файл

@@ -53,7 +53,6 @@
<div id="register_app_modal"></div>
<script>
window.setup_channel_page({{ .Props }});
$('body').tooltip( {selector: '[data-toggle=tooltip]'} );
$('.modal-body').css('max-height', $(window).height() * 0.7);
$('.modal-body').perfectScrollbar();
</script>