bee-drawer
Version:
Drawer ui component for react
165 lines (130 loc) • 3.1 kB
CSS
/* FormGroup */
/* Navlayout */
.drawerc {
position: fixed;
top: 0;
left: 0;
z-index: 100000;
width: 0;
height: 100%; }
.drawer-mask {
background-color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
transition: transform 300ms ease-in-out, opacity 300ms ease-in-out; }
.drawer-close {
position: absolute;
top: 10px;
right: 10px;
font-size: 12px;
line-height: 32px;
cursor: pointer; }
.drawer-close.uf {
font-size: 12px;
padding: 0 2px; }
.drawer {
position: fixed;
background-color: #fff;
transition: transform 300ms ease-in-out;
overflow: auto; }
.drawer-left {
top: 0;
left: 0;
height: 100%; }
.drawer-right {
top: 0;
right: 0;
height: 100%; }
.drawer-top {
top: 0;
left: 0;
width: 100%; }
.drawer-bottom {
bottom: 0;
left: 0;
width: 100%; }
.drawer-header {
padding: 16px 24px;
border-radius: 4px 4px 0 0;
background: #fff;
color: rgba(0, 0, 0, 0.65);
border-bottom: 1px solid #e8e8e8; }
.drawer-header-title {
margin: 0;
font-size: 16px;
line-height: 22px;
font-weight: 500;
color: rgba(0, 0, 0, 0.85); }
.demo1 .btnc {
margin-top: 10px; }
.demo1 .con {
padding: 10px 20px; }
.demo2 .btnc {
margin-top: 10px; }
.demo2 .btnc .u-button {
margin-right: 10px; }
.demo2 .con {
padding: 10px 20px; }
.demo3 .drawer-body {
min-width: 600px;
text-align: center;
padding-top: 40px; }
.demo3 .drawer-body .u-form-item .error {
display: block; }
.demo3 .drawer-body .u-form-item .u-checkbox-group, .demo3 .drawer-body .u-form-item .u-form-control, .demo3 .drawer-body .u-form-item .u-input-group .u-form-control, .demo3 .drawer-body .u-form-item .u-select {
min-width: 60%; }
.demo4 .con {
padding: 10px 20px; }
.demo5 .con {
padding: 10px 20px;
padding-top: 0; }
.demo5 .section:first-child {
margin-top: 15px; }
.demo5 .section:nth-child(2) {
margin-top: 20px; }
.demo5 .section {
margin-top: 30px; }
.demo5 .sec-title {
font-size: 22px;
font-weight: bold; }
.demo5 .sec-avatar {
width: 40px;
height: 40px;
margin-top: 10px; }
.demo5 .col {
display: inline-block; }
.demo5 .col:first-child {
margin-left: 0;
width: 200px; }
.demo5 .info-item {
width: 300px; }
.demo5 .info-item:first-child .item-inner {
border-top-left-radius: 4px;
border-top-right-radius: 4px; }
.demo5 .info-item:last-child {
margin-top: -1px; }
.demo5 .info-item:last-child .item-inner {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px; }
.demo5 .item-inner {
overflow: hidden;
border: 1px solid #ccc;
padding: 10px 20px; }
.demo5 .item-left, .demo5 .item-main, .demo5 .item-right {
float: left; }
.demo5 .item-main {
padding-left: 30px; }
.demo5 .item-right {
padding-left: 30px;
padding-top: 20px; }
.demo5 .item-avatar {
width: 30px;
height: 30px; }
.demo5 .item-link {
color: #f53c32; }
.demo5 .item-link:link, .demo5 .item-link:visited, .demo5 .item-link::active, .demo5 .item-link:hover {
color: #f53c32; }
/*# sourceMappingURL=demo.css.map */