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.

fileslist-row.scss 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /**
  2. * @copyright Copyright (c) 2023 John Molakvoæ <skjnldsv@protonmail.com>
  3. *
  4. * @author John Molakvoæ <skjnldsv@protonmail.com>
  5. *
  6. * @license AGPL-3.0-or-later
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License as
  10. * published by the Free Software Foundation, either version 3 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. td, th {
  23. height: var(--row-height);
  24. vertical-align: middle;
  25. padding: 0px;
  26. border: none;
  27. }
  28. .files-list__row-checkbox {
  29. width: var(--row-height);
  30. &::v-deep .checkbox-radio-switch {
  31. --icon-size: var(--checkbox-size);
  32. display: flex;
  33. justify-content: center;
  34. label.checkbox-radio-switch__label {
  35. margin: 0;
  36. height: var(--clickable-area);
  37. width: var(--clickable-area);
  38. padding: calc((var(--clickable-area) - var(--checkbox-size)) / 2)
  39. }
  40. .checkbox-radio-switch__icon {
  41. margin: 0 !important;
  42. }
  43. }
  44. }
  45. .files-list__row-icon {
  46. // Remove left padding to look nicer with the checkbox
  47. // => ico preview size + one checkbox td padding
  48. width: calc(var(--icon-preview-size) + var(--checkbox-padding));
  49. padding-right: var(--checkbox-padding);
  50. color: var(--color-primary-element);
  51. & > span {
  52. justify-content: flex-start;
  53. }
  54. &::v-deep svg {
  55. width: var(--icon-preview-size);
  56. height: var(--icon-preview-size);
  57. }
  58. }