You are here

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

Same filename and directory in other branches
  1. 7 css/responsive-preview.theme.css

Styling for responsive preview.

File

css/responsive-preview.theme.css
View source
  1. /**
  2. * @file
  3. * Styling for responsive preview.
  4. */
  5. /**
  6. * Toolbar tab.
  7. */
  8. .toolbar-tab-responsive-preview .responsive-preview-options {
  9. background-color: white;
  10. padding-top: 0.5em;
  11. padding-bottom: 0.5em;
  12. }
  13. /* Device preview options. */
  14. .toolbar-tab-responsive-preview .responsive-preview-options {
  15. box-shadow: 0 0.8em 2.5em -0.8em rgba(0, 0, 0, 0.75);
  16. }
  17. /* [dir] is needed to override Bartik's .item-list li padding */
  18. [dir] .toolbar-tab-responsive-preview .responsive-preview-options li {
  19. margin: 0;
  20. padding: 0;
  21. }
  22. .toolbar-tab-responsive-preview .responsive-preview-trigger {
  23. cursor: pointer;
  24. line-height: 1;
  25. height: 3em;
  26. }
  27. .toolbar-tab-responsive-preview .responsive-preview-trigger:hover {
  28. background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%);
  29. background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%);
  30. background-image: linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%);
  31. }
  32. .toolbar-tab-responsive-preview .responsive-preview-trigger.active,
  33. .toolbar-tab-responsive-preview .responsive-preview-trigger.active:hover {
  34. background-image: -webkit-linear-gradient(top, rgb(78, 159, 234) 0%, rgb(69, 132, 221) 100%);
  35. background-image: -moz-linear-gradient(rgb(78, 159, 234) 0%, rgb(69, 132, 221) 100%);
  36. background-image: linear-gradient(rgb(78, 159, 234) 0%, rgb(69, 132, 221) 100%);
  37. }
  38. .toolbar-tab-responsive-preview .responsive-preview-trigger,
  39. .toolbar-tab-responsive-preview .responsive-preview-options .responsive-preview-device {
  40. padding-bottom: 1em;
  41. padding-top: 1em;
  42. }
  43. .toolbar-tab-responsive-preview .responsive-preview-options .responsive-preview-device {
  44. background: none;
  45. border: none;
  46. cursor: pointer;
  47. font-family: inherit;
  48. font-size: 1em;
  49. padding: 0.5em 1.3333em;
  50. }
  51. .toolbar .toolbar-tab-responsive-preview.toolbar-tab .responsive-preview-options .responsive-preview-device {
  52. color: #0074bd;
  53. text-align: left;
  54. }
  55. .toolbar .toolbar-tab-responsive-preview.toolbar-tab .responsive-preview-options .responsive-preview-device:hover,
  56. .toolbar .toolbar-tab-responsive-preview.toolbar-tab .responsive-preview-options .responsive-preview-device.active {
  57. color: black;
  58. }
  59. .toolbar .toolbar-tab-responsive-preview.toolbar-tab .responsive-preview-options .responsive-preview-device[disabled] {
  60. color: #ccc;
  61. cursor: default;
  62. }
  63. /* Configuration link. */
  64. .toolbar-tab-responsive-preview.toolbar-tab .responsive-preview-configure {
  65. color: #777;
  66. margin-top: 0.5em;
  67. padding: 0.5em 0.6667em;
  68. }
  69. .toolbar-tab-responsive-preview.toolbar-tab .responsive-preview-configure:hover {
  70. color: #000;
  71. }
  72. /* Toolbar tab triangle toggle. */
  73. .toolbar-tab-responsive-preview .responsive-preview-trigger:after {
  74. border-bottom-color: transparent;
  75. border-left-color: transparent;
  76. border-right-color: transparent;
  77. border-style: solid;
  78. border-width: 0.4545em 0.4em 0;
  79. color: #a0a0a0;
  80. content: ' ';
  81. display: block;
  82. height: 0;
  83. line-height: 0;
  84. overflow: hidden;
  85. position: absolute;
  86. right: 1.6667em; /* LTR */
  87. top: 50%;
  88. margin-top: -0.1666em;
  89. width: 0;
  90. z-index: 1;
  91. }
  92. [dir="rtl"] .toolbar-tab-responsive-preview .responsive-preview-trigger:after {
  93. left: 1em;
  94. right: auto;
  95. }
  96. .toolbar-tab-responsive-preview.open:before {
  97. background-color: white;
  98. bottom: 0;
  99. content: ' ';
  100. display: block;
  101. position: absolute;
  102. right: 0; /* LTR */
  103. top: 0;
  104. width: 2em;
  105. z-index: 1;
  106. }
  107. [dir="rtl"] .toolbar-tab-responsive-preview.open:before {
  108. left: 0;
  109. right: auto;
  110. }
  111. .toolbar-tab-responsive-preview.open .responsive-preview-trigger:after {
  112. border-bottom: 0.4545em solid;
  113. border-top-color: transparent;
  114. color: black;
  115. right: 0.7em; /* LTR */
  116. top: 1.25em;
  117. }
  118. [dir="rtl"] .toolbar-tab-responsive-preview.open .responsive-preview-trigger:after {
  119. left: 0.7em;
  120. right: auto;
  121. }
  122. .toolbar-tab-responsive-preview:hover .responsive-preview-trigger:after,
  123. .toolbar-tab-responsive-preview .responsive-preview-trigger.active:after,
  124. .toolbar-tab-responsive-preview:hover .responsive-preview-trigger.active:after {
  125. color: white;
  126. }
  127. .toolbar-tab-responsive-preview.open:hover .responsive-preview-trigger:after {
  128. color: black;
  129. }
  130. /**
  131. * Preview container.
  132. */
  133. .responsive-preview {
  134. opacity: 1;
  135. -moz-transition: opacity 450ms;
  136. -webkit-transition: opacity 450ms;
  137. transition: opacity 450ms;
  138. }
  139. .responsive-preview .responsive-preview-frame-container {
  140. opacity: 0;
  141. -moz-transition: all 250ms;
  142. -webkit-transition: all 250ms;
  143. transition: all 250ms;
  144. }
  145. .responsive-preview.active .responsive-preview-frame-container {
  146. opacity: 1;
  147. }
  148. .responsive-preview-modal-background {
  149. background-color: black;
  150. background-color: rgba(0, 0, 0, 0.92);
  151. background-image: -webkit-linear-gradient(left, rgb(20, 20, 20), rgb(50, 50, 50) 25%, rgb(100, 100, 100) 40%, rgb(100, 100, 100) 60%, rgb(50, 50, 50) 75%, rgb(20, 20, 20));
  152. background-image: -moz-linear-gradient(left, rgb(20, 20, 20), rgb(50, 50, 50) 25%, rgb(100, 100, 100) 40%, rgb(100, 100, 100) 60%, rgb(50, 50, 50) 75%, rgb(20, 20, 20));
  153. background-image: linear-gradient(left, rgb(20, 20, 20), rgb(50, 50, 50) 25%, rgb(100, 100, 100) 40%, rgb(100, 100, 100) 60%, rgb(50, 50, 50) 75%, rgb(20, 20, 20));
  154. }
  155. /**
  156. * Responsive preview control placement.
  157. */
  158. .responsive-preview-control {
  159. cursor: pointer;
  160. height: 40px;
  161. position: absolute;
  162. top: 0;
  163. width: 40px;
  164. }
  165. .responsive-preview-control.responsive-preview-close {
  166. right: 0; /* LTR */
  167. }
  168. [dir="rtl"] .responsive-preview-control.responsive-preview-close {
  169. left: 0;
  170. right: auto;
  171. }
  172. .responsive-preview-control.responsive-preview-orientation {
  173. left: 0; /* LTR */
  174. }
  175. [dir="rtl"] .responsive-preview-control.responsive-preview-orientation {
  176. left: auto;
  177. right: 0;
  178. }
  179. .responsive-preview-device-label {
  180. color: #909090;
  181. cursor: pointer;
  182. font-family: sans-serif;
  183. font-size: 0.9286em;
  184. font-weight: normal;
  185. left: 30px;
  186. line-height: 2.25;
  187. margin: 0;
  188. overflow: hidden;
  189. position: absolute;
  190. right: 30px;
  191. text-align: center;
  192. text-overflow: ellipsis;
  193. top: 0;
  194. white-space: nowrap;
  195. }
  196. .responsive-preview-device-label-text:after {
  197. border-bottom-color: transparent;
  198. border-right-color: transparent;
  199. border-top-color: transparent;
  200. border-style: solid;
  201. border-width: 0.8ex 0 0.8ex 0.9ex;
  202. color: #909090;
  203. content: '';
  204. display: inline-block;
  205. line-height: 0;
  206. margin-left: 0.75ex;
  207. margin-right: 0.75ex;
  208. width: 0;
  209. }
  210. [dir="rtl"] .responsive-preview-device-label-text:after {
  211. border-left-color: transparent;
  212. border-right-color: inherit;
  213. border-width: 0.8ex 0.9ex 0.8ex 0;
  214. }
  215. .responsive-preview-device-label-text:hover:after {
  216. color: inherit;
  217. }
  218. .responsive-preview-expanded .responsive-preview-device-label-text:after {
  219. border-left-color: transparent;
  220. border-right-color: inherit;
  221. border-width: 0.8ex 0.9ex 0.8ex 0;
  222. }
  223. [dir="rtl"] .responsive-preview-expanded .responsive-preview-device-label-text:after {
  224. border-left-color: inherit;
  225. border-right-color: transparent;
  226. border-width: 0.8ex 0 0.8ex 0.9ex;
  227. }
  228. /**
  229. * Responsive preview frame.
  230. */
  231. .responsive-preview-frame-container {
  232. background-color: #212121;
  233. border-radius: 20px;
  234. box-shadow: 0 0 0px 1px #777, 1px 1px 60px 0px #000;
  235. -webkit-transition: left 150ms ease-out;
  236. -moz-transition: left 150ms ease-out;
  237. transition: left 150ms ease-out;
  238. }
  239. .responsive-preview-frame-container iframe {
  240. box-shadow: 0 0 0 1px #808080;
  241. -webkit-transition: all 150ms ease-out;
  242. -moz-transition: all 150ms ease-out;
  243. -o-transition: all 150ms ease-out;
  244. transition: all 150ms ease-out;
  245. }
  246. /**
  247. * Control block styling.
  248. */
  249. .block-responsive-preview-block .content .responsive-preview-device {
  250. background: none;
  251. border: none;
  252. color: inherit;
  253. cursor: pointer;
  254. font: inherit;
  255. line-height: 1;
  256. margin: 0;
  257. padding: 0.25em 0;
  258. }
  259. .block-responsive-preview-block .content .responsive-preview-device[disabled] {
  260. color: #ccc;
  261. cursor: default;
  262. }