css布局实现黑色大气书签页面ui交互效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现黑色大气书签页面ui交互效果代码
代码标签: 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/normalize.5.0.css">
<style>
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
* {
outline: none;
box-sizing: border-box;
}
:root {
--theme-bg-color: #0e0e0e;
--theme-color: #fff;
--theme-inactive-color: #5c5c5c;
--body-font: "Poppins", sans-serif;
--border-color: #252424;
--card-color: #131a1a;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
padding: 2em;
color: var(--theme-color);
font-family: var(--body-font);
background-color: #1b1b1b;
}
@media (max-width: 480px) {
body {
padding: 0.5em;
}
}
.app {
background-color: var(--theme-bg-color);
width: 100%;
max-width: 1200px;
height: 92vh;
max-height: 900px;
border-radius: 20px;
overflow: hidden;
display: flex;
position: relative;
}
.sidebar {
flex-basis: 284px;
display: flex;
flex-direction: column;
height: 100%;
flex-shrink: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 50px;
}
@media (max-width: 480px) {
.sidebar {
display: none;
}
}
.sidebar-menu {
display: inline-flex;
flex-direction: column;
padding-top: 64px;
}
.sidebar-menu__link {
color: var(--theme-inactive-color);
text-decoration: none;
font-size: 20px;
font-weight: 500;
transition: 0.3s;
}
.sidebar-menu__link + .sidebar-menu__link {
margin-top: 24px;
}
.sidebar-menu__link:hover, .sidebar-menu__link.active {
color: var(--theme-color);
}
.user {
display: flex;
flex-direction: column;
padding-bottom: 64px;
border-bottom: 1px solid var(--border-color);
}
.user-photo {
width: 54px;
height: 54px;
border-radius: 10px;
-o-object-fit: cover;
object-fit: cover;
flex-shrink: 0;
margin-bott.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0