| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- /* MOD Desktop ("desktop-app") specific styles.
- *
- * Linked by index.html only when mod-ui runs as MOD Desktop, and applied only
- * once DesktopApp.setup() has put the `desktop-app` class on <body>. Every
- * rule that touches shared markup is scoped under .desktop-app anyway, so a
- * stray load on a device would change nothing.
- */
- /* ------------------------------------------------------------------ *
- * main menu: device-only features keep their icon, greyed out
- *
- * Plugin Store, Banks and File Manager. The icon still answers a click --
- * with the overlay below, not with the feature's window -- so it keeps its
- * hover, just dimmed and drained of colour.
- * ------------------------------------------------------------------ */
- .desktop-app #main-menu .desktop-app-greyed {
- opacity: 0.35;
- filter: grayscale(1);
- }
- /* ------------------------------------------------------------------ *
- * "exclusive feature" widget
- *
- * A full-bleed product shot fading into a dark card. The photos are shot on
- * black, so the fade to the card background hides the image edge entirely --
- * no white box floating on a dark screen. Everything is centred on one
- * column: eyebrow, feature, one sentence, one button.
- * ------------------------------------------------------------------ */
- .desktop-app-exclusive-panel {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- display: flex;
- /* Top-aligned, not centred: these boxes run the full height of the window,
- * and a card floating in the dead middle of one reads as unplaced. */
- align-items: flex-start;
- justify-content: center;
- box-sizing: border-box;
- padding: 90px 24px 30px;
- color: #b4b4b4;
- }
- .desktop-app-exclusive-card {
- width: 100%;
- max-width: 700px;
- overflow: hidden;
- border: 1px solid rgba(255, 255, 255, 0.09);
- border-radius: 6px;
- background: #0c0c0c;
- box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
- text-align: center;
- }
- .desktop-app-exclusive-image {
- position: relative;
- background: #000;
- }
- .desktop-app-exclusive-image img {
- display: block;
- width: 100%;
- height: 250px;
- object-fit: cover;
- object-position: center 42%;
- }
- /* Melts the bottom of the photo into the card. */
- .desktop-app-exclusive-image:after {
- content: '';
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- height: 70%;
- background: linear-gradient(to bottom, rgba(12, 12, 12, 0) 0%, rgba(12, 12, 12, 0.85) 55%, #0c0c0c 100%);
- }
- .desktop-app-exclusive-text {
- position: relative;
- padding: 0 46px 42px;
- margin-top: -26px;
- }
- .desktop-app-exclusive-eyebrow {
- display: block;
- margin-bottom: 10px;
- color: #a86fb8;
- font-size: 11px;
- letter-spacing: 1.8px;
- text-transform: uppercase;
- }
- .desktop-app-exclusive-text h2 {
- margin: 0 0 14px;
- color: #fff;
- font-size: 27px;
- line-height: 1.2;
- }
- .desktop-app-exclusive-text p {
- max-width: 440px;
- margin: 0 auto 28px;
- font-size: 14px;
- line-height: 1.6;
- }
- .desktop-app-exclusive-panel .desktop-app-exclusive-cta {
- display: inline-block;
- padding: 11px 28px;
- border-radius: 3px;
- background: #883996;
- color: #fff;
- font-size: 13px;
- letter-spacing: 0.8px;
- text-decoration: none;
- text-transform: uppercase;
- transition: background 0.15s ease;
- }
- .desktop-app-exclusive-panel .desktop-app-exclusive-cta:hover {
- background: #9c46ab;
- }
- /* Short screens: the card is tall enough to run off the bottom of a laptop
- * display, and the photo is the part that can afford to lose height. */
- @media (max-height: 780px) {
- .desktop-app-exclusive-image img {
- height: 180px;
- }
- .desktop-app-exclusive-text {
- padding-bottom: 32px;
- }
- .desktop-app-exclusive-text h2 {
- font-size: 23px;
- }
- .desktop-app-exclusive-text p {
- margin-bottom: 22px;
- }
- }
- /* ------------------------------------------------------------------ *
- * overlay: the one page the greyed menu icons open
- *
- * Covers the whole window above everything else, dims it, and carries the
- * card at the same position it takes inside a window. Hidden until
- * DesktopApp.showUpsell() shows it; closed by its button, a click on the
- * backdrop, or Escape.
- * ------------------------------------------------------------------ */
- .desktop-app-exclusive-overlay {
- display: none;
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 100000;
- background: rgba(0, 0, 0, 0.82);
- }
- .desktop-app-exclusive-overlay-close {
- position: absolute;
- top: 14px;
- right: 22px;
- z-index: 1;
- color: #888;
- font-size: 36px;
- line-height: 1;
- cursor: pointer;
- transition: color 0.15s ease;
- }
- .desktop-app-exclusive-overlay-close:hover {
- color: #fff;
- }
- /* ------------------------------------------------------------------ *
- * addressing dialog: hardware-only tabs select normally and swap the
- * addressing options for the card
- *
- * This form is white, so the card inverts: light surface, the press shot
- * taken on white, and a wide layout because the dialog is short.
- * ------------------------------------------------------------------ */
- .desktop-app .js-type.desktop-app-locked {
- opacity: 0.7;
- }
- .desktop-app-exclusive-form {
- position: static;
- padding: 12px 0 4px;
- color: #444;
- }
- .desktop-app-exclusive-form .desktop-app-exclusive-card {
- display: flex;
- align-items: center;
- max-width: none;
- border-color: #ddd;
- border-radius: 4px;
- background: #fff;
- box-shadow: none;
- text-align: left;
- }
- .desktop-app-exclusive-form .desktop-app-exclusive-image {
- flex: 0 0 auto;
- background: transparent;
- }
- .desktop-app-exclusive-form .desktop-app-exclusive-image img {
- width: 232px;
- height: 158px;
- object-fit: contain;
- object-position: center;
- }
- /* No fade here -- the photo's own white ground already meets the card. */
- .desktop-app-exclusive-form .desktop-app-exclusive-image:after {
- content: none;
- }
- .desktop-app-exclusive-form .desktop-app-exclusive-text {
- padding: 0 24px 0 4px;
- margin-top: 0;
- }
- .desktop-app-exclusive-form .desktop-app-exclusive-eyebrow {
- margin-bottom: 6px;
- color: #883996;
- font-size: 10px;
- letter-spacing: 1.4px;
- }
- .desktop-app-exclusive-form .desktop-app-exclusive-text h2 {
- margin: 0 0 8px;
- color: #222;
- font-size: 19px;
- }
- .desktop-app-exclusive-form .desktop-app-exclusive-text p {
- max-width: none;
- margin: 0 0 16px;
- font-size: 13px;
- line-height: 1.5;
- }
- .desktop-app-exclusive-form .desktop-app-exclusive-cta {
- padding: 9px 22px;
- font-size: 12px;
- }
|