Files
mattermost/web/sass-files/sass/partials/_post.scss

440 lines
7.0 KiB
SCSS
Raw Normal View History

2015-06-14 23:53:32 -08:00
.custom-textarea {
white-space:pre-wrap;
word-wrap:break-word;
background:transparent;
border:1px solid #ccc !important;
position:absolute;
top:0px;
height:auto;
resize: none;
line-height:20px;
min-height:36px;
}
.bad-connection {
background-color: rgb(255, 255, 172);
}
2015-06-14 23:53:32 -08:00
.textarea-div {
white-space:pre-wrap;
word-wrap:normal;
color:rgba(0,0,0,0);
position:absolute;
top:0px;
word-break: break-word;
left:1px;
line-height:20px;
min-height:36px;
height:auto;
border:0;
}
body.ios {
.textarea-div {
padding: 7px 17px 7px 15px;
-webkit-overflow-scrolling: auto;
}
}
.textarea-div::-webkit-scrollbar {
display:none;
}
.textarea-wrapper {
position:relative;
min-height:37px;
}
2015-07-09 21:11:47 +05:00
.date-separator, .new-separator {
text-align: center;
height: 2em;
margin: 0;
position: relative;
&:before, &:after {
content: "";
height: 1em;
position: absolute;
left: 0;
width: 100%;
display: none;
}
&:before {
bottom: 0;
}
&:after {
top: 0;
}
&.hovered--after {
&:before {
2015-07-09 21:11:47 +05:00
background: #f5f5f5;
display: block;
}
2015-07-09 21:11:47 +05:00
}
&.hovered--before {
&:after {
2015-07-09 21:11:47 +05:00
background: #f5f5f5;
display: block;
}
}
2015-07-09 21:11:47 +05:00
.separator__hr {
border-color: #ccc;
margin: 0;
position: relative;
z-index: 5;
top: 1em;
2015-06-14 23:53:32 -08:00
}
2015-07-09 21:11:47 +05:00
.separator__text {
line-height: 2em;
color: #555;
background: #FFF;
display: inline-block;
padding: 0 1em;
font-weight: 700;
@include border-radius(50px);
position: relative;
z-index: 5;
font-size: 13px;
}
}
.new-separator {
.separator__hr {
border-color: #FFAF53;
}
.separator__text {
color: #F80;
font-weight: normal;
}
}
#post-list {
2015-06-14 23:53:32 -08:00
.post-list-holder-by-time {
background: #fff;
overflow-y: scroll;
width: 100%;
padding: 1em 0 0;
position: relative;
}
.post-list__table {
display: table;
table-layout: fixed;
width: 100%;
min-height: 100%;
2015-07-11 08:32:02 -07:00
height: 100%;
2015-06-14 23:53:32 -08:00
.post-list__content {
display: table-cell;
vertical-align: bottom;
}
}
.more-messages-text {
margin-top: 2px;
margin-bottom: 5px;
display: block;
text-align: center;
outline: none;
border: none;
}
.beginning-messages-text {
margin-top: 2px;
margin-bottom: 5px;
display: block;
text-align: center;
color: grey;
}
}
2015-07-09 21:11:47 +05:00
2015-06-14 23:53:32 -08:00
.post-create__container {
form {
width: 100%;
padding: 0 1em;
margin: 0;
}
.post-create-body {
max-width: 850px;
padding: 0 0 2px;
position: relative;
.custom-textarea {
padding-top: 8px;
padding-right: 28px;
max-height: 160px;
overflow: auto;
line-height: 1.5;
}
.textarea-div {
padding-top: 8px;
padding-right: 30px;
max-height: 160px;
overflow: auto;
line-height: 1.5;
}
.btn-file {
right: 0;
position: absolute;
top: 1px;
color: #999;
@include single-transition(all, 0.15s);
font-size: 16px;
2015-07-06 23:18:23 +05:00
padding: 7px 9px 6px;
2015-06-14 23:53:32 -08:00
&:hover, &:active {
color: #444;
box-shadow: none;
}
}
textarea {
border: none;
box-shadow: none;
}
}
.post-create-footer {
@include clearfix;
padding: 0;
2015-07-21 16:47:08 +05:00
.has-error {
.control-label {
font-weight: normal;
margin-bottom: 0;
}
}
2015-06-14 23:53:32 -08:00
.msg-typing {
min-height: 20px;
line-height: 18px;
display: inline-block;
font-size: 13px;
color: #777;
}
}
}
.post {
word-wrap: break-word;
2015-07-06 23:18:23 +05:00
padding: 8px 1em;
2015-06-14 23:53:32 -08:00
position: relative;
max-width: 100%;
@include legacy-pie-clearfix;
&:hover {
.post-header .post-header-col.post-header__reply {
.dropdown, .comment-icon__container {
@include opacity(1);
}
2015-07-17 07:52:56 -07:00
.dropdown-toggle:after {
content: '...';
}
.dropdown-toggle:hover:after {
content: '[...]';
}
2015-06-14 23:53:32 -08:00
}
2015-07-07 22:58:13 +05:00
background: #f5f5f5;
2015-06-14 23:53:32 -08:00
}
2015-07-06 23:18:23 +05:00
&.current--user {
.post-body {
@include border-radius(4px);
background: #f5f5f5;
}
}
2015-06-14 23:53:32 -08:00
&.post--comment {
&.other--root {
.post-comment {
border-left: 4px solid #EEE;
2015-07-06 23:18:23 +05:00
padding: 4px 0 6px 10px;
margin: 0 0 0 30px;
@include border-radius(0 4px 4px 0);
}
.post-body {
background: transparent;
margin: 0;
padding: 1px 0px;
}
2015-07-07 22:58:13 +05:00
&.current--user {
.post-comment {
background: #f5f5f5;
}
}
}
&.same--root {
.post-body {
@include border-radius(0 4px 4px 0);
2015-06-14 23:53:32 -08:00
}
2015-07-17 21:04:33 +05:00
}
}
2015-06-14 23:53:32 -08:00
&.same--root {
.comment-icon__container {
@include opacity(0);
}
div.post-profile-img__container {
2015-07-06 23:18:23 +05:00
height: 1px;
2015-06-14 23:53:32 -08:00
.post-profile-img {
visibility: hidden;
}
}
.post__content {
padding: 0;
}
.post-body {
border-left: 4px solid #EEE;
width: 570px;
margin-left: 30px;
padding-left: 10px;
.post-link {
display: none;
}
}
}
&.post--last {
.post-header {
.post-header-col.post-header__reply {
.dropdown-menu {
top: auto;
bottom: 25px;
}
}
}
}
.post-create-footer {
padding: 0;
}
p {
margin: 0 0 5px;
2015-07-18 01:09:02 +05:00
font-size: 0.97em;
2015-06-14 23:53:32 -08:00
white-space: pre-wrap;
}
.comment-icon__container {
2015-07-06 23:18:23 +05:00
margin-left: 7px;
2015-06-14 23:53:32 -08:00
fill: $primary-color;
.comment-icon {
display: inline-block;
top: 3px;
position: relative;
margin-right: 3px;
fill: inherit;
}
path {
fill: inherit;
}
}
> div {
&.post-profile-img__container {
float: left;
.post-profile-img {
margin-right: 10px;
2015-07-17 21:04:33 +05:00
@include border-radius(50px);
2015-06-14 23:53:32 -08:00
}
}
&.post__content {
padding-left: 46px;
max-width: 100%;
@include legacy-pie-clearfix;
}
}
.post-image__columns {
@include legacy-pie-clearfix;
padding-bottom: 5px;
2015-06-14 23:53:32 -08:00
}
.post-info--hidden {
display: none;
}
.post-body {
max-width: 100%;
width: 600px;
float: left;
word-wrap: break-word;
padding: 0.3em 0.5em 0.1em;
2015-07-17 21:04:33 +05:00
margin: -0.3em 0 0;
2015-06-14 23:53:32 -08:00
.post-link {
@include clearfix;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
}
.create-reply-form-wrap {
width: 100%;
margin-top: 5px;
form {
padding: 0;
}
.comment-btn {
display: none;
}
}
.post-header {
list-style-type: none;
margin: 0 0 1px;
padding-left: 0px;
&.post-header-post {
width: 200px;
text-align: right;
float: left;
padding-right: 15px;
}
&.post-info {
.post-profile-time {
2015-07-09 21:11:47 +05:00
width: 150px;
2015-06-14 23:53:32 -08:00
display: inline-block;
margin-left: 50px;
}
}
.post-header-col {
vertical-align: top;
display: inline-block;
margin-right: 10px;
&.post-header__reply {
min-width: 70px;
.dropdown-menu {
right: 0;
left: auto;
}
.dropdown {
min-width: 18px;
display: inline-block;
@include opacity(0);
}
}
}
.post-profile-time {
color: #a8adb7;
}
}
.post-comment {
}
.web-embed-data {
padding: 2px 0 0 10px;
background: #f9f9f9;
background: rgba(0, 0, 0, 0.05);
@include border-radius(2px);
height: 50px;
overflow: hidden;
text-overflow: ellipsis;
.embed-title {
margin: 3px 0 1px;
color: #555;
2015-07-17 21:04:33 +05:00
font-weight: 600;
2015-06-14 23:53:32 -08:00
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.embed-description {
margin: 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
color: #888;
}
.embed-link {
display: none;
}
}
.msg-typing {
margin-top: 2px;
margin-left: 5px;
color: #a8adb7;
}
.post-grey {
color:lightgrey;
}
.post-reply {
clear: both;
width: 100%;
word-break: break-word;
.btn-file {
width: 40px;
}
}
}