desktop-app.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. /* MOD Desktop ("desktop-app") specific styles.
  2. *
  3. * Linked by index.html only when mod-ui runs as MOD Desktop, and applied only
  4. * once DesktopApp.setup() has put the `desktop-app` class on <body>. Every
  5. * rule that touches shared markup is scoped under .desktop-app anyway, so a
  6. * stray load on a device would change nothing.
  7. */
  8. /* ------------------------------------------------------------------ *
  9. * main menu: device-only features keep their icon, greyed out
  10. *
  11. * Plugin Store, Banks and File Manager. The icon still answers a click --
  12. * with the overlay below, not with the feature's window -- so it keeps its
  13. * hover, just dimmed and drained of colour.
  14. * ------------------------------------------------------------------ */
  15. .desktop-app #main-menu .desktop-app-greyed {
  16. opacity: 0.35;
  17. filter: grayscale(1);
  18. }
  19. /* ------------------------------------------------------------------ *
  20. * "exclusive feature" widget
  21. *
  22. * A full-bleed product shot fading into a dark card. The photos are shot on
  23. * black, so the fade to the card background hides the image edge entirely --
  24. * no white box floating on a dark screen. Everything is centred on one
  25. * column: eyebrow, feature, one sentence, one button.
  26. * ------------------------------------------------------------------ */
  27. .desktop-app-exclusive-panel {
  28. position: absolute;
  29. top: 0;
  30. right: 0;
  31. bottom: 0;
  32. left: 0;
  33. display: flex;
  34. /* Top-aligned, not centred: these boxes run the full height of the window,
  35. * and a card floating in the dead middle of one reads as unplaced. */
  36. align-items: flex-start;
  37. justify-content: center;
  38. box-sizing: border-box;
  39. padding: 90px 24px 30px;
  40. color: #b4b4b4;
  41. }
  42. .desktop-app-exclusive-card {
  43. width: 100%;
  44. max-width: 700px;
  45. overflow: hidden;
  46. border: 1px solid rgba(255, 255, 255, 0.09);
  47. border-radius: 6px;
  48. background: #0c0c0c;
  49. box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  50. text-align: center;
  51. }
  52. .desktop-app-exclusive-image {
  53. position: relative;
  54. background: #000;
  55. }
  56. .desktop-app-exclusive-image img {
  57. display: block;
  58. width: 100%;
  59. height: 250px;
  60. object-fit: cover;
  61. object-position: center 42%;
  62. }
  63. /* Melts the bottom of the photo into the card. */
  64. .desktop-app-exclusive-image:after {
  65. content: '';
  66. position: absolute;
  67. right: 0;
  68. bottom: 0;
  69. left: 0;
  70. height: 70%;
  71. background: linear-gradient(to bottom, rgba(12, 12, 12, 0) 0%, rgba(12, 12, 12, 0.85) 55%, #0c0c0c 100%);
  72. }
  73. .desktop-app-exclusive-text {
  74. position: relative;
  75. padding: 0 46px 42px;
  76. margin-top: -26px;
  77. }
  78. .desktop-app-exclusive-eyebrow {
  79. display: block;
  80. margin-bottom: 10px;
  81. color: #a86fb8;
  82. font-size: 11px;
  83. letter-spacing: 1.8px;
  84. text-transform: uppercase;
  85. }
  86. .desktop-app-exclusive-text h2 {
  87. margin: 0 0 14px;
  88. color: #fff;
  89. font-size: 27px;
  90. line-height: 1.2;
  91. }
  92. .desktop-app-exclusive-text p {
  93. max-width: 440px;
  94. margin: 0 auto 28px;
  95. font-size: 14px;
  96. line-height: 1.6;
  97. }
  98. .desktop-app-exclusive-panel .desktop-app-exclusive-cta {
  99. display: inline-block;
  100. padding: 11px 28px;
  101. border-radius: 3px;
  102. background: #883996;
  103. color: #fff;
  104. font-size: 13px;
  105. letter-spacing: 0.8px;
  106. text-decoration: none;
  107. text-transform: uppercase;
  108. transition: background 0.15s ease;
  109. }
  110. .desktop-app-exclusive-panel .desktop-app-exclusive-cta:hover {
  111. background: #9c46ab;
  112. }
  113. /* Short screens: the card is tall enough to run off the bottom of a laptop
  114. * display, and the photo is the part that can afford to lose height. */
  115. @media (max-height: 780px) {
  116. .desktop-app-exclusive-image img {
  117. height: 180px;
  118. }
  119. .desktop-app-exclusive-text {
  120. padding-bottom: 32px;
  121. }
  122. .desktop-app-exclusive-text h2 {
  123. font-size: 23px;
  124. }
  125. .desktop-app-exclusive-text p {
  126. margin-bottom: 22px;
  127. }
  128. }
  129. /* ------------------------------------------------------------------ *
  130. * overlay: the one page the greyed menu icons open
  131. *
  132. * Covers the whole window above everything else, dims it, and carries the
  133. * card at the same position it takes inside a window. Hidden until
  134. * DesktopApp.showUpsell() shows it; closed by its button, a click on the
  135. * backdrop, or Escape.
  136. * ------------------------------------------------------------------ */
  137. .desktop-app-exclusive-overlay {
  138. display: none;
  139. position: fixed;
  140. top: 0;
  141. right: 0;
  142. bottom: 0;
  143. left: 0;
  144. z-index: 100000;
  145. background: rgba(0, 0, 0, 0.82);
  146. }
  147. .desktop-app-exclusive-overlay-close {
  148. position: absolute;
  149. top: 14px;
  150. right: 22px;
  151. z-index: 1;
  152. color: #888;
  153. font-size: 36px;
  154. line-height: 1;
  155. cursor: pointer;
  156. transition: color 0.15s ease;
  157. }
  158. .desktop-app-exclusive-overlay-close:hover {
  159. color: #fff;
  160. }
  161. /* ------------------------------------------------------------------ *
  162. * addressing dialog: hardware-only tabs select normally and swap the
  163. * addressing options for the card
  164. *
  165. * This form is white, so the card inverts: light surface, the press shot
  166. * taken on white, and a wide layout because the dialog is short.
  167. * ------------------------------------------------------------------ */
  168. .desktop-app .js-type.desktop-app-locked {
  169. opacity: 0.7;
  170. }
  171. .desktop-app-exclusive-form {
  172. position: static;
  173. padding: 12px 0 4px;
  174. color: #444;
  175. }
  176. .desktop-app-exclusive-form .desktop-app-exclusive-card {
  177. display: flex;
  178. align-items: center;
  179. max-width: none;
  180. border-color: #ddd;
  181. border-radius: 4px;
  182. background: #fff;
  183. box-shadow: none;
  184. text-align: left;
  185. }
  186. .desktop-app-exclusive-form .desktop-app-exclusive-image {
  187. flex: 0 0 auto;
  188. background: transparent;
  189. }
  190. .desktop-app-exclusive-form .desktop-app-exclusive-image img {
  191. width: 232px;
  192. height: 158px;
  193. object-fit: contain;
  194. object-position: center;
  195. }
  196. /* No fade here -- the photo's own white ground already meets the card. */
  197. .desktop-app-exclusive-form .desktop-app-exclusive-image:after {
  198. content: none;
  199. }
  200. .desktop-app-exclusive-form .desktop-app-exclusive-text {
  201. padding: 0 24px 0 4px;
  202. margin-top: 0;
  203. }
  204. .desktop-app-exclusive-form .desktop-app-exclusive-eyebrow {
  205. margin-bottom: 6px;
  206. color: #883996;
  207. font-size: 10px;
  208. letter-spacing: 1.4px;
  209. }
  210. .desktop-app-exclusive-form .desktop-app-exclusive-text h2 {
  211. margin: 0 0 8px;
  212. color: #222;
  213. font-size: 19px;
  214. }
  215. .desktop-app-exclusive-form .desktop-app-exclusive-text p {
  216. max-width: none;
  217. margin: 0 0 16px;
  218. font-size: 13px;
  219. line-height: 1.5;
  220. }
  221. .desktop-app-exclusive-form .desktop-app-exclusive-cta {
  222. padding: 9px 22px;
  223. font-size: 12px;
  224. }