feat: tablet responsiveness (#1369)
* feat: "Notes" column responsiveness for tablets * feat: ability to expand/collapse the navigation column, move some styles to tailwind * feat: ability to expand/collapse the navigation column, move some styles to tailwind * feat: icon for collapsing/expanding navigation column, style improvements * fix: restore vertical panels resizability on large screens * feat: tags/folders section for collapsed state * feat: notes subsection styling in navigation section * feat: hide rename & delete links of smart views when in collapsed mode * fix: show notes count in bold when in collapsed mode * fix: better padding for folders in collapsed state * fix: smaller left padding for collapsed case * fix: better view of expand/collapse control * fix: hide search bar when collapsed * fix: adjust position of "expand" control when in collapsed state * chore: remove comments * refactor: use `classNames` util when applying conditional css classes * chore: shorter class names syntax * chore: shorter syntax for conditional classes * fix: better way of setting background color with opacity * fix: use variable colors according to SN themes * chore: move "colors" from "extend" section and thus override Tailwind's colors (so only SN colors will exist) * fix: correct hover style in collapsed mode * fix: correct upper boundary for extra small screens
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
|
||||
module.exports = {
|
||||
content: ['./src/javascripts/**/*.tsx', '../toast/src/**/*.tsx'],
|
||||
theme: {
|
||||
@@ -9,6 +10,7 @@ module.exports = {
|
||||
26: '6.5rem',
|
||||
30: '7.5rem',
|
||||
70: '17.5rem',
|
||||
87.5: '21.875rem',
|
||||
125: '31.25rem',
|
||||
160: '40rem',
|
||||
},
|
||||
@@ -70,6 +72,15 @@ module.exports = {
|
||||
fontSize: {
|
||||
'menu-item': '0.813rem',
|
||||
},
|
||||
screens: {
|
||||
'xsm-only': { min: '320px', max: '639px' },
|
||||
'sm-only': { min: '640px', max: '767px' },
|
||||
'md-only': { min: '768px', max: '1023px' },
|
||||
'lg-only': { min: '1024px', max: '1279px' },
|
||||
},
|
||||
transitionProperty: {
|
||||
width: 'width',
|
||||
},
|
||||
},
|
||||
colors: {
|
||||
transparent: 'transparent',
|
||||
|
||||
Reference in New Issue
Block a user