123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575 |
- .msp-description {
- padding: $control-spacing;
- font-size: 85%;
- background: $default-background;
- text-align: center;
- //font-style: italic;
- -webkit-user-select: none; /* Chrome/Safari */
- -moz-user-select: none; /* Firefox */
- -ms-user-select: none; /* IE10+ */
- /* Rules below not implemented in browsers yet */
- -o-user-select: none;
- user-select: none;
- font-weight: light;
- cursor: default;
- }
- .msp-description:not(:first-child) {
- border-top: 1px solid $control-background;
- }
- .msp-color-picker input {
- color: black !important;
- }
- .msp-no-webgl {
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- display: table;
- text-align: center;
- background: $default-background;
- > div {
- b {
- font-size: 120%;
- }
- display: table-cell;
- vertical-align: middle;
- text-align: center;
- width: 100%;
- height: 100%;
- }
- }
- .msp-loader-msp-btn-file {
- position: relative;
- overflow: hidden;
- }
- .msp-loader-msp-btn-file input[type=file] {
- position: absolute;
- top: 0;
- right: 0;
- min-width: 100%;
- min-height: 100%;
- font-size: 100px;
- text-align: right;
- filter: alpha(opacity=0);
- opacity: 0;
- outline: none;
- background: white;
- cursor: inherit;
- display: block;
- }
- .msp-controls-section {
- margin-bottom: $control-spacing;
- }
- .msp-combined-color-button {
- border: 4px solid $msp-form-control-background !important;
- margin: 0;
- text-align: center;
- padding-right: $control-spacing;
- padding-left: $control-spacing;
- &:hover {
- border-color: color-increase-contrast($msp-form-control-background, 5%) !important;
- border: none;
- outline-offset: -1px !important;
- outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
- }
- }
- .msp-combined-color-swatch {
- width: 100%;
- display: grid;
- grid-gap: 1px;
- grid-template-columns: repeat(6, auto);
- .msp-btn {
- &:hover {
- outline-offset: -1px !important;
- outline: 1px solid color-increase-contrast($msp-form-control-background, 20%) !important;
- }
- }
- }
- .msp-action-select {
- position: relative;
- select {
- padding-left: $control-spacing + $row-height;
- }
- option:first-child {
- color: color-lower-contrast($font-color, 15%);
- }
- > .msp-icon {
- display: block;
- top: 0;
- left: $control-spacing;
- position: absolute;
- line-height: $row-height;
- }
- }
- .msp-simple-help-section {
- height: 28px;
- line-height: 28px;
- margin-top: 5px;
- margin-bottom: 5px;
- padding: 0 10px;
- font-weight: 500;
- background: $default-background;
- color: $font-color;
- }
- .msp-left-panel-controls-buttons {
- position: absolute;
- width: $row-height;
- top: 0;
- bottom: 0;
- padding-top: $control-spacing;
- background: $default-background;
- // .msp-btn-link-toggle-on {
- // border-left: 1px solid $font-color;
- // }
- }
- .msp-left-panel-controls-buttons-bottom {
- position: absolute;
- bottom: 0;
- }
- .msp-left-panel-controls-button-data-dirty {
- position: absolute;
- width: 6px;
- height: 6px;
- background: $color-accent-orange;
- border-radius: 3px;
- right: 6px;
- bottom: 6px;
- }
- .msp-left-panel-controls {
- .msp-scrollable-container {
- left: $row-height + 1px;
- }
- }
- .msp-mapped-parameter-group {
- position: relative;
- > .msp-control-row:first-child {
- > div:nth-child(2) {
- right: 33px;
- }
- }
- > button:first-child {
- right: 33px;
- }
- > .msp-btn-icon {
- position: absolute;
- right: 0;
- width: 32px;
- top: 0;
- padding: 0;
- }
- }
- .msp-shape-filled {
- fill: $font-color;
- stroke: $font-color;
- }
- .msp-shape-empty {
- fill: none;
- stroke: $font-color;
- }
- .msp-no-overflow {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .msp-25-lower-contrast-text {
- color: color-lower-contrast($font-color, 25%);
- }
- .msp-expandable-group-color-stripe {
- position: absolute;
- left: 0;
- top: $row-height - 2px;
- width: $control-label-width + $control-spacing;
- height: 2px;
- }
- .msp-section-header {
- height: $row-height;
- line-height: $row-height;
- margin-top: $control-spacing;
- margin-bottom: $control-spacing;
- text-align: right;
- padding: 0 $control-spacing;
- font-weight: bold;
- background: $default-background;
- overflow: hidden;
- border-bottom: 1px solid $color-accent-orange; // TODO separate color
- cursor: default;
- > .msp-icon {
- display: block;
- float: left;
- }
- > small {
- font-weight: normal;
- }
- }
- .msp-current-header {
- height: $row-height;
- line-height: $row-height;
- margin-bottom: $control-spacing;
- text-align: center;
- font-weight: bold;
- background: $default-background;
- }
- .msp-flex-row {
- margin-top: 1px;
- background: $default-background;
- display:flex;
- flex-direction:row;
- width: inherit;
- height: $row-height;
- > .msp-flex-item {
- margin: 0;
- flex: 1 1 auto;
- margin-right: 1px;
- overflow: hidden;
- }
- > .msp-flex-item:last-child {
- margin-right: 0;
- }
- > select, > button {
- margin: 0;
- flex: 1 1 auto;
- margin-right: 1px;
- height: $row-height;
- // text-align-last: center;
- // padding: 0 $control-spacing;
- overflow: hidden;
- }
- .msp-btn-icon, .msp-btn-icon-small {
- flex: 0 0 32px;
- max-width: 32px;
- }
- > select {
- background: none;
- > option[value = _] {
- display: none;
- }
- }
- > select:last-child, > button:last-child {
- margin-right: 0;
- }
- > button.msp-control-button-label {
- background: $default-background;
- }
- }
- .msp-state-list {
- list-style: none;
- // margin-top: $control-spacing;
- > li {
- position: relative;
- overflow: hidden;
- > button:first-child {
- text-align: left;
- border-left: $control-spacing solid color-increase-contrast($default-background, 12%) !important;
- }
- > div {
- position: absolute;
- right: 0;
- top: 0;
- }
- }
- }
- .msp-tree-row {
- position: relative;
- margin-top: 0;
- margin-bottom: 1px;
- background: transparent;
- &-current {
- .msp-btn-tree-label {
- > span {
- font-weight: bold;
- }
- border-radius: 0 !important;
- }
- }
- .msp-btn-tree-label {
- text-align: left;
- border-radius: 0 0 0 8px;
- border-left-width: 4px;
- border-left-style: solid;
- }
- .msp-btn-tree-label > small {
- color: color-lower-contrast($font-color, 20%);
- }
- }
- .msp-tree-updates-wrapper {
- .msp-control-group-header:last-child {
- margin-bottom: 1px;
- }
- }
- .msp-viewport-top-left-controls {
- position: absolute;
- left: $control-spacing;
- top: $control-spacing;
- .msp-traj-controls {
- line-height: $row-height;
- float: left;
- margin-right: $control-spacing;
- background-color: $msp-form-control-background;
- > span {
- color: $font-color;
- margin-left: $control-spacing;
- margin-right: $control-spacing;
- font-size: 85%;
- display: inline-block;
- }
- }
- .msp-state-snapshot-viewport-controls {
- line-height: $row-height;
- float: left;
- margin-right: $control-spacing;
- > button {
- background-color: $msp-form-control-background;
- }
- > select {
- display: inline-block;
- width: 200px;
- margin-right: $control-spacing;
- }
- }
- .msp-animation-viewport-controls {
- line-height: $row-height;
- float: left;
- margin-right: $control-spacing;
- position: relative;
- > div:first-child {
- position: relative;
- display: inline-block;
- > button {
- position: relative;
- }
- }
- .msp-animation-viewport-controls-select {
- width: 290px;
- position: absolute;
- left: 0;
- margin-top: $control-spacing;
- background: $control-background;
- .msp-control-row:first-child {
- margin-top: 0;
- }
- }
- }
- }
- .msp-selection-viewport-controls {
- position: relative;
- // display: inline-block;
- margin: $control-spacing auto 0 auto;
- width: 332px;
- line-height: $row-height;
- &-actions {
- position: absolute;
- width: 100%;
- top: $row-height;
- background: $control-background;
- }
- > .msp-flex-row .msp-btn {
- padding: 0 5px;
- }
- select.msp-form-control {
- padding: 0 5px;
- text-align: center;
- background: none;
- flex: 0 0 80px;
- text-overflow: ellipsis;
- }
- }
- .msp-param-object-list-item {
- margin-top: 1px;
- position: relative;
- > button {
- text-align: left;
- > span {
- font-weight: bold;
- }
- }
- > div {
- position: absolute;
- right: 0;
- top: 0
- }
- }
- .msp-state-actions {
- .msp-transform-wrapper:last-child {
- margin-bottom: 10px;
- }
- }
- .msp-button-row {
- display:flex;
- flex-direction:row;
- height: $row-height;
- width: inherit;
- > button {
- margin: 0;
- flex: 1 1 auto;
- margin-right: 1px;
- height: $row-height;
- text-align-last: center;
- background: none;
- padding: 0 $control-spacing;
- overflow: hidden;
- }
- }
- .msp-action-menu-options {
- &-no-header, .msp-control-group-children {
- max-height: 300px;
- overflow: hidden;
- overflow-y: auto;
- }
- .msp-control-row, button, .msp-icon, .msp-flex-row {
- height: 24px;
- line-height: 24px;
- }
- button {
- text-align: left;
- }
- .msp-action-menu-button {
- margin-top: 1px;
- display: flex;
- .msp-icon {
- margin-right: 6px;
- }
- }
- }
- .msp-representation-entry {
- position: relative;
- > .msp-control-group-header {
- > .msp-btn {
- font-weight: bold;
- }
- > .msp-icon, > .msp-btn-link {
- line-height: 24px;
- height: 24px;
- }
- }
- }
- .msp-parameter-matrix {
- input {
- flex: 1 1 auto;
- min-width: 0;
- }
- }
- @mixin type-class-border($name, $color) {
- .msp-type-class-#{$name} {
- border-left-color: $color;
- }
- }
- // TypeClass = 'Root' | 'Group' | 'Data' | 'Object' | 'Representation3D' | 'Behavior'
- @include type-class-border('Root', $type-class-Root);
- @include type-class-border('Group', $type-class-Group);
- @include type-class-border('Data', $type-class-Data);
- @include type-class-border('Object', $type-class-Object);
- @include type-class-border('Representation3D', $type-class-Representation3D);
- @include type-class-border('Behavior', $type-class-Behavior);
- @mixin accent($name, $color) {
- .msp-accent-color-#{$name} {
- color: $color;
- }
- .msp-accent-bg-#{$name} {
- background: $color;
- }
- .msp-transform-header-brand-#{$name} {
- border-bottom: 1px solid $color;
- &:active, &:focus {
- border-bottom: 1px solid $color;
- }
- }
- }
- @include accent('cyan', $color-accent-cyan);
- @include accent('red', $color-accent-red);
- @include accent('gray', $color-accent-gray);
- @include accent('green', $color-accent-green);
- @include accent('purple', $color-accent-purple);
- @include accent('blue', $color-accent-blue);
- @include accent('orange', $color-accent-orange);
|