common.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. /**
  2. Sass函数--颜色函数--HSL函数:http://www.mamicode.com/info-detail-1126451.html
  3. */
  4. /* 文字基本颜色 */
  5. $base-color: #FF6A00; //主色调
  6. :root {
  7. --base-color: #FF6A00;
  8. }
  9. /* 水平导航 */
  10. .layui-layout-admin {
  11. .layui-header {
  12. background-color: #FFFFFF;
  13. border-bottom: 1px solid #f2f2f2;
  14. }
  15. .layui-logo {
  16. width: 184px;
  17. h1 {
  18. display: inline-block;
  19. font-size: 16px;
  20. color: #5D5D5D;
  21. }
  22. }
  23. .layui-nav {
  24. .layui-nav-bar {
  25. display: none;
  26. }
  27. .layui-nav-item a {
  28. color: #333333;
  29. }
  30. }
  31. .layui-layout-left {
  32. .layui-this:after {
  33. width: 0;
  34. border: 0;
  35. }
  36. a {
  37. span {
  38. display: inline-block;
  39. height: 40px;
  40. line-height: 40px;
  41. box-sizing: border-box;
  42. }
  43. &:hover span {
  44. border-bottom: 3px solid $base-color;
  45. }
  46. &.active span {
  47. border-bottom: 3px solid $base-color;
  48. border-radius: 1.5px;
  49. box-sizing: border-box;
  50. }
  51. }
  52. }
  53. .layui-layout-right {
  54. .layui-nav-more {
  55. border-top-color: #333;
  56. }
  57. .layui-nav-mored {
  58. border-color: transparent transparent #333;
  59. }
  60. .layui-nav-child {
  61. right: 0;
  62. left: unset;
  63. dd.layui-this, dd.layui-this a {
  64. background-color: $base-color;
  65. }
  66. }
  67. }
  68. /* 侧边导航 -- 二级导航 */
  69. .second-nav {
  70. width: 184px !important;
  71. background-color: #FFFFFF;
  72. border-right: 1px solid #f1f1f1;
  73. overflow: hidden;
  74. box-sizing: border-box;
  75. .layui-side-scroll {
  76. width: 204px;
  77. .layui-nav {
  78. width: 184px;
  79. background-color: transparent !important;
  80. }
  81. .layui-nav-item {
  82. width: 100%;
  83. background-color: #FFFFFF;
  84. a {
  85. width: 100%;
  86. height: 44px;
  87. display: flex;
  88. align-items: center;
  89. box-sizing: border-box;
  90. padding-left: 34px;
  91. span {
  92. line-height: 44px;
  93. }
  94. &:hover {
  95. background-color: #F7F7F7;
  96. i {
  97. left: -19px !important;
  98. }
  99. }
  100. .stair-menu {
  101. overflow: hidden;
  102. display: flex;
  103. align-items: center;
  104. margin-right: 5px;
  105. width: 20px;
  106. height: 18px;
  107. line-height: 18px;
  108. text-align: center;
  109. img {
  110. max-height: 100%;
  111. }
  112. }
  113. }
  114. }
  115. .layui-nav-itemed > a {
  116. color: #333333 !important;
  117. &:hover {
  118. background-color: transparent !important;
  119. }
  120. }
  121. .layui-nav-itemed > .layui-nav-child {
  122. background-color: #FFFFFF !important;
  123. }
  124. .layui-nav-tree {
  125. position: relative;
  126. }
  127. .layui-nav-tree > .layui-this {
  128. > a {
  129. background-color: #f8f8f8 !important;
  130. color: $base-color !important;
  131. box-sizing: border-box;
  132. position: relative;
  133. &:before {
  134. content: '';
  135. display: inline-block;
  136. width: 4px;
  137. height: 44px;
  138. background-color: $base-color;
  139. position: absolute;
  140. left: 0;
  141. }
  142. > .layui-nav-more {
  143. border-color: $base-color $base-color transparent transparent !important;
  144. }
  145. }
  146. }
  147. .layui-nav-child {
  148. dd.layui-this {
  149. background-color: #FFFFFF !important;
  150. color: #333333;
  151. a {
  152. background-color: rgba(255, 98, 0, 0.1) !important;
  153. color: $base-color !important;
  154. box-sizing: border-box;
  155. position: relative;
  156. &:before {
  157. content: "";
  158. display: inline-block;
  159. width: 4px;
  160. height: 44px;
  161. background-color: $base-color;
  162. position: absolute;
  163. left: 0;
  164. }
  165. }
  166. .layui-left-nav {
  167. color: $base-color;
  168. }
  169. }
  170. dd > a {
  171. padding-left: 60px;
  172. }
  173. }
  174. .layui-nav .layui-nav-more {
  175. width: 7px;
  176. height: 7px;
  177. border-width: 1px;
  178. border-color: #333 #333 transparent transparent;
  179. border-style: solid;
  180. transform: rotate(45deg);
  181. -ms-transform: rotate(45deg); /* IE 9 */
  182. -moz-transform: rotate(45deg); /* Firefox */
  183. -webkit-transform: rotate(45deg); /* Safari 和 Chrome */
  184. -o-transform: rotate(45deg);
  185. top: 16px;
  186. right: 16px;
  187. margin-top: 0;
  188. }
  189. .layui-nav-itemed > a .layui-nav-more {
  190. transform: rotate(135deg);
  191. -ms-transform: rotate(135deg);
  192. -moz-transform: rotate(135deg);
  193. -webkit-transform: rotate(135deg);
  194. -o-transform: rotate(135deg);
  195. }
  196. }
  197. }
  198. /* 面包屑 */
  199. .crumbs {
  200. position: fixed;
  201. top: 60px;
  202. left: 184px;
  203. z-index: 9;
  204. right: 0;
  205. height: 43px;
  206. line-height: 43px;
  207. padding: 0 28px;
  208. background-color: #fff;
  209. border-bottom: 1px solid #f1f1f1;
  210. a:hover {
  211. color: $base-color !important;
  212. }
  213. }
  214. /* 内容 */
  215. .layui-body {
  216. position: absolute;
  217. overflow: auto !important;
  218. top: 104px;
  219. bottom: 0;
  220. left: 184px;
  221. background-color: #f8f8f8;
  222. .body-content {
  223. min-width: 1000px;
  224. min-height: 650px;
  225. padding: 15px;
  226. margin: 16px;
  227. background-color: #fff;
  228. }
  229. }
  230. }
  231. .icon-preview {
  232. position: fixed;
  233. width: 100vw;
  234. height: 100vh;
  235. left: 0;
  236. top: 0;
  237. z-index: 9999;
  238. display: flex;
  239. align-items: center;
  240. justify-items: center;
  241. background: rgba(55, 55, 55, 0.6);
  242. .icon-preview-block {
  243. width: 100px;
  244. height: 100px;
  245. font-size: 100px;
  246. margin: 0 auto;
  247. background: #fff;
  248. }
  249. }