popup.styl 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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. .sk-spinner
  98. margin: 40px auto
  99. for depth in (1..6)
  100. .popup-container-depth-{depth}
  101. transform: translateX(- depth * $popupWidth)
  102. .select-members-list
  103. margin-bottom: 8px
  104. .pop-over-list
  105. li > a
  106. clear: both
  107. cursor: pointer
  108. display: block
  109. font-weight: 700
  110. padding: 1.5px 10px
  111. position: relative
  112. margin: 0 -10px
  113. text-decoration: none
  114. overflow:hidden
  115. line-height:33px
  116. .item-name
  117. display: block
  118. width: auto
  119. padding-right: 22px
  120. &:not(.disabled):hover
  121. background-color: #005377
  122. color: #fff
  123. .sub-name,
  124. .quiet
  125. color: #eee
  126. .unread-indicator
  127. background: #fff
  128. .sub-name
  129. color: #8c8c8c
  130. display: block
  131. font-size: 12px
  132. font-weight: 400
  133. line-height: 15px
  134. &.current
  135. background-color: #e2e6e9
  136. &:active
  137. background-color: #2e85b8
  138. &.disabled
  139. color: #8c8c8c
  140. cursor: default
  141. .vis-icon
  142. opacity: .35
  143. &:hover
  144. background: none
  145. .sub-name,
  146. .quiet
  147. color: #8c8c8c
  148. &:active
  149. background: none
  150. &.inset li > a
  151. border-radius: 3px
  152. margin: 0
  153. .pop-over-list.checkable
  154. .fa-check
  155. display: none
  156. position: absolute
  157. top: 6px
  158. right: 12px
  159. li.active a
  160. padding-right: 28px
  161. .fa-check
  162. display: block
  163. .pop-over.miniprofile
  164. .header
  165. border-bottom-color: transparent
  166. height: 30px
  167. position: absolute
  168. right: 0
  169. top: 0
  170. width: 60px
  171. z-index: 1
  172. .header-title
  173. display: none
  174. .pop-over-list
  175. padding-top: 8px
  176. .miniprofile-header
  177. margin-top: 8px
  178. min-height: 56px
  179. position: relative
  180. .member
  181. position: absolute
  182. top: 2px
  183. left: 2px
  184. height: 50px
  185. width: @height
  186. .info
  187. margin: 0 0 0 64px
  188. word-wrap: break-word
  189. h3 a
  190. text-decoration: none
  191. &:hover
  192. text-decoration: underline