ListItem.less 878 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .list-item {
  2. position: relative;
  3. padding: 7px 10px 7px 12px;
  4. cursor: pointer;
  5. &.sys-hosts {
  6. font-size: 14px;
  7. padding: 8px 10px 8px 10px;
  8. i.item-icon {
  9. width: 22px;
  10. font-size: 12px;
  11. }
  12. }
  13. &.selected {
  14. background: #2d3138;
  15. span {
  16. color: #fff;
  17. }
  18. i.item-icon {
  19. color: #fff;
  20. }
  21. &:hover {
  22. i.icon-edit {
  23. display: inline-block;
  24. color: #fff;
  25. }
  26. }
  27. }
  28. :global {
  29. i {
  30. display: inline-block;
  31. width: 20px;
  32. text-align: center;
  33. margin-right: 5px;
  34. &.item-icon {
  35. font-size: 10px;
  36. }
  37. &.switch {
  38. cursor: pointer;
  39. line-height: 23px;
  40. &.icon-on {
  41. color: #af9;
  42. }
  43. }
  44. &.icon-edit {
  45. display: none;
  46. }
  47. }
  48. }
  49. }
  50. .item-buttons {
  51. position: absolute;
  52. right: 10px;
  53. }