* Updating sizes for teams sidebar

* PLT-4641 - Rearranging notification option

* PLT-4504 - Updating styles for Oauth apps

* PLT-4852 - Updating font size for lists

* Fix for the unread indicator with teams sidebar
Этот коммит содержится в:
Asaad Mahmood
2016-12-20 02:44:13 +05:00
коммит произвёл Joram Wilander
родитель a55e7a97ee
Коммит 58e8da11b1
7 изменённых файлов: 35 добавлений и 35 удалений

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

@@ -539,11 +539,11 @@ export default class Navbar extends React.Component {
role='menu' role='menu'
> >
{viewInfoOption} {viewInfoOption}
{notificationPreferenceOption}
{addMembersOption} {addMembersOption}
{manageMembersOption} {manageMembersOption}
{setChannelHeaderOption} {setChannelHeaderOption}
{setChannelPurposeOption} {setChannelPurposeOption}
{notificationPreferenceOption}
{renameChannelOption} {renameChannelOption}
{deleteChannelOption} {deleteChannelOption}
{leaveChannelOption} {leaveChannelOption}

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

@@ -23,7 +23,7 @@
.input__help { .input__help {
@include opacity(.8); @include opacity(.8);
color: inherit; color: inherit;
margin: 10px 0 0 10px; margin: 10px 0 0 0;
word-break: break-word; word-break: break-word;
&.dark { &.dark {

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

@@ -1022,6 +1022,7 @@
li { li {
ul, ul,
ol { ol {
font-size: 1em;
margin: 0; margin: 0;
padding: 0 0 0 20px; padding: 0 0 0 20px;
} }

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

@@ -4,7 +4,7 @@
left: 0; left: 0;
position: fixed; position: fixed;
text-align: center; text-align: center;
width: 75px; width: 65px;
z-index: 5; z-index: 5;
.team-wrapper { .team-wrapper {
@@ -14,41 +14,40 @@
padding-top: 15px; padding-top: 15px;
.team-container { .team-container {
width: 100%;
text-align: center;
display: table; display: table;
margin-bottom: 10px; margin-bottom: 10px;
position: relative; position: relative;
text-align: center;
width: 100%;
.team-btn { .team-btn {
border: none; @include border-radius(2px);
height: 42px; background-color: alpha-color($black, .3);
text-align: center;
font-weight: bold;
border-radius: 5px;
position: relative;
width: 42px;
background-color: rgba(0, 0, 0, 0.3);
display: table-cell; display: table-cell;
font-weight: bold;
height: 35px;
position: relative;
text-align: center;
vertical-align: middle; vertical-align: middle;
width: 35px;
.badge { .badge {
position: absolute;
top: -3px;
right: -6px;
font-size: 10px; font-size: 10px;
position: absolute;
right: -6px;
top: -3px;
} }
} }
&.active { &.active {
.team-btn { .team-btn {
border: 1px solid #fff;
background-color: transparent; background-color: transparent;
border: 1px solid $white;
} }
} }
&.active:before { &.active:before {
background: black; background: $black;
content: ''; content: '';
height: 100%; height: 100%;
left: 0; left: 0;
@@ -58,7 +57,7 @@
} }
&.unread:before { &.unread:before {
background: black; background: $black;
border-radius: 50%; border-radius: 50%;
content: ''; content: '';
height: 5px; height: 5px;
@@ -69,8 +68,8 @@
} }
a.team-disabled { a.team-disabled {
@include opacity(.5);
cursor: not-allowed; cursor: not-allowed;
opacity: 0.5;
} }
} }
@@ -81,10 +80,14 @@
} }
.sidebar--left { .sidebar--left {
left: 75px; left: 65px;
.nav-pills__unread-indicator {
left: 80px;
}
} }
.app__content { .app__content {
margin-left: 295px; margin-left: 285px;
} }
} }

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

@@ -1165,9 +1165,6 @@
} }
.multi-teams { .multi-teams {
.team-sidebar {
width: 75px;
}
.app__content { .app__content {
margin-left: 0; margin-left: 0;
@@ -1177,7 +1174,11 @@
left: 0; left: 0;
&.move--right { &.move--right {
left: 75px; left: 65px;
.nav-pills__unread-indicator {
left: 15px;
}
} }
} }
@@ -1521,15 +1522,11 @@
@media screen and (max-width: 320px) { @media screen and (max-width: 320px) {
.multi-teams { .multi-teams {
.team-sidebar {
width: 65px;
}
.sidebar--left { .sidebar--left {
width: 220px; width: 220px;
&.move--right { .nav-pills__unread-indicator {
left: 65px; width: 190px;
} }
} }
} }

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

@@ -15,7 +15,6 @@
} }
.authorized-apps__wrapper { .authorized-apps__wrapper {
background-color: #fff;
padding: 10px 0; padding: 10px 0;
} }

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

@@ -610,7 +610,7 @@ export function applyTheme(theme) {
changeCss('.app__body .date-separator .separator__hr, .app__body .modal-footer, .app__body .modal .custom-textarea', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2)); changeCss('.app__body .date-separator .separator__hr, .app__body .modal-footer, .app__body .modal .custom-textarea', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2));
changeCss('.app__body .search-item-container, .app__body .post-right__container .post.post--root', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.1)); changeCss('.app__body .search-item-container, .app__body .post-right__container .post.post--root', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.1));
changeCss('.app__body .modal .custom-textarea:focus', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3)); changeCss('.app__body .modal .custom-textarea:focus', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3));
changeCss('.app__body .channel-intro, .app__body .modal .settings-modal .settings-table .settings-content .divider-dark, .app__body hr, .app__body .modal .settings-modal .settings-table .settings-links, .app__body .modal .settings-modal .settings-table .settings-content .appearance-section .theme-elements__header', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2)); changeCss('.app__body .channel-intro, .app__body .modal .settings-modal .settings-table .settings-content .divider-dark, .app__body hr, .app__body .modal .settings-modal .settings-table .settings-links, .app__body .modal .settings-modal .settings-table .settings-content .appearance-section .theme-elements__header, .app__body .user-settings .authorized-app:not(:last-child)', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2));
changeCss('.app__body .post.current--user .post__body, .app__body .post.post--comment.other--root.current--user .post-comment, .app__body pre, .app__body .post-right__container .post.post--root', 'background:' + changeOpacity(theme.centerChannelColor, 0.05)); changeCss('.app__body .post.current--user .post__body, .app__body .post.post--comment.other--root.current--user .post-comment, .app__body pre, .app__body .post-right__container .post.post--root', 'background:' + changeOpacity(theme.centerChannelColor, 0.05));
changeCss('.app__body .post.post--comment.other--root.current--user .post-comment, .app__body .more-modal__list .more-modal__row, .app__body .member-div:first-child, .app__body .member-div, .app__body .access-history__table .access__report, .app__body .activity-log__table', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.1)); changeCss('.app__body .post.post--comment.other--root.current--user .post-comment, .app__body .more-modal__list .more-modal__row, .app__body .member-div:first-child, .app__body .member-div, .app__body .access-history__table .access__report, .app__body .activity-log__table', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.1));
changeCss('@media(max-width: 1800px){.app__body .inner-wrap.move--left .post.post--comment.same--root', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.07)); changeCss('@media(max-width: 1800px){.app__body .inner-wrap.move--left .post.post--comment.same--root', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.07));
@@ -637,7 +637,7 @@ export function applyTheme(theme) {
changeCss('.app__body .channel-header__info .status .offline--icon', 'fill:' + theme.centerChannelColor); changeCss('.app__body .channel-header__info .status .offline--icon', 'fill:' + theme.centerChannelColor);
changeCss('.app__body .navbar .status .offline--icon', 'fill:' + theme.centerChannelColor); changeCss('.app__body .navbar .status .offline--icon', 'fill:' + theme.centerChannelColor);
changeCss('.app__body .post-reaction:not(.post-reaction--current-user)', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.25)); changeCss('.app__body .post-reaction:not(.post-reaction--current-user)', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.25));
changeCss('.app__body .post-reaction:not(.post-reaction--current-user)', 'color:' + changeOpacity(theme.centerChannelColor, 0.6)); changeCss('.app__body .post-reaction:not(.post-reaction--current-user)', 'color:' + changeOpacity(theme.centerChannelColor, 0.7));
} }
if (theme.newMessageSeparator) { if (theme.newMessageSeparator) {