Files
mattermost/webapp/sass/layout/_sidebar-right.scss
Nick Frazier 0a1b0d051a Add error to RHS reply box for messages > 4000 chars, consistent with create post and edit post errors (#4871)
* functionality

* CSS updates

* cleanup

* moved message length checks to Textbox component

* cleanup
2016-12-26 09:25:50 -05:00

223 lines
4.3 KiB
SCSS

@charset 'UTF-8';
.sidebar--right {
@include translateX(400px);
background: $white;
height: 100%;
padding: 0;
position: fixed;
right: 0;
width: 400px;
z-index: 6;
&.webrtc {
z-index: 5;
}
.sidebar--right__bg {
@include single-transition(background-color, .5s, ease);
background-color: alpha-color($black, 0);
height: 100%;
position: absolute;
top: 0;
visibility: hidden;
width: 300%;
}
&.move--left,
&.webrtc--show {
.sidebar--right__bg {
left: -100%;
}
}
.post-body {
img {
max-height: 200px;
}
}
.post {
.post__content {
padding: 0 10px 0 0;
}
.post__header {
.col__name {
.user-popover {
max-width: 120px;
}
}
.flag-icon__container {
z-index: 5;
}
}
}
.post-create__container {
form {
padding: .5em 15px 0;
}
.post-create-footer {
@include clearfix;
font-size: 13px;
overflow: visible;
position: relative;
clear: both;
.post-error {
font-weight: normal;
margin-bottom: 0;
display: inline-block;
font-size: .85em;
@include opacity(.55);
position: absolute;
top: -25px;
}
}
}
.help__format-text {
display: none;
}
.sidebar--right__content {
@include display-flex;
@include flex-direction(column);
height: 100%;
}
.sidebar--right__back {
@include single-transition(all, .2s, ease-in);
@include opacity(.5);
color: inherit;
display: inline-block;
font-size: 26px;
margin: 0 0 0 -14px;
text-align: center;
vertical-align: top;
width: 30px;
&:hover,
&:active {
color: inherit;
opacity: .8;
}
i {
position: relative;
top: -2px;
}
}
.sidebar-right__body {
@include display-flex;
@include flex(1 1 auto);
@include flex-direction(column);
border-left: $border-gray;
border-top: $border-gray;
height: calc(100% - 56px);
}
.sidebar__overlay {
@include opacity(.1);
background-color: $yellow;
height: 100%;
pointer-events: none;
position: absolute;
width: 100%;
z-index: 5;
}
.input-group {
word-break: break-word;
}
.sidebar--right__buttons {
float: right;
}
.sidebar--right__close {
@include single-transition(all, .2s, ease-in);
background: none;
border: none;
font-size: 20px;
height: 22px;
line-height: 0;
margin: 11px 0 0;
opacity: .5;
outline: none;
padding: 0;
width: 30px;
&:hover,
&:active {
opacity: .8;
}
i {
position: relative;
}
}
.sidebar--right__expand {
@extend .sidebar--right__close;
font-size: 17px;
i {
top: -2px;
}
.fa-compress {
display: none;
}
}
.sidebar--right__header {
@include flex(0 0 44px);
border-bottom: $border-gray;
color: inherit;
font-size: 1em;
height: 44px;
line-height: 44px;
padding: 0 5px 0 15px;
text-transform: uppercase;
}
.sidebar--right__subheader {
font-size: 1em;
padding: 0.5em 1em 0;
h4 {
font-size: 1em;
}
ul {
@include opacity(.7);
padding: 10px 0 0 30px;
}
li {
font-size: .95em;
padding-bottom: 10px;
}
.usage__icon {
@include opacity(.9);
margin: 0 3px;
position: relative;
top: 1px;
}
}
.suggestion-list__content {
max-height: 120px;
}
}
.sidebar-right-container {
height: 100%;
}