scinote-web/app/assets/stylesheets/steps.scss

415 lines
6.6 KiB
SCSS
Raw Normal View History

2016-02-12 23:52:43 +08:00
// Place all the styles related to the Steps controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
2019-04-25 17:14:55 +08:00
// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
// scss-lint:disable SelectorFormat
// scss-lint:disable ImportantRule
@import "constants";
2019-04-26 21:20:39 +08:00
@import "mixins";
2016-02-12 23:52:43 +08:00
#new_step,
.panel-step-attachment {
ul {
list-style: none;
li {
& > div > span.pull-left {
margin-top: 10px;
2016-02-12 23:52:43 +08:00
}
}
}
}
2018-05-30 19:58:16 +08:00
#steps {
// hack only for firefox
@-moz-document url-prefix() {
ul > li {
padding-top: 1px;
a > p:first-child {
margin-top: -17px;
}
}
}
.step {
.panel {
margin-left: 0;
}
}
.complete-step-btn {
display: inline-block;
line-height: 39px;
button {
display: block;
font-size: 12px;
margin: auto 0;
padding: 3px 10px;
span {
font-size: 15px;
}
}
}
.panel-heading {
2019-04-09 18:28:42 +08:00
height: 39px;
padding-bottom: 0;
padding-top: 0;
> * {
display: inline-block;
line-height: 39px;
}
.panel-options {
bottom: 0;
}
span.step-number {
font-size: 30px;
margin: 0 10px;
}
.left-floats {
align-items: center;
display: flex;
height: 39px;
.step-name-link {
display: flex;
flex-shrink: 1;
overflow: hidden;
.name-block {
display: inline-block;
height: 39px;
max-width: calc(100% - 300px);
overflow: hidden;
strong {
white-space: nowrap;
}
}
.delimiter {
padding: 0 5px;
}
.author-block {
overflow: hidden;
padding-right: 10px;
white-space: nowrap;
width: 300px;
}
}
}
}
2018-05-30 19:58:16 +08:00
}
2019-04-09 18:28:42 +08:00
.attacments {
2019-04-26 21:20:39 +08:00
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
.pseudo-attachment-container {
display: flex;
justify-content: center;
}
}
.attachment-placeholder {
2019-04-26 21:20:39 +08:00
@include md-card-style;
color: $color-silver-chalice;
2019-04-26 21:20:39 +08:00
height: 280px;
margin: 8px;
text-align: center;
width: 220px;
a {
color: inherit;
}
2019-04-09 18:28:42 +08:00
&.new {
2019-04-25 17:14:55 +08:00
background-color: rgba(95, 95, 95, .1);
2019-04-09 18:28:42 +08:00
}
&:hover {
2019-04-26 21:20:39 +08:00
box-shadow: $md-shadow-hover;
.remove-icon {
display: inline-block;
}
}
.attachment-thumbnail {
2019-04-26 21:20:39 +08:00
display: inline-block;
2019-04-09 18:28:42 +08:00
height: 160px;
2019-04-26 21:20:39 +08:00
margin: 16px 10px 5px;
overflow: hidden;
2019-04-09 18:28:42 +08:00
text-align: center;
img {
2019-04-26 21:20:39 +08:00
border-radius: 5px;
max-height: 100%;
2019-04-26 21:20:39 +08:00
max-width: 100%;
}
2019-04-25 17:14:55 +08:00
i.fas {
font-size: 100px;
line-height: 160px;
}
}
.no-shadow {
2019-04-25 17:14:55 +08:00
box-shadow: 0 0 0 0 rgba(0, 0, 0, .15);
}
.attachment-label {
2019-04-25 17:14:55 +08:00
color: #40a1d7;
font-family: Lato;
font-size: 16px;
2019-04-09 18:28:42 +08:00
height: 39px;
line-height: 18px;
margin: 0 auto;
overflow: hidden;
2019-04-09 18:28:42 +08:00
text-align: center;
width: 190px;
}
.spencer-bonnet-modif {
color: $color-silver-chalice;
font-family: Lato;
font-size: 12px;
2019-04-09 18:28:42 +08:00
height: 45px;
line-height: 15px;
margin: 0 auto;
2019-04-09 18:28:42 +08:00
text-align: center;
width: 149px;
}
.remove-icon {
2019-04-26 21:20:39 +08:00
bottom: 15px;
display: none;
2019-04-09 18:28:42 +08:00
position: relative;
right: 10px;
}
}
2019-04-09 18:28:42 +08:00
.attachments-order {
display: inline-block;
}
2019-04-09 18:28:42 +08:00
.attachments-actions {
color: $color-silver-chalice;
2019-04-09 18:28:42 +08:00
.drag_n_drop_label {
font-size: 14px;
line-height: 32px;
}
2019-04-09 18:28:42 +08:00
.btn-default {
border: 0;
color: inherit;
2019-04-09 18:28:42 +08:00
margin-left: 10px;
2019-04-09 18:28:42 +08:00
&:hover {
background: inherit;
}
}
}
.step .textarea-sm {
border-radius: 0;
}
.comments-title {
color: $color-emperor;
}
2019-04-25 17:14:55 +08:00
// Comment item
.comment-container {
display: flex;
padding: 5px 0 5px 5px;
2019-04-25 17:14:55 +08:00
.avatar-placehodler {
height: 30px;
width: 30px;
2019-04-25 17:14:55 +08:00
img {
border-radius: 30px;
position: relative;
top: 7px;
}
}
2019-04-25 17:14:55 +08:00
.content-placeholder {
padding-left: 10px;
width: calc(100% - 30px);
.comment-name {
color: $color-silver-chalice;
float: left;
font-size: 16px;
line-height: 30px;
padding-left: 5px;
width: 50%;
}
.comment-message {
2019-04-25 17:14:55 +08:00
float: left;
width: 100%;
textarea {
border: 1px solid $color-silver;
border-radius: $border-radius-small;
height: 22px;
line-height: 16px;
overflow: hidden;
padding: 2px 5px;
width: 100%;
2019-04-26 20:15:46 +08:00
pointer-events: none;
2019-04-25 17:14:55 +08:00
&:focus {
outline: 0;
}
2019-04-25 17:14:55 +08:00
&:disabled {
background: transparent;
border: 1px solid transparent;
user-select: none;
}
}
}
2019-04-25 17:14:55 +08:00
.error-block {
color: $brand-danger;
display: none;
float: left;
}
2019-04-25 17:14:55 +08:00
.comment-right {
color: $color-silver-chalice;
float: right;
height: 30px;
line-height: 30px;
overflow: hidden;
position: relative;
transition: .3s;
width: 120px;
.comment-datetime {
float: left;
font-size: 12px;
line-height: 30px;
width: 120px;
}
2019-04-25 17:14:55 +08:00
.comment-actions {
left: 120px;
position: absolute;
width: 100px;
.view-buttons,
.edit-buttons {
display: none;
font-size: 16px;
* {
cursor: pointer;
}
.edit-button,
.save-button {
display: inline-block;
width: 80px;
}
.delete-button,
.cancel-button {
float: right;
padding-right: 5px;
width: 20px;
}
a {
color: inherit;
}
span {
.fas {
margin-right: 5px;
}
}
}
}
}
}
2019-04-25 17:14:55 +08:00
&[data-edit-mode="0"]:hover,
&[data-edit-mode="1"] {
.comment-right {
width: 220px;
}
2019-04-25 17:14:55 +08:00
textarea:disabled {
border: 1px solid $color-gainsboro;
cursor: pointer;
}
}
2019-04-25 17:14:55 +08:00
&[data-edit-mode="0"]:hover {
cursor: pointer;
2019-04-25 17:14:55 +08:00
.comment-actions {
2019-04-25 17:14:55 +08:00
.view-buttons {
display: inline;
}
}
}
2019-04-25 17:14:55 +08:00
&[data-edit-mode="1"] {
2019-04-25 17:14:55 +08:00
.comment-actions {
2019-04-25 17:14:55 +08:00
.edit-buttons {
display: inline !important;
}
}
}
2019-04-25 17:14:55 +08:00
&[data-error="true"] {
2019-04-25 17:14:55 +08:00
.error-block {
display: block;
}
}
}
.step-comments {
overflow: auto;
}
.new-comment-button {
cursor: pointer;
font-size: 18px;
left: calc(100% - 29px);
position: relative;
top: -41px;
&.has-error {
top: -64px;
}
}
.new-message-continer {
float: left;
margin-top: 20px;
width: 100%;
}