web-apps/apps/common/mobile/resources/less/ios/_collaboration.less
2020-05-26 22:28:35 +03:00

461 lines
8.8 KiB
Plaintext

.page-change {
background-color: #FFFFFF;
.block-description {
background-color: #fff;
padding-top: 15px;
padding-bottom: 15px;
margin: 0;
max-width: 100%;
word-wrap: break-word;
}
#user-name {
font-size: 17px;
line-height: 22px;
color: #000000;
margin: 0;
}
#date-change {
font-size: 14px;
line-height: 18px;
color: #6d6d72;
margin: 0;
margin-top: 3px;
}
#text-change {
color: #000000;
font-size: 15px;
line-height: 20px;
margin: 0;
margin-top: 10px;
}
.block-btn, .content-block.block-btn:first-child {
position: absolute;
bottom: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 0;
width: 100%;
height: 44px;
align-items: center;
box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
#btn-reject-change {
margin-left: 20px;
}
#btn-goto-change {
margin-left: 10px;
}
.change-buttons, .accept-reject {
display: flex;
}
.next-prev {
display: flex;
.link {
width: 44px;
}
}
.link {
position: relative;
display: flex;
justify-content: center;
align-items: center;
font-size: 17px;
height: 44px;
min-width: 44px;
}
}
#no-changes {
padding: 16px;
}
}
.navbar .center-collaboration {
display: flex;
justify-content: space-around;
}
.container-collaboration {
.navbar .right.close-collaboration {
position: absolute;
right: 10px;
}
.page-content .list-block:first-child {
margin-top: -1px;
}
}
//Display mode
.page-display-mode[data-page="display-mode-view"] {
.list-block {
li.media-item {
.item-title {
font-weight: normal;
}
.item-subtitle {
font-size: 14px;
color: @gray;
}
}
}
}
//Edit users
@initialEditUser: #373737;
#user-list {
.item-content {
padding-left: 0;
}
.item-inner {
justify-content: flex-start;
padding-left: 15px;
}
.length {
margin-left: 4px;
}
.color {
min-width: 40px;
min-height: 40px;
margin-right: 20px;
text-align: center;
border-radius: 50px;
line-height: 40px;
color: @initialEditUser;
font-weight: 500;
}
ul:before {
content: none;
}
}
//Comments
.page-comments, .add-comment, .page-view-comments, .container-edit-comment, .container-add-reply, .page-edit-comment, .page-add-reply, .page-edit-reply {
.header-comment {
display: flex;
justify-content: space-between;
padding-right: 16px;
.comment-right {
display: flex;
justify-content: space-between;
width: 70px;
}
}
.list-block .item-inner {
display: block;
padding: 16px 0;
word-wrap: break-word;
}
.list-reply {
padding-left: 26px;
}
.reply-textarea, .comment-textarea, .edit-reply-textarea {
resize: vertical;
}
.user-name {
font-size: 17px;
line-height: 22px;
color: #000000;
margin: 0;
font-weight: bold;
}
.comment-date, .reply-date {
font-size: 13px;
line-height: 18px;
color: #6d6d72;
margin: 0;
margin-top: 0px;
}
.comment-text, .reply-text {
color: #000000;
font-size: 15px;
line-height: 25px;
margin: 0;
max-width: 100%;
padding-right: 15px;
pre {
white-space: pre-wrap;
}
}
.reply-item {
margin-top: 15px;
padding-right: 16px;
padding-top: 13px;
.header-reply {
display: flex;
justify-content: space-between;
}
.user-name {
padding-top: 3px;
}
&:before {
content: '';
position: absolute;
left: auto;
bottom: 0;
right: auto;
top: 0;
height: 1px;
width: 100%;
background-color: @listBlockBorderColor;
display: block;
z-index: 15;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
}
.comment-quote {
color: @themeColor;
border-left: 1px solid @themeColor;
padding-left: 10px;
padding-right: 16px;
margin: 5px 0;
font-size: 15px;
}
.wrap-comment, .wrap-reply {
padding: 16px 24px 0 16px;
}
.comment-textarea, .reply-textarea, .edit-reply-textarea {
margin-top: 10px;
background:transparent;
outline:none;
width: 100%;
font-size: 17px;
border: none;
border-radius: 3px;
min-height: 100px;
}
}
.settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after {
display: none;
}
.container-edit-comment {
.page {
background-color: #FFFFFF;
}
}
//view comment
.container-view-comment {
position: fixed;
-webkit-transition: height 100ms;
transition: height 120ms;
background-color: #FFFFFF;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
height: 50%;
box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12);
.pages {
background-color: #FFFFFF;
}
.page-view-comments {
background-color: #FFFFFF;
.list-block {
margin-bottom: 100px;
ul:before, ul:after {
content: none;
}
.item-inner {
padding: 0;
}
}
}
.toolbar {
position: fixed;
background-color: #FFFFFF;
box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14);
&:before {
content: none;
}
.toolbar-inner {
display: flex;
justify-content: space-between;
padding: 0 16px;
.button-left {
min-width: 80px;
}
.button-right {
min-width: 62px;
display: flex;
justify-content: space-between;
a {
padding: 0 12px;
}
}
}
}
.swipe-container {
display: flex;
justify-content: center;
height: 40px;
.icon-swipe {
margin-top: 8px;
width: 40px;
height: 4px;
background: rgba(0, 0, 0, 0.12);
border-radius: 2px;
}
}
.list-block {
margin-top: 0;
}
&.popover {
position: absolute;
border-radius: 4px;
min-height: 170px;
height: 400px;
max-height: 600px;
.toolbar {
position: absolute;
border-radius: 0 0 4px 4px;
.toolbar-inner {
padding-right: 0;
}
}
.pages {
position: absolute;
.page {
border-radius: 13px;
.page-content {
padding: 16px;
padding-bottom: 80px;
.list-block {
margin-bottom: 0px;
.item-content {
padding-left: 0;
.header-comment, .reply-item {
padding-right: 0;
}
}
}
.block-reply {
margin-top: 10px;
.reply-textarea {
min-height: 70px;
width: 278px;
border: 1px solid #c4c4c4;
border-radius: 6px;
padding: 5px;
}
}
.edit-reply-textarea {
min-height: 60px;
width: 100%;
border: 1px solid #c4c4c4;
border-radius: 6px;
padding: 5px;
height: 60px;
margin-top: 10px;
}
.comment-text {
padding-right: 0;
.comment-textarea {
border: 1px solid #c4c4c4;
border-radius: 6px;
padding: 8px;
min-height: 80px;
height: 80px;
}
}
}
}
}
}
}
#done-comment {
color: @themeColor;
}
.page-add-comment {
background-color: #FFFFFF;
.wrap-comment, .wrap-reply {
padding: 16px 24px 0 16px;
.header-comment {
justify-content: flex-start;
}
.user-name {
font-weight: bold;
font-size: 17px;
padding-left: 5px;
}
.comment-date {
font-size: 13px;
color: #6d6d72;
padding-left: 5px;
}
.wrap-textarea {
margin-top: 16px;
padding-right: 6px;
.comment-textarea {
font-size: 17px;
border: none;
margin-top: 0;
min-height: 100px;
border-radius: 4px;
width: 100%;
padding-left: 5px;
&::placeholder {
color: @gray;
font-size: 17px;
}
}
}
}
}
.container-add-reply {
height: 100%;
.navbar {
a.link i + span {
margin-left: 0;
}
}
.page {
background-color: #FFFFFF;
}
}
.actions-modal-button.color-red {
color: @red;
}
.page-edit-comment, .page-add-reply, .page-edit-reply {
background-color: #FFFFFF;
.header-comment {
justify-content: flex-start;
}
.navbar {
.right {
height: 100%;
#add-reply, #edit-comment, #edit-reply {
display: flex;
align-items: center;
padding-left: 16px;
padding-right: 16px;
height: 100%;
}
}
}
}
.container-edit-comment {
position: fixed;
}