popup.styl 5.7 KB

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