css布局实现cms内容管理系统后台发布文章内容页面UI效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现cms内容管理系统后台发布文章内容页面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/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;
}
.editor-textarea-editable > * + * {
margin-top: 1em;
}
.editor-textarea-editable h1 {
font-size: 2rem;
font-weight: 500;
line-height: 1.25;
}
.editor-textarea-editable h2 {
font-weight: 500;
line-height: 1.375;
font-size: 1.5rem;
}
.editor-textarea-editable ul {
list-style: square;
margin-left: 40px;
}
.editor-textarea-editable ul li + li {
margin-top: 0.5em;
}
.editor-textarea-editable em {
font-style: italic;
}
.editor-textarea-editable strong {
font-weight: 600;
}
.editor-textarea-editable img {
max-width: 50%;
float: left;
margin-right: 1em;
margin-top: 1em;
margin-bottom: 1em;
transition: 0.15s ease;
cursor: pointer;
}
.editor-textarea-editable img:hover {
box-shadow: 0 0 0 4px #3f5efb;
}
.editor-textarea-editable a {
color: #3f5efb;
text-decoration: none;
box-shadow: 0 2px 0 0 currentcolor;
font-weight: 600;
}
.editor-textarea-editable .leading {
font-size: 1.25rem;
font-weight: 500;
color: #565656;
}
.window-panel {
background-color: #19194a;
padding: 2rem;
position: relative;
overflow-y: auto;
}
.window-panel::-webkit-scrollbar {
width: 15px;
background-color: #19194a;
}
.window-panel::-webkit-scrollbar-thumb {
width: 5px;
border-radius: 99em;
background-color: #535377;
border: 5px solid #19194a;
}
.window-panel:after {
content: "";
width: calc(100% + 4rem);
height: 50px;
margin-left: -2rem;
bottom: -2rem;
background-image: linear-gradient(to top, #19194a 0%, transparent 100%);
display: block;
position: sticky;
z-index: 100;
}
.window-main-body-right {
background-color: #fff;
border-left: 1px solid #ddd;
overflow-y: auto;
padding-bottom: 3rem;
}
.window-main-body-right::-webkit-scrollbar {
width: 15px;
background-color: #fff;
}
.window-main-body-right::-webkit-scrollbar-thumb {
width: 5px;
border-radius: 99em;
background-color: #cdcdcd;
border: 5px solid #fff;
}
.settings-section {
padding: 1.5rem;
}
.settings-section + * {
border-top: 1px solid #ddd;
}
.section-title {
font-weight: 600;
letter-spacing: 0.05em;
color: #565656;
text-transform: uppercase;
font-size: 0.75rem;
margin-bottom: 1rem;
}
.window-panel .section-title {
color: #8c8ca5;
}
.search {
margin-bottom: 1.5rem;
}
.search-input {
border: 0;
background-color: transparent;
color: #fff;
border-bottom: 1px solid #535377;
padding: 0.5em 0;
padding-left: 1.75rem;
font-size: 0.875rem;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' display='block' id='Search'%3E%3Cpath d='M21 21l-4.486-4.494M19 10.5a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: 0 50%;
}
.search-input::-moz-placeholder {
color: #8c8ca5;
}
.search-input:-ms-input-placeholder {
color: #8c8ca5;
}
.search-input::placeholder {
color: #8c8ca5;
}
.search-input:focus {
border-color: #fff;
}
.tree {
display: flex;
flex-wrap: wrap;
flex-direction: column;
padding-left: 1rem;
position: relative;
}
.tree:before {
display: block;
content: "";
position: absolute;
width: 2px;
height: calc(100% - 2em);
background-color: #535377;
left: 0;
top: 50%;
transform: translateY(-50%);
}
.tree--sub:after {
position: absolute;
content: "";
display: block;
height: 2px;
width: 1rem;
background-color:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0