Multiple UI improvements
Этот коммит содержится в:
@@ -125,7 +125,7 @@ export default class Login extends React.Component {
|
|||||||
let emailSignup;
|
let emailSignup;
|
||||||
if (global.window.mm_config.EnableSignUpWithEmail === 'true') {
|
if (global.window.mm_config.EnableSignUpWithEmail === 'true') {
|
||||||
emailSignup = (
|
emailSignup = (
|
||||||
<div>
|
<div className='signup__email-container'>
|
||||||
<div className={'form-group' + errorClass}>
|
<div className={'form-group' + errorClass}>
|
||||||
<input
|
<input
|
||||||
autoFocus={focusEmail}
|
autoFocus={focusEmail}
|
||||||
@@ -206,7 +206,7 @@ export default class Login extends React.Component {
|
|||||||
href='/'
|
href='/'
|
||||||
className='signup-team-login'
|
className='signup-team-login'
|
||||||
>
|
>
|
||||||
{'Sign up now'}
|
{'Create one now'}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -215,11 +215,11 @@ export default class Login extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='signup-team__container'>
|
<div className='signup-team__container'>
|
||||||
{verifiedBox}
|
|
||||||
<h5 className='margin--less'>{'Sign in to:'}</h5>
|
<h5 className='margin--less'>{'Sign in to:'}</h5>
|
||||||
<h2 className='signup-team__name'>{teamDisplayName}</h2>
|
<h2 className='signup-team__name'>{teamDisplayName}</h2>
|
||||||
<h2 className='signup-team__subdomain'>{'on '}{global.window.mm_config.SiteName}</h2>
|
<h2 className='signup-team__subdomain'>{'on '}{global.window.mm_config.SiteName}</h2>
|
||||||
<form onSubmit={this.handleSubmit}>
|
<form onSubmit={this.handleSubmit}>
|
||||||
|
{verifiedBox}
|
||||||
<div className={'form-group' + errorClass}>
|
<div className={'form-group' + errorClass}>
|
||||||
{serverError}
|
{serverError}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,9 +6,6 @@ export default class SettingsSidebar extends React.Component {
|
|||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
$('.settings-modal').find('.modal-body').scrollTop(0);
|
$('.settings-modal').find('.modal-body').scrollTop(0);
|
||||||
$('.settings-modal').find('.modal-body').perfectScrollbar('update');
|
$('.settings-modal').find('.modal-body').perfectScrollbar('update');
|
||||||
if (utils.isSafari()) {
|
|
||||||
$('.settings-modal .settings-links .nav').addClass('absolute');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|||||||
@@ -18,14 +18,15 @@
|
|||||||
margin-left: 220px;
|
margin-left: 220px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
display: flex;
|
@include display-flex;
|
||||||
|
@include flex-direction(column);
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.channel__wrap & {
|
.channel__wrap & {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#post-create {
|
#post-create {
|
||||||
flex: 0 0 auto;
|
@include flex(0 0 auto);
|
||||||
background: #fff;
|
background: #fff;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
padding: 3px 0;
|
padding: 3px 0;
|
||||||
height: 58px;
|
height: 58px;
|
||||||
flex: 0 0 58px;
|
flex: 0 0 58px;
|
||||||
|
@include flex(0 0 50px);
|
||||||
}
|
}
|
||||||
.row {
|
.row {
|
||||||
&.header {
|
&.header {
|
||||||
|
|||||||
@@ -46,22 +46,7 @@ body.ios {
|
|||||||
|
|
||||||
.textarea-wrapper {
|
.textarea-wrapper {
|
||||||
position:relative;
|
position:relative;
|
||||||
min-height: 36px;
|
min-height:37px;
|
||||||
.textbox-preview-area {
|
|
||||||
position: absolute;
|
|
||||||
z-index: 2;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
.textbox-preview-link {
|
|
||||||
position: absolute;
|
|
||||||
z-index: 3;
|
|
||||||
bottom: -23px;
|
|
||||||
right: 0;
|
|
||||||
font-size: 13px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.date-separator, .new-separator {
|
.date-separator, .new-separator {
|
||||||
@@ -197,7 +182,7 @@ body.ios {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#post-list {
|
#post-list {
|
||||||
flex: 1 1 auto;
|
@include flex(1 1 auto);
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
.post-list-holder-by-time {
|
.post-list-holder-by-time {
|
||||||
@@ -339,9 +324,9 @@ body.ios {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.msg-typing {
|
.msg-typing {
|
||||||
min-height: 25px;
|
min-height: 20px;
|
||||||
line-height: 25px;
|
line-height: 18px;
|
||||||
display: block;
|
display: inline-block;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
@include opacity(0.7);
|
@include opacity(0.7);
|
||||||
}
|
}
|
||||||
@@ -511,9 +496,6 @@ body.ios {
|
|||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
@include opacity(.3);
|
@include opacity(.3);
|
||||||
}
|
}
|
||||||
&.tex .katex-display {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
code {
|
code {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
@@ -630,80 +612,79 @@ body.ios {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.attachment {
|
.attachment {
|
||||||
.attachment__content {
|
.attachment__content {
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
margin: 0 0 5px 0;
|
margin: 0 0 5px 0;
|
||||||
}
|
}
|
||||||
.attachment__thumb-pretext {
|
.attachment__thumb-pretext {
|
||||||
border: 0 none;
|
border: 0 none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
.attachment__container {
|
.attachment__container {
|
||||||
border-left-width: 4px;
|
border-left-width: 4px;
|
||||||
border-left-style: solid;
|
border-left-style: solid;
|
||||||
padding: 2px 0 2px 10px;
|
padding: 2px 0 2px 10px;
|
||||||
&.attachment__container--good {
|
&.attachment__container--good {
|
||||||
border-left-color: #00C100;
|
border-left-color: #00C100;
|
||||||
}
|
}
|
||||||
&.attachment__container--warning {
|
&.attachment__container--warning {
|
||||||
border-left-color: #DEDE01;
|
border-left-color: #DEDE01;
|
||||||
}
|
}
|
||||||
&.attachment__container--danger {
|
&.attachment__container--danger {
|
||||||
border-left-color: #E40303;
|
border-left-color: #E40303;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.attachment__body {
|
.attachment__body {
|
||||||
float: left;
|
float: left;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
overflow-x: auto;
|
&.attachment__body--no_thumb {
|
||||||
&.attachment__body--no_thumb {
|
width: 100%;
|
||||||
width: 100%;
|
}
|
||||||
}
|
}
|
||||||
}
|
.attachment__text p:last-of-type {
|
||||||
.attachment__text p:last-of-type {
|
display: inline-block;
|
||||||
display: inline-block;
|
}
|
||||||
}
|
.attachment__thumb-pretext {
|
||||||
.attachment__thumb-pretext {
|
margin-left: 5px;
|
||||||
margin-left: 5px;
|
}
|
||||||
}
|
.attachment__title {
|
||||||
.attachment__title {
|
margin: 5px 0;
|
||||||
margin: 5px 0;
|
padding: 0;
|
||||||
padding: 0;
|
line-height: 16px;
|
||||||
line-height: 16px;
|
font-size: 16px;
|
||||||
font-size: 16px;
|
a {
|
||||||
a {
|
font-size: 16px;
|
||||||
font-size: 16px;
|
}
|
||||||
}
|
}
|
||||||
}
|
.attachment__author-icon {
|
||||||
.attachment__author-icon {
|
@include border-radius(50px);
|
||||||
@include border-radius(50px);
|
margin-right: 5px;
|
||||||
margin-right: 5px;
|
width: 14px;
|
||||||
width: 14px;
|
height: 14px;
|
||||||
height: 14px;
|
}
|
||||||
}
|
.attachment__image {
|
||||||
.attachment__image {
|
max-width: 100%;
|
||||||
max-width: 100%;
|
margin-bottom: 1em;
|
||||||
margin-bottom: 1em;
|
}
|
||||||
}
|
.attachment__thumb-container {
|
||||||
.attachment__thumb-container {
|
width: 20%;
|
||||||
width: 20%;
|
float: right;
|
||||||
float: right;
|
img {
|
||||||
img {
|
max-height: 75px;
|
||||||
max-height: 75px;
|
max-width: 100%;
|
||||||
max-width: 100%;
|
}
|
||||||
}
|
}
|
||||||
}
|
.attachment___fields {
|
||||||
.attachment___fields {
|
width: 100%;
|
||||||
width: 100%;
|
.attachment___field-caption {
|
||||||
.attachment___field-caption {
|
font-weight: 700;
|
||||||
font-weight: 700;
|
}
|
||||||
}
|
.attachment___field p {
|
||||||
.attachment___field p {
|
margin: 0;
|
||||||
margin: 0;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.inner__content {
|
.inner__content {
|
||||||
padding: 0 15px;
|
padding: 0 1rem;
|
||||||
margin: 30px 0 20px;
|
margin: 30px 0 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,17 +133,18 @@
|
|||||||
.or__container {
|
.or__container {
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: #dddddd;
|
background: #dddddd;
|
||||||
text-align: center;
|
text-align: left;
|
||||||
margin: 2em 0;
|
margin: 2em 0;
|
||||||
span {
|
span {
|
||||||
width: 33px;
|
width: 40px;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: em(16px);
|
font-size: 1.14286em;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,6 +153,10 @@
|
|||||||
padding-left: 18px;
|
padding-left: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.signup__email-container {
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
padding: em(7px) em(15px);
|
padding: em(7px) em(15px);
|
||||||
@@ -173,7 +178,7 @@
|
|||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
margin: 1em auto;
|
margin: 1em 1rem;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 34px;
|
line-height: 34px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user