popup.styl 5.5 KB

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