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