@import "../../colors"; @import "../../frameless"; /* stage size constants */ $player-width: 482px; $player-height: 406px; $stage-width: 480px; $small: "screen and (max-width : #{$mobile}-1)"; $medium-and-small: "screen and (max-width : #{$tablet}-1)"; /* override view padding for share banner */ #view { padding: 0; } .gui { position: absolute; top: 0; z-index: 11; margin: 0; width: 100%; height: 100%; } .preview { .project-title { font-size: 1.75rem; font-weight: 500; &.has-error { .validation-message { right: 0; } } &.no-edit { /* titles of projects you don't own should not show the full title if this is too long */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } .project-header { margin-right: 2rem; min-width: 0; flex-grow: 1; justify-content: flex-start; align-items: flex-start; flex-wrap: nowrap; .inplace-input { height: calc(3rem - 4px); } } img { &.avatar { border: 0; border-radius: 5px; width: 3rem; height: 3rem; &.remix { margin-right: .5em; width: 2rem; height: 2rem; } } } .title { margin-left: 1rem; min-width: 0; text-align: left; font-size: .8rem; flex-grow: 1; } .validation-message { $arrow-border-width: 1rem; display: block; position: absolute; z-index: 1; margin-top: $arrow-border-width; border: 1px solid $active-gray; border-radius: 5px; background-color: $ui-orange; padding: 1rem; max-width: 18.75rem; min-height: 1rem; overflow: visible; color: $type-white; font-size: 1rem; @media #{$medium-and-small} { margin-top: calc($arrow-border-width / 2); width: 100%; } &:before { display: block; position: absolute; top: -.5rem; left: calc(50% - calc(#{$arrow-border-width} / 2)); transform: rotate(135deg); border-bottom: 1px solid $active-gray; border-left: 1px solid $active-gray; border-radius: 5px; background-color: $ui-orange; width: $arrow-border-width; height: $arrow-border-width; content: ""; @media #{$medium-and-small} { display: none; } } } .row { &.has-error { .inplace-input, .inplace-textarea { border: 1px solid $ui-orange; } } .col-sm-9 { position: relative; } } .project-buttons { flex-shrink: 0; } .button { margin-left: 1rem; } .comments-container { padding-right: 1.5rem; min-width: 65%; max-width: 100%; flex: 1; @media #{$medium-and-small} { padding: 0; width: 100%; } .comment, .comment-top-row, .comment-bottom-row { flex-direction: row; } .comment-bubble { text-align: left; } } .remix-button, .see-inside-button { margin-top: 0; font-size: .875rem; font-weight: normal; &:before { display: inline-block; margin-right: .5rem; background-repeat: no-repeat; background-position: center center; background-size: contain; width: 1.25rem; height: 1.25rem; vertical-align: middle; content: ""; } } .remix-button { background-color: $ui-aqua; &:before { background-image: url("/svgs/project/remix-white.svg"); } } .see-inside-button { &:before { background-image: url("/svgs/project/see-inside-white.svg"); } } .preview-row { margin-top: 1rem; justify-content: space-between; align-items: flex-start; flex-wrap: nowrap; &.wrap-to-col { @media #{$medium-and-small} { width: 100%; flex-wrap: wrap-reverse; flex-direction: column; justify-content: center; } } } .guiPlayer { display: inline-block; width: $player-width; @media #{$small} { width: 100%; .stage-wrapper { max-width: 100%; } } } .force-center { @media #{$medium-and-small} { align-self: center; } } .project-notes { margin-left: 1rem; height: $player-height; align-items: flex-start; flex: 1; flex-flow: column; @media #{$medium-and-small} { margin-top: 1rem; margin-left: 0; width: 100%; } > .description-block:first-child { margin-top: 1rem; } } .remix-credit { margin-bottom: 1rem; border: 1px solid $ui-blue-10percent; border-radius: 8px; background-color: $ui-blue-10percent; padding: .5rem; width: calc(100% - 1rem); flex-wrap: nowrap; align-items: center; } .credit-text { font-size: .875rem; flex-shrink: 1; } .description-block { display: flex; width: 100%; min-height: 0; flex-direction: column; align-items: flex-start; flex: 1; } .project-textlabel { margin: 0 0 .5rem 0; font-size: 1rem; font-weight: bold; } .project-description { margin-bottom: .75rem; border: 1px solid $ui-blue-10percent; border-radius: 8px; background-color: $ui-blue-10percent; padding: .5rem; width: calc(100% - (1rem + 2px)); overflow: auto; white-space: pre-line; font-size: 1rem; // flex-grow flex: 1; } .project-description.last { margin-bottom: 0; } .project-description-edit { display: flex; margin-bottom: .75rem; border: 1px solid $ui-blue-10percent; border-radius: 8px; background-color: $ui-blue-10percent; padding: .5rem; width: 100%; white-space: pre-line; // flex-grow flex: 1; &.last { margin-bottom: 0; } &.textarea-row { border: 0; background-color: inherit; padding: 0; } &.has-error { .validation-message { transform: translate(26rem, 0); } } & > .grow { display: flex; flex: 1; } } .comments-header { padding: 0 0 1rem 0; justify-content: space-between; h4 { font-size: 1.25rem; } } .project-lower-container { margin-top: 1rem; background-color: $ui-blue-10percent; padding: 1rem 0; min-height: 12rem; } .create-comment { margin-bottom: 2rem; } .load-more-button { margin-left: 0; width: 100%; } .extension-list { justify-content: flex-start; flex-direction: row; @media #{$medium-and-small} { justify-content: center; } } .remix-list, .studio-list { flex-direction: column; .list-title { margin-left: 1rem; font-size: 1.2rem; font-weight: bold; align-self: flex-start; } .creator-image img { max-width: 2rem; max-height: 2rem; } .thumbnail-column { display: inline-block; width: 100%; /* TODO: the following can be transferred to src/components/thumbnailcolumn/thumbnailcolumn.scss after testing */ @media #{$medium-and-small} { flex-direction: row; .thumbnail { display: inline-block; } } } @media #{$medium-and-small} { margin-top: 1rem; } } }