viewport.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .msp-viewport {
  2. position: absolute;
  3. left: 0;
  4. top: 0;
  5. right: 0;
  6. bottom: 0;
  7. background: black;
  8. .msp-btn-link {
  9. background: rgba(0,0,0,0.2);
  10. }
  11. }
  12. .msp-viewport-expanded {
  13. position: fixed;
  14. z-index: 1000;
  15. }
  16. .msp-viewport-host3d {
  17. position: absolute;
  18. left: 0;
  19. top: 0;
  20. right: 0;
  21. bottom: 0;
  22. -webkit-user-select: none;
  23. -webkit-tap-highlight-color: rgba(0,0,0,0);
  24. -webkit-touch-callout: none;
  25. touch-action: manipulation;
  26. > canvas {
  27. background-color: $default-background;
  28. background-image: linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey),
  29. linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%, lightgrey);
  30. background-size: 60px 60px;
  31. background-position: 0 0, 30px 30px;
  32. }
  33. }
  34. .msp-viewport-controls {
  35. position: absolute;
  36. right: $control-spacing;
  37. top: $control-spacing;
  38. width: 32px;
  39. }
  40. .msp-viewport-controls-buttons {
  41. text-align: right;
  42. position: relative;
  43. > button {
  44. padding: 0;
  45. text-align: center;
  46. width: $row-height;
  47. position: relative;
  48. }
  49. .msp-btn-link-toggle-off {
  50. color: $msp-btn-link-toggle-off-font-color;
  51. }
  52. .msp-btn-link:hover {
  53. color: $hover-font-color;
  54. }
  55. }
  56. .msp-semi-transparent-background {
  57. background: $default-background;
  58. opacity: 0.5;
  59. position: absolute;
  60. top: 0;
  61. left: 0;
  62. width: 100%;
  63. height: 100%;
  64. }
  65. .msp-viewport-controls-panel {
  66. overflow-y: auto;
  67. max-height: 400px;
  68. width: 290px;
  69. top: 0;
  70. right: $row-height + 1px;
  71. position: absolute;
  72. background: $control-background;
  73. .msp-control-group-wrapper:first-child {
  74. padding-top: 0;
  75. }
  76. }
  77. /* highlight & toasts */
  78. .msp-highlight-toast-wrapper {
  79. position: absolute;
  80. right: $control-spacing;
  81. bottom: $control-spacing;
  82. max-width: 95%;
  83. z-index: 10000;
  84. }
  85. .msp-highlight-info {
  86. color: $highlight-info-font-color;
  87. padding: $info-vertical-padding $control-spacing;
  88. background: $default-background; //$highlight-info-background;
  89. min-height: $row-height;
  90. text-align: right;
  91. @include non-selectable;
  92. }
  93. .msp-highlight-info-additional {
  94. font-size: 85%;
  95. display: inline-block;
  96. color: $highlight-info-additional-font-color;
  97. }