You are here

responsive-preview.module.css in Responsive Theme Preview 8

Base styling for responsive preview.

File

css/responsive-preview.module.css
View source
  1. /**
  2. * @file
  3. * Base styling for responsive preview.
  4. */
  5. /**
  6. * Constrain the window height to the client height when the preview is active.
  7. */
  8. .responsive-preview-active {
  9. height: 100%;
  10. overflow: hidden;
  11. }
  12. /**
  13. * Toolbar tab.
  14. */
  15. .toolbar-tab-responsive-preview {
  16. display: none;
  17. }
  18. /* At narrow screen widths, float the tab to the left so it falls in line with
  19. * the rest of the toolbar tabs. */
  20. .toolbar .toolbar-bar .toolbar-tab-responsive-preview.toolbar-tab {
  21. display: block;
  22. float: right; /* LTR */
  23. position: relative;
  24. }
  25. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab-responsive-preview.toolbar-tab {
  26. float: left;
  27. }
  28. .toolbar-tab-responsive-preview .responsive-preview-trigger {
  29. display: block;
  30. }
  31. /* Device preview options. */
  32. .toolbar-tab-responsive-preview .responsive-preview-item-list {
  33. display: none;
  34. position: absolute;
  35. white-space: nowrap;
  36. z-index: 512;
  37. }
  38. .toolbar-tab-responsive-preview.open .responsive-preview-item-list {
  39. display: block;
  40. }
  41. .toolbar-tab-responsive-preview.toolbar-tab .responsive-preview-options li {
  42. float: none;
  43. position: relative;
  44. }
  45. /**
  46. * Preview container.
  47. *
  48. * The container is kept offscreen after it is built and has been disabled.
  49. */
  50. .responsive-preview {
  51. bottom: 0;
  52. height: 100%;
  53. left: -200%; /* LTR */
  54. position: relative;
  55. top: 0;
  56. width: 100%;
  57. z-index: 500;
  58. }
  59. [dir="rtl"] .responsive-preview {
  60. left: auto;
  61. right: -200%;
  62. }
  63. .responsive-preview.active {
  64. left: 0; /* LTR */
  65. position: fixed;
  66. }
  67. [dir="rtl"] .responsive-preview.active {
  68. left: auto;
  69. right: 0;
  70. }
  71. .responsive-preview-control {
  72. position: absolute;
  73. }
  74. .responsive-preview-modal-background {
  75. bottom: 0;
  76. left: 0;
  77. position: absolute;
  78. right: 0;
  79. top: 0;
  80. z-index: 1;
  81. }
  82. /**
  83. * Preview iframe.
  84. */
  85. .responsive-preview-frame-container {
  86. position: absolute;
  87. z-index: 100;
  88. }
  89. .responsive-preview-frame-container iframe {
  90. display: block;
  91. position: relative;
  92. }
  93. /**
  94. * Scroll container.
  95. */
  96. #responsive-preview-scroll-track {
  97. bottom: 0;
  98. left: 0;
  99. overflow: visible;
  100. position: absolute;
  101. right: 0;
  102. top: 0;
  103. z-index: 1;
  104. }
  105. #responsive-preview-scroll-pane {
  106. min-height: 100%;
  107. position: relative;
  108. width: 100%;
  109. }
  110. /**
  111. * Override Toolbar styling in the preview iframe.
  112. */
  113. body.toolbar-tray-open.responsive-preview-frame {
  114. padding-top: 0 !important;
  115. margin-left: 0 !important;
  116. margin-right: 0 !important;
  117. }
  118. .responsive-preview-frame {
  119. background-color: white;
  120. overflow-x: hidden !important;
  121. }
  122. /* Fix for Gin's sidebar navigation */
  123. .responsive-preview-frame.gin--vertical-toolbar.toolbar-fixed {
  124. padding-left: 0;
  125. }
  126. .responsive-preview-frame #toolbar-administration {
  127. display: none !important;
  128. }
  129. .responsive-preview-frame .node-preview-container {
  130. display: none !important;
  131. }
  132. .responsive-preview-frame .contextual {
  133. display: none !important;
  134. }
  135. /**
  136. * Hide contextual toolbar tab when preview is active.
  137. */
  138. .responsive-preview-active .contextual-toolbar-tab {
  139. display: none !important;
  140. }