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/all.5.6.1.css">
  
<style>
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 12px;
}

body {
  height: 100%;
  overflow-x: hidden;
  margin: 0;
  font-family: "Open Sans", Helvetica, sans-serif;
  color: #0c0a3d;
}

input {
  font-family: "Open Sans", Helvetica, sans-serif;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

textarea:focus,
input:focus {
  outline: none;
}

a {
  text-decoration: none;
  color: #bbbbca;
}

.wrapper {
  display: grid;
  height: 100vh;
  grid-template-rows: 7.5rem 1fr;
  grid-template-columns: 6.5rem 1fr;
  grid-template-areas: "aside header" "aside main";
  flex-wrap: wrap;
}
@media screen and (max-width: 400px) {
  .wrapper {
    grid-template-columns: initial;
    grid-template-rows: initial;
  }
}

.header {
  grid-area: header;
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  padding: 1rem 3rem;
}
@media screen and (max-width: 400px) {
  .header {
    gap: 0.75rem;
    padding: 0.75rem;
  }
}
.header .btn-appointment {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  height: fit-content;
  color: #fff;
  background: #9395ed;
  background: linear-gradient(90deg, #9395ed 0%, #6c6de3 100%);
  font-weight: 600;
}
.header .profile {
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
}
.header .profile .image {
  justify-self: end;
}
.header .profile .image img {
  width: 4rem;
  height: 4rem;
  border-radius: 4rem;
}
.header .profile .image .notification {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -1.7rem;
  margin-left: 3rem;
  background-color: #ff7d7d;
  border-radius: 1.25rem;
  box-shadow: 0px 0px 10px 0px #ff7d7d;
}
@media screen and (max-width: 400px) {
  .header .profile .image .notification {
    margin-top: -1.5rem;
    margin-left: 2.3rem;
  }
}
.header .profile select {
  height: fit-content;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Open Sans", Helvetica, sans-serif;
}

.aside {
  grid-area: aside;
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
  justify-content: center;
  font-size: 1.5rem;
  color: #bbbbca;
  background-color: #fcfdfd;
}
@media screen and (max-width: 400px) {
  .aside {
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #f1f1f1;
    justify-content: initial;
  }
}
.aside ul {
  display: grid;
  grid-template-rows: repeat(8, min-content);
  gap: 3rem;
  margin-top: 0.75rem;
}
@media screen and (max-width: 400px) {
  .aside ul {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: none;
    margin-top: 0;
  }
  .aside ul .hide,
.aside ul .logo.hide {
    display: none;
  }
}
.aside ul li {
  display: grid;
  place-items: center;
  padding: 0.5rem 0.75rem;
}
.aside ul li.active {
  background-color: #fff;
  -webkit-box-shadow: 0px 0px 33px -10px rgba(126, 127, 232, 0.5);
  -moz-box-shadow: 0px 0px 33px -10px rgba(126, 127, 232, 0.5);
  box-shadow: 0px 0px 33px -10px rgba(126, 127, 232, 0.5);
  border-radius: 0.75rem;
}
.aside ul li.active a {
  color: #7e7fe8;
}
.aside ul li.logo img {
  width: 3rem;
}
.aside ul li.logo a {
  color: #fff;
  text-align: center;
  font-size: 1.25rem;
}

.main {
  padding: 3rem;
  grid-area: main;
  background-color: #edf1fb;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
}
@media screen and (max-width: 1148px) {
  .main {
    grid-template-rows: initial;
  }
}
@media screen and (max-width: 400px) {
  .main {
    padding: 1rem 0 6rem 0;
    gap: 1rem;
  }
}
.main .top {
  display: grid;
  grid-template-columns: 5fr 8fr;
  gap: 2rem;
}
@media screen and (max-width: 1148px) {
  .main .top {
    grid-template-columns: initial;
  }
}
@media screen and (max-width: 400px) {
  .main .top {
    gap: 1rem;
  }
}
.main .bottom {
  display: grid;
  gap: 2rem;
  grid-template-columns: 4.2fr 3.8fr 5.2fr;
}
@media screen and (max-width: 1148px) {
  .main .bottom {
    grid-template-columns: initial;
  }
}
@media screen and (max-width: 400px) {
  .main .bottom {
    gap: 1rem;
  }
}
.main .card {
  background-color: #fff;
  border-radius: 0.3rem;
  padding: 2rem;
}
.main .card .card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.main .ca.........完整代码请登录后点击上方下载按钮下载查看

网友评论0