popup.styl 5.5 KB

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