From 0b9defc5d3746a9061d67f016dfbdadde2525f8e Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 13 Dec 2020 23:11:23 +0200 Subject: [PATCH] Fix menu on desktop --- dashboard/src/style/docs.pcss | 6 ++++-- dashboard/tailwind.config.js | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dashboard/src/style/docs.pcss b/dashboard/src/style/docs.pcss index 2bb3e17f..df8e5e72 100644 --- a/dashboard/src/style/docs.pcss +++ b/dashboard/src/style/docs.pcss @@ -2,8 +2,10 @@ & .router-link-active { @apply underline; } +} - &.closed:not(:focus-within) { - @apply sr-only; +@screen until-sm { + .docs-sidebar.closed:not(:focus-within) { + @apply sr-only; } } diff --git a/dashboard/tailwind.config.js b/dashboard/tailwind.config.js index 310c3eec..f1ea9292 100644 --- a/dashboard/tailwind.config.js +++ b/dashboard/tailwind.config.js @@ -9,6 +9,14 @@ module.exports = { full: '0 0 100%', flexible: '1 1 0' } + }, + screens: { + sm: '640px', + 'until-sm': { max: '639px' }, + md: '768px', + lg: '1024px', + xl: '1280px', + '2xl': '1536px' } }, variants: {},