pages.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. .attachment-collection-add, .attachment-collections-list {
  2. padding: 10px 12px;
  3. }
  4. .attachment-collection-add > form > div {
  5. display: flex;
  6. align-items: flex-end;
  7. }
  8. .attachment-collection-add > form > div .mb-6 {
  9. margin-right: 12px;
  10. }
  11. .attachment-collection-add > form > div button {
  12. margin-top: 0px;
  13. margin-bottom: var(--s);
  14. }
  15. @media only screen and (max-width:465px) {
  16. .attachment-collection-add > form, .attachment-collection-add > form > div .mb-6 {
  17. width: 100%;
  18. margin: 0px;
  19. }
  20. .attachment-collection-add > form > div {
  21. flex-direction: column;
  22. }
  23. .attachment-collection-add > form > div button {
  24. margin-top: var(--s);;
  25. margin-bottom: 0px;
  26. }
  27. }
  28. :root {
  29. --collections-list-quantity: 3;
  30. }
  31. @media only screen and (min:1281px) {
  32. :root {
  33. --collections-list-quantity: 3;
  34. }
  35. }
  36. @media only screen and (max-width:1280px) {
  37. :root {
  38. --collections-list-quantity: 4;
  39. }
  40. }
  41. @media only screen and (max-width:900px) {
  42. :root {
  43. --collections-list-quantity: 3;
  44. }
  45. }
  46. @media only screen and (max-width:700px) {
  47. :root {
  48. --collections-list-quantity: 2;
  49. }
  50. }
  51. @media only screen and (max-width:465px) {
  52. :root {
  53. --collections-list-quantity: 1;
  54. }
  55. }
  56. .attachment-collections-list {
  57. display: grid !important;
  58. grid-gap: 12px;
  59. grid-template-columns: repeat(var(--collections-list-quantity), 1fr);
  60. }
  61. .attachment-collections-list h3, .attachment-collections-list h2, .attachment-collections-list h1 {
  62. grid-column-start: 1;
  63. grid-column-end: calc(var(--collections-list-quantity) + 1);
  64. }
  65. .attachment-collections-list .attachment-collection-item {
  66. border: 2px solid var(--border);
  67. border-radius: var(--s);
  68. padding: 10px 20px;
  69. display: flex;
  70. flex-direction: column;
  71. position: relative;
  72. }
  73. .attachment-collections-list .attachment-collection-item .name {
  74. margin-right: auto;
  75. flex-grow: 1;
  76. flex-shrink: 1;
  77. word-break: break-word;
  78. margin-right: 60px;
  79. }
  80. .attachment-collections-list .attachment-collection-item summary {
  81. position: absolute;
  82. top: 10px;
  83. right: 50px;
  84. width: 16px;
  85. }
  86. .attachment-collections-list .attachment-collection-item details + details > summary {
  87. right: 20px;
  88. }
  89. .attachment-collections-list .attachment-collection-item details {
  90. margin-top: 12px;
  91. }
  92. .attachment-collections-list .attachment-collection-item svg {
  93. fill: var(--foreground);
  94. }
  95. .attachment-collections-list .attachment-collection-item svg:hover {
  96. fill: var(--accent);
  97. }
  98. .attachment-collections-list .attachment-collection-item details label {
  99. display: none;
  100. }
  101. .attachment-collections-list .attachment-collection-item details .danger {
  102. color: #cb2d2d;
  103. }