layouts.styl 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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. .no-items-message
  44. color: darken(white, 60%)
  45. margin: 30px 0
  46. text-align: center
  47. .warning
  48. background: #f0ecdb
  49. border-radius: 3px
  50. color: #aa8f09
  51. padding: 6px 8px
  52. a
  53. color: #aa8f09
  54. a
  55. color: inherit
  56. cursor: pointer
  57. text-decoration: none
  58. &.is-disabled,
  59. &.is-disabled:hover
  60. cursor: default
  61. text-decoration: none
  62. strong
  63. font-weight: bold
  64. p
  65. a
  66. text-decoration: underline
  67. word-wrap: break-word
  68. table, p
  69. margin-bottom: 8px
  70. pre
  71. margin: 15px 0
  72. white-space: pre
  73. max-height: 516px
  74. pre,
  75. code,
  76. tt
  77. font-family: lucida console, monospace
  78. line-height: 1.25em
  79. blockquote
  80. margin: 8px 0 8px 8px
  81. border-left: 1px solid #ccc
  82. color: #666
  83. padding: 0 0 0 8px
  84. hr
  85. height: 1px
  86. border: 0
  87. border: none
  88. width: 100%
  89. background: #dbdbdb
  90. color: #dbdbdb
  91. margin: 15px 0
  92. padding: 0
  93. table, td, th
  94. vertical-align: top
  95. border-top: 1px solid #ccc
  96. border-left: 1px solid #ccc
  97. td, th
  98. padding: 5px
  99. border-right: 1px solid #ccc
  100. border-bottom: 1px solid #ccc
  101. th
  102. font-weight: 700
  103. thead
  104. background: #fff
  105. background: linear-gradient(to bottom, #fff 0, #f0f0f0 100%)
  106. tbody
  107. background-color: #fff
  108. dl, dt
  109. margin-bottom: 8px
  110. dd
  111. margin: 0 0 16px 24px
  112. .clear
  113. clear: both
  114. .clearfix
  115. clearfix()
  116. .hide
  117. display: none
  118. .show
  119. display: block
  120. .bold
  121. font-weight: 700
  122. .center
  123. text-align: center
  124. .left
  125. float: left
  126. .right
  127. float: right
  128. .first
  129. margin-left: 0
  130. padding-left: 0
  131. .last
  132. margin-right: 0
  133. padding-right: 0
  134. .top
  135. margin-top: 0
  136. padding-top: 0
  137. .bottom
  138. margin-bottom: 0
  139. padding-bottom: 0
  140. .relative
  141. position: relative
  142. .block
  143. display: block
  144. .inline
  145. display: inline
  146. .inline-block
  147. display: inline-block
  148. .pointer
  149. cursor: pointer
  150. .ellip
  151. overflow: hidden
  152. text-overflow: ellipsis
  153. white-space: nowrap
  154. .underline
  155. text-decoration: underline
  156. .lowercase
  157. text-transform: lowercase
  158. .invisible
  159. visibility: hidden
  160. .wrapword
  161. word-wrap: break-word
  162. .grab
  163. cursor: grab
  164. .grabbing
  165. cursor: grabbing
  166. .emoji
  167. height: 18px
  168. width: 18px
  169. vertical-align: text-bottom
  170. // Implement a thiner close icon as suggested in
  171. // https://github.com/FortAwesome/Font-Awesome/issues/1540#issuecomment-68689950
  172. .fa.fa-times-thin:before
  173. content: '\00d7';
  174. .fa.fa-globe.colorful
  175. color: #4caf50
  176. .fa.fa-lock.colorful
  177. color: #f44336
  178. .pop-over .pop-over-list li a:hover
  179. .fa, .fa.colorful
  180. color: white
  181. &:hover
  182. color: white
  183. a
  184. &.fa, i.fa
  185. color: darken(white, 35%)
  186. &:hover, &.is-active
  187. &.fa, i.fa
  188. color: darken(white, 60%)
  189. .ui-draggable-dragging
  190. z-index: 200
  191. .atMention
  192. background: #dbdbdb
  193. border-radius: 3px
  194. padding: 1px 4px
  195. margin: -1px 0
  196. display: inline-block
  197. &.me
  198. background: #cfdfe8
  199. .big-message
  200. display: block
  201. margin: 75px auto
  202. text-align: center
  203. max-width: 600px
  204. h1
  205. font-size: 26px
  206. margin-bottom: 24px
  207. p
  208. font-size: 18px
  209. line-height: 22px
  210. .gutter
  211. margin-left: 38px
  212. .viewer
  213. ul
  214. list-style-type: initial
  215. padding-left: 20px
  216. @keyframes fadeIn
  217. from
  218. opacity: 0
  219. @keyframes flexGrowIn
  220. from
  221. flex-basis: 0