css实现图标侧边栏菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:css实现图标侧边栏菜单效果代码

代码标签: css 图标 侧边栏 菜单

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <style>
        /** Inspired by: http://graphicburger.com/flat-design-ui-components/ **/
    /** Line-chart and donut-chart made by @kseso https://codepen.io/Kseso/pen/phiyL **/
    
    
    /************************************ FONTS ************************************/
    @import url(https://fonts.googleapis.com/css?family=Ubuntu:400,700);
    @import url(https://weloveiconfonts.com/api/?family=entypo|fontawesome|zocial);
    /* entypo */
    [class*="entypo-"]:before {
      font-family: 'entypo', sans-serif;
    }
    /* fontawesome */
    [class*="fontawesome-"]:before {
      font-family: 'FontAwesome', sans-serif;
    }
    /* zocial */
    [class*="zocial-"]:before {
      font-family: 'zocial', sans-serif;
    }
    @font-face {
    	font-family: 'icomoon';
    	src:url('https://jlalovi-cv.herokuapp.com/font/icomoon.eot');
    	src:url('https://jlalovi-cv.herokuapp.com/font/icomoon.eot?#iefix') format('embedded-opentype'),
    		url('https://jlalovi-cv.herokuapp.com/font/icomoon.ttf') format('truetype'),
    		url('https://jlalovi-cv.herokuapp.com/font/icomoon.woff') format('woff'),
    		url('https://jlalovi-cv.herokuapp.com/font/icomoon.svg#icomoon') format('svg');
    	font-weight: normal;
    	font-style: normal;
    }
    
    [class^="icon-"], [class*=" icon-"] {
    	font-family: 'icomoon';
    	speak: none;
    	font-style: normal;
    	font-weight: normal;
    	font-variant: normal;
    	text-transform: none;
    	line-height: 1;
    
    	/* Better Font Rendering =========== */
    	-webkit-font-smoothing: antialiased;
    	-moz-osx-font-smoothing: grayscale;
    }
    .icon-cloudy:before {
    	content: "\e60f";
    }
    .icon-sun:before {
    	content: "\e610";
    }
    .icon-cloudy2:before {
    	content: "\e611";
    }
    /************************************* END FONTS *************************************/
    
    * {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;  
    }
    
    body {
    	background: #1f253d;
    }
    
    ul {
    	list-style-type: none;
    	margin: 0;
    	padding-left: 0;
    }
    
    h1 {
    	font-size: 23px;
    }
    
    h2 {
    	font-size: 17px;
    }
    
    p {
    	font-size: 15px;
    }
    
    a {
    	text-decoration: none;
    	font-size: 15px;
    }
    	a:hover {
    		text-decoration: underline;
    	}
    
    h1, h2, p, a, span{
    	color: #fff;
    }
    	.scnd-font-color {
    		color: #9099b7;
    	}
    
    .input-container {
    	position: relative;
    }
    	input[type=text]{
    		width: 260px;
    		height: 50px;
    		margin-left: 20px;
    		margin-bottom: 20px;
    		padding-left: 45px;
    		background: #50597b;
    		color: #fff;
    		border: solid 1px #1f253d;
    		border-radius: 5px;		
    	}
    		input[type=text]::-webkit-input-placeholder { /* WebKit browsers */
    	   		color: #fff;	   		
    	   	}
    		input[type=text]:-moz-input-placeholder { /* Mozilla Firefox 4 to 18 */
    	   		color: #fff;	   
    	   	}
    		input[type=text]::-moz-input-placeholder { /* Mozilla Firefox 19+ */
    	   		color: #fff;
    	   	}
    		input[type=text]:-ms-input-placeholder { /* Internet Explorer 10+ */
    	   		color: #fff;	   	
    	   	}
    	   	input[type=text]:focus {
    	   		outline: none; /* removes the default orange border when focus */
    	   		border: 1px solid #11a8ab;
    	   	}
    	.input-icon {
    		font-size: 22px;
    		position: absolute;
    		left: 31px;
    		top: 10px;
    	}
    		.input-icon.password-icon {
    			left: 35px;
    		}
    
    .horizontal-list {
    	margin: 0;
    	padding: 0;
    	list-style-type: none;
    }
    	.horizontal-list li {
    		float: left;
    	}
    
    .clear {
    	clear: both;
    }
    
    .icon {
    	font-size: 25px;
    }
    
    .titular {
    	display: block;
    	line-height: 60px;
    	margin: 0;
    	text-align: center;
    	border-top-left-radius: 5px;
    	border-top-right-radius: 5px;
    }
    
    .button {
    	display: block;
    	width: 175px;
    	line-height: 50px;
    	font-size: 16px;
    	font-weight: 700;
    	text-align: center;
    	margin: 0 auto;
    	border-radius: 5px;
    	-webkit-transition: background .3s;
    	transition: background .3s;
    }
    	.button:hover {
    		text-decoration: none;
    	}
    
    .arrow-btn-container {
    	position: relative;
    }
    	.arrow-btn {
    		position: absolute;
    		display: block;
    		width: 60px;
    		height: 60px;
    		-webkit-transition: background .3s;
    		transition: background .3s;
    	}
    		.arrow-btn:hover {
    			text-decoration: none;
    		}
    		.arrow-btn.left {
    			border-top-left-radius: 5px;
    		}
    		.arrow-btn.right {
    			border-top-right-radius: 5px;
    			right: 0;
    			top: 0;
    		}
    		.arrow-btn .icon {
    			display: block;
    			font-size: 18px;
    			border: 2px solid #fff;
    			border-radius: 100%;
    			line-height: 17px;
    			width: 21px;
    			margin: 20px au.........完整代码请登录后点击上方下载按钮下载查看

网友评论0