component: replace word menu with three rows
This commit is contained in:
		
							parent
							
								
									4deeab8324
								
							
						
					
					
						commit
						e6f0d986dc
					
				@ -0,0 +1,23 @@
 | 
			
		||||
.DrawerToggle {
 | 
			
		||||
    width: 40px;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-flow: column;
 | 
			
		||||
    justify-content: space-around;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    padding: 10px 0;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.DrawerToggle div {
 | 
			
		||||
    width: 90%;
 | 
			
		||||
    height: 3px;
 | 
			
		||||
    background-color: white;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media (min-width: 500px) {
 | 
			
		||||
    .DrawerToggle {
 | 
			
		||||
        display: none;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -1,8 +1,13 @@
 | 
			
		||||
import React from 'react';
 | 
			
		||||
 | 
			
		||||
import classes from './DrawerToggle.css';
 | 
			
		||||
 | 
			
		||||
const drawerToggle = (props) => (
 | 
			
		||||
    <div onClick={props.clicked}>MENU</div>
 | 
			
		||||
    <div className={classes.DrawerToggle} onClick={props.clicked}>
 | 
			
		||||
        <div></div>
 | 
			
		||||
        <div></div>
 | 
			
		||||
        <div></div>
 | 
			
		||||
    </div>
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
export default drawerToggle;
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user