popup.styl 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  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. display: none
  9. overflow: hidden
  10. position: absolute
  11. width: 300px
  12. z-index: 99999
  13. margin-top: 5px
  14. hr
  15. margin: 4px -10px
  16. width: 275px + 2*10px
  17. input[type="text"],
  18. input[type="email"],
  19. input[type="password"]
  20. margin: 4px 0 12px
  21. width: 100%
  22. input[type="file"]
  23. width: 240px
  24. select
  25. width: 100%
  26. margin-bottom: 14px
  27. textarea
  28. height: 72px
  29. margin: 4px 0 12px
  30. width: 100%
  31. .empty
  32. margin: 0
  33. img
  34. max-width: 270px
  35. .custom-image img
  36. height: 18px
  37. left: 9px
  38. top: 9px
  39. width: 18px
  40. .title
  41. line-height: 32px
  42. .header
  43. height: 36px
  44. position: relative
  45. margin-bottom: 8px
  46. background: #F7F7F7
  47. border-bottom: 1px solid #dcdcdc
  48. color: darken(white, 60%)
  49. .header-title
  50. display: block
  51. line-height: 32px
  52. padding-top: 4px
  53. margin: 0 10px
  54. font-weight: bold
  55. overflow: hidden
  56. text-overflow: ellipsis
  57. white-space: nowrap
  58. .back-btn, .close-btn
  59. &:hover .icon-sm
  60. color: darken(white, 80%)
  61. .back-btn
  62. padding: 10px
  63. float: left
  64. .close-btn
  65. padding: 10px 10px 10px 4px
  66. position: absolute
  67. top: 0
  68. right: 0
  69. .content
  70. overflow-x: hidden
  71. overflow-y: auto
  72. padding: 0 10px 10px
  73. max-height: 550px
  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. .select-members-list
  89. margin-bottom: 8px
  90. .pop-over-list
  91. &.navigable li.not-selectable>a:hover,
  92. li.not-selectable>a:hover
  93. color: #8c8c8c
  94. cursor: default
  95. .icon-sm
  96. color: #a6a6a6
  97. li > a
  98. cursor: pointer
  99. display: block
  100. font-weight: 700
  101. padding: 6px 10px
  102. position: relative
  103. margin: 0 -10px
  104. text-decoration: none
  105. .item-name
  106. display: block
  107. width: auto
  108. padding-right: 22px
  109. &:hover
  110. background-color: #005377
  111. color: #fff
  112. .sub-name,
  113. .quiet
  114. color: #eee
  115. .unread-indicator
  116. background: #fff
  117. .icon-sm
  118. color: #fff
  119. .sub-name
  120. clear: both
  121. color: #8c8c8c
  122. display: block
  123. font-size: 12px
  124. font-weight: 400
  125. line-height: 15px
  126. margin-top: 4px
  127. &.current
  128. background-color: #e2e6e9
  129. .unread-indicator
  130. background: #2e85b8
  131. background: linear-gradient(to bottom, #2e85b8 0, #2b7cab 100%)
  132. border-radius: 7px
  133. display: block
  134. height: 14px
  135. opacity: 0
  136. position: absolute
  137. right: 16px
  138. top: 8px
  139. width: 14px
  140. &.any
  141. opacity: 1
  142. &:active
  143. background-color: #2e85b8
  144. &.disabled
  145. color: #8c8c8c
  146. cursor: default
  147. .vis-icon
  148. opacity: .35
  149. .icon-sm
  150. color: #a6a6a6
  151. &:hover
  152. background: none
  153. .sub-name,
  154. .quiet
  155. color: #8c8c8c
  156. .icon-sm
  157. color: #a6a6a6
  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. .icon-sm
  192. color: #a6a6a6
  193. li.selected > a
  194. background-color: #005377
  195. color: #fff
  196. .sub-name,
  197. .quiet
  198. color: #eee
  199. li.selected > a
  200. &.current
  201. background-color: #005377
  202. .unread-indicator
  203. background: #fff
  204. .icon-sm
  205. color: #fff
  206. &:active
  207. background-color: #005377
  208. .pop-over.miniprofile
  209. .header
  210. border-bottom-color: transparent
  211. height: 30px
  212. position: absolute
  213. right: 0
  214. top: 0
  215. width: 60px
  216. z-index: 1
  217. .header-title
  218. display: none
  219. .pop-over-list
  220. padding-top: 8px
  221. .mini-profile-info
  222. margin-top: 8px
  223. min-height: 56px
  224. position: relative
  225. .member-large
  226. position: absolute
  227. top: 2px
  228. left: 2px
  229. .info
  230. margin: 0 0 0 64px
  231. word-wrap: break-word
  232. h3 a
  233. text-decoration: none
  234. &:hover
  235. text-decoration: underline
  236. .pop-over.avdetail .header
  237. border-bottom-color: transparent
  238. height: 20px
  239. position: absolute
  240. top: 8px
  241. left: 8px
  242. right: 8px
  243. z-index: 0
  244. .pop-over.avdetail .header-title
  245. display: none
  246. .pop-over.avdetail .content
  247. text-align: center
  248. .pop-over.avdetail .mem-info
  249. margin: 2px 24px 8px
  250. position: relative
  251. z-index: 1
  252. width: 222px
  253. .pop-over.avdetail .mem-info h3 a
  254. text-decoration: none
  255. .pop-over.avdetail .mem-info h3 a:hover
  256. text-decoration: underline
  257. .pop-over-label-list li,
  258. .pop-over-member-list li
  259. &.disabled a
  260. cursor:default
  261. &:not(.disabled):hover a
  262. background-color: #005377
  263. color: #fff
  264. .pop-over-label-list,
  265. .pop-over-member-list,
  266. .pop-over-emoji-list,
  267. .pop-over-card-list
  268. li
  269. a
  270. border-radius: 3px
  271. display: block
  272. height: 30px
  273. line-height: 30px
  274. overflow: hidden
  275. position: relative
  276. text-overflow: ellipsis
  277. text-decoration: none
  278. white-space: nowrap
  279. padding: 4px
  280. margin-bottom: 2px
  281. &.multi-line
  282. line-height: 16px
  283. .member
  284. margin-right: 8px
  285. .card-label
  286. float: left
  287. height: 30px
  288. margin: 0 8px 0 0
  289. padding: 0
  290. width: 30px
  291. .option,
  292. .icon-check
  293. background-clip: content-box
  294. background-origin: content-box
  295. padding: 11px
  296. position: absolute
  297. top: 0
  298. right: 0
  299. .sub-name
  300. font-size: 12px
  301. &:last-child a
  302. margin-bottom: 0
  303. &.disabled
  304. opacity: .5
  305. &.active a,
  306. &.selected a
  307. background: none
  308. color: #4d4d4d
  309. cursor: default
  310. .quiet
  311. color: #8c8c8c
  312. &.email-invite
  313. .member
  314. display: none
  315. a
  316. padding: 0 10px
  317. &.selected a
  318. background-color: #005377
  319. color: #fff
  320. .quiet
  321. color: #eee
  322. .card-label
  323. border-radius: 3px
  324. .icon-check
  325. color: #fff
  326. &.active a .icon-check
  327. display: block
  328. &.unconfirmed a.name
  329. line-height: 16px
  330. &.options li
  331. &.selected a
  332. padding-right: 28px
  333. .option
  334. display: block
  335. opacity: .5
  336. &:hover
  337. opacity: 1
  338. &.disabled.selected a
  339. padding-right: 0
  340. .option
  341. display: none
  342. &.no-option.selected a
  343. padding-right: 6px
  344. .option
  345. display: none
  346. &.collapsed
  347. &.checkable li.active a
  348. padding-right: 0
  349. li
  350. float: left
  351. margin: 0 3px 3px 0
  352. a
  353. padding: 0
  354. margin: 0
  355. width: 30px
  356. .member
  357. opacity: .8
  358. .full-name
  359. display: none
  360. &.selected a .member,
  361. &.active.selected a .member
  362. border-color: #005377
  363. opacity: .9
  364. &.active a
  365. .member
  366. border-color: #2e85b8
  367. opacity: 1
  368. .icon-check
  369. border-radius: 3px
  370. background-color: #2e85b8
  371. bottom: 0
  372. color: #fff
  373. display: block
  374. padding: 0
  375. right: 0
  376. top: auto
  377. &.checkable li.active a
  378. padding-right: 28px
  379. &.filtered li
  380. display: none
  381. &.matches-filter
  382. display: block
  383. &.limited li.exceeds-limit
  384. display: none
  385. .pop-over-emoji-list li > a
  386. padding: 2px 4px
  387. .emoji
  388. margin: 0 6px
  389. .pop-over-card-list li > a
  390. padding: 2px 4px
  391. .login-signup-popover
  392. padding: 15px
  393. .form-tabs
  394. display: none
  395. h1
  396. margin-bottom: 15px
  397. p
  398. margin: 8px 0
  399. .form-parts-container
  400. position: relative
  401. .active-box
  402. position: absolute
  403. top: 0
  404. background: #e2e2e2
  405. border: 1px solid #c9c9c9
  406. border-radius: 3px
  407. z-index: 1
  408. height: 100%
  409. width: 49%
  410. transition-property: all
  411. transition-duration: .4s
  412. opacity: 1
  413. &.start
  414. opacity: 0
  415. left: 25%
  416. .signup-form,
  417. .login-form
  418. position: relative
  419. box-sizing: border-box
  420. padding: 20px
  421. width: 50%
  422. z-index: 2
  423. opacity: .3
  424. transition-property: opacity
  425. transition-duration: .2s
  426. .active
  427. opacity: 1
  428. .js-signup-form-pos
  429. left: 0
  430. .login-form
  431. position: absolute
  432. top: 0
  433. .login-form .icon-google
  434. position: absolute
  435. left: 5px
  436. top: 3px
  437. .login-form .button.google
  438. padding-left: 40px
  439. margin: 0 0 15px 0
  440. .js-login-form-pos
  441. left: 50%