You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.1 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. /**
  2. *
  3. *
  4. *
  5. */
  6. @mixin component__file-table()
  7. {
  8. .filemanager-actions__selected {
  9. padding: 5px 10px 15px 0;
  10. display: inline-block;
  11. }
  12. .file-table {
  13. display: block;
  14. width: 100%;
  15. &__row {
  16. display: flex;
  17. flex-wrap: wrap;
  18. padding: 5px 0;
  19. border-bottom: 1px solid $grey;
  20. &:hover {
  21. background-color: lighten($grey, 45%);
  22. }
  23. &--current {
  24. background-color: lighten($primary, 50%);
  25. }
  26. }
  27. &__inner {
  28. width: 100%;
  29. }
  30. &__column {
  31. display: flex;
  32. flex: 2;
  33. align-items: center;
  34. &--select {
  35. max-width: 30px;
  36. input[type=checkbox] {
  37. margin: -17px 0 0 0;
  38. }
  39. }
  40. &--actions {
  41. max-width: 180px;
  42. button {
  43. border: 0;
  44. padding: 0;
  45. .icon {
  46. width: 2.4em;
  47. height: 2.4em;
  48. }
  49. &:disabled {
  50. .icon {
  51. opacity: 0.3;
  52. &:hover {
  53. cursor: not-allowed;
  54. }
  55. }
  56. }
  57. }
  58. }
  59. }
  60. }
  61. .file-table__column--select {
  62. input[type=checkbox] {
  63. position: relative;
  64. display: none;
  65. + label {
  66. .checked {
  67. display: none;
  68. }
  69. &:hover {
  70. cursor: pointer;
  71. }
  72. }
  73. &:checked + label .checked {
  74. display: inline-block;
  75. }
  76. &:checked + label .unchecked {
  77. display: none;
  78. }
  79. }
  80. .checked, .unchecked {
  81. vertical-align: bottom;
  82. }
  83. }
  84. }