You are here

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

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