discourse/app/assets/stylesheets/desktop
Martin Brennan ff96d541e9
FEATURE: Add fullscreen button for code blocks (#16044)
This commit extends the original copy-codeblocks initializer,
renaming it to codeblock-buttons, and adding another button
to make the code block fullscreen in a modal window. The fullscreen
code is then run through highlight.js.

This commit also moves much of the code out of the initializer
and into a reusable CodeblockButtons class, so it can also be used
in the fullscreen code modal for the copy + paste button.

The fullscreen button will not be shown if there is no scroll overflow
in the code block, nor will it be shown on mobile. This commit also
changes the fullscreen table button to not show on mobile.

This will make long lines of code much easier to read and interact
with. This is gated behind the same `show_copy_button_on_codeblocks`
site setting.
2022-03-01 08:37:24 +10:00
..
admin DEV: Added support for custom site setting 'emoji_list' (#12414) 2021-04-07 15:32:05 +02:00
components FEATURE: Make max number of favorite configurable (#13480) 2021-06-22 18:58:03 +03:00
_index.scss UX: Make banner full-width (#15038) 2021-11-22 19:43:45 +01:00
admin_customize.scss UX: Editing theme name stays active when switching themes. 2019-04-23 14:57:14 +08:00
category-list.scss UX: Remove :empty on topic-statuses, clean up (#14227) 2021-09-02 15:35:35 -04:00
compose.scss FIX: Display composer popovers over dropdowns (#15659) 2022-01-20 17:55:55 +01:00
discourse.scss DEV: Clean up some styles (#14374) 2021-09-20 09:52:03 -04:00
edit-category.scss UX: Move category editing/creation to its own page (#10973) 2020-10-23 12:49:02 -04:00
group.scss UX: Fix alignment in group navigation bar (#15169) 2021-12-02 09:45:33 -05:00
header.scss REFACTOR: Remove position fixed from the header and use sticky instead (#10781) 2020-10-19 17:26:38 -04:00
history.scss UX: History controls should use nav-pill styles (#13904) 2021-07-30 19:52:15 -04:00
latest-topic-list.scss FIX: Revert color of post-map (#12774) 2021-04-20 17:38:13 -05:00
login.scss UX: adjust invite and related form spacing (#15556) 2022-01-13 08:41:28 +11:00
menu-panel.scss FIX: ensure menu not too tall on desktop only 2019-11-03 18:47:53 -05:00
modal.scss Improved create invite modal (#14151) 2021-11-18 20:19:02 +02:00
topic-list.scss UX: update navigation-container scaling & wrapping (#15372) 2021-12-20 17:08:03 -05:00
topic-post.scss FEATURE: Add fullscreen button for code blocks (#16044) 2022-03-01 08:37:24 +10:00
topic.scss REFACTOR: Use IntersectionObserver to calculate topic progress position (#14698) 2021-10-29 09:23:15 -04:00
upload.scss FEATURE: use native file picker in composer (#13552) 2021-06-30 12:45:47 +04:00
user.scss UX: remove style that breaks composer on pm page (#15189) 2021-12-03 21:56:37 -05:00