Advertisement
Guest User

Untitled

a guest
Aug 15th, 2021
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 23.49 KB | None | 0 0
  1. *
  2. * Vieb - Vim Inspired Electron Browser
  3. * Copyright (C) 2019-2021 Jelmer van Arnhem
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  17. */
  18. /*
  19.  * COLORS
  20. */
  21. :root {
  22.     /* general */
  23.     --bg: #282828;
  24.     --fg: #ebdbb2;
  25.     --tab-background: #32302f;
  26.     --tab-suspended: #1d2021;
  27.     --visible-tab: #b8bb26;
  28.     --tab-split: #8ec07c;
  29.     --tab-audio: #83a598;
  30.     --tab-muted: #fbf1c7;
  31.     --tab-muted-playing: #ff3;
  32.     --tab-crashed: #fb4934;
  33.     --tab-scrollbar: #5ff;
  34.     --container-background: none;
  35.     --mode-normal-fg: var(--bg);
  36.     --mode-normal-bg: #83a598;
  37.     --mode-command-fg: var(--bg);
  38.     --mode-command-bg: #fb4934;
  39.     --mode-insert-fg: var(--bg);
  40.     --mode-insert-bg: #b8bb26;
  41.     --mode-follow-fg: var(--bg);
  42.     --mode-follow-bg: #d3869b;
  43.     --mode-explore-fg: var(--bg);
  44.     --mode-explore-bg: #8ec07c;
  45.     --mode-search-fg: var(--bg);
  46.     --mode-search-bg: #fabd34;
  47.     --mode-pointer-fg: var(--bg);
  48.     --mode-pointer-bg: #d65d0e;
  49.     --mode-visual-fg: var(--bg);
  50.     --mode-visual-bg: #fe8019;
  51.     --url-default: #928374;
  52.     --url-search: #8ec07c;
  53.     --url-searchwords: #fcf;
  54.     --url-url: #689d6a;
  55.     --url-suggest: #8ec07c;
  56.     --url-file: #fabd34;
  57.     --url-invalid: #fb4934;
  58.     --follow-text: #000;
  59.     --follow-url-bg: #458588;
  60.     --follow-url-border: #83a598;
  61.     --follow-click-bg: #cc241d;
  62.     --follow-click-border: #fb4934;
  63.     --follow-insert-bg: #689d6a;
  64.     --follow-insert-border: #8ec07c;
  65.     --follow-onclick-bg: #98971a;
  66.     --follow-onclick-border: #b8bb26;
  67.     --follow-other-bg: #fbf1c7;
  68.     --follow-other-border: #92837a;
  69.     --suggestions-border: #928374;
  70.     --suggestions-bg: #665c54;
  71.     --suggestions-selected: #98971a;
  72.     --suggestions-searchwords: #b16286;
  73.     --suggestions-url: #8ec07c;
  74.     --suggestions-file: #d79921;
  75.     --notification-border: #b8bb26;
  76.     --notification-date: #928374;
  77.     --notification-permission: #bdae93;
  78.     --notification-error: #fb4934;
  79.     --notification-warning: #fabd34;
  80.     --notification-info: #83a598;
  81.     --notification-success: #b8bb26;
  82.     --url-hover-fg: #000;
  83.     --url-hover-bg: #fff9;
  84.     /* special pages */
  85.     --link-color: #0cf;
  86.     --link-underline: #059;
  87.     --scrollbar-bg: #444;
  88.     --scrollbar-thumb: #bbb9;
  89.     --button-disabled: #999;
  90.     --code-fg: #fff;
  91.     --code-bg: #111;
  92.     --code-command: #f88;
  93.     --placeholder-text: #ccc;
  94.     --special-page-element-bg: #444;
  95.     --special-page-element-border: #222;
  96.     --input-unfocused: #666;
  97.     --input-focused: #aaa;
  98.     --download-progress-fg: #ccc;
  99.     --download-progress-bg: #666;
  100.     --helppage-h1: #d33;
  101.     --helppage-h2: #f76;
  102.     --helppage-h3: #fb9;
  103.     --helppage-countable: #fc0;
  104. }
  105.  
  106.  
  107. /*
  108.  * GLOBAL
  109. */
  110. html {margin: 0;padding: 0}
  111. body {color: var(--fg);font: 14px "DejaVu Sans Mono", "Courier", monospace;padding: 0;margin: 0;opacity: 0;}
  112. #app {height: 100vh;width: 100vw;overflow: hidden;user-select: none;display: flex;flex-direction: column;background: var(--bg);opacity: 1;line-height: 1.3em;}
  113. body:not(#app) input {background: transparent;color: var(--fg);font: inherit;width: 100%;border: .1em solid var(--input-unfocused);padding: .2em;margin-bottom: 1em;box-sizing: border-box;outline: none;height: 2em;}
  114. body:not(#app) input:focus {border: .1em solid var(--input-focused);}
  115. body:not(#app) kbd {background: var(--code-bg);color: var(--code-fg);padding: .1em;overflow-wrap: anywhere;}
  116. body:not(#app) button {background: transparent;color: var(--fg);border: .1em solid var(--fg);font: inherit;}
  117. body:not(#app) button:not(:disabled):hover {cursor: pointer;font-weight: bold;}
  118. body:not(#app) button:disabled {border-color: var(--button-disabled);color: var(--button-disabled);}
  119. body:not(#app) ::laceholder {color: var(--placeholder-text);}
  120. ::-webkit-scrollbar {width: 1em;background: var(--scrollbar-bg);}
  121. ::-webkit-scrollbar-thumb {background: var(--scrollbar-thumb);}
  122.  
  123.  
  124. /*
  125.  * APP
  126. */
  127. /* navbar & tabs */
  128. #navbar {z-index: 30;}
  129. #tabs, #navbar {width: 100vw;display: flex;pointer-events: none;background: var(--bg);}
  130. #logo {display:none;-webkit-app-region: drag;height: 1.8em;width: 1.8em;margin: .1em;min-width: 1.8em;min-height: 1.8em;}
  131. #mode-container {display: flex;width: 7em;text-align: center;margin: .1em .1em;}
  132. #mode {text-transform: capitalize;font-size: 1.3em;margin: auto;font-weight: bold;display: flex;}
  133. #repeat-counter, #pressed-keys {margin: auto .2em;line-height: 2em;display: none;}
  134. /* modes */
  135. [current-mode=normal] #mode-container, #helppage .normal, .normal {color: var(--mode-normal-fg);background: var(--mode-normal-bg);}
  136. [current-mode=command] #mode-container, #helppage .command, .command {color: var(--mode-command-fg);background: var(--mode-command-bg);}
  137. [current-mode=insert] #mode-container, #helppage .insert, .insert {color: var(--mode-insert-fg);background: var(--mode-insert-bg);}
  138. [current-mode=follow] #mode-container, #helppage .follow, .follow {color: var(--mode-follow-fg);background: var(--mode-follow-bg);}
  139. [current-mode=explore] #mode-container, #helppage .explore, .explore {color: var(--mode-explore-fg);background: var(--mode-explore-bg);}
  140. [current-mode=search] #mode-container, #helppage .search, .search {color: var(--mode-search-fg);background: var(--mode-search-bg);}
  141. [current-mode=pointer] #mode-container, #helppage .pointer, .pointer {color: var(--mode-pointer-fg);background: var(--mode-pointer-bg);}
  142. [current-mode=visual] #mode-container, #helppage .visual, .visual {color: var(--mode-visual-fg);background: var(--mode-visual-bg);}
  143. /* tabs */
  144. #tabs {display: flex;overflow: hidden;max-width: 100vw;width: 100vw;z-index: 2;}
  145. #tabs > span {color: var(--fg);background: var(--tab-background);display: flex;margin: 0 .1em .1em 0;flex: 1;overflow: hidden;white-space: nowrap;height: 1.9em;}
  146. #tabs > span > img {margin: auto 0 auto .25em;padding: 0;height: 1.5em;width: 1.5em;min-height: 1.5em;min-width: 1.5em;pointer-events: none;}
  147. #tabs > span > span {margin: auto 0 auto .25em;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
  148. #tabs .visible-tab {background: var(--visible-tab);color: var(--bg);}
  149. #tabs [suspended] {background: var(--tab-suspended);}
  150. #tabs.multiple #current-tab {border-left: solid .3em var(--tab-split);}
  151. #tabs .pinned {min-width: 1.9em !important;max-width: 1.9em;width: 1.9em;padding: 0;}
  152. #tabs .pinned[media-playing], #tabs .pinned[muted] {width: 2.2em;max-width: 2.2em;}
  153. #tabs .pinned > img {padding: 0;margin: .2em;}
  154. #tabs .crashed {background: var(--tab-crashed);}
  155. #tabs [media-playing]::before {border-left: solid .3em var(--tab-audio);content: "";}
  156. #tabs [muted]::before {border-left: solid .3em var(--tab-muted);content: "";}
  157. #tabs [muted][media-playing]::before {border-left: solid .3em var(--tab-muted-playing);content: "";}
  158. #tabs.scroll {overflow-x: auto;}
  159. #tabs.wrap {flex-wrap: wrap;}
  160. /* pages container */
  161. .webview {pointer-events: none;position: fixed;display: none;}
  162. #page-container, #current-page, .visible-page {display: flex;flex: 1;height: 100%;width: 100%;}
  163. #pages.multiple .webview {border: solid .15em transparent;box-sizing: border-box;}
  164. #pages.multiple #current-page {border-color: var(--tab-split);}
  165. #pagelayout {display: flex;height: 100%;width: 100%;}
  166. #pagelayout * {flex: 1;}
  167. #pagelayout.hor, #pagelayout .hor {flex-direction: row;display: flex;}
  168. #pagelayout.ver, #pagelayout .ver {flex-direction: column;display: flex;}
  169. /* fullscreen */
  170. #app.fullscreen #navbar, #app.fullscreen #tabs, #app.fullscreen .webview {display: none;}
  171. #app.fullscreen #current-page {display: flex;border: none;width: 100vw !important;height: 100vh !important;top: 0 !important;bottom: 0 !important;left: 0 !important;right: 0 !important;}
  172. /* conditionally hide tabs or navbar from the vieb window */
  173. #app.tabshidden #tabs {display: none;}
  174. #app.navigationhidden #navbar {position: absolute;top: -10em;}
  175. #app.navigationhidden #suggest-dropdown {top: .1em;max-height: calc(100vh - .2em);}
  176. /* Nav url/search/command */
  177. #containername {display: flex;margin: auto;height: 1.8em;align-items: center;padding: 0 .5em;background: var(--container-background);color: var(--fg);}
  178. #url {display: inline-block;flex: 1;border: solid .1em var(--url-default);margin: .1em;background: transparent;color: var(--fg);outline: none;font: inherit;min-width: 0;padding: .1em;width: 0;}
  179. #url.search {border-color: var(--url-search);}
  180. #url.searchwords {border-color: var(--url-searchwords);}
  181. #url.url {border-color: var(--url-url);}
  182. #url.suggest {border-color: var(--url-suggest);}
  183. #url.file {border-color: var(--url-file);}
  184. #url.invalid {border-color: var(--url-invalid);}
  185. /* follow */
  186. #follow {position: fixed;display: none;z-index: 1;}
  187. #follow .follow-url, #follow .follow-inputs-click, #follow .follow-inputs-insert, #follow .follow-onclick, #follow .follow-other {position: absolute;color: var(--follow-text);cursor: pointer;padding: 0 .1em;}
  188. .follow-url-border, .follow-inputs-click-border, .follow-inputs-insert-border, .follow-onclick-border, .follow-other-border {position: absolute;box-sizing: border-box;cursor: pointer;}
  189. .follow-url {background: var(--follow-url-bg);border: solid .15em var(--follow-url-border);}
  190. .follow-inputs-click {background: var(--follow-click-bg);border: solid .15em var(--follow-click-border);}
  191. .follow-inputs-insert {background: var(--follow-insert-bg);border: solid .15em var(--follow-insert-border);}
  192. .follow-onclick {background: var(--follow-onclick-bg);border: solid .15em var(--follow-onclick-border);}
  193. .follow-other {background: var(--follow-other-bg);border: solid .15em var(--follow-other-border);}
  194. .follow-url-border {border: solid .07em var(--follow-url-border);}
  195. .follow-inputs-click-border {border: solid .07em var(--follow-click-border);}
  196. .follow-inputs-insert-border {border: solid .07em var(--follow-insert-border);}
  197. .follow-onclick-border {border: solid .07em var(--follow-onclick-border);}
  198. .follow-other-border {border: solid .07em var(--follow-other-border);}
  199. /* suggestions */
  200. #suggest-dropdown {z-index: 15;position: fixed;top: 2.1em;left: .1em;width: calc(100vw - .2em);background: var(--suggestions-border);max-height: calc(100vh - 2.2em);overflow-y: auto;display: flex;flex-direction: column;}
  201. #suggest-dropdown div {flex-grow: 1;flex-shrink: 0;display: flex;padding: .4em;margin: .1em;background: var(--suggestions-bg);overflow: hidden;white-space: nowrap;text-overflow: ellipsis;pointer-events: none;}
  202. #suggest-dropdown div .title, #suggest-dropdown div .file, #suggest-dropdown div .url {margin: auto .5em;min-width: 0;text-overflow: ellipsis;overflow: hidden;}
  203. #suggest-dropdown div .title {flex-shrink: 0;max-width: 50%;}
  204. #suggest-dropdown div .icon {height: 1.5em;width: 1.5em;}
  205. #suggest-dropdown div .url {color: var(--suggestions-url);}
  206. #suggest-dropdown div .file {color: var(--suggestions-file);}
  207. #suggest-dropdown div .searchwords {color: var(--suggestions-searchwords);}
  208. #suggest-dropdown div.selected {background: var(--suggestions-selected);}
  209. /* mouse related */
  210. #invisible-overlay {-webkit-app-region: drag;position: absolute;top: 0;left: 0;width: 100vw;height: 100vh;z-index: 50;}
  211. #app.mouse .webview {pointer-events: all;}
  212. #app.mouse #invisible-overlay {display: none;}
  213. #app[current-mode=insert] #invisible-overlay {display: none;}
  214. #app.mouse #navbar, #app.mouse #tabs {pointer-events: all;}
  215. #mode-suggestions {background: var(--bg);max-height: 0;position: absolute;left: 2em;top:2em;z-index: 25;transition: .5s all;overflow: hidden;display: inline-block;width: 7em;text-transform: capitalize;display: flex;flex-direction: column;}
  216. #mode-suggestions:hover {max-height: 100vw;}
  217. #app.mouse #mode-container:hover #mode-suggestions {max-height: 100vw;}
  218. #mode-suggestions div {font-size: 1.3em;transition: .1s all;}
  219. #app.mouse #suggest-dropdown div:hover, #mode-suggestions div:hover, #tabs > span:hover {font-weight: bold;cursor: pointer;}
  220. /* notifications & map suggestions */
  221. #notifications, #app #mapsuggest {display: flex;position: fixed;flex-direction: column;z-index: 2;}
  222. #notifications > span, #app #mapsuggest {background: var(--bg);margin-bottom: .5em;padding: .5em;display: flex;min-width: 25em;width: 33vw;max-width: 100em;border: .1em solid var(--notification-border);overflow-wrap: anywhere;}
  223. #notifications > span.permission {color: var(--notification-permission);}
  224. #notifications > span.error {color: var(--notification-error);}
  225. #notifications > span.warning, #app #mapsuggest span.warning {color: var(--notification-warning);}
  226. #notifications > span.info, #app #mapsuggest span.info {color: var(--notification-info);}
  227. #notifications > span.success, #app #mapsuggest span.success {color: var(--notification-success);}
  228. #app #mapsuggest {width: auto;max-width: 90vw;max-height: calc(100vh - 6.5em);overflow-y: auto;}
  229. #app #mapsuggest span.warning {display: inline-block;margin-right: 1em;}
  230. .bottomright {right: .7em;bottom: 0;}
  231. .bottomleft {left: .7em;bottom: 0;}
  232. .topright {right: .7em;top: 4.7em;}
  233. .topleft {left: .7em;top: 4.7em;}
  234. .bottomright {right: .7em;bottom: 0;}
  235. .bottomleft {left: .7em;bottom: 0;}
  236. .topright {right: .7em;top: 4.7em;}
  237. .topleft {left: .7em;top: 4.7em;}
  238. #app.tabshidden .topright, #app.tabshidden .topleft {top: 2.7em;}
  239. #app.navigationhidden .topright, #app.navigationhidden .topleft {top: 2.7em;}
  240. #app.navigationhidden.tabshidden .topright, #app.navigationhidden.tabshidden .topleft {top: .7em;}
  241. #app.tabshidden #mapsuggest, #app.navigationhidden #mapsuggest {max-height: calc(100vh - 4.5em);}
  242. #app.navigationhidden.tabshidden #mapsuggest {max-height: calc(100vh - 2.5em);}
  243. /* scrollbar for overflowing tabs */
  244. #tabs::-webkit-scrollbar {height: .2em;}
  245. #tabs::-webkit-scrollbar-thumb {background: var(--tab-scrollbar);}
  246. /* context menu */
  247. #context-menu {padding: 0;margin: 0;background: var(--suggestions-bg);position: fixed;z-index: 50;white-space: nowrap;max-height: 100vh;overflow-y: auto;}
  248. #context-menu:not(:empty) {border: .1em solid var(--suggestions-border);}
  249. #context-menu > .menu-item {padding: .1em .8em;margin: 0;cursor: pointer;}
  250. #context-menu > .menu-item.selected {background: var(--suggestions-selected);}
  251. #context-menu > .menu-group {padding: .2em 0 0 0;font-weight: bold;}
  252. /* other */
  253. @keyframes pointer {0% {background: #f007;} 17% {background: #ff07;} 33% {background: #0f07;} 49% {background: #0ff7;} 66% {background: #00f7;} 83% {background: #f0f7;} 100% {background: #f007;}}
  254. #app #pointer {display: none;position: fixed;height: 1em;width: .7em;z-index: 20;backdrop-filter: invert(100%);animation: 1s infinite pointer;}
  255. #app[current-mode=pointer] #pointer {display: block;}
  256. #app[current-mode=visual] #pointer {display: block;}
  257. #url-hover {display: none;position: absolute;background: var(--url-hover-bg);color:var(--url-hover-fg);bottom: 0;left: 0;right: 0;pointer-events: none;padding: .1em;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width: fit-content;margin: auto;max-width: 80vw;text-align: center;z-index: 2;}
  258.  
  259.  
  260. /*
  261.  * SPECIAL PAGES
  262. */
  263. .specialpage {width: 90vw;margin: auto;}
  264. .specialpage a {color: var(--link-color);white-space: nowrap;overflow: hidden;}
  265. .specialpage a:not([class]) {text-decoration: var(--link-underline) underline;}
  266. .specialpage a[href^="https"]::after {background: url(../img/topright.png) no-repeat 0 0;background-size: .5em 1em;content: "";padding-right: .5em;}
  267. .specialpage a:hover {text-decoration: var(--link-color) underline;}
  268. .specialpage h1 {font-size: 2em;margin: 1em 0;padding: 0;}
  269. .specialpage img {height: 1.9em;margin: .5em;float: right;}
  270. .specialpage *[onclick] {cursor: pointer;}
  271. .specialpage #remove-all {height: 2.4em;margin: .2em;cursor: pointer;}
  272. .specialpage #list {display: flex;flex-direction: column-reverse;}
  273. /* cookies */
  274. #cookiespage .cookie {background: var(--special-page-element-bg);margin: .35em 0;padding: .35em;display: flex;border: .1em solid var(--special-page-element-border);}
  275. #cookiespage .cookie * {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;width: 33%;padding: .2em 0;}
  276. #cookiespage .remove {height: 1em;width: 1em;margin: auto 0;cursor: pointer;}
  277. /* downloads */
  278. #downloadspage .download {background: var(--special-page-element-bg);margin-bottom: 1em;border: .1em solid var(--special-page-element-border);}
  279. #downloadspage .title {margin: .4em;font-size: 1.5em;width: calc(100% - 4em);cursor:pointer;}
  280. #downloadspage progress {-webkit-appearance: none;width: calc(100% - 1em);margin: .5em;}
  281. #downloadspage progress::-webkit-progress-value {background: var(--download-progress-fg);}
  282. #downloadspage progress::-webkit-progress-bar {background: var(--download-progress-bg);}
  283. #downloadspage .misc {display: flex;margin: .5em;flex-direction: column;width: calc(100% - 1em);}
  284. #downloadspage .filelocation {cursor: pointer;}
  285. #downloadspage img {cursor: pointer;}
  286. /* extensions */
  287. #extensionspage img {height: 4em;width: 4em;margin-right: 1em;}
  288. #extensionspage .extension {display: flex;align-items: center;background: var(--special-page-element-bg);border: .1em solid var(--special-page-element-border);margin: 1em 0;padding: 1em;}
  289. #extensionspage .fullwidth {flex: 1;}
  290. #extensionspage .title {margin: .4em 0;font-size: 1.5em;}
  291. /* help */
  292. #helppage {margin: 3vw;width: auto;line-height: 2;}
  293. #helppage main {max-width: 65em;margin: auto;}
  294. #helppage .header, #helppage .header > div {font-size: 5vw;display: flex;flex: 1;justify-content: center;}
  295. #helppage .header > div > img {height: 10vw;margin: 0 1em 0 0;}
  296. #helppage .cheatsheet {float: none;height: auto;width: 100%;filter: contrast(.5) invert() contrast(4) hue-rotate(180deg) saturate(4);}
  297. #helppage a {overflow-wrap: anywhere;}
  298. #helppage li {line-height: 1.5em;}
  299. #helppage .section {display: flex;flex-wrap: wrap;align-items: center;}
  300. #helppage .section h1, .section h2, .section h3, .section h4, .section h5, .section h6 {margin: 0;overflow-wrap: anywhere;}
  301. #helppage .section .spacer {flex-grow: 1;}
  302. #helppage .section {margin: 1em 0;}
  303. #helppage .section > a {margin: auto 0;overflow-wrap: anywhere;text-align: right;}
  304. #helppage h1 {font-size: 3em;margin: .7em 0 .5em;color: var(--helppage-h1);}
  305. #helppage h2 {font-size: 2em;margin: .7em 0;color: var(--helppage-h2);}
  306. #helppage h3 {font-size: 1.5em;margin: .7em 0;color: var(--helppage-h3);}
  307. #helppage h4 {font-size: 1.25em;margin: .7em 0;}
  308. #helppage h5, #helppage h6 {font-size: 1;margin: .7em 0;}
  309. #helppage .setting-status {display: flex;flex-wrap: wrap;}
  310. #helppage .setting-status * {margin: 0 .5em;overflow-wrap: anywhere;max-width: calc(100vw - 3em);}
  311. #helppage .map-status * {display: block;}
  312. #helppage .countable {height: 2em;margin: 0 1em;color: var(--helppage-countable);}
  313. #helppage .command-block {color: var(--code-command);white-space: normal;overflow-wrap: anywhere;background: var(--code-bg);padding: .1em;}
  314. #helppage .url-search {color: var(--url-search);}
  315. #helppage .url-url {color: var(--url-url);}
  316. #helppage .url-searchwords {color: var(--url-searchwords);}
  317. #helppage .url-suggest {color: var(--url-suggest);}
  318. #helppage .url-file {color: var(--url-file);}
  319. #helppage .follow-url {background: var(--follow-url-bg);color: var(--follow-text);}
  320. #helppage .follow-inputs-click {background: var(--follow-click-bg);color: var(--follow-text);}
  321. #helppage .follow-inputs-insert {background: var(--follow-insert-bg);color: var(--follow-text);}
  322. #helppage .follow-onclick {background: var(--follow-onclick-bg);color: var(--follow-text);}
  323. #helppage .follow-other {background: var(--follow-other-bg);color: var(--follow-text);}
  324. #helppage .example-buttons {margin: 1em;}
  325. #helppage .example-buttons button {font-size: 1em;margin: .5em 2em;padding: .5em 2em;background: transparent;cursor: pointer;}
  326. #helppage .nowrap, #helppage .nowrap.command-block {white-space: nowrap;}
  327. /* history */
  328. #historypage #list {display: inline;}
  329. #historypage #no-results {margin-bottom: 1em;}
  330. #historypage #breakpoints {display: flex;flex-direction: column;}
  331. #historypage .hist-entry {background: var(--special-page-element-bg);margin: .7em 0;padding: .35em;border: .1em solid var(--special-page-element-border);}
  332. #historypage .hist-entry .hist-date {width: auto;color: var(--notification-date);margin-right: 1em;}
  333. #historypage .hist-entry span {display: inline-block;width: calc(100% - 16em);overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
  334. #historypage .hist-entry a {display: block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;width: 100%;}
  335. #historypage img {height: 1.5em;float: right;margin: .35em .9em;cursor: pointer;}
  336. #historypage .hist-entry img {height: 1em;margin: .1em;}
  337. #historypage .hist-entry .favicon {float: none;margin: 0 .3em .1em 0;cursor: auto;}
  338. #historypage .hist-entry.marked {background: var(--special-page-element-border);}
  339. /* newtab */
  340. #newtabpage {display: none;flex-direction: column;height: 100vh;}
  341. #newtabpage main {margin: auto;max-width: 80vw;min-width: 450px;}
  342. #newtabpage img {height: 2em;width: 2em;min-height: 2em;min-width: 2em;margin: 0 .5em 0 0;}
  343. #newtabpage a {display: flex;padding: .5em;font-size: 1.4em;text-decoration: none;max-width: 80vw;align-items: center;}
  344. #newtabpage a div {display: flex;flex-direction: column;}
  345. #newtabpage a div, a div * {overflow: hidden;white-space: wrap;text-overflow: ellipsis;}
  346. #newtabpage main > div {display: flex;flex-wrap: wrap;overflow: hidden;}
  347. #newtabpage p {text-align: center;}
  348. #favorites, #topsites {margin: 1em 0;display: none;max-width: 80vw;min-width: 40em;width: auto;flex-grow: 1;flex-basis: 50%;}
  349. #newtabpage small {font-size: .7em;text-decoration: underline;}
  350. /* notifications */
  351. #notificationspage .notification {background: var(--special-page-element-bg);border: .1em solid var(--notification-border);margin: .35em 0;padding: .35em;}
  352. #notificationspage .date {color: var(--notification-date);}
  353. #notificationspage .permission {color: var(--notification-permission);}
  354. #notificationspage .error {color: var(--notification-error);}
  355. #notificationspage .warning {color: var(--notification-warning);}
  356. #notificationspage .info {color: var(--notification-info);}
  357. #notificationspage .success {color: var(--notification-success);}
  358. #notificationspage .filelocation {cursor: pointer;}
  359. /* version */
  360. #versionpage {display: flex;width: 80vw;min-width: 450px;height: 100vh;text-align: center;}
  361. #versionpage #title {font-size: 2.5em;}
  362. #versionpage #subtitle {font-size: 1.5em;}
  363. #versionpage .header {display: flex;flex-direction: column;margin: auto;}
  364. #versionpage .header > img {width: 30vmin;height: 30vmin;margin: auto;}
  365. #versionpage .info {width: 40em;min-width: 450px;max-width: 80vw;}
  366. #versionpage #update-check {margin: .7em;}
  367.  
  368.  
  369. /*
  370.  * POPUPS
  371. */
  372. .popup {box-sizing: border-box;height: 100vh;width: 100vw;overflow: hidden;user-select: none;background: var(--bg);color: var(--fg);border: .1em solid var(--notification-border);}
  373. /* login */
  374. #loginpopup {padding: 1em;}
  375. #loginpopup * {pointer-events: none;}
  376. #loginpopup p {word-wrap: break-word;overflow: hidden;}
  377. /* notification */
  378. #notificationpopup #notification {padding: 1em;height: calc(100% - 4.1em);overflow-wrap: break-word;overflow-x: hidden;overflow-y: auto;line-height: 1em;user-select: text;}
  379. #notificationpopup footer {font-size: 1em;line-height: 2em;height: 2em;position: fixed;left: 0;bottom: 0; width: 100vw;border: .1em solid var(--notification-border);}p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement