forked from MapComplete/MapComplete
		
	Fix landscape mode
This commit is contained in:
		
							parent
							
								
									593ac5381a
								
							
						
					
					
						commit
						1b73f0a43a
					
				
					 9 changed files with 43 additions and 98 deletions
				
			
		|  | @ -1,24 +1,32 @@ | |||
| const plugin = require('tailwindcss/plugin') | ||||
| 
 | ||||
| module.exports = { | ||||
|   purge: [ | ||||
|     // './**/*.html',
 | ||||
|     // './**/*.js',
 | ||||
|   ], | ||||
|   darkMode: false, // or 'media' or 'class'
 | ||||
|   theme: { | ||||
|     extend: { | ||||
|       maxHeight: { | ||||
|         '65vh': '65vh', | ||||
|         '20vh': '20vh', | ||||
|       }, | ||||
|       screens: { | ||||
|         'landscape': { 'raw': '(max-height: 600px) and (min-width: 600px)' }, | ||||
|       }, | ||||
|     purge: [ | ||||
|         // './**/*.html',
 | ||||
|         // './**/*.js',
 | ||||
|     ], | ||||
|     darkMode: false, // or 'media' or 'class'
 | ||||
|     theme: { | ||||
|         extend: { | ||||
|             maxHeight: { | ||||
|                 '65vh': '65vh', | ||||
|                 '20vh': '20vh', | ||||
|             } | ||||
|         }, | ||||
|     }, | ||||
|   }, | ||||
|   variants: { | ||||
|     extend: { | ||||
|       ringColor: ['hover'], | ||||
|     } | ||||
|   }, | ||||
|   plugins: [], | ||||
|     variants: { | ||||
|         extend: { | ||||
|             ringColor: ['hover'], | ||||
|         } | ||||
|     }, | ||||
|     plugins: [ | ||||
|         plugin(function ({addVariant, e}) { | ||||
|             addVariant('landscape', ({modifySelectors, separator}) => { | ||||
|                 modifySelectors(({className}) => { | ||||
|                     return `.${e(`landscape${separator}${className}`)}:landscape` | ||||
|                 }) | ||||
|             }) | ||||
|         }) | ||||
| 
 | ||||
|     ] | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue