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

565 lines
9.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;
2015-09-24 18:55:53 +05:00
border:1px solid #ccc;
2015-06-14 23:53:32 -08:00
position:absolute;
top:0px;
height:auto;
resize: none;
line-height:20px;
min-height:36px;
2015-09-24 18:55:53 +05:00
&:focus {
border-color: #ccc;
box-shadow: none;
}
2015-06-14 23:53:32 -08:00
}
.bad-connection {
2015-10-06 16:17:27 -07:00
background-color: rgb(255, 255, 172) !important;
}
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;
}
}
.file-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
text-align: center;
color: #FFF;
font-size: em(20px);
font-weight: 600;
z-index: 6;
&.right-file-overlay {
font-size: em(18px);
.overlay__circle {
width: 300px;
height: 300px;
margin: -150px 0 0 -150px;
}
.overlay__files {
margin: 60px auto 15px;
width: 150px;
}
}
.overlay__circle {
background: #111;
background: rgba(black, 0.7);
width: 370px;
height: 370px;
margin: -185px 0 0 -185px;
@include border-radius(500px);
position: absolute;
top: 50%;
left: 50%;
}
.overlay__files {
display: block;
margin: 75px auto 20px;
}
.overlay__logo {
position: absolute;
left: 50%;
bottom: 30px;
margin-left: -50px;
@include opacity(0.3);
}
.fa {
display: inline-block;
font-size: 1.1em;
margin-right: 8px;
}
}
#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;
-webkit-overflow-scrolling: touch;
2015-09-08 21:12:36 +05:00
&::-webkit-scrollbar {
width: 0px !important;
}
2015-10-13 23:28:00 +05:00
&.inactive {
display: none;
}
&.active {
display: inline;
}
2015-06-14 23:53:32 -08:00
}
.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%;
2015-09-25 22:44:36 +05:00
padding: 0 1em;
2015-06-14 23:53:32 -08:00
margin: 0;
}
.post-create-body {
max-width: 850px;
padding: 0 0 2px;
position: relative;
.post-body__cell {
vertical-align: top;
position: relative;
2015-10-12 20:55:40 +05:00
&.scroll {
.btn-file {
right: 15px;
}
.custom-textarea {
padding-right: 43px;
}
}
}
.send-button {
display: none;
cursor: pointer;
padding-right: 4px;
width: 45px;
height: 37px;
font-size: 18px;
line-height: 37px;
vertical-align: bottom;
text-align: center;
@include single-transition(all, 0.15s);
&:active {
@include opacity(0.75);
}
}
2015-06-14 23:53:32 -08:00
.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: #444;
@include opacity(0.5);
2015-06-14 23:53:32 -08:00
@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 {
@include opacity(0.9);
2015-06-14 23:53:32 -08:00
box-shadow: none;
}
}
textarea {
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;
@include opacity(0.7);
2015-06-14 23:53:32 -08:00
}
}
}
.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-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);
2015-09-23 10:12:40 -04:00
background: rgba(#000, 0.05);
2015-07-06 23:18:23 +05:00
}
}
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;
}
2015-08-13 20:03:40 +05:00
.post-loading-gif {
height:10px;
width:10px;
margin-top:6px;
}
.post-fail {
color: #D58A8A;
}
.post-waiting {
color: #999;
}
2015-06-14 23:53:32 -08:00
.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 {
2015-10-13 23:28:00 +05:00
position: relative;
2015-10-14 17:04:13 +05:00
z-index: 1;
2015-06-14 23:53:32 -08:00
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 {
2015-10-13 23:28:00 +05:00
position: relative;
2015-06-14 23:53:32 -08:00
list-style-type: none;
margin: 0 0 1px;
padding-left: 0px;
&.post-header-post {
2015-10-13 23:28:00 +05:00
position: relative;
2015-10-14 17:04:13 +05:00
z-index: 1;
2015-06-14 23:53:32 -08:00
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);
}
2015-08-18 11:58:15 +05:00
.dropdown-toggle:after {
content: '[...]';
}
2015-06-14 23:53:32 -08:00
}
}
.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;
}
}
}
.bot-indicator {
2015-10-13 23:28:00 +05:00
background-color: lightgrey;
border-radius:2px;
padding-left:2px;
padding-right:2px;
font-family:"Courier New"
}