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

334 lines
4.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/
@import "constants";
2016-02-12 23:52:43 +08:00
#new_step,
.panel-step-attachment {
ul {
list-style: none;
li {
margin-bottom: 10px;
& > 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 {
background-color: $color-silver;
border-bottom-width: 0 !important;
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 {
float: left;
> * {
float: left;
}
}
}
2018-05-30 19:58:16 +08:00
}
2019-04-09 18:28:42 +08:00
.attacments {
display: flex;
flex-wrap: wrap;
2019-04-23 19:35:10 +08:00
justify-content: space-evenly;
}
.attachment-placeholder {
background-color: $color-white;
2019-04-09 18:28:42 +08:00
border-radius: 5px;
color: $color-silver-chalice;
2019-04-09 18:28:42 +08:00
height: 277px;
margin: 3px;
width: 216px;
a {
color: inherit;
}
2019-04-09 18:28:42 +08:00
&.new {
background-color: rgba(95, 95, 95, 0.1);
}
&:hover {
box-shadow: 0 1px 5px 0 rgba(0,0,0,0.18);
}
.attachment-thumbnail {
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.15);
2019-04-09 18:28:42 +08:00
height: 160px;
margin: 16px auto 5px auto;
overflow: hidden;
2019-04-09 18:28:42 +08:00
text-align: center;
width: 113px;
img {
max-height: 100%;
}
2019-04-09 18:28:42 +08:00
i.fas {
font-size: 100px;
line-height: 160px;
}
}
.no-shadow {
box-shadow: 0 0 0 0 rgba(0,0,0,0.15);
}
.attachment-label {
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 {
bottom: 10px;
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;
}
.comment-container {
display: flex;
padding: 5px 0 5px 5px;
&:hover {
background-color: $brand-primary-light;
.comment-actions {
display: inline;
a {
color: $color-silver-chalice;
&:hover {
text-decoration: none;
}
}
a:active {
color: $color-dove-gray;
}
}
}
&.edit {
.comment-textarea {
display: block;
}
.comment-message {
display: none;
}
.edit-actions {
display: none;
}
.editing-actions {
display: inline-block;
}
}
.comment-textarea {
display: none;
}
.comment-message {
display: block;
}
.edit-actions {
display: inline-block;
}
.editing-actions {
display: none;
}
}
.avatar-placehodler {
height: 30px;
width: 30px;
img {
border-radius: 30px;
position: relative;
top: 7px;
}
}
.content-placeholder {
flex-grow: 1;
.row-content {
margin-left: -25px;
}
}
.comment-right {
line-height: 16px;
}
.comment-datetime {
font-size: 12px;
}
.comment-name {
color: $color-silver-chalice;
font-size: 16px;
p {
margin-bottom: 3px;
}
}
.comment-message {
font-size: 14px;
line-height: 17px;
margin-top: -4px;
padding-left: 10px;
}
.comment-actions {
display: none;
font-size: 16px;
margin-right: 20px;
.action-icon-delete {
margin-left: 20px;
}
.edit-label {
font-size: 14px;
margin-left: 3px;
}
}
.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%;
}