popup.styl 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. @import 'nib'
  2. $popupWidth = 300px
  3. .pop-over
  4. background: #fff
  5. border-radius: 3px
  6. border: 1px solid #dbdbdb
  7. border-bottom-color: #c2c2c2
  8. box-shadow: 0 1px 6px rgba(0, 0, 0, .3)
  9. position: absolute
  10. width: $popupWidth
  11. z-index: 99999
  12. margin-top: 5px
  13. hr
  14. margin: 4px -10px
  15. width: $popupWidth
  16. input[type="text"],
  17. input[type="email"],
  18. input[type="password"]
  19. input[type="file"]
  20. margin: 4px 0 12px
  21. width: 100%
  22. select
  23. width: 100%
  24. margin-bottom: 14px
  25. textarea
  26. height: 72px
  27. margin: 4px 0 12px
  28. width: 100%
  29. .header
  30. height: 36px
  31. position: relative
  32. margin-bottom: 8px
  33. background: #F7F7F7
  34. border-bottom: 1px solid #dcdcdc
  35. color: darken(white, 60%)
  36. .header-title
  37. display: block
  38. line-height: 32px
  39. padding-top: 4px
  40. margin: 0 10px
  41. font-weight: bold
  42. overflow: hidden
  43. text-overflow: ellipsis
  44. white-space: nowrap
  45. .back-btn
  46. float: left
  47. overflow: hidden
  48. width: 30px
  49. transition: width 0.2s
  50. i.fa
  51. margin: 10px
  52. margin-top: 12px
  53. &.is-hidden
  54. width: 0
  55. .close-btn
  56. padding: 10px 10px 10px 4px
  57. position: absolute
  58. top: 0
  59. right: 0
  60. &.no-title .header
  61. background: none
  62. .content-wrapper
  63. width: 100%
  64. overflow: hidden
  65. .content-container
  66. width: 5000px
  67. max-height: 550px
  68. transition: transform 0.2s
  69. .content
  70. width: 300 - 20px
  71. padding: 0 10px 10px
  72. float: left
  73. &.no-height
  74. height: 20px
  75. .quiet
  76. padding: 6px 6px 4px
  77. &.search-over
  78. background: #f0f0f0
  79. min-height: 114px
  80. .header
  81. display: none
  82. .content
  83. padding: 8px 4px 8px 10px
  84. margin-right: 8px
  85. &::-webkit-scrollbar-button
  86. display: block
  87. height: 4px
  88. width: 4px
  89. .at-form
  90. .at-error, .at-result
  91. padding: 8px 12px
  92. margin: -8px -10px 10px
  93. .at-error
  94. background: #ef9a9a
  95. .at-result
  96. background: #b2dfdb
  97. for depth in (1..6)
  98. .popup-container-depth-{depth}
  99. transform: translateX(- depth * $popupWidth)
  100. .select-members-list
  101. margin-bottom: 8px
  102. .pop-over-list
  103. li > a
  104. clear: both
  105. cursor: pointer
  106. display: block
  107. font-weight: 700
  108. padding: 6px 10px
  109. position: relative
  110. margin: 0 -10px
  111. text-decoration: none
  112. overflow:hidden
  113. line-height:33px
  114. .item-name
  115. display: block
  116. width: auto
  117. padding-right: 22px
  118. &:hover
  119. background-color: #005377
  120. color: #fff
  121. .sub-name,
  122. .quiet
  123. color: #eee
  124. .unread-indicator
  125. background: #fff
  126. .sub-name
  127. color: #8c8c8c
  128. display: block
  129. font-size: 12px
  130. font-weight: 400
  131. line-height: 15px
  132. margin-top: 4px
  133. &.current
  134. background-color: #e2e6e9
  135. &:active
  136. background-color: #2e85b8
  137. &.disabled
  138. color: #8c8c8c
  139. cursor: default
  140. .vis-icon
  141. opacity: .35
  142. &:hover
  143. background: none
  144. .sub-name,
  145. .quiet
  146. color: #8c8c8c
  147. &:active
  148. background: none
  149. &.inset li > a
  150. border-radius: 3px
  151. margin: 0
  152. .pop-over-list.checkable
  153. .fa-check
  154. display: none
  155. position: absolute
  156. top: 6px
  157. right: 12px
  158. li.active a
  159. padding-right: 28px
  160. .fa-check
  161. display: block
  162. .pop-over.miniprofile
  163. .header
  164. border-bottom-color: transparent
  165. height: 30px
  166. position: absolute
  167. right: 0
  168. top: 0
  169. width: 60px
  170. z-index: 1
  171. .header-title
  172. display: none
  173. .pop-over-list
  174. padding-top: 8px
  175. .miniprofile-header
  176. margin-top: 8px
  177. min-height: 56px
  178. position: relative
  179. .member
  180. position: absolute
  181. top: 2px
  182. left: 2px
  183. height: 50px
  184. width: @height
  185. .info
  186. margin: 0 0 0 64px
  187. word-wrap: break-word
  188. h3 a
  189. text-decoration: none
  190. &:hover
  191. text-decoration: underline