_image_dialog.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. #img_panels {
  2. margin: 0 auto;
  3. border: 1px solid #EEE;
  4. height: 400px;
  5. position: relative;
  6. clear: both;
  7. z-index: 60;
  8. padding: 20px 15px;
  9. background: white;
  10. }
  11. #img_panels .fui-container {
  12. display: block;
  13. }
  14. #img_panels .searchBar {
  15. width: 100%;
  16. height: 30px;
  17. margin-bottom: 5px;
  18. padding: 0px;
  19. label {
  20. vertical-align: middle;
  21. display: inline-block;
  22. height: 30px;
  23. line-height: 30px;
  24. }
  25. }
  26. #img_searchTxt {
  27. width: 370px;
  28. }
  29. #img_searchBtn {
  30. margin-left: 10px;
  31. float: right;
  32. }
  33. #img_buttons {
  34. height: 35px;
  35. position: relative;
  36. z-index: 70;
  37. background: #fcfcfc;
  38. overflow: visible;
  39. }
  40. #img_buttons .fui-button {
  41. box-sizing: border-box;
  42. height: 35px;
  43. line-height: 35px;
  44. padding: 0 15px;
  45. border: 1px solid transparent;
  46. text-align: center;
  47. .fui-icon {display: none;}
  48. .fui-label {
  49. display: block;
  50. height: 35px;
  51. line-height: 35px;
  52. }
  53. &:hover {
  54. background: none;
  55. text-decoration: underline;
  56. }
  57. }
  58. #img_buttons .fui-button.fui-selected {
  59. background: #fff;
  60. border-color: #eee #eee white #eee;
  61. height: 36px;
  62. &:hover {
  63. text-decoration: none;
  64. }
  65. }
  66. #img_searchList {
  67. height: 370px;
  68. overflow: hidden;
  69. clear: both;
  70. }
  71. #img_searchListUl {
  72. margin: 0;
  73. padding: 0;
  74. list-style: none;
  75. clear: both;
  76. height: 100%;
  77. overflow-x: hidden;
  78. overflow-y: auto;
  79. zoom: 1;
  80. position: relative;
  81. }
  82. #img_searchListUl li {
  83. list-style: none;
  84. float: left;
  85. display: block;
  86. width: 115px;
  87. height: 115px;
  88. line-height: 115px;
  89. margin: 6px;
  90. padding: 0;
  91. font-size: 12px;
  92. position: relative;
  93. vertical-align: top;
  94. text-align: center;
  95. overflow: hidden;
  96. cursor: pointer;
  97. border: 2px solid #fcfcfc;
  98. img {
  99. max-width: 111px;
  100. max-height: 115px;
  101. vertical-align: middle;
  102. }
  103. span {
  104. display: block;
  105. position: absolute;
  106. bottom: 0;
  107. height: 20px;
  108. background: rgba(0, 0, 0, .5);
  109. left: 0;
  110. right: 0;
  111. color: white;
  112. line-height: 20px;
  113. overflow: hidden;
  114. text-overflow: ellipsis;
  115. word-break: break-all;
  116. white-space: nowrap;
  117. opacity: 0;
  118. transform: translate(0, 20px);
  119. transition: all .2s ease;
  120. }
  121. &:hover span {
  122. opacity: 1;
  123. transform: translate(0, 0);
  124. }
  125. }
  126. #img_searchListUl li.selected {
  127. border: 2px solid @theme-color;
  128. }
  129. #img_searchListUl li p{
  130. background-color: #eee;
  131. margin: 0;
  132. padding: 0;
  133. position: relative;
  134. width: 100%;
  135. height: 115px;
  136. overflow: hidden;
  137. }
  138. #img_searchListUl li a {
  139. color: #999;
  140. border-top: 1px solid #F2F2F2;
  141. background: #FAFAFA;
  142. text-align: center;
  143. display: block;
  144. padding: 0 5px;
  145. width: 105px;
  146. height: 32px;
  147. line-height: 32px;
  148. white-space: nowrap;
  149. text-overflow: ellipsis;
  150. text-decoration: none;
  151. overflow: hidden;
  152. word-break: break-all;
  153. }