templatePanel.less 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .temp-panel {
  2. margin: 5px 5px 5px 10px;
  3. border-right: 1px dashed #eee;
  4. display: inline-block;
  5. vertical-align: middle;
  6. }
  7. .temp-list {
  8. min-width: 124px;
  9. }
  10. .temp-item-wrap {
  11. width: 50px;
  12. height: 40px;
  13. padding: 0 2px;
  14. margin: 5px;
  15. display: inline-block;
  16. }
  17. .temp-item {
  18. display: inline-block;
  19. width: 50px;
  20. height: 40px;
  21. background-image: url(images/template.png);
  22. background-repeat: no-repeat;
  23. &.default {
  24. background-position: 0 0;
  25. }
  26. &.structure {
  27. background-position: -50px 0;
  28. }
  29. &.filetree {
  30. background-position: -100px 0;
  31. }
  32. &.right {
  33. background-position: -150px 0;
  34. }
  35. &.fish-bone {
  36. background-position: -200px 0;
  37. }
  38. &.tianpan {
  39. background-position: -250px 0;
  40. }
  41. }
  42. .current-temp-item {
  43. width: 74px;
  44. padding: 0 0 0 5px;
  45. border: 1px solid #fff;
  46. &:hover {
  47. background-color: @tool-hover;
  48. }
  49. &[disabled] {
  50. opacity: 0.5;
  51. }
  52. .caret {
  53. margin-left: 5px;
  54. }
  55. }
  56. .temp-item-selected {
  57. background-color: @tool-selected;
  58. }