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.

fileEntryInlineSystemTags.scss 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * @copyright Copyright (c) 2023 Lucas Azevedo <lhs_azevedo@hotmail.com>
  3. *
  4. * @author Lucas Azevedo <lhs_azevedo@hotmail.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. .files-list__system-tags {
  23. --min-size: 32px;
  24. display: flex;
  25. justify-content: center;
  26. align-items: center;
  27. min-width: calc(var(--min-size) * 2);
  28. max-width: 300px;
  29. }
  30. .files-list__system-tag {
  31. padding: 5px 10px;
  32. border: 1px solid;
  33. border-radius: var(--border-radius-pill);
  34. border-color: var(--color-border);
  35. color: var(--color-text-maxcontrast);
  36. height: var(--min-size);
  37. white-space: nowrap;
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. line-height: 22px; // min-size - 2 * 5px padding
  41. text-align: center;
  42. &--more {
  43. overflow: visible;
  44. text-overflow: initial;
  45. }
  46. // Proper spacing if multiple shown
  47. & + .files-list__system-tag {
  48. margin-left: 5px;
  49. }
  50. }