* { margin:0; padding:0; } html,body { height:100%; } li { list-style:none; } body { background:#f5f5f5; cursor:pointer; } .clearfix { clear:both; content:''; display:block; overflow:hidden; } .modal { position:absolute; width:16em; height:10em; left:0; top:0; right:0; bottom:0; margin:auto; background:#fff; z-index:100; padding:.3rem .5rem; border-radius:5px; color:#555; } .hide { display:none; } .modal.lg { width:80%; margin-left:-40%; } .sel_cont { border:1px solid #e2dcdc; height:65%; border-radius:2px; margin:.3rem 0; } .sel_aside { width:25%; border-right:1px solid #e2dcdc; overflow:auto; } .modal h5 { font-size:20px; } .mod_close,.close { color:#666; top:.3rem; right:.3rem; position:absolute; font-size:22px; cursor:pointer; font-style:normal; } .job_btn .close { font-size:13px; right:3px; top:50%; margin-top:-9px; } .sel_res p { color:#1E9FFF; font-size:16px; font-weight:bold; } .mod_close::before,.close::before { content:"\2716"; } .modal_back { position:absolute; left:0; top:0; right:0; bottom:0; background:rgba(0,0,0,.5); -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr=#7f000000,endColorstr=#7f000000)"; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000); } .side-nav { font-size:13px; } .side-nav a { color:#333; padding:.25rem; display:block; } .sub-menu { max-height:0; opacity:0; overflow:hidden; transition:all .1s linear; padding-left:.3rem; } .sub-menu.open { max-height:20rem; opacity:1; color:#fff; } .side-nav li { position:relative; } .side-nav li a.active { background:#5591ecb8; color:#fff; } .side-nav .menu_tit { width:90%; display:inline-block; } .arrow { width:7px; height:7px; transform:rotate(45deg); display:inline-block; } .arrow_rt { border-top:2px solid #ccc; border-right:2px solid #ccc; } .arrow_bt { border-bottom:2px solid #ccc; border-right:2px solid #ccc; } a { text-decoration:none; } .sel_cont:after { content:''; display:block; overflow:hidden; clear:both; } .sel_cont>div { height:100%; float:left; box-sizing:border-box; } .sel_job { width:75%; padding:.3rem .1rem; } .job_btn { border:1px solid #ccc; text-align:center; margin:.1rem .15rem; padding:.1rem .3rem; display:inline-block; font-size:15px; border-radius:3px; cursor:pointer; position:relative; } .sel_all { float:left; height:80px; overflow:auto; height:76.5px; } .sel_all .job_btn { margin:0 .15rem; padding:.1rem .5rem .1rem .3rem; display:block; float:left; } .sel_all .job_btn .close { display:inline-block; right:8px; } .job_btn.active { border-color:#1E9FFF; } .sel_res { float:left; width:85%; padding:0 10px; box-sizing:border-box; } .sel_res>p { float:left; padding:.1rem; } .sel_btn { float:right; width:15%; } .sel_btn>button { display:block; } .btn_pur { background:#6C66DD; color:#fff; padding:.15rem .5rem; border:0 none; outline:0 none; cursor:pointer; } .sel_hid { height:auto; } @media (max-width:768px) { .tool_modal { width:95%; height:60%; box-sizing:border-box; } .side-nav .menu_tit { width:85%; } .sel_all .job_btn { padding-right:1.1rem; } }
点击按钮弹出拟态框
延迟2s模拟加载数据生成菜单
菜单没有子节点时模拟点击加载数据填充到右侧
右侧和已选互相关联,状态同步
点击×或者拟态框外则关闭
目前暂时还没有想到还要新加哪些功能