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 */
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0