| 1 | /* The title bar, in the colours of the page under it (titlebar.js sets |
| 2 | them): g1t's rail on g1t's pages, light or dark. 36px tall. */ |
| 3 | :root { |
| 4 | --bg: #050507; |
| 5 | --fg: #ededef; |
| 6 | --muted: #a0a0a8; |
| 7 | --accent: #b6a8ff; |
| 8 | --hover: rgba(237, 237, 239, 0.1); |
| 9 | --pill: rgba(237, 237, 239, 0.09); |
| 10 | --pill-hover: rgba(237, 237, 239, 0.14); |
| 11 | --pill-edge: rgba(237, 237, 239, 0.08); |
| 12 | } |
| 13 | * { |
| 14 | box-sizing: border-box; |
| 15 | } |
| 16 | html, |
| 17 | body { |
| 18 | height: 100%; |
| 19 | margin: 0; |
| 20 | overflow: hidden; |
| 21 | background: var(--bg); |
| 22 | } |
| 23 | .bar { |
| 24 | height: 100%; |
| 25 | display: flex; |
| 26 | align-items: center; |
| 27 | gap: 2px; |
| 28 | padding-left: 6px; |
| 29 | color: var(--muted); |
| 30 | font: 500 12px/1 system-ui, "Segoe UI", -apple-system, Roboto, sans-serif; |
| 31 | user-select: none; |
| 32 | -webkit-user-select: none; |
| 33 | cursor: default; |
| 34 | } |
| 35 | .mac .bar { |
| 36 | padding-left: 78px; |
| 37 | } |
| 38 | .side { |
| 39 | display: flex; |
| 40 | align-items: center; |
| 41 | gap: 2px; |
| 42 | flex: 1 1 0; |
| 43 | min-width: 0; |
| 44 | } |
| 45 | .end { |
| 46 | justify-content: flex-end; |
| 47 | } |
| 48 | .middle { |
| 49 | flex: 0 1 560px; |
| 50 | min-width: 0; |
| 51 | display: flex; |
| 52 | justify-content: center; |
| 53 | } |
| 54 | button { |
| 55 | all: unset; |
| 56 | box-sizing: border-box; |
| 57 | display: inline-flex; |
| 58 | align-items: center; |
| 59 | justify-content: center; |
| 60 | color: inherit; |
| 61 | } |
| 62 | .icon { |
| 63 | width: 28px; |
| 64 | height: 26px; |
| 65 | border-radius: 6px; |
| 66 | } |
| 67 | .icon:hover { |
| 68 | background: var(--hover); |
| 69 | color: var(--fg); |
| 70 | } |
| 71 | .icon:disabled { |
| 72 | opacity: 0.35; |
| 73 | background: none; |
| 74 | color: inherit; |
| 75 | } |
| 76 | .search { |
| 77 | width: 100%; |
| 78 | height: 24px; |
| 79 | gap: 8px; |
| 80 | padding: 0 10px; |
| 81 | justify-content: flex-start; |
| 82 | border-radius: 6px; |
| 83 | background: var(--pill); |
| 84 | box-shadow: inset 0 0 0 1px var(--pill-edge); |
| 85 | } |
| 86 | .search:hover { |
| 87 | background: var(--pill-hover); |
| 88 | color: var(--fg); |
| 89 | } |
| 90 | .search span, |
| 91 | .title { |
| 92 | overflow: hidden; |
| 93 | text-overflow: ellipsis; |
| 94 | white-space: nowrap; |
| 95 | } |
| 96 | .title { |
| 97 | padding: 0 8px; |
| 98 | } |
| 99 | .caption { |
| 100 | width: 46px; |
| 101 | height: 36px; |
| 102 | } |
| 103 | .caption:hover { |
| 104 | background: var(--hover); |
| 105 | color: var(--fg); |
| 106 | } |
| 107 | .caption.close:hover { |
| 108 | background: #c42b1c; |
| 109 | color: #fff; |
| 110 | } |
| 111 | button:focus-visible { |
| 112 | outline: 2px solid var(--accent); |
| 113 | outline-offset: -2px; |
| 114 | } |