example.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. input {
  2. border: none;
  3. outline: none;
  4. background-color: #ecf0f1;
  5. padding: 10px;
  6. color: #942A57;
  7. border: 0;
  8. margin: 5px 0;
  9. display: block;
  10. width: 100%;
  11. }
  12. button {
  13. background-color: #ecf0f1;
  14. color: #942A57;
  15. border: 0;
  16. padding: 18px 12px;
  17. margin-left: 6px;
  18. cursor: pointer;
  19. outline: none;
  20. }
  21. button:hover {
  22. background-color: #e74c3c;
  23. color: #ecf0f1;
  24. }
  25. .gh-fork {
  26. position: fixed;
  27. top: 0;
  28. right: 0;
  29. border: 0;
  30. }
  31. /* dragula-specific example page styles */
  32. .wrapper {
  33. display: table;
  34. }
  35. .container {
  36. display: table-cell;
  37. background-color: rgba(255, 255, 255, 0.2);
  38. }
  39. /*
  40. * note that styling gu-mirror directly is a bad practice because it's too generic.
  41. * you're better off giving the draggable elements a unique class and styling that directly!
  42. */
  43. .container > div,
  44. .gu-mirror {
  45. margin: 10px;
  46. padding: 10px;
  47. background-color: rgba(0, 0, 0, 0.2);
  48. transition: opacity 0.4s ease-in-out;
  49. }
  50. .container > div {
  51. cursor: move;
  52. cursor: grab;
  53. cursor: -moz-grab;
  54. cursor: -webkit-grab;
  55. }
  56. .gu-mirror {
  57. cursor: grabbing;
  58. cursor: -moz-grabbing;
  59. cursor: -webkit-grabbing;
  60. }
  61. .container .ex-moved {
  62. background-color: #e74c3c;
  63. }
  64. .container.ex-over {
  65. background-color: rgba(255, 255, 255, 0.3);
  66. }
  67. #left-lovehandles > div,
  68. #right-lovehandles > div {
  69. cursor: initial;
  70. }
  71. .handle {
  72. padding: 0 5px;
  73. margin-right: 5px;
  74. background-color: rgba(0, 0, 0, 0.4);
  75. cursor: move;
  76. }
  77. .image-thing {
  78. margin: 20px 0;
  79. display: block;
  80. text-align: center;
  81. }
  82. .slack-join {
  83. position: absolute;
  84. font-weight: normal;
  85. font-size: 14px;
  86. right: 10px;
  87. top: 50%;
  88. margin-top: -8px;
  89. line-height: 16px;
  90. }