diff --git a/release-notes/8.0.0/feat/4134.md b/release-notes/8.0.0/feat/4134.md new file mode 100644 index 0000000000..ddef4c0fb7 --- /dev/null +++ b/release-notes/8.0.0/feat/4134.md @@ -0,0 +1 @@ +Code Search results are now displayed in a foldable box diff --git a/tailwind.config.js b/tailwind.config.js index 8f3e8c8251..42962b972b 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -44,8 +44,6 @@ export default { 'backdrop-filter', // we use double-class tw-hidden defined in web_src/css/helpers.css for increased specificity 'hidden', - // unneeded classes - '[-a-zA-Z:0-9_.]', ], theme: { colors: { @@ -100,6 +98,22 @@ export default { }, }, plugins: [ + plugin(({addUtilities}) => { + // base veriables required for tranform utilities + // added as utilities since base is not imported + // note: required when using tailwind's transform classes + addUtilities({ + '.transform-reset': { + '--tw-translate-x': 0, + '--tw-translate-y': 0, + '--tw-rotate': 0, + '--tw-skew-x': 0, + '--tw-skew-y': 0, + '--tw-scale-x': '1', + '--tw-scale-y': '1', + }, + }); + }), plugin(({addUtilities}) => { addUtilities({ // tw-hidden must win all other "display: xxx !important" classes to get the chance to "hide" an element. diff --git a/templates/shared/search/code/results.tmpl b/templates/shared/search/code/results.tmpl index a98a662654..50d4a35c3c 100644 --- a/templates/shared/search/code/results.tmpl +++ b/templates/shared/search/code/results.tmpl @@ -11,26 +11,31 @@