svg+css颜色名文字围成圆盘代码

代码语言:html

所属分类:其他

代码描述:svg+css颜色名文字围成圆盘代码,可调节参数

代码标签: svg css 颜色名 文字 围成 圆盘 代码

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

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />

    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/Iosevka/6.0.0/iosevka/iosevka.min.css"
    />
<style>
    @import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@200..800&family=Inter:wght@100..900&family=Space+Mono:wght@400;700&display=swap");

@font-face {
  font-family: "Mekzantine";
  src: url("./MEKZANTINE-Regular.woff2") format("woff2"),
    url("./MEKZANTINE-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0c;
  --panel: #fff;
  --line: #26262e;
  --ink: #686868;
  --dim: #000;
  --accent: turquoise;
  --sidebar: min(18rem, 88vw);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  accent-color: var(
    --accent
  ); /* inherited: styles the range slider + checkboxes */
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
}
body {
  display: flex;
  min-height: 100vh;
}
aside {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  width: var(--sidebar);
  height: 100%;
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: "Iosevka Web", ui-monospace, monospace;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.3, .7, 0, 1);
  scrollbar-color: var(--line) var(--panel);
  scrollbar-width: thin;
}
body.menu-open aside {
  transform: translateX(0);
}
h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 300;
}
h1 small {
  display: block;
  color: var(--dim);
  font-weight: 400;
  margin-top: 3px;
  font-size: 0.6875rem;
}
.grp {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
}
.grp > label.head {
  font-size: 1rem;
  color: var(--dim);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.row .val {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  text-align: right;
}
input[type="range"] {
  width: 100%;
  height: 1.125rem;
}
input[type="text"],
select {
  width: 100%;
  font: inherit;
  font-size: 0.75rem;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.75rem 0.5rem;
}
input[type="text"]:foc.........完整代码请登录后点击上方下载按钮下载查看

网友评论0