UNPKG

magcore-app-2048

Version:

2048 is one of the world’s most popular puzzles. The rules are simple: you need to shuffle all the bars to one side of the game field. Your goal is to reach 2048.

215 lines (201 loc) 6.06 kB
/* spa-app: release */ html, body { height: 720px; width: 1280px; font-size: 22px; font-family: Ubuntu, sans-serif; overflow: hidden; margin: 0; padding: 0; } table { border: 0; border-collapse: collapse; border-spacing: 0; } table td { padding: 0; } .maxh { height: 100%; } .maxw { width: 100%; } a { text-decoration: none; } .invisible { visibility: hidden; } /* stb-app: release */ html, body { -webkit-user-select: none; } /* mag-app: release */ .mag-component-layout-list { box-sizing: border-box; -webkit-box-sizing: border-box; width: 100%; position: relative; } .mag-component-layout-list.hidden { display: none; } .mag-component-layout-list > .body > .item { cursor: pointer; padding: 0 8px; vertical-align: middle; height: 48px; line-height: 48px; } .mag-component-layout-list.horizontal { display: table; table-layout: fixed; width: 100%; } .mag-component-layout-list.horizontal > .item { display: table-cell; text-align: center; vertical-align: middle; } .mag-component-layout-list > .body > .item > div { display: table; width: 100%; } .mag-component-layout-list > .body > .item > div > div { display: table-cell; text-align: left; vertical-align: middle; height: 100%; } .mag-component-layout-list > .body > .item > div > .number { width: 56px; } .mag-component-layout-list .noData { position: absolute; height: 100%; width: 100%; display: block; top: 0; left: 0; right: 0; bottom: 0; } .mag-component-layout-list .noData:before { display: inline-block; height: 100%; vertical-align: middle; content: ""; } .mag-component-layout-list .noData > div { display: inline-block; vertical-align: middle; width: 100%; text-align: center; } .mag-component-layout-list .noData.hidden { visibility: hidden; } .mag-component-modal { box-sizing: border-box; -webkit-box-sizing: border-box; width: 100%; height: 100%; position: absolute; left: 0; top: 0; display: table; z-index: 10; visibility: visible; } .mag-component-modal.hidden { display: none; } .mag-component-modal.hidden { display: table; visibility: hidden; } .mag-component-modal.active > div > div > div.overlay { display: none; } .mag-component-modal > div { display: table-cell; vertical-align: middle; text-align: center; } .mag-component-modal > div > div { position: relative; display: inline-block; overflow: hidden; max-width: 80%; min-width: 266.25px; max-height: 80%; } .mag-component-modal > div > div > div.header { height: 70px; line-height: 70px; font-size: 24px; padding: 0 20px; } .mag-component-modal > div > div > div.header .text { display: table-cell; vertical-align: middle; text-align: center; } .mag-component-modal > div > div > div.header .text:empty { padding: 0; } .mag-component-modal > div > div > div.body { position: relative; } .mag-component-modal > div > div > div.body > div .item { height: 60px; line-height: 60px; padding: 0 20px; } .mag-component-modal > div > div > div.overlay { display: block; width: 100%; height: 100%; position: absolute; top: 0; left: 0; } .spa-component-panel { box-sizing: border-box; background-color: #eee; } .spa-component-panel.hidden { display: none; } .stb-component-button { box-sizing: border-box; -webkit-box-sizing: border-box; background-color: #dde9ff; display: inline-table; height: 46px; cursor: pointer; } .stb-component-button.hidden { display: none; } .stb-component-button:hover { background-color: #bbd3ff; } .stb-component-button.focus { background-color: #bbd3ff; } .stb-component-button.click { background-color: #a8c9ff; } .stb-component-button .icon { height: 46px; width: 46px; display: table-cell; background: no-repeat center center; } .stb-component-button .text { display: table-cell; padding: 6px 12px; vertical-align: middle; text-align: center; } .stb-component-button .text:empty { padding: 0; } .stb-component-modal { box-sizing: border-box; -webkit-box-sizing: border-box; width: 1280px; height: 720px; position: absolute; left: 0; top: 0; background-color: rgba(0, 0, 0, 0.5); display: table; } .stb-component-modal.hidden { display: none; } .stb-component-modal > div { display: table-cell; vertical-align: middle; text-align: center; } .stb-component-modal > div > div.body { display: inline-block; overflow: hidden; background-color: #333; padding: 3%; max-width: 80%; max-height: 80%; } .stb-component-page { box-sizing: border-box; -webkit-box-sizing: border-box; width: 1280px; height: 720px; position: absolute; left: 0; top: 0; visibility: hidden; overflow: hidden; } .stb-component-page.hidden { display: none; } .stb-component-page.active { visibility: inherit; }