media-library.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. #media-library-wrapper {
  2. display: flex;
  3. flex-wrap: wrap;
  4. }
  5. #media-library-add-form-wrapper {
  6. background: #d9e8f4;
  7. padding: 1rem;
  8. border-radius: 4px;
  9. }
  10. @media screen and (min-width: 640px) {
  11. .media-library-content {
  12. flex: 6;
  13. }
  14. }
  15. ul.media-library-menu {
  16. flex: 1;
  17. display: flex;
  18. flex-wrap: wrap;
  19. margin: 0;
  20. padding: 0;
  21. background: #f7fcff;
  22. }
  23. .media-library-menu li {
  24. list-style: none;
  25. flex: 1;
  26. text-align: center;
  27. border-bottom: 1px solid rgba(6, 120, 190, 0.17);
  28. background-color: #fff;
  29. }
  30. @media screen and (min-width: 640px) {
  31. ul.media-library-menu {
  32. border-right: 4px solid #0678be;
  33. flex-direction: column;
  34. margin: 0 2rem 0 0;
  35. }
  36. .media-library-menu li {
  37. flex: unset;
  38. text-align: left;
  39. }
  40. }
  41. .media-library-menu li a {
  42. padding: 0.8rem 1rem;
  43. line-height: 2;
  44. display: block;
  45. text-decoration: none;
  46. text-transform: uppercase;
  47. font-weight: bold;
  48. }
  49. .media-library-menu li a.active {
  50. background-color: #0678be;
  51. color: #fff;
  52. }
  53. .media-library-menu li a:not(.active):hover {
  54. background-color: #f7fcff;
  55. }
  56. .view-media-library .view-header {
  57. align-self: flex-end;
  58. margin: 1em 0;
  59. text-align: right;
  60. }
  61. .view-media-library .views-display-link {
  62. margin: 0;
  63. color: #333;
  64. font-size: 15px;
  65. line-height: 16px;
  66. border-radius: 26px;
  67. padding: 4px 10px 4px 26px;
  68. text-align: center;
  69. text-decoration: none;
  70. }
  71. .view-media-library .views-display-link.is-active {
  72. background-color: #d9e8f4;
  73. }
  74. .view-media-library .views-display-link-widget {
  75. margin-right: 15px;
  76. background: url(../../../../../core/misc/icons/333333/grid.svg) 6px center no-repeat;
  77. }
  78. .view-media-library .views-display-link-widget_table {
  79. background: url(../../../../../core/misc/icons/333333/table.svg) 6px center no-repeat;
  80. }
  81. #media-library-view .form--inline {
  82. align-items: center;
  83. }
  84. #media-library-view .form--inline .form-wrapper .form-submit {
  85. margin-top: 10px;
  86. }
  87. #media-library-view .view-content .views-form form {
  88. display: flex;
  89. flex-wrap: wrap;
  90. }
  91. #media-library-view .view-content .views-form form .views-row {
  92. display: flex;
  93. margin: 0.5rem 0.8rem;
  94. width: 22%;
  95. flex-basis: 22%;
  96. border: 2px solid transparent;
  97. flex-direction: column;
  98. position: relative;
  99. text-align: center;
  100. padding: 1rem;
  101. overflow: hidden;
  102. }
  103. .media-librayr-item--name {
  104. overflow: hidden;
  105. text-overflow: ellipsis;
  106. word-break: break-all;
  107. }
  108. @media screen and (min-width: 640px) {
  109. #media-library-view .view-content .views-form form .views-row {
  110. width: 22%;
  111. }
  112. .media-librayr-item--name {
  113. white-space: nowrap;
  114. }
  115. }
  116. #media-library-view .view-content .views-form form .views-row:hover {
  117. border: 2px solid #0678be;
  118. }
  119. #media-library-view .view-content .views-form form .views-row.checked {
  120. background: #f7fcff;
  121. border: 2px solid #0678be;
  122. }
  123. #media-library-view .view-content .views-form form .views-row .views-field-media-library-select-form {
  124. position: absolute;
  125. top: 0;
  126. left: 0;
  127. z-index: 9;
  128. }
  129. #media-library-view .view-content .views-form form .views-row .views-field-rendered-entity .field--type-image img {
  130. max-width: 100%;
  131. height: auto;
  132. }
  133. .js-media-library-add-form .item-list ul {
  134. margin: 0;
  135. padding: 0;
  136. display: flex;
  137. flex-wrap: wrap;
  138. }
  139. .js-media-library-add-form .item-list ul li {
  140. list-style: none;
  141. margin: 0.5rem;
  142. max-width: 15%;
  143. }
  144. .js-media-library-add-form .item-list ul li img {
  145. width: 100%;
  146. max-width: 150px;
  147. height: auto;
  148. }
  149. .js-media-library-add-form .item-list ul li .form-item-name label {
  150. margin: 0;
  151. }
  152. .js-media-library-widget .js-media-library-selection {
  153. display: flex;
  154. flex-wrap: wrap;
  155. margin-bottom: 2rem;
  156. }
  157. .js-media-library-widget .js-media-library-selection .js-media-library-item {
  158. display: flex;
  159. margin: 0.5rem 0.8rem;
  160. width: 22%;
  161. flex-direction: column-reverse;
  162. position: relative;
  163. text-align: center;
  164. padding: 1rem;
  165. align-items: stretch;
  166. justify-content: flex-end;
  167. }
  168. .js-media-library-widget .js-media-library-selection .js-media-library-item img {
  169. max-width: 150px;
  170. height: 130px;
  171. object-fit: contain;
  172. }
  173. .js-media-library-widget .js-media-library-selection .js-media-library-item .form-submit {
  174. margin: 0;
  175. width: 100%;
  176. }