three实现三维立体饼状图编辑设计器代码

代码语言:html

所属分类:图表

代码描述:three实现三维立体饼状图编辑设计器代码

代码标签: three 三维 立体 饼状图 编辑 设计器 代码

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

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <style>
        :root {
  --panel: #0a1320;
  --panel-soft: #0f1b2b;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eef5ff;
  --muted: #8092a8;
  --muted-strong: #a8b7c9;
  --accent: #67d9c9;
  --input: #101d2d;
  --input-hover: #132236;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #08111e;
  color: var(--text);
  font-family: Inter, ui-sans-serif, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.container {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.control-panel {
  position: relative;
  z-index: 5;
  min-width: 0;
  padding: 28px 24px 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 0%, rgba(71, 126, 173, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(10, 19, 32, 0.98), rgba(7, 14, 24, 0.99));
  border-right: 1px solid var(--panel-border);
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.24);
}

.control-panel::-webkit-scrollbar {
  width: 8px;
}

.control-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 13px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

h1 {
  font-size: 23px;
  font-weight: 720;
}

h2 {
  font-size: 27px;
  font-weight: 680;
}

.panel-intro {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.panel-section {
  padding: 20px 0;
  border-top: 1px solid var(--panel-border);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.field {
  display: block;
  margin-bottom: 16px;
  transition: opacity 180ms ease;
}

.field > span,
.field-row label {
  display: block;
  margin-bottom: 8px;
  color: #9fb0c4;
  font-size: 12px;
  font-weight: 600;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.field-row label {
  margin: 0;
}

output {
  min-width: 43px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9d7e7;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

select,
.data-row input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  outline: none;
  background: var(--input);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

select {
  padding: 0 12px;
  cursor: pointer;
}

select:hover,
.data-row input:hover {
  background: var(--input-hover);
}

select:focus,
.data-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0