index.css 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. *{margin: 0; padding: 0; }
  2. html,body{height: 100%; background-color: #EEE;}
  3. body{height: 100vh;background-color: #EEE;background-image: url(admin-loading.gif); background-repeat: no-repeat;background-position: 50% 50%;}
  4. .app{height: 100%; font-size: 16px; font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;}
  5. .app{background-color: #EEE;}
  6. /* 变量 */
  7. body{
  8. --nav-left-width: 200px;
  9. --nav-left-width-fold: 64px;
  10. --nav-right-1-height: 50px;
  11. --nav-right-2-height: 35px;
  12. }
  13. .nav-left, .nav-right {position: fixed; top: 0; height: 100%;}
  14. /* 左边 */
  15. .nav-left{width: var(--nav-left-width); left: 0px; z-index: 200; overflow: hidden;}
  16. .nav-left-top{width: 100%; box-sizing: border-box; height: 85px; line-height: 85px;/* z-index: 100; */ overflow: hidden;}
  17. .nav-left-bottom{width: 100%; box-sizing: border-box; height: calc(100% - 85px); overflow: hidden;}
  18. /* 右边 */
  19. .nav-right{width: calc(100% - var(--nav-left-width)); right: 0px; z-index: 100; }
  20. .nav-right-1{height: var(--nav-right-1-height); line-height: var(--nav-right-1-height); z-index: 200; position: relative; border-bottom: 1px #F1F1F1 solid; box-sizing: border-box; overflow: hidden;}
  21. .nav-right-2{height: var(--nav-right-2-height); line-height: var(--nav-right-2-height); z-index: 200; position: relative; box-shadow: 0 2px 2px rgba(0,0,0,0.1);}
  22. .nav-right-3{width: 100%; height: calc(100vh - var(--nav-right-1-height) - var(--nav-right-2-height)); position: relative; overflow: hidden;}
  23. /* .fas{transition: all 0s;} */
  24. /* 所有带动画的元素 */
  25. .admin-logo,.nav-left,.nav-left-top,.nav-left-bottom, .nav-right/* , .nav-right-2 * */{transition: all 0.2s; }
  26. /* 菜单折叠 */
  27. .app-fold{
  28. --nav-left-width: 64px;
  29. }
  30. /* 菜单折叠时 部分元素隐藏 */
  31. .app-fold .admin-title, .app-fold .menu-name, .app-fold-right .el-submenu__icon-arrow{display: none;}
  32. .app-fold .admin-logo{margin-left: 12px !important;}
  33. /* .nav-right-3 包裹了太多 View,不能让它参与动画,因为实在太TM卡了 */
  34. .nav-right-3{width: calc(100% - var(--nav-left-width)); position: fixed; transition: none;}
  35. .app-fold-right .nav-right-3{width: calc(100% - 64px); left: 64px;}
  36. /* -------------- 其它 --------------- */
  37. /* 折叠时悬浮菜单样式,防止透明 */
  38. .el-menu--vertical .el-menu--popup{background-color: #FFF !important; color: red !important;}
  39. /* 最高层级 */
  40. .z-index-max{z-index: 2147483647;}
  41. /* 遮罩样式 */
  42. .shade-fox{position: absolute; z-index: 1000000; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); color: #FFF; top: 0px;}
  43. .shade-fox{display: flex; justify-content: center; align-items: center}
  44. .shade-text{}
  45. /* 去除掉便签的大边框 */
  46. .layer-note-class .layui-layer-input{outline: 0; box-shadow: none !important; padding: 0.8em !important; font-family: 'Times New Roman', Times, serif;}
  47. .layer-note-class .layui-layer-input{border: 0px #ddd solid; border-bottom: 1px #ddd solid;}