Commit Graph
106 Commits
Author SHA1 Message Date
Claire e58084a85f Update theme_color_tags helper for new theme infrastructure (#37519) 2026-01-16 10:00:04 +00:00
diondiondion bc2f8a358f Enable theming via new HTML element attributes (#37477) 2026-01-15 16:04:27 +00:00
Claire 5b54cd7f76 Add ability to include inline javascript (#37459) 2026-01-13 10:40:26 +00:00
diondiondion a0ce77673c Add dedicated user preferences for theme mode & contrast (#37288) 2025-12-19 15:31:44 +00:00
diondiondion 65b216353e Handle dark/light/contrast theme modes in common CSS (#37095) 2025-12-04 15:56:35 +00:00
Echo 06803422da Make Vite respect CSP for styles (#36089) 2025-09-12 13:37:26 +00:00
Shlee 61a21d6a36 Add crossorigin back to inert css (regression? of #30687) (#35876) 2025-08-25 06:54:47 +00:00
Eugen Rochkoanddiondiondion ccf7760205 Change viewport behaviour to cover (#34986)
Co-authored-by: diondiondion <mail@diondiondion.com>
2025-06-12 12:26:24 +00:00
Renaud Chaput ef1bf8e9f2 Fix polyfills naming and tag missing a source (#34768) 2025-05-22 12:54:47 +00:00
Renaud Chaput 83dd09d4dc Fix JS polyfills missing after the Vite switch (#34758) 2025-05-21 20:11:01 +00:00
EchoandRenaud Chaput c4f47adb49 Convert from Webpack to Vite (#34450)
Co-authored-by: Renaud Chaput <renchap@gmail.com>
2025-05-16 13:26:12 +00:00
Matt Jankowski c0264c8013 Extend custom CSS cache time with digest paths (#33207) 2025-01-08 08:48:45 +00:00
Matt Jankowski 0c3c06f7cc Remove vendor prefix from mobile-web-app-capable meta tag (#31845) 2024-09-10 17:32:58 +00:00
Matt Jankowski 4c4bcad866 Remove font-awesome npm package (#31512) 2024-08-20 15:59:47 +00:00
Claire 7a84b76bb1 Drop favicon.ico generation (#30375) 2024-06-26 13:44:08 +00:00
Renaud Chaput 43bbdea421 Fix invalid mask-icon when a custom instance icon is configured (#30734) 2024-06-17 09:00:26 +00:00
Louis Brauer f0ca874b09 Include crossorigin in inert css (#30687) 2024-06-13 14:37:43 +00:00
Matt Jankowski 2fdd782f21 Fix empty aria-hidden attribute value in logo resources area (#30570) 2024-06-06 07:50:15 +00:00
Jason Punyon 85c625d319 Fix repetitive database queries from #30040 (#30259) 2024-05-15 09:38:16 +00:00
Claire d8c4284723 Ensure custom favicon is converted to PNG and ICO (#30208) 2024-05-07 18:15:17 +00:00
Fawaz Farid bc24c4792d Allow admins to configure instance favicon and logo (#30040) 2024-05-06 15:06:52 +00:00
Matt Jankowski b61ae28f8d Separate methods for theme style and meta color tags (#29802) 2024-04-05 09:52:43 +00:00
Renaud Chaput 672c9f5f05 Change the theme-color value automatically when using a built-in theme (#29795) 2024-03-29 13:32:07 +00:00
Renaud ChaputandNishiki Liu 02ea161506 Support "system" theme setting (light/dark theme depending on user system preference) (#29748)
Co-authored-by: Nishiki Liu <hello@nshki.com>
2024-03-26 09:25:49 +00:00
Matt Jankowski d7ab5655ef Replace render_symbol method with inline_svg_tag usage (#29647) 2024-03-19 14:17:18 +00:00
Renaud Chaput cb5ac15923 Use a helper to avoid using media/ asset prefixes (#28756) 2024-01-17 12:19:51 +00:00
Renaud Chaput c6684aa1e3 Use the assets pipeline to load inert.css (#28701) 2024-01-12 09:32:45 +00:00
Matt Jankowski 548bb30b2a Consolidate html page title output logic into helper (#27563) 2023-11-09 13:05:57 +00:00
Renaud Chaput 42698b4c5c Fix the crossorigin attribute (#26096) 2023-07-21 11:14:26 +02:00
Claire 64f7a11658 Fix cross-origin loading of locales (#25498) 2023-06-18 15:47:04 +02:00
Renaud Chaput 44cd88adc4 Upgrade react-intl (#24906) 2023-05-31 23:43:39 +02:00
Claire 276c39361b Fix anonymous visitors getting a session cookie on first visit (#24584) 2023-04-25 16:51:38 +02:00
SJang1 053dac2afa Remove meta tag for official iOS app (#19656) 2022-11-04 00:13:07 +01:00
Eugen Rochko f910f0dc92 Fix wrong host being used for custom.css when asset host configured (#19521) 2022-10-29 14:04:24 +02:00
Eugen Rochko 1fd6460b02 Change floating action button to be a button in header in web UI (#19422)
- Fix theme color
- Fix elephant being too big on error page on small screens
- Remove "Follows and Followers" link from navigation panel
2022-10-23 15:58:24 +02:00
Eugen Rochko d696f729f1 Add meta tag for official iOS app (#16599) 2022-08-25 23:27:10 +02:00
Eugen Rochko 44b2ee3485 Add customizable user roles (#18641)
* Add customizable user roles

* Various fixes and improvements

* Add migration for old settings and fix tootctl role management
2022-07-05 02:41:40 +02:00
Claire 37cd984acf Fix logo gradient not working on some Safari and Blink-based browsers (#18634)
Works around https://bugs.chromium.org/p/chromium/issues/detail?id=258029
2022-06-10 17:34:59 +02:00
Eugen Rochko 45aa5781ce Change brand color and logotypes (#18592)
- Add rake task for generating Apple/Android icons and favicons from SVG
- Add rake task for generating PNG icons and logos for e-mails from SVG
- Remove obsolete Microsoft icons and configuration
- Remove PWA shortcut icons
2022-06-09 22:25:23 +02:00
Claire 117f6638d0 Fix SVG files not being correctly included in templates (#16001)
In Rails 6.1, raw file inclusion in templates have to be explicitly marked as
HTML-safe, otherwise it's rendered as text.
2021-04-05 13:05:49 +02:00
Claire 39a490c70e Fix custom CSS when CDN_HOST is set (#15927) 2021-03-19 20:23:08 +01:00
Eugen Rochko 9b1f2a4b61 Add subresource integrity for JS and CSS assets (#15096)
Fix #2744
2020-11-06 11:56:31 +01:00
ThibG 4c45b43cb8 Change how CDN_HOST is passed down to make assets build reproducible (#14381)
* Change how CDN_HOST is passed down to make assets build reproducible

* Change webpacker/webpack configuration to dynamically load publicPath based on meta header

* Fix embedded layout missing the cdn-host meta header
2020-10-13 01:19:35 +02:00
ThibG a783bdf4ad Fix hashtag column options styling (#14247)
* Enable nonces for stylesheets

* Pass nonce to react-select
2020-07-07 01:33:38 +02:00
ThibG e1629a7758 Remove 'unsafe-inline' from Content-Security-Policy style-src (#13679)
* Make sure wicg-inert doesn't rely on inline CSS

* Remove unsafe-inline from style-src
2020-05-08 21:22:57 +02:00
ThibGandEugen Rochko 0e362b7678 Fix end-user-facing uses of inline CSS (#13438)
* Move some inline styles to CSS files

* Move default_account_display_name span to fix useless tags with duplicate id

* Change handling of public pages spoiler text from inline CSS to dataset attribute

* Use the `dir` HTML attribute instead of inline CSS

* Move status action bar inline CSS to CSS file

* Hide logo resources from CSS file, not inline CSS

Fixes #11601

* Move translation prompt styling from inline CSS to CSS file

* Move “invited by” styling on registration form from inline to CSS file

* Use the progress tag to display poll results in JS fallback

* Fix poll results JS-less fallback when the user has voted for an option

* Change account public page “moved” notice to use img tags instead of inline CSS

* Move OTP hint inline CSS to SCSS file

* Hide JS-less fallback vote progressbars from accessibility tools

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
2020-04-28 10:16:55 +02:00
Eugen Rochko 20dda5cca0 Change full logo to use primary text color of the given theme (#10994)
* Change full logo to use primary text color of the given theme

* Fix colors of public layout header in light theme
2019-06-08 15:30:06 +02:00
Eugen Rochko 8d5dcc9301 Use <use /> to render transparent SVG logo instead of inserting it (#10845) 2019-05-27 03:33:39 +02:00
Eugen Rochko da7705b274 Add dns-prefetch if using different host for assets or uploads (#8942) 2018-10-10 01:31:10 +02:00
Eugen Rochko 22e46ebad8 Add theme identifier to body classes for easier custom CSS styling (#8439)
Add forgotten custom CSS admin setting strings
2018-08-25 22:55:25 +02:00