popup.styl 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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. p,
  17. textarea,
  18. input[type="text"],
  19. input[type="email"],
  20. input[type="password"],
  21. input[type="file"]
  22. margin: 4px 0 12px
  23. width: 100%
  24. select
  25. width: 100%
  26. margin-bottom: 14px
  27. textarea
  28. height: 72px
  29. form a span
  30. padding: 0 0.5rem
  31. .header
  32. height: 36px
  33. position: relative
  34. margin-bottom: 8px
  35. background: #F7F7F7
  36. border-bottom: 1px solid #dcdcdc
  37. color: darken(white, 60%)
  38. .header-title
  39. display: block
  40. line-height: 32px
  41. padding-top: 4px
  42. margin: 0 10px
  43. font-weight: bold
  44. overflow: hidden
  45. text-overflow: ellipsis
  46. white-space: nowrap
  47. .back-btn
  48. float: left
  49. overflow: hidden
  50. width: 30px
  51. transition: width 0.2s
  52. i.fa
  53. margin: 10px
  54. margin-top: 12px
  55. &.is-hidden
  56. width: 0
  57. .close-btn
  58. padding: 10px 10px 10px 4px
  59. position: absolute
  60. top: 0
  61. right: 0
  62. &.no-title .header
  63. background: none
  64. .content-wrapper
  65. width: 100%
  66. overflow: hidden
  67. .content-container
  68. width: 5000px
  69. max-height: 550px
  70. transition: transform 0.2s
  71. .content
  72. width: $popupWidth - 20px
  73. padding: 0 10px 10px
  74. float: left
  75. &.no-height
  76. height: 20px
  77. .quiet
  78. padding: 6px 6px 4px
  79. &.search-over
  80. background: #f0f0f0
  81. min-height: 114px
  82. .header
  83. display: none
  84. .content
  85. padding: 8px 4px 8px 10px
  86. margin-right: 8px
  87. .at-form
  88. .at-error, .at-result
  89. padding: 8px 12px
  90. margin: -8px -10px 10px
  91. .at-error
  92. background: #ef9a9a
  93. .at-result
  94. background: #b2dfdb
  95. .sk-spinner
  96. margin: 40px auto
  97. for depth in (1..6)
  98. .popup-container-depth-{depth}
  99. transform: translateX(- depth * $popupWidth)
  100. .select-members-list,
  101. .select-avatars-list
  102. margin-bottom: 8px
  103. .pop-over-list
  104. li
  105. display: block
  106. clear: both
  107. li > a
  108. clear: both
  109. cursor: pointer
  110. display: block
  111. font-weight: 700
  112. padding: 1.5px 10px
  113. position: relative
  114. margin: 0 -10px
  115. text-decoration: none
  116. overflow:hidden
  117. line-height:33px
  118. .item-name
  119. display: block
  120. width: auto
  121. padding-right: 22px
  122. &:not(.disabled):hover
  123. background-color: #005377
  124. color: #fff
  125. .sub-name,
  126. .quiet
  127. color: #eee
  128. .unread-indicator
  129. background: #fff
  130. .sub-name
  131. color: #8c8c8c
  132. display: block
  133. font-size: 12px
  134. font-weight: 400
  135. line-height: 15px
  136. &.current
  137. background-color: #e2e6e9
  138. &:active
  139. background-color: #2e85b8
  140. &.disabled
  141. color: #8c8c8c
  142. cursor: default
  143. .vis-icon
  144. opacity: .35
  145. &:hover
  146. background: none
  147. .sub-name,
  148. .quiet
  149. color: #8c8c8c
  150. &:active
  151. background: none
  152. &.inset li > a
  153. border-radius: 3px
  154. margin: 0
  155. .pop-over-list.checkable
  156. .fa-check
  157. display: none
  158. position: absolute
  159. top: 6px
  160. right: 12px
  161. li.active a
  162. padding-right: 28px
  163. .fa-check
  164. display: block
  165. .pop-over.miniprofile
  166. .header
  167. border-bottom-color: transparent
  168. height: 30px
  169. position: absolute
  170. right: 0
  171. top: 0
  172. width: 60px
  173. z-index: 1
  174. .header-title
  175. display: none
  176. .pop-over-list
  177. padding-top: 8px
  178. .miniprofile-header
  179. margin-top: 8px
  180. min-height: 56px
  181. position: relative
  182. .member,
  183. .avatar
  184. position: absolute
  185. top: 2px
  186. left: 2px
  187. height: 50px
  188. width: @height
  189. .info
  190. margin: 0 0 0 64px
  191. word-wrap: break-word
  192. h3 a
  193. text-decoration: none
  194. &:hover
  195. text-decoration: underline
  196. @media screen and (max-width: 800px)
  197. .pop-over
  198. width: 100%
  199. height: 100%
  200. overflow: hidden
  201. margin-top: 0px
  202. border: 0px solid #dbdbdb
  203. .header
  204. color: white
  205. background: #2980B9
  206. height: 48px
  207. padding: 0px 0px
  208. border: 0px
  209. margin: 0px 0px
  210. width: 100%
  211. position: absolute
  212. top: 0px
  213. .header-title
  214. font-size: 20px
  215. font-weight: normal
  216. padding-top: 8px
  217. .back-btn
  218. width: 30px
  219. padding: 8px 12px 8px 12px
  220. i.fa
  221. color: white
  222. .close-btn
  223. padding: 10px 12px
  224. i.fa
  225. font-size: 24px
  226. color: white
  227. .content-wrapper
  228. width: 100%
  229. height: calc(100% - 48px)
  230. overflow-y: scroll
  231. overflow-x: hidden
  232. margin: 48px 0px 0px 0px
  233. .content-container
  234. width: 1000%
  235. height: 100%
  236. max-height: 100%
  237. .content
  238. width: calc(10% - 20px)
  239. height: calc(100% - 20px)
  240. padding: 10px
  241. form
  242. margin: 10px 10px
  243. width: calc(100% - 20px)
  244. p,
  245. textarea,
  246. input[type="text"],
  247. input[type="email"],
  248. input[type="password"],
  249. input[type="file"]
  250. margin: 4px 0 12px
  251. width: 100%
  252. box-sizing: border-box
  253. .pop-over-list
  254. li > a
  255. width: calc(100% - 20px)
  256. padding: 10px 10px
  257. margin: 0px 0px
  258. border-bottom: 1px solid #eee
  259. hr
  260. width: 100%
  261. height: 20px
  262. margin: 0px 0px
  263. color: #eee
  264. for depth in (1..6)
  265. .popup-container-depth-{depth}
  266. transform: translateX(- depth * 10%)