popup.styl 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  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. float: left
  63. overflow: hidden
  64. width: 30px
  65. transition: width 0.2s
  66. i.fa
  67. margin: 10px
  68. margin-top: 12px
  69. &.is-hidden
  70. width: 0
  71. .close-btn
  72. padding: 10px 10px 10px 4px
  73. position: absolute
  74. top: 0
  75. right: 0
  76. .content-wrapper
  77. width: 100%
  78. .content-container
  79. width: 1000px
  80. max-height: 550px
  81. transition: transform 0.2s
  82. .content
  83. width: 300 - 20px
  84. padding: 0 10px 10px
  85. float: left
  86. &.is-hidden
  87. height: 0
  88. .quiet
  89. padding: 6px 6px 4px
  90. &.search-over
  91. background: #f0f0f0
  92. min-height: 114px
  93. .header
  94. display: none
  95. .content
  96. padding: 8px 4px 8px 10px
  97. margin-right: 8px
  98. &::-webkit-scrollbar-button
  99. display: block
  100. height: 4px
  101. width: 4px
  102. .select-members-list
  103. margin-bottom: 8px
  104. .pop-over-list
  105. &.navigable li.not-selectable>a:hover,
  106. li.not-selectable>a:hover
  107. color: #8c8c8c
  108. cursor: default
  109. .icon-sm
  110. color: #a6a6a6
  111. li > a
  112. cursor: pointer
  113. display: block
  114. font-weight: 700
  115. padding: 6px 10px
  116. position: relative
  117. margin: 0 -10px
  118. text-decoration: none
  119. .item-name
  120. display: block
  121. width: auto
  122. padding-right: 22px
  123. &:hover
  124. background-color: #005377
  125. color: #fff
  126. .sub-name,
  127. .quiet
  128. color: #eee
  129. .unread-indicator
  130. background: #fff
  131. .icon-sm
  132. color: #fff
  133. .sub-name
  134. clear: both
  135. color: #8c8c8c
  136. display: block
  137. font-size: 12px
  138. font-weight: 400
  139. line-height: 15px
  140. margin-top: 4px
  141. &.current
  142. background-color: #e2e6e9
  143. .unread-indicator
  144. background: #2e85b8
  145. background: linear-gradient(to bottom, #2e85b8 0, #2b7cab 100%)
  146. border-radius: 7px
  147. display: block
  148. height: 14px
  149. opacity: 0
  150. position: absolute
  151. right: 16px
  152. top: 8px
  153. width: 14px
  154. &.any
  155. opacity: 1
  156. &:active
  157. background-color: #2e85b8
  158. &.disabled
  159. color: #8c8c8c
  160. cursor: default
  161. .vis-icon
  162. opacity: .35
  163. .icon-sm
  164. color: #a6a6a6
  165. &:hover
  166. background: none
  167. .sub-name,
  168. .quiet
  169. color: #8c8c8c
  170. .icon-sm
  171. color: #a6a6a6
  172. &:active
  173. background: none
  174. &.inset li > a
  175. border-radius: 3px
  176. margin: 0
  177. .pop-over-list.checkable
  178. .icon-check
  179. display: none
  180. position: absolute
  181. top: 6px
  182. right: 12px
  183. li.active a
  184. padding-right: 28px
  185. .icon-check
  186. display: block
  187. &.left-check
  188. .icon-check
  189. right: auto
  190. left: 10px
  191. li a
  192. padding-right: 10px
  193. padding-left: 30px
  194. li.active a
  195. padding-right: 10px
  196. &.normal-weight li>a
  197. font-weight: 400
  198. &.navigable
  199. li > a:hover
  200. background-color: transparent
  201. color: #4d4d4d
  202. .sub-name,
  203. .quiet
  204. color: #8c8c8c
  205. .icon-sm
  206. color: #a6a6a6
  207. li.selected > a
  208. background-color: #005377
  209. color: #fff
  210. .sub-name,
  211. .quiet
  212. color: #eee
  213. li.selected > a
  214. &.current
  215. background-color: #005377
  216. .unread-indicator
  217. background: #fff
  218. .icon-sm
  219. color: #fff
  220. &:active
  221. background-color: #005377
  222. .pop-over.miniprofile
  223. .header
  224. border-bottom-color: transparent
  225. height: 30px
  226. position: absolute
  227. right: 0
  228. top: 0
  229. width: 60px
  230. z-index: 1
  231. .header-title
  232. display: none
  233. .pop-over-list
  234. padding-top: 8px
  235. .mini-profile-info
  236. margin-top: 8px
  237. min-height: 56px
  238. position: relative
  239. .member-large
  240. position: absolute
  241. top: 2px
  242. left: 2px
  243. .info
  244. margin: 0 0 0 64px
  245. word-wrap: break-word
  246. h3 a
  247. text-decoration: none
  248. &:hover
  249. text-decoration: underline
  250. .pop-over.avdetail .header
  251. border-bottom-color: transparent
  252. height: 20px
  253. position: absolute
  254. top: 8px
  255. left: 8px
  256. right: 8px
  257. z-index: 0
  258. .pop-over.avdetail .header-title
  259. display: none
  260. .pop-over.avdetail .content
  261. text-align: center
  262. .pop-over.avdetail .mem-info
  263. margin: 2px 24px 8px
  264. position: relative
  265. z-index: 1
  266. width: 222px
  267. .pop-over.avdetail .mem-info h3 a
  268. text-decoration: none
  269. .pop-over.avdetail .mem-info h3 a:hover
  270. text-decoration: underline
  271. .pop-over-label-list li,
  272. .pop-over-member-list li
  273. &.disabled a
  274. cursor:default
  275. &:not(.disabled):hover a
  276. background-color: #005377
  277. color: #fff
  278. .pop-over-label-list,
  279. .pop-over-member-list,
  280. .pop-over-emoji-list,
  281. .pop-over-card-list
  282. li
  283. a
  284. border-radius: 3px
  285. display: block
  286. height: 30px
  287. line-height: 30px
  288. overflow: hidden
  289. position: relative
  290. text-overflow: ellipsis
  291. text-decoration: none
  292. white-space: nowrap
  293. padding: 4px
  294. margin-bottom: 2px
  295. &.multi-line
  296. line-height: 16px
  297. .member
  298. margin-right: 8px
  299. .card-label
  300. float: left
  301. height: 30px
  302. margin: 0 8px 0 0
  303. padding: 0
  304. width: 30px
  305. .option,
  306. .icon-check
  307. background-clip: content-box
  308. background-origin: content-box
  309. padding: 11px
  310. position: absolute
  311. top: 0
  312. right: 0
  313. .sub-name
  314. font-size: 12px
  315. &:last-child a
  316. margin-bottom: 0
  317. &.disabled
  318. opacity: .5
  319. &.active a,
  320. &.selected a
  321. background: none
  322. color: #4d4d4d
  323. cursor: default
  324. .quiet
  325. color: #8c8c8c
  326. &.email-invite
  327. .member
  328. display: none
  329. a
  330. padding: 0 10px
  331. &.selected a
  332. background-color: #005377
  333. color: #fff
  334. .quiet
  335. color: #eee
  336. .card-label
  337. border-radius: 3px
  338. .icon-check
  339. color: #fff
  340. &.active a .icon-check
  341. display: block
  342. &.unconfirmed a.name
  343. line-height: 16px
  344. &.options li
  345. &.selected a
  346. padding-right: 28px
  347. .option
  348. display: block
  349. opacity: .5
  350. &:hover
  351. opacity: 1
  352. &.disabled.selected a
  353. padding-right: 0
  354. .option
  355. display: none
  356. &.no-option.selected a
  357. padding-right: 6px
  358. .option
  359. display: none
  360. &.collapsed
  361. &.checkable li.active a
  362. padding-right: 0
  363. li
  364. float: left
  365. margin: 0 3px 3px 0
  366. a
  367. padding: 0
  368. margin: 0
  369. width: 30px
  370. .member
  371. opacity: .8
  372. .full-name
  373. display: none
  374. &.selected a .member,
  375. &.active.selected a .member
  376. border-color: #005377
  377. opacity: .9
  378. &.active a
  379. .member
  380. border-color: #2e85b8
  381. opacity: 1
  382. .icon-check
  383. border-radius: 3px
  384. background-color: #2e85b8
  385. bottom: 0
  386. color: #fff
  387. display: block
  388. padding: 0
  389. right: 0
  390. top: auto
  391. &.checkable li.active a
  392. padding-right: 28px
  393. &.filtered li
  394. display: none
  395. &.matches-filter
  396. display: block
  397. &.limited li.exceeds-limit
  398. display: none
  399. .pop-over-emoji-list li > a
  400. padding: 2px 4px
  401. .emoji
  402. margin: 0 6px
  403. .pop-over-card-list li > a
  404. padding: 2px 4px
  405. .login-signup-popover
  406. padding: 15px
  407. .form-tabs
  408. display: none
  409. h1
  410. margin-bottom: 15px
  411. p
  412. margin: 8px 0
  413. .form-parts-container
  414. position: relative
  415. .active-box
  416. position: absolute
  417. top: 0
  418. background: #e2e2e2
  419. border: 1px solid #c9c9c9
  420. border-radius: 3px
  421. z-index: 1
  422. height: 100%
  423. width: 49%
  424. transition-property: all
  425. transition-duration: .4s
  426. opacity: 1
  427. &.start
  428. opacity: 0
  429. left: 25%
  430. .signup-form,
  431. .login-form
  432. position: relative
  433. box-sizing: border-box
  434. padding: 20px
  435. width: 50%
  436. z-index: 2
  437. opacity: .3
  438. transition-property: opacity
  439. transition-duration: .2s
  440. .active
  441. opacity: 1
  442. .js-signup-form-pos
  443. left: 0
  444. .login-form
  445. position: absolute
  446. top: 0
  447. .login-form .icon-google
  448. position: absolute
  449. left: 5px
  450. top: 3px
  451. .login-form .button.google
  452. padding-left: 40px
  453. margin: 0 0 15px 0
  454. .js-login-form-pos
  455. left: 50%