common.scss 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. /* 文字基本颜色 */
  2. $base-color: #105CFB; //主色调
  3. :root {
  4. --base-color: #105CFB;
  5. }
  6. /* 水平导航 */
  7. .layui-layout-admin {
  8. .layui-header {
  9. height: 55px;
  10. background-color: #FFFFFF;
  11. }
  12. .layui-logo {
  13. width: 92px;
  14. background-color: #1C2233;
  15. a {
  16. display: block;
  17. width: 100%;
  18. height: 60px;
  19. padding: 0 11px 0 12px;
  20. box-sizing: border-box;
  21. line-height: 60px;
  22. span {
  23. display: block;
  24. color: #FFFFFF;
  25. font-size: 14px;
  26. margin-top: 6px;
  27. }
  28. }
  29. h1 {
  30. display: inline-block;
  31. font-size: 16px;
  32. color: #5D5D5D;
  33. }
  34. }
  35. //访问店铺
  36. .login-box {
  37. display: flex;
  38. align-items: center;
  39. .help-btn {
  40. margin-left: 40px;
  41. cursor: pointer;
  42. }
  43. & > div {
  44. position: relative;
  45. &::after {
  46. content: "";
  47. position: absolute;
  48. top: 50%;
  49. right: -21px;
  50. width: 1px;
  51. height: 16px;
  52. background-color: #e6e6e6;
  53. transform: translateY(-50%);
  54. }
  55. }
  56. .head-account {
  57. .layuimini-setting > a {
  58. height: 55px;
  59. line-height: 55px;
  60. }
  61. }
  62. }
  63. .layui-header-right {
  64. position: absolute;
  65. left: 92px;
  66. right: 0;
  67. height: 55px;
  68. border-bottom: 1px solid #eee;
  69. box-sizing: border-box;
  70. .layui-header-crumbs {
  71. .layui-header-crumbs-first {
  72. float: left;
  73. display: inline-block;
  74. width: 131px;
  75. height: 55px;
  76. padding-left: 18px;
  77. line-height: 55px;
  78. box-sizing: border-box;
  79. }
  80. .layui-header-crumbs-second {
  81. float: left;
  82. display: inline-block;
  83. height: 55px;
  84. border-left: 1px solid #eee;
  85. padding-left: 16px;
  86. line-height: 55px;
  87. }
  88. }
  89. }
  90. .layui-nav {
  91. .layui-nav-bar {
  92. display: none;
  93. }
  94. .layui-nav-item a {
  95. color: #333333;
  96. }
  97. }
  98. .layui-layout-left {
  99. .layui-this:after {
  100. width: 0;
  101. border: 0;
  102. }
  103. a {
  104. span {
  105. display: inline-block;
  106. height: 40px;
  107. line-height: 40px;
  108. box-sizing: border-box;
  109. }
  110. &:hover span {
  111. border-bottom: 3px solid $base-color;
  112. }
  113. &.active span {
  114. border-bottom: 3px solid $base-color;
  115. border-radius: 1.5px;
  116. box-sizing: border-box;
  117. }
  118. }
  119. }
  120. .layui-layout-right {
  121. .layui-nav-more {
  122. border-top-color: #333;
  123. }
  124. .layui-nav-mored {
  125. border-color: transparent transparent #333;
  126. }
  127. .layui-nav-child {
  128. right: 0;
  129. left: unset;
  130. dd.layui-this, dd.layui-this a {
  131. background-color: $base-color;
  132. }
  133. }
  134. }
  135. // 侧边导航 -- 一级导航
  136. .first-nav {
  137. top: 55px;
  138. width: 92px !important;
  139. background-color: #1C2233;
  140. .layui-side-scroll {
  141. width: 112px;
  142. .layui-nav-tree {
  143. width: 92px;
  144. background-color: transparent;
  145. .layui-nav-item {
  146. margin: 0 5px 6px;
  147. width: calc(100% - 10px);
  148. height: 36px;
  149. border-radius: 2px;
  150. overflow: hidden;
  151. a {
  152. height: 36px;
  153. line-height: 36px;
  154. color: #FFF !important;
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. i {
  159. font-size: 16px;
  160. margin-right: 8px;
  161. }
  162. }
  163. a {
  164. &.active {
  165. background-color: #536183;
  166. }
  167. &.hover {
  168. background-color: #30374e;
  169. }
  170. }
  171. }
  172. }
  173. }
  174. }
  175. /* 侧边导航 -- 二级导航 */
  176. .second-nav {
  177. width: 132px !important;
  178. background-color: #fff;
  179. border-right: 1px solid #eee;
  180. overflow: hidden;
  181. box-sizing: border-box;
  182. left: 92px;
  183. top: 55px;
  184. .second-selecte-nav {
  185. background-color: #EFF0F4;
  186. }
  187. .layui-side-scroll {
  188. width: 152px;
  189. .layui-nav {
  190. width: 132px;
  191. background-color: transparent !important;
  192. }
  193. .layui-nav-item {
  194. width: calc(100% - 24px);
  195. background-color: #fff;
  196. line-height: 34px;
  197. margin: 0 12px;
  198. a {
  199. width: 100%;
  200. height: 36px;
  201. display: flex;
  202. align-items: center;
  203. box-sizing: border-box;
  204. padding-left: 6px;
  205. span {
  206. line-height: 34px;
  207. }
  208. &:hover {
  209. background-color: #EFF0F4;
  210. img {
  211. left: -19px !important;
  212. }
  213. }
  214. .stair-menu {
  215. overflow: hidden;
  216. display: flex;
  217. align-items: center;
  218. margin-right: 5px;
  219. width: 20px;
  220. height: 18px;
  221. line-height: 18px;
  222. text-align: center;
  223. img {
  224. max-height: 100%;
  225. }
  226. }
  227. }
  228. }
  229. .layui-nav-itemed > a {
  230. color: #333333 !important;
  231. &:hover {
  232. background-color: transparent !important;
  233. }
  234. }
  235. .layui-nav-itemed > .layui-nav-child {
  236. background-color: #FFFFFF !important;
  237. }
  238. .layui-nav-tree {
  239. margin-top: 10px;
  240. position: relative;
  241. }
  242. .layui-nav-tree > .layui-this {
  243. > .second-selecte-nav {
  244. background-color: #EFF0F4 !important;
  245. }
  246. > a {
  247. background-color: transparent !important;
  248. color: #333333;
  249. box-sizing: border-box;
  250. position: relative;
  251. }
  252. }
  253. .layui-nav-child {
  254. dd.layui-this {
  255. background-color: #FFFFFF !important;
  256. color: #333333;
  257. a {
  258. background-color: #FFFFFF !important;
  259. color: #333333;
  260. }
  261. .layui-left-nav {
  262. width: 100%;
  263. background-color: #EFF0F4;
  264. }
  265. }
  266. dd > a {
  267. padding: 0;
  268. span {
  269. font-size: 14px;
  270. padding-left: 20px;
  271. }
  272. }
  273. }
  274. .layui-nav .layui-nav-more {
  275. width: 6px;
  276. height: 6px;
  277. border-width: 1px;
  278. border-color: #333 #333 transparent transparent;
  279. border-style: solid;
  280. transform: rotate(45deg);
  281. -ms-transform: rotate(45deg); /* IE 9 */
  282. -moz-transform: rotate(45deg); /* Firefox */
  283. -webkit-transform: rotate(45deg); /* Safari 和 Chrome */
  284. -o-transform: rotate(45deg);
  285. top: 13px;
  286. right: 6px;
  287. margin-top: 0;
  288. }
  289. .layui-nav-itemed > a .layui-nav-more {
  290. transform: rotate(135deg);
  291. -ms-transform: rotate(135deg);
  292. -moz-transform: rotate(135deg);
  293. -webkit-transform: rotate(135deg);
  294. -o-transform: rotate(135deg);
  295. top: 10px;
  296. }
  297. }
  298. }
  299. /* 面包屑 */
  300. .crumbs {
  301. position: fixed;
  302. top: 60px;
  303. left: 184px;
  304. z-index: 9;
  305. right: 0;
  306. height: 43px;
  307. line-height: 43px;
  308. padding: 0 28px;
  309. background-color: #fff;
  310. border-bottom: 1px solid #f1f1f1;
  311. a:hover {
  312. color: $base-color !important;
  313. }
  314. }
  315. /* 内容 */
  316. .layui-body {
  317. position: absolute;
  318. overflow: auto !important;
  319. top: 55px;
  320. bottom: 0;
  321. left: 224px;
  322. background-color: #EFF0F4;
  323. .body-content {
  324. min-width: 1000px;
  325. min-height: 650px;
  326. padding: 15px;
  327. margin: 15px;
  328. background-color: #fff;
  329. }
  330. }
  331. // 提示操作
  332. .tips-wrap {
  333. background-color: #FFF4E6;
  334. border-color: #FFC780;
  335. border-radius: 2px;
  336. .layui-colla-title {
  337. font-size: 14px;
  338. }
  339. .layui-colla-content li {
  340. color: #333;
  341. &::marker {
  342. color: #FFAC42;
  343. }
  344. }
  345. }
  346. // 筛选操作
  347. .screen .layui-colla-content {
  348. border: none;
  349. background-color: #F2F3F5;
  350. }
  351. // 表格
  352. .layui-table-view {
  353. margin-top: 0;
  354. }
  355. .layui-table-tool {
  356. padding: 15px 0 10px;
  357. }
  358. .single-filter-box {
  359. padding-top: 0 !important;
  360. &.top {
  361. padding-top: 14px !important;
  362. }
  363. }
  364. }
  365. .shop-ewm {
  366. > .layui-btn {
  367. color: $base-color;
  368. border: 1px solid $base-color;
  369. background-color: transparent;
  370. width: 80px;
  371. height: 28px;
  372. line-height: 28px;
  373. padding: 0;
  374. }
  375. > a {
  376. line-height: 55px !important;
  377. }
  378. }
  379. .icon-preview {
  380. position: fixed;
  381. width: 100vw;
  382. height: 100vh;
  383. left: 0;
  384. top: 0;
  385. z-index: 9999;
  386. display: flex;
  387. align-items: center;
  388. justify-items: center;
  389. background: rgba(55, 55, 55, 0.6);
  390. .icon-preview-block {
  391. width: 100px;
  392. height: 100px;
  393. font-size: 100px;
  394. margin: 0 auto;
  395. background: #fff;
  396. }
  397. }
  398. .notify-wrap {
  399. display: flex;
  400. flex-direction: column;
  401. width: 330px;
  402. padding: 20px;
  403. position: fixed;
  404. right: 0;
  405. top: 0;
  406. z-index: 1000;
  407. .notify-item {
  408. display: flex;
  409. background: #fff;
  410. padding: 15px 25px 15px 15px;
  411. box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  412. transition: opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;
  413. position: relative;
  414. margin-bottom: 15px;
  415. border-radius: 6px;
  416. .iconclose_light {
  417. position: absolute;
  418. top: 10px;
  419. right: 10px;
  420. cursor: pointer;
  421. }
  422. .box {
  423. flex: 1;
  424. width: 0;
  425. margin-left: 10px;
  426. }
  427. .icon {
  428. width: 24px;
  429. height: 24px;
  430. }
  431. }
  432. .icon {
  433. i {
  434. display: block;
  435. width: 100%;
  436. height: 100%;
  437. background: url('../../img/notify_icon.png') no-repeat;
  438. &.success {
  439. background-position-x: -24px;
  440. }
  441. &.fail {
  442. background-position-x: -48px;
  443. }
  444. &.warning {
  445. background-position-x: 0px;
  446. }
  447. &.info {
  448. background-position-x: -72px;
  449. }
  450. }
  451. }
  452. }
  453. .notify-item {
  454. .box {
  455. .title {
  456. font-weight: 700;
  457. font-size: 16px;
  458. color: #303133;
  459. white-space: break-spaces;
  460. }
  461. .content {
  462. margin-top: 10px;
  463. font-size: 14px;
  464. line-height: 21px;
  465. margin: 6px 0 0;
  466. color: #606266;
  467. text-align: justify;
  468. white-space: break-spaces;
  469. overflow: hidden;
  470. }
  471. }
  472. }