main.styl 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. @import 'nib'
  2. global-reset()
  3. html, body, input, select, textarea, button
  4. font: 14px "Helvetica Neue", Arial, Helvetica, sans-serif
  5. line-height: 18px
  6. color: #4d4d4d
  7. html
  8. font-size: 100%
  9. max-height: 100%
  10. -webkit-text-size-adjust: 100%
  11. body
  12. background: darken(white, 13%)
  13. margin: 0
  14. position: relative
  15. z-index: 0
  16. overflow-y: auto
  17. #surface
  18. display: flex
  19. flex-direction: column
  20. min-height: 100vh
  21. overflow: hidden
  22. #content
  23. position: relative
  24. flex: 1
  25. div::selection
  26. background: transparent
  27. h1
  28. font-size: 22px
  29. line-height: 1.2em
  30. margin: 0 0 10px
  31. h2
  32. font-size: 18px
  33. line-height: 1.2em
  34. margin: 0 0 9px
  35. h3, h4, h5, h6
  36. font-size: 16px
  37. line-height: 1.25em
  38. margin: 0 0 6px
  39. .quiet, .quiet a
  40. color: #8c8c8c
  41. .error, .error a
  42. color: #eb3800
  43. .warning
  44. background: #f0ecdb
  45. border-radius: 3px
  46. color: #aa8f09
  47. padding: 6px 8px
  48. a
  49. color: #aa8f09
  50. a
  51. color: #444
  52. cursor: pointer
  53. text-decoration: none
  54. &:hover
  55. color: #111
  56. &.disabled,
  57. &.disabled:hover
  58. color: #8c8c8c
  59. cursor: default
  60. text-decoration: none
  61. table, p
  62. margin-bottom: 8px
  63. pre
  64. margin: 15px 0
  65. white-space: pre
  66. max-height: 516px
  67. pre,
  68. code,
  69. tt
  70. font-family: bitstream vera sans mono, andale mono, lucida console, monospace
  71. line-height: 1.25em
  72. blockquote
  73. margin: 8px 0 8px 8px
  74. border-left: 1px solid #ccc
  75. color: #666
  76. padding: 0 0 0 8px
  77. hr
  78. height: 1px
  79. border: 0
  80. border: none
  81. width: 100%
  82. background: #dbdbdb
  83. color: #dbdbdb
  84. margin: 15px 0
  85. padding: 0
  86. table, td, th
  87. vertical-align: top
  88. border-top: 1px solid #ccc
  89. border-left: 1px solid #ccc
  90. td, th
  91. padding: 5px
  92. border-right: 1px solid #ccc
  93. border-bottom: 1px solid #ccc
  94. th
  95. font-weight: 700
  96. thead
  97. background: #fff
  98. background: linear-gradient(to bottom, #fff 0, #f0f0f0 100%)
  99. tbody
  100. background-color: #fff
  101. dl, dt
  102. margin-bottom: 8px
  103. dd
  104. margin: 0 0 16px 24px
  105. .edit
  106. display: none
  107. position: relative
  108. .editable .current
  109. cursor: pointer
  110. .editable.editing
  111. cursor: auto
  112. .edits-warning, .edits-error
  113. display: none
  114. clear: both
  115. .editing .edit
  116. display: block
  117. float: left
  118. padding-bottom: 9px
  119. z-index: 100
  120. width: 100%
  121. .editing .edits-warning
  122. display: none!important
  123. .editing .edit .field,
  124. .editing .edit .field:active
  125. background: rgba(0, 0, 0, .03)
  126. box-shadow: inset 0 1px 6px rgba(0, 0, 0, .1)
  127. border-color: rgba(0, 0, 0, .15)
  128. margin-bottom: 4px
  129. .edit-heavy .field
  130. font-size: 15px
  131. font-weight: 700
  132. line-height: 18px
  133. .ui-draggable-dragging
  134. z-index: 200
  135. .board-backgrounds-list
  136. .board-background-select
  137. box-sizing: border-box
  138. display: block
  139. float: left
  140. width: 50%
  141. padding-top: 12px
  142. position: relative
  143. z-index: 1
  144. &:nth-child(-n + 2)
  145. padding-top: 0
  146. &:nth-child(2n)
  147. padding-left: 6px
  148. &:nth-child(2n+1)
  149. padding-right: 6px
  150. .background-box
  151. border-radius: 3px
  152. background-size: cover
  153. display: block
  154. height: 74px
  155. position: relative
  156. width: 100%
  157. cursor: pointer
  158. display: flex
  159. align-items: center
  160. justify-content: center
  161. i.fa-check
  162. font-size: 25px
  163. color: white
  164. .new-comment
  165. position: relative
  166. margin: 0 0 20px 38px
  167. .member
  168. opacity: .7
  169. position: absolute
  170. top: 1px
  171. left: -38px
  172. &.focus
  173. .member
  174. opacity: 1
  175. .helper
  176. display: inline-block
  177. .new-comment-input
  178. min-height: 108px
  179. color: #4d4d4d
  180. cursor: auto
  181. overflow: hidden
  182. word-wrap: break-word
  183. .too-long
  184. margin-top: 8px
  185. .new-comment-input
  186. background-color: #fff
  187. border: 0
  188. box-shadow: 0 1px 2px rgba(0, 0, 0, .23)
  189. color: #8c8c8c
  190. height: 36px
  191. margin: 4px 4px 6px 0
  192. padding: 9px 11px
  193. width: 100%
  194. &:hover,
  195. &:focus
  196. background-color: #fff
  197. box-shadow: 0 1px 3px rgba(0, 0, 0, .33)
  198. border: 0
  199. cursor: pointer
  200. &:focus
  201. cursor: auto
  202. .atMention
  203. background: #dbdbdb
  204. border-radius: 3px
  205. padding: 1px 4px
  206. margin: -1px 0
  207. display: inline-block
  208. &.me
  209. background: #cfdfe8
  210. .big-message
  211. display: block
  212. margin: 75px auto
  213. text-align: center
  214. max-width: 600px
  215. h1
  216. font-size: 26px
  217. margin-bottom: 24px
  218. p
  219. font-size: 18px
  220. line-height: 22px
  221. .gutter
  222. margin-left: 38px
  223. @keyframes fadeIn
  224. from
  225. opacity: 0
  226. @keyframes flexGrowIn
  227. from
  228. flex-basis: 0