framework/less/forum
Pierre Schmitz f1ba5e7b70
Limit height of code blocks (#3012)
* Limit height of code blocks

Users often post lengthy code or configuration listings which makes following the actual discussion difficult. Therefore we limit a code block by half a screen while still being able to scroll through the code listing itself.

* Define a minimal code block height for small screens

* Add max-height compatibility for browsers that don't support `max()`

See https://caniuse.com/css-math-functions

* Less has a built-in `max` function, so we need to escape this value

Co-authored-by: David Wheatley <hi@davwheat.dev>
2021-08-11 20:28:02 +01:00
..
ActivityPage.less Replace spin.js with a CSS-only loading spinner (#2764) 2021-04-09 00:42:32 +01:00
AvatarEditor.less Fix uses of loading spinner (#2797) 2021-04-21 12:26:09 +01:00
Composer.less Fix uses of loading spinner (#2797) 2021-04-21 12:26:09 +01:00
DiscussionHero.less Tweak display of badges in the discussion hero 2015-07-22 09:58:14 +09:30
DiscussionList.less Replace spin.js with a CSS-only loading spinner (#2764) 2021-04-09 00:42:32 +01:00
DiscussionListItem.less Update DiscussionListItem.less to fix double tap on mobile (#2607) 2021-02-17 08:51:09 -05:00
DiscussionPage.less Reconfigure z-index hierarchy: show dropdowns above post composer 2016-03-28 13:32:23 +10:30
Hero.less Componentize welcome hero close button 2015-07-23 14:47:27 +09:30
IndexPage.less Slightly widen index sidebar, overflow buttons properly 2016-02-07 12:10:02 +10:30
LogInButton.less Improve LoginButton styles, make popup window smaller 2015-12-05 15:19:24 +10:30
LogInModal.less Major CSS revamp 2015-07-17 14:47:49 +09:30
NotificationGrid.less Remove fa-fw class from all icons 2017-07-22 11:45:42 +09:30
NotificationList.less Fix image avatar alignment in notifications (#2906) 2021-06-11 12:13:57 +01:00
NotificationsDropdown.less Don't use body as tooltip container, allow notification area overflow (#2166) 2020-05-15 20:10:40 -04:00
Post.less Limit height of code blocks (#3012) 2021-08-11 20:28:02 +01:00
PostStream.less Refactor PostStream animations (#2364) 2020-10-15 17:34:35 -04:00
Scrubber.less Fix missing vendor prefix on post scrubber; move styles to Less 2021-04-05 23:19:52 +01:00
SettingsPage.less Add padding between items in fieldsets on the settings page 2016-03-10 17:56:18 +10:30
SignUpModal.less Fix sign up modal 2015-07-23 14:30:55 +09:30
Slidable.less Use @control-bg for Slidable content (#2381) 2020-10-09 14:37:47 -04:00
UserCard.less Profile group badge overlapping fix (#1506) 2018-12-12 22:24:30 +01:00
UserPage.less Fix dropdown icon not showing in UserCard when on UserPage 2019-05-01 22:54:13 +02:00