_media.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. /* Media */
  2. $dark-text: #333;
  3. .pages-list-container {
  4. width: 30%;
  5. flex: none!important;
  6. padding: 0!important;
  7. .pages-list {
  8. width: 100%;
  9. white-space: nowrap;
  10. overflow: hidden;
  11. text-overflow: ellipsis;
  12. &.depth-0 .row {
  13. padding-left: .5rem;
  14. }
  15. .depth-1 .row {
  16. padding-left: 1rem;
  17. }
  18. .page-item {
  19. .page-link {
  20. cursor: pointer;
  21. }
  22. }
  23. .row.active {
  24. background-color: rgba(#00a6cf, 0.1);
  25. }
  26. }
  27. }
  28. .media-page-dropzone {
  29. width: 100%;
  30. margin-bottom: 20px;
  31. }
  32. .media-container {
  33. &.size-2-3 {
  34. flex: none!important;
  35. width: 70%;
  36. }
  37. .filters {
  38. padding-bottom: 30px;
  39. width: 100%;
  40. .filter-wrapper {
  41. margin-left: 10px;
  42. margin-right: 10px;
  43. &:after {
  44. margin-top: -25px;
  45. border: 0px none;
  46. content: "\f078";
  47. font-family: "FontAwesome";
  48. right: 12px;
  49. top: 50%;
  50. line-height: 0;
  51. color: #9BA2A6;
  52. pointer-events: none;
  53. float: right;
  54. padding-right: 10px;
  55. }
  56. }
  57. .filter {
  58. option {
  59. padding: 8px;
  60. }
  61. }
  62. }
  63. .files {
  64. padding-left: 30px;
  65. padding-right: 30px;
  66. }
  67. .admin-media-title {
  68. color: $dark-text;
  69. margin: 0px;
  70. font-size: .8rem;
  71. line-height: 1.3;
  72. }
  73. .card-item {
  74. width: 49%;
  75. &.empty-space {
  76. background: rgba(255,255,255,0.4);
  77. border: 1px solid rgba(0,0,0,0.1) !important;
  78. color: rgba(0,0,0,0.3);
  79. max-width: none;
  80. display: block;
  81. text-align: center;
  82. top: 20%;
  83. height: 10rem !important;
  84. width: 50% !important;
  85. margin: 0 auto !important;
  86. font-size: 2rem;
  87. line-height: 8rem;
  88. transform: translateY(-50%);
  89. }
  90. }
  91. .media-details {
  92. text-align: center;
  93. img {
  94. width: 50%;
  95. }
  96. h2 {
  97. margin: 0;
  98. font-size: 1.8rem;
  99. }
  100. h5 {
  101. color: #9BA2A6;
  102. font-size: 1.1rem;
  103. margin: 0;
  104. }
  105. }
  106. h1 {
  107. padding: 0 2rem 0.5rem!important;
  108. }
  109. .admin-form-wrapper {
  110. width: 100%;
  111. padding-bottom: 20px;
  112. }
  113. }
  114. .spinning-wheel {
  115. text-align: center;
  116. }
  117. /* Media in-page modal */
  118. .media-container.in-modal {
  119. h1 {
  120. font-size: 30px!important;
  121. margin-top: 0px;
  122. }
  123. a {
  124. color: #333;
  125. }
  126. .pages-list li {
  127. list-style-type: none;
  128. margin-left: 0;
  129. }
  130. }
  131. //Mediapicker field
  132. .remodal.remodal-mediapicker {
  133. max-width: 70vw;
  134. padding: 0;
  135. }
  136. .media-container {
  137. height: 70vh;
  138. .grid {
  139. justify-content: flex-start;
  140. }
  141. &.in-modal {
  142. .gm-scrollbar {
  143. background: rgba(255,255,255,0.2);
  144. .thumb {
  145. background-color: rgba(0,0,0,0.2) !important;
  146. &:hover, &.active {
  147. background-color: rgba(0,0,0,0.3) !important;
  148. }
  149. }
  150. }
  151. }
  152. h5 {
  153. border-bottom: 1px solid #ddd;
  154. padding: 0.5rem 15px;
  155. margin: 0;
  156. height: 55px;
  157. }
  158. .filter-wrapper {
  159. float: right;
  160. margin-right: 5px;
  161. margin-top: 10px;
  162. }
  163. .filter-date {
  164. width: 150px;
  165. }
  166. .filter-type {
  167. width: 100px;
  168. margin-right: 15px;
  169. }
  170. .pages-list-container {
  171. position: relative;
  172. .pages-list {
  173. border-top: 0;
  174. padding-right: 10px;
  175. font-size: 90%;
  176. .row {
  177. transition: none !important;
  178. line-height: 2rem;
  179. }
  180. @for $i from 1 to 10 {
  181. .depth-#{$i} .row {
  182. padding-left: 1rem * ($i + 1);
  183. }
  184. }
  185. }
  186. .mediapicker-scroll {
  187. position: absolute;
  188. top: 55px;
  189. bottom: 3px;
  190. height: inherit;
  191. }
  192. }
  193. .thumbs-list-container {
  194. position: relative;
  195. .media-range {
  196. position: absolute;
  197. right: 15px;
  198. bottom: 5px;
  199. }
  200. .mediapicker-scroll {
  201. position: absolute;
  202. top: 55px;
  203. bottom: 30px;
  204. height: inherit;
  205. }
  206. .gm-scrollbar.-horizontal {
  207. display: none;
  208. }
  209. }
  210. #admin-media {
  211. padding: 15px;
  212. height: 100%;
  213. align-items: flex-start;
  214. align-content: flex-start;
  215. .card-item {
  216. width: 100px;
  217. padding: 2px;
  218. margin: 0 5px 5px 0;
  219. border: 0;
  220. img {
  221. display: block;
  222. }
  223. }
  224. .admin-media-details {
  225. position: relative;
  226. .admin-media-title {
  227. position: absolute;
  228. width: 100%;
  229. bottom: 0;
  230. background: rgba(0,0,0,0.3);
  231. color: #fff;
  232. font-size: 10px;
  233. overflow: hidden;
  234. line-height: 2;
  235. text-indent: 2px;
  236. white-space: nowrap;
  237. }
  238. }
  239. }
  240. }
  241. [data-remodal-id="metadata"] {
  242. h1 > * {
  243. vertical-align: middle;
  244. }
  245. h1 strong {
  246. @include ellipsis(75%);
  247. }
  248. .metadata-preview {
  249. display: flex;
  250. margin: 0 3rem;
  251. .meta-preview {
  252. max-width: 200px;
  253. }
  254. .meta-content ul {
  255. margin: 0;
  256. }
  257. }
  258. }