You are here

responsive-preview.base.css in Responsive Theme Preview 7

Base styling for responsive preview.

File

css/responsive-preview.base.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. * navbar tab.
  14. */
  15. #navbar-administration .navbar-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 navbar tabs. */
  20. #navbar-administration.navbar-oriented .navbar-bar .navbar-tab-responsive-preview.navbar-tab {
  21. display: block;
  22. float: right; /* LTR */
  23. position: relative;
  24. }
  25. [dir="rtl"] #navbar-administration.navbar-oriented .navbar-bar .navbar-tab-responsive-preview.navbar-tab {
  26. float: left;
  27. }
  28. #navbar-administration .navbar-tab-responsive-preview .responsive-preview-trigger {
  29. display: block;
  30. }
  31. /* Device preview options. */
  32. #navbar-administration .navbar-tab-responsive-preview .item-list {
  33. padding: 0;
  34. margin: 0;
  35. }
  36. #navbar-administration .navbar-tab-responsive-preview .responsive-preview-options {
  37. display: none;
  38. min-width: 10em;
  39. padding: 0;
  40. position: absolute;
  41. white-space: nowrap;
  42. z-index: 1;
  43. }
  44. #navbar-administration .navbar-tab-responsive-preview.open .responsive-preview-options {
  45. display: block;
  46. }
  47. #navbar-administration .navbar-tab-responsive-preview.navbar-tab .responsive-preview-options li {
  48. display: block;
  49. float: none;
  50. position: relative;
  51. }
  52. /**
  53. * Preview container.
  54. *
  55. * The container is kept offscreen after it is built and has been disabled.
  56. */
  57. .responsive-preview {
  58. bottom: 0;
  59. height: 100%;
  60. left: -200%; /* LTR */
  61. position: relative;
  62. top: 0;
  63. width: 100%;
  64. z-index: 500;
  65. }
  66. [dir="rtl"] .responsive-preview {
  67. left: auto;
  68. right: -200%;
  69. }
  70. .responsive-preview.active {
  71. left: 0; /* LTR */
  72. position: fixed;
  73. }
  74. [dir="rtl"] .responsive-preview.active {
  75. left: auto;
  76. right: 0;
  77. }
  78. .responsive-preview-control {
  79. position: absolute;
  80. }
  81. .responsive-preview-modal-background {
  82. bottom: 0;
  83. left: 0;
  84. position: absolute;
  85. right: 0;
  86. top: 0;
  87. z-index: 1;
  88. }
  89. /**
  90. * Preview iframe.
  91. */
  92. .responsive-preview-frame-container {
  93. position: absolute;
  94. z-index: 100;
  95. }
  96. .responsive-preview-frame-container iframe {
  97. display: block;
  98. position: relative;
  99. }
  100. /**
  101. * Scroll container.
  102. */
  103. #responsive-preview-scroll-track {
  104. bottom: 0;
  105. left: 0;
  106. overflow: visible;
  107. position: absolute;
  108. right: 0;
  109. top: 0;
  110. z-index: 1;
  111. }
  112. #responsive-preview-scroll-pane {
  113. min-height: 100%;
  114. position: relative;
  115. width: 100%;
  116. }
  117. /**
  118. * Override navbar styling in the preview iframe.
  119. */
  120. body.navbar-tray-open.responsive-preview-frame {
  121. margin-left: 0 !important;
  122. margin-right: 0 !important;
  123. }
  124. .responsive-preview-frame {
  125. overflow-x: hidden !important;
  126. }
  127. .responsive-preview-frame #navbar-administration {
  128. display: none !important;
  129. }
  130. .responsive-preview-frame .contextual {
  131. display: none !important;
  132. }