/** * IMPORTANT * * Some of these styles are duplicated in the `web/index.html` and * `bskyweb/templates/base.html` files. Depending on what you're updating, you * may need to touch all three. Ask Eric if you aren't sure. */ /** * BEGIN STYLES * * HTML & BODY STYLES IN `web/index.html` and `bskyweb/templates/base.html` */ /* Buttons and inputs have a font set by UA, so we'll have to reset that */ .ceesky-inbox { color: var(--text); min-height: 0; } .ceesky-inbox-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; } .ceesky-inbox-clear { font: inherit; font-size: 12px; color: inherit; cursor: pointer; border-radius: 6px; background: transparent; border: 0; padding: 6px; } .ceesky-inbox-clear:disabled { opacity: 0.45; cursor: default; } .ceesky-inbox-rows { overflow-y: auto; max-height: min(36vh, 330px); overscroll-behavior: contain; } button, input, textarea { font: inherit; line-height: inherit; } /* Remove autofill styles on Webkit */ input:autofill, input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-background-clip: text; -webkit-text-fill-color: var(--text); transition: background-color 5000s ease-in-out 0s; box-shadow: inset 0 0 20px 20px var(--background); background: var(--background); color: var(--text); } /* Force left-align date/time inputs on iOS mobile */ input::-webkit-date-and-time-value { text-align: left; } /* Remove default link styling */ a { color: inherit; } a[role='link']:hover { text-decoration: underline; } a[role='link'][data-no-underline='1']:hover { text-decoration: none; } /* Styling hacks */ *[data-word-wrap] { word-break: break-word; } *[data-stable-gutters] { scrollbar-gutter: stable both-edges; } /* ProseMirror */ .ProseMirror { min-height: inherit; } .ProseMirror-dark { color: white; } .ProseMirror p { margin: 0; } .ProseMirror p.is-editor-empty:first-child::before { color: #8d8e96; content: attr(data-placeholder); float: left; height: 0; pointer-events: none; } .ProseMirror .mention { color: #0085ff; } .ProseMirror a, .ProseMirror .autolink { color: #0085ff; } /* OLLIE: TODO -- this is not accessible */ /* Remove focus state on inputs */ .ProseMirror-focused { outline: 0; } textarea:focus, input:focus { outline: 0; } .tippy-content .items { width: fit-content; } /* Tooltips */ [data-tooltip] { position: relative; z-index: 10; } [data-tooltip]::after { content: attr(data-tooltip); display: none; position: absolute; bottom: 0; left: 50%; transform: translateY(100%) translateY(8px) translateX(-50%); padding: 4px 10px; border-radius: 10px; background: var(--backgroundLight); color: var(--text); text-align: center; white-space: nowrap; font-size: 12px; z-index: 10; /* HACK: promote to its own layer so Safari's compositor doesn't latch the bubble's `display: block` state when SubtleHover (also promoted) sits in the same stacking context. Without this, hovering certain notification items can leave the bubble visible permanently until a relayout. -sfn */ will-change: transform; } [data-tooltip]::before { content: ''; display: none; position: absolute; border-bottom: 6px solid var(--backgroundLight); border-left: 6px solid transparent; border-right: 6px solid transparent; bottom: 0; left: 50%; transform: translateY(100%) translateY(2px) translateX(-50%); z-index: 10; } [data-tooltip]:hover::after, [data-tooltip]:hover::before { display: block; } /* Every react-native-web View is a stacking context (z-index: 0), so a tooltip can't rise above the list rows after its own. Lift the row instead. */ [data-list-row]:has([data-tooltip]:hover) { z-index: 1; } /* NativeDropdown component */ .radix-dropdown-item:focus, .nativeDropdown-item:focus { outline: none; } /* Spinner component */ @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .rotate-500ms { position: absolute; inset: 0; animation: rotate 500ms linear infinite; } /* animations for atoms */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes zoomIn { from { transform: scale(0.95); } to { transform: scale(1); } } @keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } } @keyframes slideOutLeft { from { transform: translateX(0); } to { transform: translateX(-100%); } } /* animating radix dropdowns requires knowing the data attributes */ .dropdown-menu-transform-origin > * { transform-origin: var(--radix-dropdown-menu-content-transform-origin); } .dropdown-menu-constrain-size > * { max-height: var(--radix-dropdown-menu-content-available-height); } .force-no-clicks > *, .force-no-clicks * { pointer-events: none !important; } input[type='range'][orient='vertical'] { writing-mode: vertical-lr; direction: rtl; appearance: slider-vertical; width: 16px; vertical-align: bottom; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; } input[type='range'][orient='vertical']::-webkit-slider-runnable-track { background: white; height: 100%; width: 4px; border-radius: 4px; } input[type='range'][orient='vertical']::-moz-range-track { background: white; height: 100%; width: 4px; border-radius: 4px; } input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; border-radius: 50%; background-color: white; height: 16px; width: 16px; margin-left: -6px; } input[type='range'][orient='vertical']::-moz-range-thumb { border: none; border-radius: 50%; background-color: white; height: 16px; width: 16px; margin-left: -6px; } /* * EmojiReactionPicker dropdown elements, within Radix components */ .EmojiReactionPicker__Pressable { cursor: pointer; border: 1px solid transparent; } .EmojiReactionPicker__Pressable:focus { outline: none; border-color: var(--text); } .EmojiReactionPicker__Pressable:hover { outline: none; transform: scale(1.1); border-color: transparent; } .EmojiReactionPicker__Pressable:not(.__selected).__disabled { transform: scale(1) !important; border-color: transparent !important; opacity: 0.7; } .EmojiReactionPicker__Pressable ~ button { cursor: pointer; border: 1px solid transparent; } .EmojiReactionPicker__Pressable ~ button:focus { outline: none; border-color: var(--text); } .EmojiReactionPicker__Pressable ~ button:hover { outline: none; background-color: var(--backgroundLight); border-color: transparent; } /* #/components/Select/index.web.tsx */ .radix-select-content { box-shadow: 0px 6px 24px -10px rgba(22, 23, 24, 0.25), 0px 6px 12px -12px rgba(22, 23, 24, 0.15); min-width: var(--radix-select-trigger-width); max-height: var(--radix-select-content-available-height); } /* * #/components/Tooltip/index.web.tsx */ .radix-popover-content { animation-duration: 300ms; animation-timing-function: cubic-bezier(0.17, 0.73, 0.14, 1); will-change: transform, opacity; } .radix-popover-content[data-state='open'][data-side='top'] { animation-name: radixPopoverSlideUpAndFade; } .radix-popover-content[data-state='open'][data-side='bottom'] { animation-name: radixPopoverSlideDownAndFade; } @keyframes radixPopoverSlideUpAndFade { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } } @keyframes radixPopoverSlideDownAndFade { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } } /* * #/components/Toast/index.web.tsx */ @keyframes toastFadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes toastFadeOut { from { opacity: 1; } to { opacity: 0; } } /* The decoration surface owns the full row. Controls keep their normal hit targets. */ .ce-feed-skin, .ce-draft { position: relative; isolation: isolate; min-width: 0; } .ce-feed-skin[data-pattern='true'], .ce-draft[data-pattern='true'] { background-image: radial-gradient(circle, #ffffff70 0.8px, transparent 1.3px), radial-gradient(circle, #ffffff60 0.8px, transparent 1.3px); background-position: 11px 7px, 24px 19px; background-size: 47px 37px, 73px 59px; } .ce-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; } .ce-stamp { position: absolute; transform: translate(-50%, -50%); width: clamp(32px, 10%, 64px); aspect-ratio: 1; padding: 0; border: 0; background: transparent; } .ce-stamp img, .ce-sheet img { display: block; width: 100%; image-rendering: pixelated; pointer-events: none; } button.ce-stamp { pointer-events: auto; touch-action: none; cursor: grab; } button.ce-stamp[aria-pressed='true'] { outline: 1px dashed currentColor; } .ce-reader-toggle { position: absolute; z-index: 3; right: 4px; top: 2px; opacity: 0; font: 11px system-ui; color: #fff; border: 1px solid #718991; background: #182631; border-radius: 12px; cursor: pointer; padding: 3px 7px; } .ce-feed-skin:hover > .ce-reader-toggle, .ce-reader-toggle:focus-visible, .ce-reader-toggle[aria-pressed='true'] { opacity: 1; } @media (hover: none) { .ce-reader-toggle { opacity: 0.85; } } .ce-decorate, .ce-layout-toggle, .ce-tray button, .ce-tray select, .ce-custom { border: 1px solid #53677a; background: #263343; color: #ebf2f8; border-radius: 6px; cursor: pointer; padding: 5px 8px; font: 600 12px/1.4 system-ui; } .ce-decorate { background: #1a3435; color: #ade8d8; border-color: #467269; border-radius: 18px; white-space: nowrap; } .ce-layout-toggle { white-space: nowrap; } .ce-layout-toggle[aria-pressed='true'] { color: #adf3dc; border-color: #6fae9a; background: #26433e; } .ce-workbench { display: contents; } #ce-composer-dialog:has(.ce-workbench[data-split='true']) { max-width: min(1020px, calc(100vw - 32px)); } .ce-workbench[data-split='true'] { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); min-height: 0; max-height: inherit; } .ce-side-pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid #354857; background: #1b2633; } .ce-side-pane .ce-tray, .ce-side-pane .ce-sheet { max-height: none; overflow: visible; } .ce-side-pane .ce-sheet { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); } .ce-tray { box-sizing: border-box; max-height: 36dvh; overflow: auto; background: #1b2633; color: #e7edf4; padding: 8px 12px 12px; font: 13px/1.4 system-ui; flex-shrink: 1; } .ce-strip, .ce-options, .ce-tagtools, .ce-styles { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; } .ce-strip { justify-content: space-between; gap: 5px; } .ce-strip > div { display: flex; gap: 2px; } .ce-strip button { border-color: transparent; background: transparent; } .ce-tray [aria-pressed='true'] { color: #adf3dc; border-color: #6fae9a; background: #26433e; } .ce-modes { border-radius: 8px; background: #101a26; } .ce-sticker-search { display: flex; align-items: center; gap: 6px; margin: 8px 0; } .ce-sticker-search input { min-width: 0; flex: 1; padding: 7px 10px; border: 1px solid #53677a; border-radius: 6px; background: #101a26; color: #ebf2f8; font: inherit; color-scheme: dark; } .ce-sticker-search input::placeholder { color: #acbac8; } .ce-default-art, .ce-installed-pack, .ce-pack-settings form > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .ce-default-art { margin: 8px 0; } .ce-pack-settings { padding: 16px; border-top: 1px solid; font: 14px/1.45 system-ui; } .ce-pack-settings h2 { font-size: 17px; margin: 0; } .ce-pack-settings p { margin: 5px 0 12px; } .ce-pack-settings p:empty { display: none; } .ce-pack-settings label { display: block; font-weight: 600; margin: 12px 0 4px; } .ce-pack-settings form { margin-bottom: 10px; } .ce-pack-settings input, .ce-pack-settings button { padding: 8px 10px; border: 1px solid currentColor; border-radius: 6px; font: inherit; color: inherit; background: transparent; } .ce-pack-settings input { flex: 1 1 210px; min-width: 0; } .ce-pack-settings button { cursor: pointer; font-weight: 600; } .ce-pack-settings button:disabled { opacity: 0.55; cursor: default; } .ce-pack-settings a { color: inherit; text-decoration: underline; } .ce-sheet [role='status'] { grid-column: 1 / -1; padding: 8px 0; } .ce-stamp picture, .ce-sheet picture { display: block; pointer-events: none; } .ce-sheet { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; max-height: min(210px, 28dvh); overflow-y: auto; overscroll-behavior: contain; padding: 2px; } .ce-sheet button { cursor: grab; padding: 2px; min-width: 0; font-size: 10px; } .ce-sheet img { margin: auto; width: min(100%, 47px); height: 47px; object-fit: contain; } .ce-stamp picture, .ce-stamp img { height: 100%; object-fit: contain; } .ce-sheet button:disabled { opacity: 0.45; } .ce-styles, .ce-tagtools { margin-top: 9px; } .ce-options button, .ce-custom { display: inline-flex; align-items: center; gap: 4px; } .ce-options i { width: 13px; height: 13px; display: inline-block; border: 1px solid #7e909b; border-radius: 50%; } .ce-custom input { cursor: pointer; width: 27px; height: 21px; padding: 0; border: 0; background: transparent; } .ce-tagtools p { width: 100%; margin: 0 0 3px; color: #d0dce4; } .ce-tagtools button { min-height: 42px; padding-inline: 14px; } .ce-colors { width: 100%; padding: 6px; box-sizing: border-box; border: 1px solid #354857; border-radius: 12px; background: #151f2b; } .ce-color-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } .ce-color-fields button { display: flex; align-items: center; gap: 7px; min-height: 46px; padding: 5px 7px; text-align: left; line-height: 1.15; } .ce-color-fields i, .ce-swatch i { display: inline-grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border: 1px solid #90a0a9; border-radius: 50%; } .ce-color-fields i:not([style*='background-color']) { background: linear-gradient(135deg, #314357 48%, #9daeb9 50%, #314357 54%); } .ce-color-fields small { display: block; margin-top: 3px; color: #bad0d3; font: 10px/1.1 ui-monospace, monospace; } .ce-palette { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; padding-top: 5px; } .ce-tray .ce-swatch { padding: 5px; min-height: 36px; border-color: transparent; background: transparent; } .ce-pick-color { position: relative; overflow: hidden; border: 1px solid #536675; border-radius: 7px; padding: 7px 10px; cursor: pointer; } .ce-pick-color:focus-within { outline: 2px solid #a0e9d6; } .ce-pick-color input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; } .ce-palette button:disabled { opacity: 0.5; } .ce-draft[data-design='true'] { border-block: 1px solid #70808b55; padding-block: 8px; color: var(--ce-ink, var(--text)); } .ce-draft[data-design='true'] [data-testid='ceesky-composer-input'] { display: none; } .ce-preview { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 2px 10px; padding: 2px 16px; font: 15px/1.4 system-ui; } .ce-avatar { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; background: #80988a55; } .ce-body { grid-column: 2; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; line-height: 1.4; font-family: var(--ce-font, inherit); } .ce-preview small { opacity: 0.77; } .ce-options label { display: inline-flex; align-items: center; gap: 5px; } .ce-options input[type='color'] { width: 28px; height: 23px; padding: 0; cursor: pointer; } .ce-options input[type='range'] { width: 75px; } .ce-styles > .ce-options { width: 100%; } .ce-actions { margin: 5px 16px 0 68px; display: flex; align-items: center; justify-content: space-between; } .ce-actions span { display: flex; align-items: center; gap: 10px; } [data-ce-font], [data-ce-font] * { font-family: var(--ce-font) !important; } [data-ce-ink] { color: var(--ce-ink) !important; } .ce-sparkle { text-decoration: underline dotted; text-underline-offset: 0.2em; text-shadow: 0 0 3px currentColor; } .ce-wiggle { display: inline-block; animation: ce-wiggle 1.25s ease-in-out infinite alternate; } .ce-wave { display: inline-block; max-width: 100%; text-decoration: underline wavy; text-underline-offset: 0.16em; } .ce-marquee { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: bottom; } .ce-marquee > span { display: inline-block; max-width: 100%; } .ce-rainbow { background: linear-gradient( 105deg, #ff91ad, #ffd27f, #87f4bb, #83ddff, #ddabff, #ff91ad ); background-size: 200% 100%; background-clip: text; color: transparent; -webkit-text-stroke: 0.25px #434052; } @media (forced-colors: active) { .ce-rainbow { color: CanvasText; -webkit-text-stroke: 0; } } @media (prefers-reduced-motion: no-preference) { .ce-wave { animation: ce-wave 1.4s ease-in-out infinite alternate; } .ce-blink { animation: ce-blink 2.6s ease-in-out infinite; } .ce-rainbow { animation: ce-rainbow 3.5s linear infinite alternate; } .ce-marquee > span { animation: ce-marquee 6s linear infinite; } } @keyframes ce-wave { from { transform: translateY(0.08em) skewY(1.5deg); } to { transform: translateY(-0.12em) skewY(-1.5deg); } } @keyframes ce-blink { 0%, 45%, 100% { opacity: 1; } 70% { opacity: 0.55; } } @keyframes ce-rainbow { to { background-position: 100% 50%; } } @keyframes ce-marquee { 0%, 45%, 100% { transform: translateX(0); } 72% { transform: translateX(-101%); } 72.01% { transform: translateX(101%); } } @keyframes ce-wiggle { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } } @media (prefers-reduced-motion: reduce) { .ce-wiggle { animation: none; } } .ce-custom { padding: 0 4px 0 0; gap: 3px; } .ce-custom button { border: 0; }