galleryManager.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /* Photo Gallery */
  2. .gallery-manager {
  3. position: relative;
  4. border: 1px solid #DDD;
  5. -webkit-border-radius: 4px;
  6. -moz-border-radius: 4px;
  7. border-radius: 4px;
  8. -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
  9. -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
  10. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
  11. min-height: 200px;
  12. .photo {
  13. position: relative;
  14. float: left;
  15. background-color: #fff;
  16. margin: 4px;
  17. height: 178px;
  18. width: 140px;
  19. display: block;
  20. padding: 4px;
  21. line-height: 1;
  22. border: 1px solid #DDD;
  23. -webkit-border-radius: 4px;
  24. -moz-border-radius: 4px;
  25. border-radius: 4px;
  26. -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
  27. -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
  28. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
  29. img {
  30. width: 140px;
  31. height: auto;
  32. }
  33. a {
  34. padding-left: 8px;
  35. }
  36. .actions {
  37. float: right;
  38. position: absolute;
  39. bottom: 4px;
  40. right: 4px;
  41. }
  42. }
  43. hr {
  44. margin: 0 4px;
  45. }
  46. .btn-file {
  47. position: relative;
  48. overflow: hidden;
  49. }
  50. .btn-file input[type=file] {
  51. position: absolute;
  52. top: 0;
  53. right: 0;
  54. min-width: 100%;
  55. min-height: 100%;
  56. font-size: 999px;
  57. text-align: right;
  58. filter: alpha(opacity=0);
  59. opacity: 0;
  60. outline: none;
  61. background: white;
  62. cursor: inherit;
  63. display: block;
  64. }
  65. .caption {
  66. h5 {
  67. margin: 0;
  68. font-size: 13px;
  69. white-space: nowrap;
  70. overflow: hidden;
  71. }
  72. p {
  73. height: 3em;
  74. overflow: hidden;
  75. font-size: 13px;
  76. }
  77. }
  78. &.no-desc .photo {
  79. height: 138px;
  80. }
  81. &.no-name .photo {
  82. height: 160px;
  83. }
  84. &.no-name-no-desc .photo {
  85. height: 120px;
  86. }
  87. .image-preview {
  88. height: 88px;
  89. display: flex;
  90. justify-content: center;
  91. align-items: center;
  92. overflow: hidden;
  93. }
  94. .photo-select {
  95. position: absolute;
  96. bottom: 8px;
  97. left: 8px;
  98. }
  99. .photo.selected {
  100. background-color: #cef;
  101. border-color: blue;
  102. }
  103. .overlay {
  104. display: none;
  105. position: absolute;
  106. top: 0;
  107. left: 0;
  108. width: 100%;
  109. height: 100%;
  110. }
  111. .overlay-bg {
  112. position: absolute;
  113. top: 0;
  114. left: 0;
  115. background-color: #efefef;
  116. opacity: .5;
  117. width: 100%;
  118. height: 100%;
  119. }
  120. &.over .overlay {
  121. display: block;
  122. }
  123. .drop-hint {
  124. background-color: #efefef;
  125. border: 2px #777 dashed;
  126. position: absolute;
  127. top: 50%;
  128. left: 50%;
  129. height: 100px;
  130. width: 50%;
  131. margin: -50px 0 0 -25%;
  132. text-align: center;
  133. }
  134. .drop-hint-info {
  135. color: #777;
  136. font-weight: bold;
  137. font-size: 30px;
  138. margin-top: 35px;
  139. vertical-align: middle;
  140. display: inline-block;
  141. }
  142. .progress-overlay {
  143. display: none;
  144. position: absolute;
  145. top: 0;
  146. left: 0;
  147. width: 100%;
  148. height: 100%;
  149. .modal {
  150. position: relative;
  151. display: block;
  152. top: 80px;
  153. }
  154. }
  155. }
  156. .editor-modal {
  157. .photo-editor {
  158. min-height: 156px;
  159. padding: 4px;
  160. &:not(:last-child) {
  161. border-bottom: 1px solid #DDD;
  162. }
  163. }
  164. }