svg+css实现中性扁平运动app的ui效果代码

代码语言:html

所属分类:布局界面

代码描述:svg+css实现中性扁平运动app的ui效果代码

代码标签: svg css 中性 扁平 运动 app ui

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">

    <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;700&amp;display=swap'>

    <style>
        * {
        	border: 0;
        	box-sizing: border-box;
        	margin: 0;
        	padding: 0;
        }
        :root {
        	--hue: 184;
        	--bg: hsl(var(--hue),10%,90%);
        	--fg: hsl(var(--hue),66%,24%);
        	--primary: hsl(var(--hue),66%,44%);
        	--gradient: linear-gradient(145deg, hsl(var(--hue),10%,85%), hsl(var(--hue),10%,100%));
        	font-size: 16px;
        }
        body,
        button {
        	color: var(--fg);
        	font: 1em/1.5 "Nunito", sans-serif;
        }
        body {
        	background: var(--bg);
        	height: 100vh;
        	display: grid;
        	place-items: center;
        	padding: 1.5em 0 0 0;
        }
        body:after {
        	content: "";
        	display: block;
        	height: 1.5em;
        	width: 100%;
        }
        /* All */
        .app,
        .header,
        .main__date-nav,
        .main__stat-row,
        .main__stat-graph,
        .footer {
        	display: flex;
        }
        .header,
        .main__date-nav,
        .footer {
        	justify-content: space-between;
        }
        .header__profile-btn,
        .header__notes-btn,
        .main__date-arrow-btn,
        .main__date-edit-btn,
        .footer__nav-btn {
        	background: transparent;
        	display: flex;
        	outline: transparent;
        	transition: all 0.15s linear;
        	-webkit-appearance: none;
        	appearance: none;
        	-webkit-tap-highlight-color: transparent;
        }
        .app {
        	background: hsl(var(--hue),10%,85%);
        	border-radius: 3em;
        	flex-direction: column;
        	padding: 2.25em;
        	width: 390px;
        	height: 844px;
        }
        .app__gradients {
        	position: absolute;
        	width: 1px;
        	height: 1px;
        }
        .icon {
        	display: block;
        	margin: auto;
        	width: 1.5em;
        	height: 1.5em;
        }
        .icon circle,
        .icon path {
        	fill: currentColor;
        	transition: fill 0.15s linear;
        }
        .icon ellipse,
        .icon polygon {
        	stroke: currentColor;
        	transition: stroke 0.15s linear;
        }
        .icon .no-fill {
        	fill: none;
        	stroke: currentColor;
        }
        .icon--red path {
        	fill: hsl(3,90%,55%);
        }
        .icon--pulse {
        	animation:
        		bpm 1s linear,
        		pulse 0.75s 1s linear infinite;
        }
        .ring,
        .sr-only {
        	position: absolute;
        }
        .ring {
        	display: block;
        	inset: 0;
        .........完整代码请登录后点击上方下载按钮下载查看

网友评论0