gallery.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. @import "colours.less";
  2. #tabs{
  3. background:@primary;
  4. margin:-20px;
  5. margin-bottom:10px;
  6. position:fixed;
  7. width:100%;
  8. box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.8);
  9. overflow-x:auto;
  10. white-space:nowrap;
  11. a{
  12. display:inline-block;
  13. color:@primary-100;
  14. padding:15px 30px;
  15. text-decoration:none;
  16. text-transform: uppercase;
  17. &.active{
  18. color:#fff;
  19. border-bottom:3px solid #fff;
  20. }
  21. }
  22. }
  23. .album{
  24. width:33.33%;
  25. /*float:left;*/
  26. display:inline-block;
  27. vertical-align:top;
  28. div{
  29. margin:5px;
  30. padding:5px;
  31. background:@control2;
  32. }
  33. span{
  34. display:block;
  35. text-align:center;
  36. color:@Grey-800;
  37. overflow:hidden;
  38. }
  39. }
  40. .imageSelector{
  41. .image{
  42. width:25%;
  43. display:inline-block;
  44. vertical-align:top;
  45. text-align:center;
  46. &.selected {
  47. >div{
  48. background:@primary-300;
  49. &:hover{
  50. background:@primary-400;
  51. }
  52. }
  53. }
  54. input[type=checkbox]{
  55. display:none;
  56. }
  57. >div{
  58. margin:5px;
  59. padding:5px;
  60. background:@control2;
  61. &:hover{
  62. background:@Grey-400;
  63. }
  64. }
  65. }
  66. }
  67. #album-viewer{
  68. height:100%;
  69. display:flex;
  70. flex-direction: column;
  71. #album-description{
  72. flex: 0 0 auto;
  73. .expander{
  74. padding:5px;
  75. background:@control2;
  76. &:after{
  77. float:right;
  78. content: "+";
  79. }
  80. &.expanded:after{
  81. content: '-';
  82. }
  83. }
  84. .text{
  85. background:@control;
  86. padding:5px;
  87. &.ng-hide{
  88. //opacity: 0;
  89. line-height: 0;
  90. }
  91. }
  92. }
  93. #album-thumbnails{
  94. flex: 0 0 auto;
  95. overflow-x:auto;
  96. overflow-y:hidden;
  97. white-space:nowrap;
  98. text-align:center;
  99. img{
  100. width:100px;
  101. border:3px solid transparent;
  102. &.selected{
  103. border:3px solid @primary-300;
  104. }
  105. }
  106. }
  107. #album-images{
  108. flex: 1 1 auto;
  109. overflow:auto;
  110. position:relative;
  111. .image{
  112. position:absolute;
  113. top: 0;
  114. left: 0;
  115. right: 0;
  116. bottom: 0;
  117. overflow:hidden;
  118. text-align:center;
  119. img{
  120. max-height: 100%;
  121. }
  122. }
  123. }
  124. }
  125. #galleryUpload{
  126. .upload{
  127. font-size:2em;
  128. padding:5px;
  129. }
  130. .dragDrop{
  131. min-height:200px;
  132. border-color: @background;
  133. background-position: center;
  134. background-size: 100px;
  135. margin-bottom:5px;
  136. &.dragOver{
  137. border: 3px dashed @Grey-700;
  138. background-image: url("/images/upload.svg");
  139. background-repeat: no-repeat;
  140. }
  141. }
  142. .newImage{
  143. display:flex;
  144. margin-bottom:5px;
  145. .information{
  146. flex:1;
  147. }
  148. .preview{
  149. flex:1;
  150. position: relative;
  151. .imageContainer{
  152. position:absolute;
  153. top:0;
  154. bottom:0;
  155. right:0;
  156. text-align:right;
  157. img{
  158. height:100%;
  159. }
  160. }
  161. }
  162. }
  163. }