galleryManager.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. overflow: hidden;
  90. }
  91. .photo-select {
  92. position: absolute;
  93. bottom: 8px;
  94. left: 8px;
  95. }
  96. .photo.selected {
  97. background-color: #cef;
  98. border-color: blue;
  99. }
  100. .overlay {
  101. display: none;
  102. position: absolute;
  103. top: 0;
  104. left: 0;
  105. width: 100%;
  106. height: 100%;
  107. }
  108. .overlay-bg {
  109. position: absolute;
  110. top: 0;
  111. left: 0;
  112. background-color: #efefef;
  113. opacity: .5;
  114. width: 100%;
  115. height: 100%;
  116. }
  117. &.over .overlay {
  118. display: block;
  119. }
  120. .drop-hint {
  121. background-color: #efefef;
  122. border: 2px #777 dashed;
  123. position: absolute;
  124. top: 50%;
  125. left: 50%;
  126. height: 100px;
  127. width: 50%;
  128. margin: -50px 0 0 -25%;
  129. text-align: center;
  130. }
  131. .drop-hint-info {
  132. color: #777;
  133. font-weight: bold;
  134. font-size: 30px;
  135. margin-top: 35px;
  136. vertical-align: middle;
  137. display: inline-block;
  138. }
  139. .progress-overlay {
  140. display: none;
  141. position: absolute;
  142. top: 0;
  143. left: 0;
  144. width: 100%;
  145. height: 100%;
  146. .modal {
  147. position: relative;
  148. display: block;
  149. top: 80px;
  150. }
  151. }
  152. }
  153. .editor-modal {
  154. .photo-editor {
  155. min-height: 156px;
  156. padding: 4px;
  157. &:not(:last-child) {
  158. border-bottom: 1px solid #DDD;
  159. }
  160. }
  161. }