popup.styl 4.7 KB

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