feather-icons实现图标菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:feather-icons实现图标菜单效果代码

代码标签: 菜单 效果

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


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

<head>

  <meta charset="UTF-8">




<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  
  
  
<style>
:root {
  --brand-color: hsl(358, 100%, 68%);
}

* {
  box-sizing: border-box
}

body {
  font-family: 'Poppins', sans-serif;
  background: hsl(220, 5%, 10%);
  color: hsl(220, 5%, 90%)
}

.wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh
}

.flex-inner {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
  width: 100%;
  max-width: 240px;
}

.p-title {
  
  margin: 0 0 0 16px;
}

ul {
  display: grid;
  grid-auto-rows: 1fr;
  grid-gap: 4px;
  list-style: none;
  background: hsl(220, 5%, 13%);
  padding: 16px;
  border-radius: 12px;
  width: 100%;
}

li {
  display: flex;
  align-items: center;
  font-weight: 400;
  padding-left: 0;
  margin: 0;
  padding: 8px 12px;
  cursor: pointer;
  transition-property: background, color;
  transition-duration: .05s;
  transition-timing-function: ea.........完整代码请登录后点击上方下载按钮下载查看

网友评论0