_preview.scss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .preview {
  2. top: 0;
  3. left: 0;
  4. right: 0;
  5. bottom: 0;
  6. display: flex;
  7. flex-direction: column;
  8. background: mix($color-dark, $color-white, 90%);
  9. color: $color-white;
  10. height: 100vh;
  11. height: 100svh;
  12. }
  13. .preview-navbar {
  14. --navbar-height: 4rem;
  15. padding: 0 1rem;
  16. height: var(--navbar-height);
  17. line-height: var(--navbar-height);
  18. background: $color-white;
  19. position: relative;
  20. display: flex;
  21. justify-content: space-between;
  22. align-items: center;
  23. background: $color-dark;
  24. .icon {
  25. width: 1.5rem;
  26. height: 1.5rem;
  27. }
  28. }
  29. .preview-navbar-link {
  30. height: 2.5rem;
  31. min-width: 2.5rem;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. color: inherit;
  36. background: transparent;
  37. border: 0;
  38. cursor: pointer;
  39. opacity: .64;
  40. transition: $transition-duration opacity;
  41. &:hover,
  42. &.active {
  43. color: inherit;
  44. opacity: 1;
  45. }
  46. }
  47. .preview-navbar-devices {
  48. position: absolute;
  49. left: 50%;
  50. top: 0;
  51. bottom: 0;
  52. transform: translateX(-50%);
  53. display: flex;
  54. align-items: center;
  55. @include media-breakpoint-down(lg) {
  56. display: none;
  57. }
  58. }
  59. .preview-iframe {
  60. display: block;
  61. max-width: 100%;
  62. width: 100%;
  63. flex: 1;
  64. margin: 0 auto;
  65. background: $color-white;
  66. }