popup.styl 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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 0px
  15. p,
  16. textarea,
  17. input[type="text"],
  18. input[type="email"],
  19. input[type="password"],
  20. input[type="file"]
  21. width: 100%
  22. select
  23. width: 100%
  24. margin-bottom: 14px
  25. textarea
  26. height: 72px
  27. form a span
  28. padding: 0 0.5rem
  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: $popupWidth - 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. .at-form
  86. .at-error, .at-result
  87. padding: 8px 12px
  88. margin: -8px -10px 10px
  89. .at-error
  90. background: #ef9a9a
  91. .at-result
  92. background: #b2dfdb
  93. .sk-spinner
  94. margin: 40px auto
  95. for depth in (1..6)
  96. .popup-container-depth-{depth}
  97. transform: translateX(- depth * $popupWidth)
  98. .select-members-list,
  99. .select-avatars-list
  100. margin-bottom: 8px
  101. .pop-over-list
  102. li
  103. display: block
  104. clear: both
  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. .avatar
  182. position: absolute
  183. top: 2px
  184. left: 2px
  185. height: 50px
  186. width: @height
  187. .info
  188. margin: 0 0 0 64px
  189. word-wrap: break-word
  190. h3 a
  191. text-decoration: none
  192. &:hover
  193. text-decoration: underline
  194. @media screen and (max-width: 800px)
  195. .pop-over
  196. width: 100%
  197. height: 100%
  198. overflow: hidden
  199. margin-top: 0px
  200. border: 0px solid #dbdbdb
  201. .header
  202. color: white
  203. background: #2980B9
  204. height: 48px
  205. padding: 0px 0px
  206. border: 0px
  207. margin: 0px 0px
  208. width: 100%
  209. position: absolute
  210. top: 0px
  211. .header-title
  212. font-size: 20px
  213. font-weight: normal
  214. padding-top: 8px
  215. .back-btn
  216. width: 30px
  217. padding: 8px 12px 8px 12px
  218. i.fa
  219. color: white
  220. .close-btn
  221. padding: 10px 12px
  222. i.fa
  223. font-size: 24px
  224. color: white
  225. .content-wrapper
  226. width: 100%
  227. height: calc(100% - 48px)
  228. overflow-y: scroll
  229. overflow-x: hidden
  230. margin: 48px 0px 0px 0px
  231. .content-container
  232. width: 1000%
  233. height: 100%
  234. max-height: 100%
  235. .content
  236. width: calc(10% - 20px)
  237. height: calc(100% - 20px)
  238. padding: 10px
  239. form
  240. margin: 10px 10px
  241. width: calc(100% - 20px)
  242. p,
  243. textarea,
  244. input[type="text"],
  245. input[type="email"],
  246. input[type="password"],
  247. input[type="file"]
  248. width: 100%
  249. box-sizing: border-box
  250. .pop-over-list
  251. li > a
  252. width: calc(100% - 20px)
  253. margin: 0px 0px
  254. for depth in (1..6)
  255. .popup-container-depth-{depth}
  256. transform: translateX(- depth * 10%)