// 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/ // scss-lint:disable SelectorDepth // scss-lint:disable NestingDepth // scss-lint:disable SelectorFormat // scss-lint:disable ImportantRule @import "constants"; @import "mixins"; #new_step, .panel-step-attachment { ul { list-style: none; li { > div > span.pull-left { margin-top: 10px; } } } .checklist-name-container, .table-name-container { align-items: center; display: flex; .remove-container { padding-top: 10px; } } } #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; } } .step-panel-collapse-link { padding-left: 5px; &:not(.collapsed) .fas { @include rotate(90deg); } } .step-heading { align-items: center; border: 0; display: flex; min-height: 46px; padding-bottom: 0; padding-top: 0; .panel-options { bottom: 0; flex-grow: 1; flex-shrink: 0; line-height: 46px; text-align: right; } span.step-number { font-size: 16px; font-weight: bold; margin: 0 5px 0 10px; min-width: fit-content; } .left-floats { align-items: center; display: flex; max-width: 100%; min-height: inherit; overflow: hidden; padding-right: 15px; .step-name-link { display: flex; flex-shrink: 1; overflow: hidden; .name-block { display: flex; flex-shrink: 1; height: 100%; overflow: hidden; @media (max-width: 1188px) { min-width: 100px; } strong { font-size: 16px; white-space: nowrap; } } .delimiter { padding: 0 5px; } .author-block { display: inline-block; flex-shrink: 0; font-size: 16px; overflow: hidden; white-space: nowrap; } } } } } .attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); .pseudo-attachment-container { display: flex; justify-content: center; overflow: hidden; .file-preview-link { position: relative; } &.new { order: 0 !important; .file-preview-link { transition: .5s; } .attachment-placeholder { border: 1px solid $brand-primary; &::before { background: $brand-primary; border-radius: 0 5px; bottom: 16px; color: $color-white; content: "NEW"; left: 8px; line-height: 20px; position: absolute; width: 50px; } } } } } .attachment-placeholder { @include md-card-style; color: $color-silver-chalice; height: 280px; margin: 4px 8px 16px; text-align: center; width: 220px; a { color: inherit; } &.new { background-color: rgba(95, 95, 95, .1); } .attachment-thumbnail { display: inline-block; height: 160px; margin: 16px 0 5px; overflow: hidden; padding: 0 10px; position: relative; text-align: center; width: 100%; img { border-radius: 5px; max-height: 100%; max-width: 100%; } &.marvinjs { &::before, &::after { content: ""; border-radius: 16px 0 0 16px; display: block; height: 32px; right: 0; line-height: 32px; position: absolute; bottom: 10px; width: 36px; } &::before { background: $marvinjs-color; } &::after { background-image: url("/images/icon_small/marvinjs-white.svg"); right: 4px; width: 32px; } } i.fas { font-size: 100px; line-height: 160px; } } .no-shadow { box-shadow: none; } .attachment-label { background: $color-white; color: $brand-primary; font-family: Lato; font-size: 16px; height: 40px; line-height: 18px; margin: 0 auto; overflow: hidden; position: relative; text-align: center; top: 20px; transition: $md-transaction; width: 190px; z-index: 2; } .spencer-bonnet-modif { align-items: center; color: $color-silver-chalice; display: flex; font-family: Lato; font-size: 12px; height: 40px; justify-content: center; line-height: 15px; margin: 0 auto 5px; position: relative; text-align: center; top: -20px; transition: $md-transaction; width: 149px; } .remove-icon { bottom: 15px; cursor: pointer; display: none; position: relative; right: 10px; } &:hover { box-shadow: $md-shadow; .remove-icon { display: inline-block; } .attachment-label { top: 0; } .spencer-bonnet-modif { top: 0; } } &.new { background-color: rgba(95, 95, 95, .1); .attachment-label { background-color: transparent; } .dnd-error { bottom: 15px; float: left; padding-left: 5px; position: relative; } &:hover { .attachment-label { top: 20px; } } } } .attachments-order { display: inline-block; } .attachments-actions { align-items: center; display: flex; flex-wrap: wrap; .title { flex-grow: 1; flex-shrink: 0; } .attachments-order { color: $color-silver-chalice; min-width: 140px; } .btn-default { border: 0; color: inherit; margin-left: 10px; &:hover { background: inherit; } } } .step .textarea-sm { border-radius: 0; } .comments-title { color: $color-emperor; } .expand-all-steps { margin: 0 0 15px 15px; }