PLT-2549 - Improvements to theme stuff (#2657)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
af98754d24
Коммит
5cf982e021
@@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||||
// See License.txt for license information.
|
// See License.txt for license information.
|
||||||
|
|
||||||
|
import $ from 'jquery';
|
||||||
import UserStore from 'stores/user_store.jsx';
|
import UserStore from 'stores/user_store.jsx';
|
||||||
import TeamStore from 'stores/team_store.jsx';
|
import TeamStore from 'stores/team_store.jsx';
|
||||||
import PreferenceStore from 'stores/preference_store.jsx';
|
import PreferenceStore from 'stores/preference_store.jsx';
|
||||||
@@ -34,6 +35,12 @@ export default class TutorialIntroScreens extends React.Component {
|
|||||||
|
|
||||||
this.state = {currentScreen: 0};
|
this.state = {currentScreen: 0};
|
||||||
}
|
}
|
||||||
|
componentDidMount() {
|
||||||
|
$('body').addClass('app__body');
|
||||||
|
}
|
||||||
|
componentWillUnmount() {
|
||||||
|
$('body').removeClass('app__body');
|
||||||
|
}
|
||||||
handleNext() {
|
handleNext() {
|
||||||
if (this.state.currentScreen < 2) {
|
if (this.state.currentScreen < 2) {
|
||||||
this.setState({currentScreen: this.state.currentScreen + 1});
|
this.setState({currentScreen: this.state.currentScreen + 1});
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
@charset 'UTF-8';
|
@charset 'UTF-8';
|
||||||
|
|
||||||
.browser--ie {
|
.app__body {
|
||||||
|
|
||||||
|
&.browser--ie {
|
||||||
.modal {
|
.modal {
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
@include translateY(0);
|
@include translateY(0);
|
||||||
@@ -268,7 +270,8 @@
|
|||||||
min-width: 330px;
|
min-width: 330px;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre, code {
|
pre,
|
||||||
|
code {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -387,7 +390,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Invite New Member
|
|
||||||
.invite {
|
.invite {
|
||||||
margin-right: 40px;
|
margin-right: 40px;
|
||||||
}
|
}
|
||||||
@@ -516,3 +518,5 @@
|
|||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,14 +6,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar--right {
|
|
||||||
&.move--left {
|
|
||||||
.search-bar__container {
|
|
||||||
padding-right: 42px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-bar__container {
|
.search-bar__container {
|
||||||
@include flex(0 0 56px);
|
@include flex(0 0 56px);
|
||||||
padding: 12px 8px 0 0;
|
padding: 12px 8px 0 0;
|
||||||
|
|||||||
@@ -251,12 +251,35 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app__body {
|
||||||
.modal {
|
.modal {
|
||||||
.info__label {
|
.info__label {
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-image {
|
||||||
|
.modal-button-bar {
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-wrapper {
|
||||||
|
> div {
|
||||||
|
font-size: 12px;
|
||||||
|
min-width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-close {
|
||||||
|
@include opacity(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-button-bar {
|
||||||
|
@include opacity(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.modal-header {
|
.modal-header {
|
||||||
.modal-action {
|
.modal-action {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
@@ -390,6 +413,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.post-create__container {
|
.post-create__container {
|
||||||
.post-right__container & {
|
.post-right__container & {
|
||||||
@@ -752,25 +776,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal {
|
|
||||||
.modal-image {
|
|
||||||
.image-wrapper {
|
|
||||||
> div {
|
|
||||||
font-size: 12px;
|
|
||||||
min-width: 250px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-close {
|
|
||||||
@include opacity(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-button-bar {
|
|
||||||
@include opacity(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.app__content {
|
.app__content {
|
||||||
padding-top: 45px;
|
padding-top: 45px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -798,6 +803,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 640px) {
|
@media screen and (max-width: 640px) {
|
||||||
|
.app__body {
|
||||||
.modal {
|
.modal {
|
||||||
.about-modal {
|
.about-modal {
|
||||||
.about-modal__content {
|
.about-modal__content {
|
||||||
@@ -831,6 +837,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.access-history__table {
|
.access-history__table {
|
||||||
> div {
|
> div {
|
||||||
@@ -890,8 +897,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app__body {
|
||||||
.modal {
|
.modal {
|
||||||
.settings-modal {
|
.settings-modal {
|
||||||
|
&.display--content {
|
||||||
|
.modal-body {
|
||||||
|
max-height: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
max-height: 70%;
|
||||||
|
}
|
||||||
|
|
||||||
.settings-table {
|
.settings-table {
|
||||||
.security-links {
|
.security-links {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -904,25 +922,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.tip-overlay.tip-overlay--sidebar {
|
.tip-overlay.tip-overlay--sidebar {
|
||||||
min-height: 350px;
|
min-height: 350px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal {
|
|
||||||
.modal-body {
|
|
||||||
max-height: 70%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.settings-modal {
|
|
||||||
&.display--content {
|
|
||||||
.modal-body {
|
|
||||||
max-height: 90%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.member-div {
|
.member-div {
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
|
|
||||||
@@ -951,15 +956,6 @@
|
|||||||
@include translate3d(260px, 0, 0);
|
@include translate3d(260px, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal {
|
|
||||||
.modal-image {
|
|
||||||
.modal-button-bar {
|
|
||||||
line-height: 30px;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-height: 640px) {
|
@media screen and (max-height: 640px) {
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
@charset 'UTF-8';
|
@charset 'UTF-8';
|
||||||
|
|
||||||
|
.app__body {
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
.about-modal {
|
.about-modal {
|
||||||
.modal-header {
|
.modal-header {
|
||||||
@@ -76,3 +78,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Ссылка в новой задаче
Block a user