layuimini.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /**
  2. 配色方案(如有需要,请自行配置)
  3. */
  4. /**头部-配色*/
  5. .layui-layout-admin .layui-header{background-color:#1aa094!important;}
  6. .layui-header>ul>.layui-nav-item.layui-this,.layuimini-tool i:hover{background-color:#197971!important;}
  7. /**logo-配色*/
  8. .layui-layout-admin .layui-logo {background-color:#243346!important;}
  9. /**左侧-配色*/
  10. .layui-side.layui-bg-black,.layui-side.layui-bg-black>.layui-left-menu>ul {background-color:#2f4056!important;}
  11. .layui-left-menu .layui-nav .layui-nav-child a:hover:not(.layui-this) {background-color:#3b3f4b;}
  12. /**左侧菜单选中-配色*/
  13. .layui-layout-admin .layui-nav-tree .layui-this, .layui-layout-admin .layui-nav-tree .layui-this>a, .layui-layout-admin .layui-nav-tree .layui-nav-child dd.layui-this, .layui-layout-admin .layui-nav-tree .layui-nav-child dd.layui-this a {
  14. background-color: #1aa094 !important;
  15. }
  16. /**头部样式 */
  17. .layui-layout-admin .header {position: fixed;left: 0;right: 0;top: 0;bottom: 0;}
  18. .layui-header-menu,.layui-header {height:60px;!important;}
  19. .layui-header-menu > .layui-nav-item {color:#1b1d21;height:60px !important;line-height:60px !important;}
  20. .layui-header > .layui-layout-right > .layui-nav-item {height:60px !important;line-height:60px !important;}
  21. .layui-layout-left {left:295px!important;}
  22. .layui-nav.layui-layout-left.layui-header-menu.mobile.layui-hide-xs {font-weight:bold;transition:all .2s;}
  23. /**头部样式(缩放) */
  24. .layuimini-mini .layui-layout-left.layui-header-menu.layui-hide-xs {left:155px!important;}
  25. /**logo演示(通用) */
  26. .layui-layout-admin .layui-logo {font-weight:bold;color:#ffffff!important;height:60px!important;line-height:60px !important;overflow:hidden;line-height:64px;transition:all .2s!important;}
  27. .layui-layout-admin .layui-logo img {display:inline-block;height:30px;vertical-align:middle;}
  28. .layui-layout-admin .layui-logo h1 {display:inline-block;margin:0 0 0 12px;color:#dadde2;font-weight:600;font-size:20px;font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;vertical-align:middle;}
  29. /**logo演示(缩放) */
  30. .layuimini-mini .layui-layout-admin .layui-logo {width:60px!important;}
  31. .layuimini-mini .layui-layout-admin .layui-logo h1 {display:none;}
  32. /**缩放工具(通用) */
  33. .layuimini-tool {position:absolute!important;top:0;left:235px;width:60px;height:100%;line-height:60px;text-align:center;color:#ffffff!important;transition:all .2s;}
  34. /**缩放工具(缩放) */
  35. .layuimini-mini .layuimini-tool {left:95px!important;}
  36. .layuimini-tool i {display:block;color:#fff;width:32px;height:32px;line-height:32px;border-radius:3px;text-align:center;margin-top:15px;cursor:pointer;}
  37. /**tab选项卡 */
  38. .layui-tab-title li cite {font-style:normal;padding-left:5px;}
  39. #top_tabs_box>.layui-tab-title {color:#acafb1;}
  40. #top_tabs_box>.layui-tab-title li:hover {color:#000000;background-color:#e7ebed;}
  41. #top_tabs_box .layui-tab-close {font-size:12px!important;width:14px!important;height:14px!important;line-height:16px!important;}
  42. #top_tabs_box .layui-tab-close:hover {border-radius:4em;background:#ff5722;}
  43. #top_tabs_box>.layui-tab-title>.layui-this>i:first-child {color:#009688;}
  44. #top_tabs_box>.layui-tab-title li {border-right:1px solid #e2e2e2;font-size: 12.5px!important;}
  45. #top_tabs_box>.layui-tab-title .layui-this {color:#000000;}
  46. .layui-tab-title .layui-this:after {border:none;}
  47. #top_tabs_box {padding-right:138px;height:34px;border-bottom:1px solid #e2e2e2;}
  48. #top_tabs_box > .layui-tab-title ,#top_tabs_box > .closeBox {height:35px !important;}
  49. #top_tabs_box > .layui-tab-title > li ,#top_tabs_box > .closeBox > li {line-height:35px !important;}
  50. #top_tabs {position:absolute;border-bottom:none;}
  51. /**多窗口页面操作下拉**/
  52. .closeBox {position:absolute;right:15px;background-color:#fff !important;color:#000;border-left:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;padding:0 10px !important;}
  53. .closeBox .layui-nav-item {line-height:40px;}
  54. .closeBox .layui-nav-item > a,.closeBox .layui-nav-item > a:hover {color:#000;}
  55. .closeBox .layui-nav-child {top:40px;}
  56. .closeBox .layui-nav-bar {display:none;}
  57. .closeBox a i.caozuo {font-size:20px;position:absolute;top:1px;left:0;}
  58. .closeBox a span.layui-nav-more {border-color:#333 transparent transparent;}
  59. .closeBox a span.layui-nav-more.layui-nav-mored {border-color:transparent transparent #333;}
  60. /**左侧菜单栏 (通用) */
  61. .layui-side.layui-bg-black {transition:all .2s;}
  62. .layui-side.layui-bg-black>.layui-left-menu>ul {transition:all .2s;}
  63. .layui-side.layui-bg-black>.layui-left-menu > ul > .layui-nav-item:first-child {border-top:1px solid #4b5461;}
  64. .layui-left-menu .layui-nav .layui-nav-item a {height:40px;line-height:40px;padding-right:30px;}
  65. .layui-left-menu .layui-nav .layui-nav-item>a {padding-top:5px;padding-bottom:5px;}
  66. .layui-left-menu .layui-nav .layui-nav-child .layui-nav-child {background:0 0!important}
  67. .layui-left-menu .layui-nav .layui-nav-more {right:15px;}
  68. /**左侧菜单栏 (正常) */
  69. .layuimini-all .layui-nav-itemed .layui-nav-child a ,.layuimini-all .layui-left-menu .layui-nav .layui-nav-child a{padding-left:35px;}
  70. .layuimini-all .layui-left-menu .layui-nav .layui-nav-child .layui-nav-child a {padding-left:45px;}
  71. .layuimini-all .layui-left-menu .layui-nav .layui-nav-child .layui-nav-child .layui-nav-child a {padding-left:55px;}
  72. .layuimini-all .layui-left-menu .layui-nav .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child a {padding-left:65px;}
  73. .layuimini-all .layui-left-menu .layui-nav .layui-nav-itemed>.layui-nav-child {padding:5px 0;}
  74. /**左侧菜单栏(缩放) */
  75. .layuimini-mini .layui-side.layui-bg-black,.layuimini-mini .layui-left-menu,.layuimini-mini .layui-left-menu>ul ,.layuimini-mini .layui-left-menu>ul li i {width:60px!important;}
  76. .layuimini-mini .layui-left-menu>ul li span:first-child {display:none;}
  77. .layuimini-mini .layui-left-menu>ul li span:last-child {float:right; right: 7px;}
  78. .layuimini-mini .layui-left-menu .layui-nav .layui-nav-item a {height:40px;line-height:40px;padding-right:0px!important;}
  79. /**内容主体(通用) */
  80. .layui-layout-admin .layui-body {overflow:hidden;bottom:0px !important;top:60px !important;transition:all .2s;}
  81. /**内容主体(缩放) */
  82. .layuimini-mini .layui-layout-admin .layui-body {left:60px!important;}
  83. /**选择配色方案 */
  84. .layuimini-color .color-title {padding: 10px 0 10px 20px;border-bottom: 1px solid #d9dada;margin-bottom: 8px;}
  85. .layuimini-color .color-content {padding: 0 5px 0 5px;}
  86. .layuimini-color .color-content ul {list-style: none;text-align: center;}
  87. .layuimini-color .color-content ul li {position: relative;display: inline-block;vertical-align: top;width: 80px;height: 50px;margin: 0 15px 15px 0;padding: 2px 2px 4px 2px;background-color: #f2f2f2;cursor: pointer;font-size: 12px;color: #666;}
  88. .layuimini-color .color-content li.layui-this:after, .layuimini-color .color-content li:hover:after {width: 100%;height: 100%;padding: 4px;top: -5px;left: -5px;border-color: #d8d8d8;opacity: 1;}
  89. .layuimini-color .color-content li:after {content: '';position: absolute;z-index: 20;top: 50%;left: 50%;width: 1px;height: 0;border: 1px solid #f2f2f2;transition: all .3s;-webkit-transition: all .3s;opacity: 0;}
  90. /**其它 */
  91. .layui-tab-item {width:100% !important;height:100% !important;}
  92. .layui-nav-item.layui-this {background-color:#1b1d21;}
  93. .layui-width-height {width:100%;height:95%;}
  94. .layui-tab {margin:0 0 0 0;z-index:99999;}
  95. .text-center {height:30px !important;line-height:30px !important;text-align:center !important;}
  96. .layui-nav {padding:0 !important;}
  97. .layui-nav .layui-this:after,.layui-nav-bar,.layui-nav-tree .layui-nav-itemed:after {width:0 !important;height:0 !important;}
  98. .layui-layout-admin .layui-side {top:60px !important;}
  99. .layui-tab-card {box-shadow:0px 0px 0px #888888;border-bottom:0;}
  100. .clildFrame.layui-tab-content {top:35px;position:absolute;bottom:5px;width:100%;padding:0;}
  101. * {touch-action:pan-y;}
  102. /**
  103. 手机自适应样式
  104. */
  105. @media screen and (max-width:768px) {
  106. #top_tabs_box {border-bottom:0px!important;}
  107. .layui-layout-admin .layui-body .layui-tab-item.layui-show{border-top:1px solid #e2e2e2;}
  108. .layuimini-mini .layuimini-tool {left:15px !important;}
  109. .layuimini-tool i:hover {background-color:transparent!important;}
  110. .layuimini-all .layui-layout-left.layui-header-menu {transition:all .2s;float:right;right:5px;}
  111. .layuimini-all .layui-header-menu > .layui-nav-item {float:right;right:0px;}
  112. .layuimini-mini .layui-layout-left.layui-header-menu {left:50px !important;transition:all .2s;}
  113. .layui-layout-admin .layui-nav.layui-layout-right {margin-right:15px!important;}
  114. .layui-layout-admin .layui-nav.layui-layout-right>li:not(.layuimini-setting) {width:40px!important;}
  115. .layui-layout-admin .layui-nav.layui-layout-right>li:not(.layuimini-setting) a {padding:0 15px;}
  116. .layuimini-mini .layui-layout-admin .layui-body {left:0px!important;}
  117. .layui-layout-admin .layui-body .clildFrame.layui-tab-content {top:0px!important;}
  118. .layui-layout-admin .layui-body .clildFrame.layui-tab-content {overflow:scroll;able-layout:fixed;word-wrap:break-word;word-break:break-all;-webkit-overflow-scrolling:touch!important;}
  119. .layuimini-all .layui-nav.layui-layout-right,.layuimini-mini .layui-layout-admin .layui-logo ,.layuimini-mini .layui-side.layui-bg-black,.layuimini-mini .layui-left-menu,.layui-layout-admin .layui-body #top_tabs,.layui-layout-admin .layui-body .layui-nav.closeBox{
  120. transition:all .2s;display:none;
  121. }
  122. }