* Multiple UI Improvements

* Reverting modal animation
Этот коммит содержится в:
Asaad Mahmood
2016-12-06 20:51:31 +05:00
коммит произвёл Christopher Speller
родитель 42f28886cc
Коммит 08c2d28942
9 изменённых файлов: 52 добавлений и 32 удалений

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

@@ -35,6 +35,8 @@ class SwitchChannelSuggestion extends Suggestion {
icon = <div className='status'><i className='fa fa-globe'/></div>; icon = <div className='status'><i className='fa fa-globe'/></div>;
} else if (item.type === Constants.PRIVATE_CHANNEL) { } else if (item.type === Constants.PRIVATE_CHANNEL) {
icon = <div className='status'><i className='fa fa-lock'/></div>; icon = <div className='status'><i className='fa fa-lock'/></div>;
} else {
icon = <div className='status'><i className='fa fa-user'/></div>;
} }
return ( return (

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

@@ -171,7 +171,7 @@ export default class ImportThemeModal extends React.Component {
/> />
</p> </p>
<div className='form-group less'> <div className='form-group less'>
<div className='col-sm-9'> <div className='col-sm-12'>
<input <input
type='text' type='text'
className='form-control' className='form-control'

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

@@ -21,6 +21,11 @@
width: 100%; width: 100%;
z-index: 101; z-index: 101;
.fa-user {
position: relative;
top: -1px;
}
.mention--align { .mention--align {
@include clearfix; @include clearfix;
text-overflow: ellipsis; text-overflow: ellipsis;

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

@@ -17,6 +17,7 @@
} }
.popover-title { .popover-title {
@include border-radius(0);
background: alpha-color($black, .05); background: alpha-color($black, .05);
max-width: 100%; max-width: 100%;
overflow: hidden; overflow: hidden;

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

@@ -60,6 +60,26 @@
} }
} }
.has-error {
.help-block,
.control-label,
.radio,
.checkbox,
.radio-inline,
.checkbox-inline {
color: $red;
}
&.radio,
&.checkbox,
&.radio-inline,
&.checkbox-inline {
label {
color: $red;
}
}
}
.padding-top { .padding-top {
padding-top: 7px; padding-top: 7px;

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

@@ -210,7 +210,6 @@
.channel-intro-text { .channel-intro-text {
margin-top: 35px; margin-top: 35px;
word-break: break-all;
} }
} }

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

@@ -5,23 +5,6 @@
max-height: 145px; max-height: 145px;
} }
.modal {
.modal-dialog {
&.new-channel__modal {
position: fixed;
@include translate3d(0, 100%, 0);
}
}
&.in {
.modal-dialog {
&.new-channel__modal {
@include translate3d(0, 0, 0);
}
}
}
}
.webrtc__notification--rhs { .webrtc__notification--rhs {
left: auto; left: auto;
right: 0; right: 0;
@@ -43,7 +26,7 @@
@include box-shadow(none); @include box-shadow(none);
background: alpha-color($black, .8); background: alpha-color($black, .8);
border: none; border: none;
height: calc(100% - 45px); height: calc(100% - 40px);
max-width: 100%; max-width: 100%;
position: fixed; position: fixed;
top: 47px; top: 47px;
@@ -598,6 +581,16 @@
min-height: 100%; min-height: 100%;
} }
.nav-pills {
> li {
&:hover {
a {
background: transparent !important;
}
}
}
}
&.display--content { &.display--content {
.modal-header { .modal-header {
display: none; display: none;
@@ -802,7 +795,7 @@
@include translate3d(0, 100%, 0); @include translate3d(0, 100%, 0);
background: alpha-color($black, .9); background: alpha-color($black, .9);
display: block; display: block;
height: calc(100% - 45px); height: calc(100% - 40px);
left: 0; left: 0;
overflow: auto; overflow: auto;
padding: 1.4em 0 0; padding: 1.4em 0 0;
@@ -1011,11 +1004,11 @@
padding-bottom: 25px; padding-bottom: 25px;
ul { ul {
clear: both; background: $white;
background: #ffffff;
border-radius: 3px; border-radius: 3px;
top: 5px; clear: both;
position: relative; position: relative;
top: 5px;
li { li {
a { a {
@@ -1031,21 +1024,21 @@
> a { > a {
font-size: 15px; font-size: 15px;
margin: 0;
line-height: 2.5; line-height: 2.5;
margin: 0;
&:hover, &:hover,
&:focus { &:focus {
background: transparent; background: transparent !important;
} }
&.has-close { &.has-close {
.btn-close { .btn-close {
width: 40px;
text-align: center;
right: 0;
display: block;
@include opacity(.5); @include opacity(.5);
display: block;
right: 0;
text-align: center;
width: 40px;
} }
} }
} }

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

@@ -6,7 +6,7 @@ $primary-color--hover: darken($primary-color, 10%);
$bg--gray: rgb(245, 245, 245); $bg--gray: rgb(245, 245, 245);
$white: rgb(255, 255, 255); $white: rgb(255, 255, 255);
$black: rgb(0, 0, 0); $black: rgb(0, 0, 0);
$red: rgb(229, 101, 101); $red: rgb(214, 73, 70);
$yellow: rgb(255, 255, 0); $yellow: rgb(255, 255, 0);
$light-gray: rgba(0, 0, 0, .15); $light-gray: rgba(0, 0, 0, .15);
$gray: rgba(0, 0, 0, .3); $gray: rgba(0, 0, 0, .3);

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

@@ -476,6 +476,7 @@ export function applyTheme(theme) {
changeCss('.sidebar--left .add-channel-btn:hover, .sidebar--left .add-channel-btn:focus', 'color:' + theme.sidebarText); changeCss('.sidebar--left .add-channel-btn:hover, .sidebar--left .add-channel-btn:focus', 'color:' + theme.sidebarText);
changeCss('.sidebar--left .status .offline--icon', 'fill:' + theme.sidebarText); changeCss('.sidebar--left .status .offline--icon', 'fill:' + theme.sidebarText);
changeCss('@media(max-width: 768px){.app__body .modal .settings-modal .settings-table .nav>li>a, .app__body .sidebar--menu .divider', 'border-color:' + changeOpacity(theme.sidebarText, 0.2)); changeCss('@media(max-width: 768px){.app__body .modal .settings-modal .settings-table .nav>li>a, .app__body .sidebar--menu .divider', 'border-color:' + changeOpacity(theme.sidebarText, 0.2));
changeCss('@media(max-width: 768px){.sidebar--left .add-channel-btn:hover, .sidebar--left .add-channel-btn:focus', 'color:' + changeOpacity(theme.sidebarText, 0.6));
} }
if (theme.sidebarUnreadText) { if (theme.sidebarUnreadText) {
@@ -484,7 +485,6 @@ export function applyTheme(theme) {
if (theme.sidebarTextHoverBg) { if (theme.sidebarTextHoverBg) {
changeCss('.sidebar--left .nav-pills__container li>a:hover, .app__body .modal .settings-modal .nav-pills>li:hover a', 'background:' + theme.sidebarTextHoverBg); changeCss('.sidebar--left .nav-pills__container li>a:hover, .app__body .modal .settings-modal .nav-pills>li:hover a', 'background:' + theme.sidebarTextHoverBg);
changeCss('@media(max-width: 768px){.app__body .modal .settings-modal .settings-table .nav>li:hover a', 'background:' + theme.sidebarTextHoverBg);
} }
if (theme.sidebarTextActiveBorder) { if (theme.sidebarTextActiveBorder) {