components.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. /*customer theme for vm-manager*/
  2. @vm-grey: #99a9c0;
  3. @vm-grey-light: #f4f4f4;
  4. @vm-spacing-base: 15px;
  5. @border-split: 1px solid #e9eaec;
  6. @border-out: 1px solid #dddee1;
  7. .vm-panel{
  8. background-color: white;
  9. text-align: left;
  10. border-radius: 4px;
  11. .panel-heading{
  12. text-align: left;
  13. width: 100%;
  14. border-radius: 4px 4px 0 0;
  15. border-bottom: @border-split;
  16. padding:@vm-spacing-base;
  17. font-weight: bold;
  18. }
  19. .panel-body{
  20. padding: @vm-spacing-base;
  21. font-size: 14px;
  22. }
  23. }
  24. .vm-msg-push{
  25. ul{
  26. overflow: hidden;
  27. li{
  28. &:first-child{
  29. color: white;
  30. font-size: 16px;
  31. font-weight: bold;
  32. background: #2d8cf0;
  33. border-radius: 4px 4px 0 0;
  34. }
  35. img{
  36. vertical-align: top;
  37. border-radius: 4px;
  38. margin-right: 5px;
  39. }
  40. text-align: left;
  41. .subject{
  42. width: 200px;
  43. display: inline-block;
  44. .title{
  45. line-height: 18px;
  46. font-size: 16px;
  47. font-weight: bold;
  48. .time{
  49. float: right;
  50. font-size: 14px;
  51. color: @vm-grey;
  52. }
  53. }
  54. .message{
  55. margin-top: 6px;
  56. overflow: hidden;
  57. text-overflow:ellipsis;
  58. }
  59. }
  60. }
  61. }
  62. .vm-badge{
  63. border: 1px solid #dddee1;
  64. width: 24px;
  65. height: 24px;
  66. line-height: 24px;
  67. border-radius: 4px;
  68. cursor: pointer;
  69. }
  70. }
  71. .vm-state-overview{
  72. background-color: white;
  73. border-radius: 4px;
  74. min-height: 100px;
  75. overflow: hidden;
  76. .symbol{
  77. color: white;
  78. font-size: 45px;
  79. background-color: #2d8cf0;
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. }
  84. .value{
  85. color: @vm-grey;
  86. display: flex;
  87. flex-direction: column;
  88. justify-content: center;
  89. }
  90. }
  91. .vm-user-preview{
  92. overflow: hidden;
  93. .panel-heading{
  94. display: flex;
  95. img{
  96. margin-right: @vm-spacing-base;
  97. }
  98. .title{
  99. display: flex;
  100. flex-direction: column;
  101. justify-content: center;
  102. .name{
  103. color: #2d8cf0;
  104. font-size: 18px;
  105. }
  106. .role{
  107. color: @vm-grey;
  108. }
  109. }
  110. }
  111. ul.content{
  112. font-size: 12px;
  113. li{
  114. display: flex;
  115. border-bottom: @border-split;
  116. i{
  117. color: @vm-grey;
  118. font-size: 16px;
  119. width: 10px;
  120. }
  121. padding: 0 @vm-spacing-base;
  122. height: 45px;
  123. line-height: 45px;
  124. span{
  125. flex-grow: 1;
  126. }
  127. span:first-child{
  128. width: 20%;
  129. }
  130. span:nth-child(2){
  131. width: 40%;
  132. }
  133. span:last-child{
  134. text-align: right;
  135. width: 40%;
  136. }
  137. }
  138. li:last-child{
  139. border-bottom: 1px solid transparent;
  140. }
  141. }
  142. }
  143. .vm-progress{
  144. .panel-heading{
  145. height: 80px;
  146. color: #2d8cf0;
  147. font-size: 16px;
  148. }
  149. table{
  150. tr{
  151. td{
  152. padding: 0 15px;
  153. font-size: 14px;
  154. }
  155. td:nth-child(2){
  156. width: 15%;
  157. }
  158. td:last-child{
  159. width: 40%;
  160. }
  161. }
  162. }
  163. }
  164. .vm-timeline{
  165. font-size: 14px;
  166. .panel-heading{
  167. color: #2d8cf0;
  168. font-size: 16px;
  169. }
  170. ul.panel-body{
  171. li{
  172. .left, .right{
  173. flex-grow: 1;
  174. width: calc(50% - 1px);
  175. padding-bottom: 15px;
  176. }
  177. .left{
  178. text-align: right;
  179. padding-right: 30px;
  180. }
  181. .right{
  182. text-align: left;
  183. padding-left: 30px;
  184. }
  185. .content{
  186. background-color: @vm-grey-light;
  187. border-radius: 4px;
  188. }
  189. .split{
  190. width: 2px;
  191. background-color: #dddee1;
  192. height: inherit;
  193. .dot-left, .dot-right{
  194. display: inline-block;
  195. position: relative;
  196. width: 12px;
  197. height: 12px;
  198. color: #2d8cf0;
  199. background-color: #2d8cf0;
  200. border-radius: 50%;
  201. margin: 20px 0 0 -5px;
  202. }
  203. .dot-left:before, .dot-right:before{
  204. content: '';
  205. border: 6px solid transparent;
  206. position: absolute;
  207. }
  208. .dot-left:before{
  209. border-left-color: inherit;
  210. left: 8px;
  211. }
  212. .dot-right:before{
  213. border-right-color: inherit;
  214. right: 8px;
  215. }
  216. }
  217. }
  218. }
  219. }
  220. .vm-tabs{
  221. .heading{
  222. height: 55px;
  223. border-radius: 4px 4px 0 0;
  224. background-color: #2d8cf0;
  225. line-height: 55px;
  226. font-size: 16px;
  227. color: white;
  228. .icon{
  229. display: inline-block;
  230. text-align: center;
  231. font-size: 18px;
  232. width: 55px;
  233. background: rgba(0,0,0,0.1);
  234. }
  235. .title{
  236. margin-left: 10px;
  237. }
  238. }
  239. .body{
  240. position: relative;
  241. overflow: hidden;
  242. padding: @vm-spacing-base;
  243. &>ul{
  244. position: relative;
  245. height: inherit;
  246. &>li{
  247. display: inline-block;
  248. position: absolute;
  249. width: 100%;
  250. height: 100%;
  251. background: white;
  252. }
  253. }
  254. }
  255. .footer{
  256. min-height: 60px;
  257. line-height: 60px;
  258. ul{
  259. display: flex;
  260. border-top: @border-split;
  261. justify-content: space-around;
  262. li{
  263. text-align: center;
  264. cursor: pointer;
  265. }
  266. li.active{
  267. color: #2d8cf0;
  268. font-weight: bold;
  269. }
  270. }
  271. }
  272. }
  273. .vm-weather{
  274. .top{
  275. color: white;
  276. border-radius: 4px 4px 0 0;
  277. background-color: #2db7f5;
  278. text-align: center;
  279. height: 130px;
  280. i{
  281. font-size: 60px;
  282. }
  283. .temprature{
  284. font-size: 60px;
  285. }
  286. }
  287. .bottom{
  288. height: 73px;
  289. font-size: 14px;
  290. &>div{
  291. display: flex;
  292. flex-direction: column;
  293. justify-content: center;
  294. align-items: center;
  295. span{
  296. color: @vm-grey;
  297. }
  298. }
  299. }
  300. }
  301. .vm-table{
  302. .control{
  303. position: relative;
  304. margin-top: -@vm-spacing-base;
  305. margin-bottom: @vm-spacing-base;
  306. .table-style{
  307. display: flex;
  308. align-items: center;
  309. }
  310. &>div{
  311. margin-top: @vm-spacing-base;
  312. }
  313. }
  314. .edit{
  315. position: relative;
  316. margin-bottom: @vm-spacing-base;
  317. padding-top: @vm-spacing-base;
  318. border-top: 1px dashed #e9eaec;
  319. }
  320. .footer{
  321. margin-top: @vm-spacing-base;
  322. .info-bar{
  323. .input-number{
  324. width: 60px;
  325. margin: 0 10px;
  326. }
  327. }
  328. .page{
  329. display: flex;
  330. align-items: center;
  331. .total{
  332. margin-right: 15px;
  333. }
  334. }
  335. }
  336. }
  337. .vm-state-group{
  338. text-align: center;
  339. padding: 15px;
  340. .item{
  341. float: left;
  342. border-right: @border-split;
  343. &:last-child{
  344. border-right: none;
  345. }
  346. .icon{
  347. font-size: 24px;
  348. }
  349. p{
  350. font-size: 14px;
  351. color: @vm-grey;
  352. }
  353. }
  354. }
  355. .vm-message-carousel{
  356. .item{
  357. padding: @vm-spacing-base;
  358. .main{
  359. padding: @vm-spacing-base;
  360. position: relative;
  361. &:before, &:after{
  362. content: "\"";
  363. position: absolute;
  364. font-size: 28px;
  365. font-weight: bold;
  366. color: #2d8cf0;
  367. }
  368. &:before{
  369. top: 0;
  370. left: 0;
  371. }
  372. &:after{
  373. bottom: 0;
  374. right: 15px;
  375. }
  376. .title{
  377. font-size: 16px;
  378. font-weight: bold;
  379. }
  380. .content{
  381. font-size: 16px;
  382. margin: @vm-spacing-base 0;
  383. }
  384. }
  385. .from{
  386. margin: 0 @vm-spacing-base;
  387. img{
  388. border-radius: 50%;
  389. vertical-align: middle;
  390. height: 40px;
  391. margin-right: @vm-spacing-base;
  392. }
  393. .name{
  394. font-size: 16px;
  395. font-weight: bold;
  396. }
  397. }
  398. }
  399. }
  400. .vm-card-vertical{
  401. .card-img{
  402. position: relative;
  403. text-align: center;
  404. img{
  405. //display: block;
  406. //width: 100%
  407. display:inline-block;
  408. }
  409. .control{
  410. position: absolute;
  411. bottom: -20px;
  412. right: 15px;
  413. display: flex;
  414. span{
  415. display: flex;
  416. justify-content: center;
  417. margin-left: 10px;
  418. align-items: center;
  419. color: white;
  420. font-size: 18px;
  421. background-color: #2d8cf0;
  422. width: 40px;
  423. height: 40px;
  424. border-radius: 50%;
  425. cursor: pointer;
  426. }
  427. span.edit{
  428. background-color: #2db7f5;
  429. a{
  430. color: white;
  431. }
  432. }
  433. span.delete{
  434. background-color: #2d8cf0;
  435. }
  436. }
  437. }
  438. .card-desc{
  439. p{
  440. font-size: 14px;
  441. margin: 10px 0;
  442. text-align: justify;
  443. height: 84px;
  444. overflow: hidden;
  445. text-overflow: ellipsis;
  446. }
  447. }
  448. }
  449. .vm-card-horizantal{
  450. overflow: hidden;
  451. position: relative;
  452. display: flex;
  453. padding: 0;
  454. .card-img{
  455. display: flex;
  456. align-items: center;
  457. //width: 50%;
  458. img{
  459. //display: block;
  460. margin: 0;
  461. //width: 100%;
  462. }
  463. }
  464. .card-desc{
  465. width: 50%;
  466. p{
  467. font-size: 14px;
  468. margin: 10px 0;
  469. text-align: justify;
  470. }
  471. }
  472. }
  473. .vm-circle{
  474. padding: @vm-spacing-base;
  475. &>div{
  476. height: 100%;
  477. display: flex;
  478. justify-content: center;
  479. align-items: center;
  480. }
  481. .title{
  482. margin-bottom: 5px;
  483. }
  484. p{
  485. font-size: 14px;
  486. }
  487. }
  488. .vm-login{
  489. width: 900px;
  490. height: 400px;
  491. &>div{
  492. padding: 30px;
  493. }
  494. .login-form{
  495. display: flex;
  496. flex-direction: column;
  497. justify-content: center;
  498. .login-header{
  499. text-align: center;
  500. font-size: 16px;
  501. font-weight: bold;
  502. margin-bottom: 20px;
  503. span{
  504. color: #2d8cf0;
  505. }
  506. }
  507. .login-form{
  508. input{
  509. margin-bottom: 20px;
  510. width: 100%;
  511. height: 45px;
  512. }
  513. button{
  514. height: 45px;
  515. width: 100%;
  516. }
  517. }
  518. .login-footer{
  519. margin-top: 10px;
  520. span.forget{
  521. float: right;
  522. }
  523. }
  524. }
  525. .login-ad{
  526. height: 100%;
  527. font-weight: bold;
  528. font-size: 14px;
  529. border-radius: 0 4px 4px 0;
  530. background: url("../assets/img/login-bg.jpg");
  531. .photo-author{
  532. position: absolute;
  533. right: 6px;
  534. bottom: 45px;
  535. }
  536. }
  537. }
  538. .vm-lock-screen{
  539. width: 600px;
  540. height: 450px;
  541. display: flex;
  542. flex-direction: column;
  543. justify-content: center;
  544. align-items: center;
  545. .company{
  546. font-size: 16px;
  547. font-weight: bold;
  548. img{
  549. vertical-align: middle;
  550. }
  551. span{
  552. color: #2d8cf0;
  553. }
  554. margin-bottom: 50px;
  555. }
  556. .user{
  557. margin-bottom: 50px;
  558. p.name{
  559. text-align: center;
  560. font-size: 14px;
  561. line-height: 20px;
  562. }
  563. }
  564. input{
  565. margin-bottom: 10px;
  566. }
  567. button{
  568. width: 300px;
  569. }
  570. }
  571. .vm-image-list{
  572. .image-list-heading{
  573. .page{
  574. span{
  575. margin-right: 10px;
  576. }
  577. span.margin-end{
  578. margin-right: 20px;
  579. }
  580. .input-number{
  581. width: 40px;
  582. margin-right: 10px;
  583. }
  584. }
  585. .panel-body{
  586. margin-top: -@vm-spacing-base;
  587. &>div{
  588. margin-top: @vm-spacing-base;
  589. }
  590. }
  591. }
  592. .total{
  593. margin-right: 15px;
  594. }
  595. }
  596. .vm-loading{
  597. .rect{
  598. width: 8px;
  599. height: 36px;
  600. background-color: #2d8cf0;
  601. float: left;
  602. margin: 3px;
  603. animation: animate 1s infinite;
  604. &:nth-child(2){
  605. animation-delay: 0.1s
  606. }
  607. &:nth-child(3){
  608. animation-delay: 0.2s
  609. }
  610. &:nth-child(4){
  611. animation-delay: 0.3s
  612. }
  613. &:nth-child(5){
  614. animation-delay: 0.4s
  615. }
  616. &:nth-child(6){
  617. animation-delay: 0.5s
  618. }
  619. &:nth-child(7){
  620. animation-delay: 0.6s
  621. }
  622. &:nth-child(8){
  623. animation-delay: 0.7s
  624. }
  625. &:nth-child(9){
  626. animation-delay: 0.8s
  627. }
  628. &:nth-child(10){
  629. animation-delay: 0.9s
  630. }
  631. }
  632. }
  633. @keyframes animate{
  634. 50%{
  635. transform: scaleY(0)
  636. }
  637. }