sortable.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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,
  41. .list__item-description{
  42. white-space:nowrap;
  43. text-overflow:ellipsis;
  44. overflow:hidden;
  45. }
  46. .list__item-title{
  47. font-size:15px;
  48. color:#0E254E;
  49. }
  50. .list__item-description{
  51. font-size:13px;
  52. color:#66748E;
  53. }
  54. .list__item-handle{
  55. position:relative;
  56. width:40px;
  57. cursor:pointer;
  58. }
  59. .list__item-handle:before,
  60. .list__item-handle:after{
  61. content:"";
  62. position:absolute;
  63. left:15px;
  64. right:15px;
  65. top:50%;
  66. height:1px;
  67. background:#c2cada;
  68. }
  69. .list__item-handle:before{
  70. transform:translateY(-4px);
  71. }
  72. .list__item-handle:after{
  73. transform:translateY(4px);
  74. }
  75. .list__item-close{
  76. position:relative;
  77. width:40px;
  78. cursor:pointer;
  79. }
  80. .list__item-close:after{
  81. content:"X";
  82. position:absolute;
  83. left:15px;
  84. right:15px;
  85. top:30%;
  86. height:0px;
  87. background:#c2cada;
  88. }
  89. .list__item-close:after{
  90. transform:translateY(0px);
  91. }
  92. .list__item-close:hover{
  93. background-color:#f44336;
  94. color:white;
  95. }
  96. .triangle{
  97. position:absolute;
  98. top:1px;
  99. right:5px;
  100. cursor:default;
  101. }