div+css实现仪表盘布局切换代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现仪表盘布局切换代码

代码标签: div css 仪表盘 布局 切换 代码

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

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
    :root {
  --bg: #f4f4f9;
  --fg: #1a1a2e;
  --card-bg: #ffffff;
  --accent: #6c5ce7;
  --accent-2: #00cec9;
  --border: rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --fg: #f4f4f9;
  --card-bg: #1e1e2e;
  --accent: #a29bfe;
  --accent-2: #00cec9;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--fg);
  height: 100vh;
  overflow: hidden;
  transition: background 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0