css布局实现cms内容管理系统后台发布文章内容页面UI效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现cms内容管理系统后台发布文章内容页面UI效果代码

代码标签: css cms 发布 文章 布局 后台

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">


    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">


    <style>
        @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
        *,
        *:after,
        *:before {
          box-sizing: border-box;
        }
        
        body {
          font-family: "Inter", sans-serif;
          line-height: 1.5;
          overflow-y: hidden;
        }
        
        input,
        button,
        select,
        textarea {
          font: inherit;
        }
        
        img {
          display: block;
          max-width: 100%;
        }
        
        .window {
          display: grid;
          grid-template-columns: auto auto auto;
          grid-template-rows: 100vh;
        }
        
        .window-header {
          background-color: #05043e;
        }
        
        .navigation {
          padding: 0.75rem;
          display: flex;
          flex-direction: column;
          height: 100%;
          justify-content: space-between;
        }
        
        .navigation-top,
        .navigation-bottom {
          display: flex;
          flex-direction: column;
        }
        
        .navigation-item {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 3rem;
          height: 3rem;
          border-radius: 6px;
          color: #fff;
          transition: 0.15s ease;
          position: relative;
        }
        .navigation-item + * {
          margin-top: 0.5rem;
        }
        .navigation-item:hover, .navigation-item.active {
          background-color: #2b2a5b;
        }
        .navigation-item .avatar {
          max-width: 1.75rem;
          max-height: 1.75rem;
        }
        .navigation-item:hover .navigation-item-title {
          transform: scale(1);
          opacity: 1;
        }
        .navigation-item--notification::after {
          position: absolute;
          content: "";
          display: block;
          width: 8px;
          height: 8px;
          background-color: #3f5efb;
          border-radius: 50%;
          top: 8px;
          right: 8px;
        }
        
        .navigation-item-title {
          justify-self: flex-end;
          position: absolute;
          transform: scale(0);
          transform-origin: 0% 50%;
          left: calc(100% + .75rem);
          opacity: 0;
          transition: 0.15s ease;
          width: auto;
          z-index: 300;
          background-color: #2b2a5b;
          display: block;
          white-space: nowrap;
          padding: 0.5em 1em;
          border-radius: 6px;
          box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
        }
        .navigation-item-title:before {
          position: absolute;
          content: "";
          display: block;
          width: 10px;
          height: 10px;
          background-color: #2b2a5b;
          transform: translateY(-50%) rotate(45deg);
          left: -5px;
          top: 50%;
          box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
        }
        
        .window-main-header {
          border-bottom: 1px solid #ddd;
          background-color: #fff;
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
          align-items: center;
          padding: 0.75rem 0.75rem 0.75rem 2rem;
        }
        
        .window-main-body {
          display: grid;
          grid-template-columns: 4fr 1fr;
          grid-template-rows: calc(100vh - 62px);
        }
        
        .breadcrumbs {
          display: flex;
          flex-wrap: wrap;
        }
        
        .breadcrumbs-item {
          margin-right: 0.375rem;
          display: inline-flex;
          align-items: center;
        }
        .breadcrumbs-item:not(:last-child):after {
          margin-left: 0.375rem;
          content: "";
          display: inline-flex;
          background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 6L15 12L9 18' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
          background-size: 1rem;
          background-repeat: no-repeat;
          background-position: 50% 50%;
          width: 1.5rem;
          height: 1em;
        }
        .breadcrumbs-item a {
          color: #454545;
          display: inline-flex;
          align-items: center;
          text-decoration: none;
        }
        .breadcrumbs-item a svg {
          width: 1rem;
          margin-right: 0.375rem;
          color: #8015cb;
        }
        
        .editor {
          padding-top: 3rem;
          padding-bottom: 5rem;
          padding-left: 5vw;
          padding-right: 5vw;
          height: 100%;
          overflow-y: auto;
          background-color: #efefef;
        }
        .editor::-webkit-scrollbar {
          width: 15px;
          background-color: #efefef;
        }
        .editor::-webkit-scrollbar-thumb {
          width: 5px;
          border-radius: 99em;
          background-color: #cdcdcd;
          border: 5px solid #efefef;
        }
        
        .editor-input-group {
          display: flex;
          flex-direction: column;
        }
        .editor-input-group + * {
          margin-top: 1.5rem;
        }
        
        .editor-input-label {
          font-weight: 600;
        }
        
        .editor-textarea {
          margin-top: -1px;
          border: 1px solid #ddd;
          padding: 0.75em;
        }
        
        .editor-toolbar {
          background-color: #fff;
          border: 1px solid #ddd;
          padding: 0.5rem;
          display: flex;
          flex-wrap: wrap;
          top: calc(-3rem - 1px);
          position: sticky;
          z-index: 200;
          align-items: center;
        }
        
        .editor-toolbar-item {
          background-color: transparent;
          border: 0;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          border-radius: 6px;
          transition: 0.15s ease;
        }
        .editor-toolbar-item.icon {
          width: 2rem;
          height: 2rem;
        }
        .editor-toolbar-item.dropdown {
          min-width: 150px;
          justify-content: space-between;
          height: 2rem;
        }
        .editor-toolbar-item svg {
          width: 1.25rem;
          height: 1.25rem;
        }
        .editor-toolbar-item:hover {
          background-color: #ededed;
        }
        
        .separator {
          height: 1rem;
          width: 2px;
          background-color: #DDD;
          display: block;
          margin-left: 0.625rem;
          margin-right: 0.625rem;
        }
        
        .editor-textarea {
          background-color: #fff;
          min-height: 50vh;
          max-width: 100%;
          padding: 0;
          overflow: hidden;
        }
        
        .editor-textarea-editable {
          padding: 3em 0;
          padding-left: 5vw;
          padding-right: 5vw;
          line-height: 1.65;
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0