css布局实现教育后台管理仪表盘页面UI效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现教育后台管理仪表盘页面UI效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.6.1.css"> <style> @import url("https://fonts.googleapis.com/css2?family=Muli:ital,wght@0,200;0,300;0,400;0,800;0,900;1,200;1,300;1,800;1,900&display=swap"); /*=============== COLORS========== */ /*=============== SOURCE AND TYPOGRAPHY ========== */ /*=============== Z INDEX ========== */ /* ================== Mixin ======================= */ /* ==================Css Reset======================= */ * { box-sizing: border-box; margin: 0; background-color: transparent; } body { font-family: "Muli", sans-serif; } a { text-decoration: none; } h2, h4, h5 { font-style: 16px; margin: 1rem; } h3, p { font-size: 16px; margin: 0.6rem; } span { font-size: 12px; } .f3 { font-size: 30px; margin-top: 10px; } .text-center { text-align: center; } ul { margin: 0; padding: 0; list-style: none; } .orange { color: #ff8f00; } .wrapper { width: 100%; height: 100vh; display: grid; overflow: hidden; grid-template-areas: "sidebar profile profile profile" "sidebar details details details" "sidebar information information information"; grid-template-rows: repeat(3, 1fr); grid-template-columns: 1fr repeat(3, 5fr); transition: padding 0.3s ease-in-out; } /*=============== L NAV ========== */ .l-navbar { position: fixed; display: grid; grid-area: sidebar; top: 0; left: 0; width: 92px; height: 100vh; background-color: #12192c; color: #fff; padding: 1.5rem 1.5rem 2rem; z-index: 100; transition: 0.5s; /*=============== NAV ========== */ } .l-navbar .nav { height: 100%; display: flex; justify-content: space-between; overflow: hidden; flex-direction: column; } .l-navbar .nav .nav__brand { display: grid; grid-template-columns: max-content max-content; justify-content: space-between; align-items: center; margin-bottom: 2rem; /* =============== grid-list-button ==========*/ } .l-navbar .nav .nav__brand .grid-list-button { background-color: transparent; padding: 10px; outline: none; cursor: pointer; border: 0; transition: 0.3s ease-in-out; } .l-navbar .nav .nav__brand .grid-list-button:active { transform: scale(0.9); } .l-navbar .nav .nav__brand .grid-list-button .icon { position: relative; display: block; width: 24px; height: 24px; } .l-navbar .nav .nav__brand .grid-list-button .dots i { position: absolute; width: 11px; height: 11px; border-radius: 1px; background-color: #ffffff; animation-duration: 0.4s; animation-fill-mode: forwards; animation-duration: normal; } .l-navbar .nav .nav__brand .grid-list-button .dots i:nth-child(1) { left: 0; top: 0; border-top-left-radius: 2px; } .l-navbar .nav .nav__brand .grid-list-button .dots i:nth-child(2) { left: 14px; top: 0; border-top-right-radius: 2px; } .l-navbar .nav .nav__brand .grid-list-button .dots i:nth-child(3) { left: 0; top: 14px; border-bottom-left-radius: 2px; } .l-navbar .nav .nav__brand .grid-list-button .dots i:nth-child(4) { left: 14px; top: 14px; background-color: #ffc502; border: none; } .l-navbar .nav .nav__brand .grid-list-button .lines i { position: absolute; right: 0; width: 16px; height: 3px; border-radius: 2px; background-color: #fff; animation-duration: 0.4s; animation-fill-mode: forwards; animation-direction: reverse; transform-origin: 100% 0; transform: scaleX(0); } .l-navbar .nav .nav__brand .grid-list-button .lines i:nth-child(1) { top: 1px; } .l-navbar .nav .nav__brand .grid-list-button .lines i:nth-child(2) { top: 8px; } .l-navbar .nav .nav__brand .grid-list-button .lines i:nth-child(3) { top: 15px; } .l-navbar .nav .nav__brand .grid-list-button .lines i:nth-child(4) { top: 22px; } .l-navbar .nav .nav__brand .grid-list-button.animation .dots i:nth-child(1) { animation-name: dotScale; } .l-navbar .nav .nav__brand .grid-list-button.animation .dots i:nth-child(3) { animation-name: dotScale; } .l-navbar .nav .nav__brand .grid-list-button.animation .dots i:nth-child(2) { animation-name: dotScale, dotMove; } .l-navbar .nav .nav__brand .grid-list-button.animation .dots i:nth-child(4) { animation-name: dotScale, dotMove; } .l-navbar .nav .nav__brand .grid-list-button.animation .lines i:nth-child(1) { animation-name: lineScale; } .l-navbar .nav .nav__brand .grid-list-button.animation .lines i:nth-child(3) { animation-name: lineScale; } .l-navbar .nav .nav__brand .grid-list-button.animation .lines i:nth-child(2) { animation-name: lineScaleX; } .l-navbar .nav .nav__brand .grid-list-button.animation .lines i:nth-child(4) { animation-name: lineScaleX; } .l-navbar .nav .nav__brand .grid-list-button.list .lines i { animation-direction: normal; } .l-navbar .nav .nav__brand .nav__logo { color: #fff; font-weight: 600; } .l-navbar .nav .nav__list { margin-top: 15rem; } .l-navbar .nav .nav__link { display: grid; grid-template-columns: max-content max-content; align-items: center; color: #fff; column-gap: 0.75rem; padding: 0.75rem; border-radius: 0.5rem; margin-bottom: 1rem; transition: 0.3s; cursor: pointer; } .l-navbar .nav .nav__link:hover { background-color: #0c5df4; } .l-navbar .nav .nav__icon { font-size: 1.25rem; } .l-navbar .nav .nav__name { font-size: 0.875rem; } .l-navbar .nav ion-icon[name=mail-outline].nav__icon { position: relative; } .l-navbar .nav ion-icon[name=mail-outline].nav__icon::before { position: absolute; top: 0; right: 0; content: ""; width: 7px; height: 7px; border-radius: 50%; background-color: #ff8f00; } /* Expander menu */ .expander { width: calc(var(--nav-width) + 9.25rem); } /* Add padding body */ .body-pd { padding: 0 0 0 4.5rem; } .body-pd .d.........完整代码请登录后点击上方下载按钮下载查看
网友评论0