mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* PLT-6905 - Updating channel header design * Updating border-radius * Updating radius for wide icons * Updating trigger for overlay * Updating UI for channel header * Updating channel header sizing * Updating channel header css * Updating sidebar css * Updating status icons * Adjusting border * Updating comment * Removing type from status icon * Fixing UI issues for the channel header/sidebar * make "Add a channel description" open the channel header modal * Updating status and opacity * Updating stauts icon positioning * Updating description and heading size * Updating UI changes * Updating UI changes * add a focused class to the parent div .search__form and then remove when hover away * Fix active state for pinned posts icon * Updating UI changes * Update channel header text
493 lines
11 KiB
SCSS
493 lines
11 KiB
SCSS
@charset 'UTF-8';
|
|
|
|
@media screen and (max-width: 960px) {
|
|
.inner-wrap {
|
|
&.move--left {
|
|
.channel-header {
|
|
.heading {
|
|
max-width: calc(100vw - 600px);
|
|
|
|
.multi-teams & {
|
|
max-width: calc(100vw - 650px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.channel-header__info {
|
|
.channel-header__description {
|
|
max-width: calc(100vw - 600px);
|
|
|
|
.multi-teams & {
|
|
max-width: calc(100vw - 650px);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.textarea-wrapper {
|
|
.textbox-preview-link,
|
|
.textbox-help-link {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.channel-header__info {
|
|
.channel-header__description {
|
|
max-width: calc(100vw - 660px);
|
|
|
|
.multi-teams & {
|
|
max-width: calc(100vw - 710px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.channel-header {
|
|
.heading {
|
|
max-width: calc(100vw - 700px);
|
|
|
|
.multi-teams & {
|
|
max-width: calc(100vw - 750px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.post-right__scroll {
|
|
.post-create__container {
|
|
.post-create-body {
|
|
.icon__emoji_picker {
|
|
display: none;
|
|
top: -7px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.post-create__container {
|
|
.post-create {
|
|
&.post-create--attachment-disabled {
|
|
.post-body__cell {
|
|
padding-left: 1em;
|
|
}
|
|
|
|
.post-create-footer {
|
|
padding-left: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
form {
|
|
padding: .5em 0 0;
|
|
}
|
|
|
|
.post-create-footer {
|
|
padding: 0 45px 0 8px;
|
|
|
|
.post-error {
|
|
position: relative;
|
|
top: 0;
|
|
|
|
.sidebar--right & {
|
|
left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.post-create-body {
|
|
display: table;
|
|
width: 100%;
|
|
|
|
.post-body__cell {
|
|
display: table-cell;
|
|
padding-left: 45px;
|
|
|
|
|
|
.sidebar--right & {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
|
|
.app__content & {
|
|
.btn-file {
|
|
bottom: -2px;
|
|
left: 10px;
|
|
line-height: 36px;
|
|
padding: 0;
|
|
top: auto;
|
|
width: 25px;
|
|
|
|
.icon--emoji-picker {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.app__content & {
|
|
.icon {
|
|
position: relative;
|
|
top: 3px;
|
|
|
|
}
|
|
}
|
|
|
|
.icon__emoji_picker {
|
|
position: relative;
|
|
display: none;
|
|
top: 1px;
|
|
right: -1px;
|
|
}
|
|
|
|
.send-button {
|
|
display: table-cell;
|
|
}
|
|
}
|
|
}
|
|
|
|
.signup-team__container {
|
|
&.branded {
|
|
display: block;
|
|
margin: 0 auto;
|
|
max-width: 380px;
|
|
|
|
.signup__markdown {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.sidebar--right {
|
|
@include single-transition(all, .35s, ease);
|
|
@include translateX(100%);
|
|
z-index: 10;
|
|
|
|
&.move--left,
|
|
&.webrtc--show {
|
|
-webkit-transform: translateX(0) !important;
|
|
-moz-transform: translateX(0) !important;
|
|
-ms-transform: translateX(0) !important;
|
|
-o-transform: translateX(0) !important;
|
|
transform: translateX(0) !important;
|
|
|
|
.search-bar__container {
|
|
z-index: 5;
|
|
}
|
|
}
|
|
}
|
|
|
|
.backstage-content {
|
|
margin: 30px;
|
|
max-width: 100%;
|
|
padding: 0;
|
|
}
|
|
|
|
.backstage-sidebar {
|
|
height: auto;
|
|
padding: 30px 15px 0;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.inner-wrap {
|
|
&:not(.move--left) {
|
|
margin-right: 0 !important;
|
|
}
|
|
|
|
&.move--left,
|
|
&.webrtc--show {
|
|
margin-right: 0 !important;
|
|
|
|
.channel-header__links {
|
|
position: relative;
|
|
right: auto;
|
|
top: auto;
|
|
}
|
|
}
|
|
|
|
&.move--left,
|
|
&.webrtc--show,
|
|
&.move--right {
|
|
.header-list__right {
|
|
// hide it behind the RHS
|
|
z-index: -1;
|
|
}
|
|
}
|
|
}
|
|
.post {
|
|
.attachment {
|
|
.attachment__image {
|
|
&.attachment__image--openraph {
|
|
max-height: 70px;
|
|
max-width: 300px;
|
|
&.loading {
|
|
height: 70px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Tablet and desktop
|
|
@media screen and (min-width: 768px) {
|
|
.second-bar {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar--right {
|
|
&.move--left,
|
|
&.webrtc--show {
|
|
@include translateX(0);
|
|
}
|
|
|
|
&.sidebar--right--expanded {
|
|
width: calc(100% - 280px);
|
|
|
|
.sidebar--right__bg {
|
|
background-color: alpha-color($black, .4);
|
|
visibility: visible;
|
|
}
|
|
|
|
.search-bar__container {
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.sidebar-right-container {
|
|
position: relative;
|
|
z-index: 5;
|
|
}
|
|
|
|
.sidebar--right__expand {
|
|
.fa-expand {
|
|
display: none;
|
|
}
|
|
|
|
.fa-compress {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.sidebar--right__title {
|
|
display: inline-block;
|
|
max-width: 300px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.inner-wrap {
|
|
&.move--left,
|
|
&.webrtc--show {
|
|
margin-right: 400px;
|
|
}
|
|
}
|
|
|
|
.post {
|
|
&.post--compact {
|
|
|
|
.channel__wrap & {
|
|
.post__time {
|
|
font-size: .85em;
|
|
left: -79px;
|
|
position: absolute;
|
|
text-align: right;
|
|
top: 3px;
|
|
width: 60px;
|
|
}
|
|
|
|
.star-icon__container {
|
|
left: -65px;
|
|
position: absolute;
|
|
text-align: right;
|
|
top: 6px;
|
|
width: 60px;
|
|
}
|
|
}
|
|
|
|
.post__pinned-badge {
|
|
margin-left: 0;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
&:not(.post--thread) {
|
|
padding: 0 .5em 0 77px;
|
|
|
|
&.other--root {
|
|
|
|
}
|
|
|
|
.post__link {
|
|
margin: 3px 0 7px;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
span {
|
|
p {
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.post__header {
|
|
float: left;
|
|
height: 21px;
|
|
padding-top: 2px;
|
|
|
|
.col__name {
|
|
font-weight: bold;
|
|
margin-right: 2px;
|
|
padding-right: 5px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.colon {
|
|
display: inline;
|
|
}
|
|
|
|
.col__reply {
|
|
top: -1px;
|
|
}
|
|
}
|
|
|
|
&.other--root {
|
|
.post__link + .post__body {
|
|
clear: both;
|
|
}
|
|
|
|
&.post--comment {
|
|
.post__header {
|
|
.col__reply {
|
|
top: -1px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.post-code {
|
|
clear: both;
|
|
}
|
|
|
|
.post__body {
|
|
width: 100%;
|
|
}
|
|
|
|
.post__content {
|
|
padding-right: 45px;
|
|
}
|
|
}
|
|
|
|
.flag-icon__container {
|
|
left: -21px;
|
|
position: absolute;
|
|
top: 4px;
|
|
}
|
|
|
|
.sidebar--right & .flag-icon__container {
|
|
left: auto;
|
|
position: relative;
|
|
top: 1px;
|
|
}
|
|
|
|
&.same--root {
|
|
&.same--user {
|
|
padding-left: 77px;
|
|
padding-top: 0;
|
|
|
|
.flag-icon__container {
|
|
left: -19px;
|
|
position: absolute;
|
|
top: 4px;
|
|
}
|
|
|
|
.post__header {
|
|
.col__reply {
|
|
top: -1px;
|
|
}
|
|
}
|
|
|
|
.post__img {
|
|
img {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&.post--root {
|
|
.post__img {
|
|
img {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.post__time {
|
|
@include opacity(.6);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.post--comment {
|
|
padding-top: 1px;
|
|
|
|
&.same--user {
|
|
.post__img {
|
|
img {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.post__header {
|
|
margin-left: 12px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.same--root {
|
|
&.same--user {
|
|
.post__time {
|
|
@include opacity(0);
|
|
}
|
|
|
|
.post__header {
|
|
float: left;
|
|
padding-top: 3px;
|
|
|
|
.col__reply {
|
|
top: -21px;
|
|
}
|
|
|
|
.post__pinned-badge {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
&:not(.post--compact) {
|
|
.post__time {
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
left: -14px;
|
|
line-height: 20px;
|
|
position: absolute;
|
|
text-align: right;
|
|
text-rendering: auto;
|
|
top: 4px;
|
|
width: 51px;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.post--comment:not(.post--compact) {
|
|
.post__pinned-badge {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|