sortable.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. body {
  2. -webkit-font-smoothing: antialiased;
  3. -moz-osx-font-smoothing: grayscale;
  4. -webkit-tap-highlight-color: transparent;
  5. }
  6. * {
  7. box-sizing: border-box;
  8. }
  9. .title {
  10. font-weight: 500;
  11. text-align: center;
  12. margin-bottom: 20px;
  13. font-size: 20px;
  14. color: #0E254E;
  15. }
  16. .list {
  17. margin: 0 auto;
  18. width: 100%;
  19. max-width: 380px;
  20. user-select: none;
  21. }
  22. .list__item {
  23. transition: box-shadow 200ms ease-out, opacity 200ms ease-out;
  24. border-radius: 6px;
  25. background: #fff;
  26. box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  27. display: flex;
  28. }
  29. .list__item:not(:last-child) {
  30. margin-bottom: 7px;
  31. }
  32. .list__item.is-dragging {
  33. box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
  34. opacity: 0.8;
  35. }
  36. .list__item-content {
  37. width: calc(100% - 40px - 40px);
  38. padding: 10px 15px;
  39. }
  40. .list__item-title, .list__item-description {
  41. white-space: nowrap;
  42. text-overflow: ellipsis;
  43. overflow: hidden;
  44. }
  45. .list__item-title {
  46. font-size: 15px;
  47. color: #0E254E;
  48. }
  49. .list__item-description {
  50. font-size: 13px;
  51. color: #66748E;
  52. }
  53. .list__item-handle {
  54. position: relative;
  55. width: 40px;
  56. cursor: pointer;
  57. }
  58. .list__item-handle:before, .list__item-handle:after {
  59. content: "";
  60. position: absolute;
  61. left: 15px;
  62. right: 15px;
  63. top: 50%;
  64. height: 1px;
  65. background: #c2cada;
  66. }
  67. .list__item-handle:before {
  68. transform: translateY(-4px);
  69. }
  70. .list__item-handle:after {
  71. transform: translateY(4px);
  72. }
  73. .list__item-close {
  74. position: relative;
  75. width: 40px;
  76. cursor: pointer;
  77. }
  78. .list__item-close:after {
  79. content: "X";
  80. position: absolute;
  81. left: 15px;
  82. right: 15px;
  83. top: 30%;
  84. height: 0px;
  85. background: #c2cada;
  86. }
  87. .list__item-close:after {
  88. transform: translateY(0px);
  89. }
  90. .list__item-close:hover {
  91. background-color: #f44336;
  92. color: white;
  93. }
  94. .triangle{
  95. position: absolute;
  96. top: 1px;
  97. right: 5px;
  98. cursor: default;
  99. }