bulma-docs.sass 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. @charset "utf-8"
  2. @import "../bulma.sass"
  3. @import "../sass/utilities/mixins.sass"
  4. // Override
  5. .button
  6. +tablet
  7. small
  8. color: $text
  9. left: 0
  10. margin-top: 10px
  11. position: absolute
  12. top: 100%
  13. width: 100%
  14. body.page-grid .column > .notification
  15. padding-left: 0
  16. padding-right: 0
  17. text-align: center
  18. +tablet
  19. .header-item .button + .button
  20. margin-left: 10px
  21. // Additional
  22. $carbon-space: 15px
  23. #carbon
  24. max-width: 340px
  25. min-height: 100px + ($carbon-space * 2)
  26. min-width: 300px
  27. padding: $carbon-space
  28. +tablet
  29. margin-left: auto
  30. margin-right: auto
  31. width: 340px
  32. #carbonads
  33. text-align: left
  34. a:hover
  35. text-decoration: underline
  36. span
  37. display: block
  38. .carbon-img
  39. float: left
  40. height: 100px
  41. width: 130px
  42. img
  43. display: block
  44. .carbon-text
  45. display: block
  46. color: $text-strong
  47. margin-left: 130px + $carbon-space
  48. .carbon-poweredby
  49. font-size: $size-small
  50. margin-left: $carbon-space
  51. $github: #333333
  52. $twitter: #55acee
  53. #github
  54. color: $github
  55. border-color: $github
  56. &:hover
  57. background: $github
  58. border-color: $github
  59. color: $white
  60. #twitter
  61. color: $twitter
  62. border-color: $twitter
  63. &:hover
  64. background: $twitter
  65. border-color: $twitter
  66. color: $white
  67. @keyframes floatUp
  68. from
  69. box-shadow: 0 0 0 rgba($black, 0), 0 0 0 rgba($black, 0), 0 0 0 rgba($black, 0)
  70. transform: scale(0.86)
  71. to
  72. box-shadow: 0 20px 60px rgba($black, 0.05), 0 5px 10px rgba($black, 0.1), 0 1px 1px rgba($black, 0.2)
  73. transform: scale(1)
  74. @keyframes strokePath
  75. from
  76. stroke-dashoffset: 880
  77. to
  78. stroke-dashoffset: 0
  79. @keyframes fadeIn
  80. from
  81. opacity: 0
  82. transform: scale(0.86)
  83. to
  84. opacity: 1
  85. transform: scale(1)
  86. @keyframes fadeOut
  87. 0%
  88. opacity: 1
  89. transform: scale(0.86)
  90. 67%
  91. opacity: 1
  92. transform: scale(0.86)
  93. 100%
  94. opacity: 0
  95. transform: scale(1)
  96. $curve: cubic-bezier(0, 0.71, 0.29, 1)
  97. #b
  98. animation-delay: 1s
  99. animation-duration: 1s
  100. animation-fill-mode: both
  101. animation-name: floatUp
  102. animation-timing-function: $curve
  103. border-radius: 20px
  104. display: inline-block
  105. height: 240px
  106. margin-bottom: 40px
  107. position: relative
  108. vertical-align: top
  109. width: 240px
  110. svg
  111. +overlay
  112. display: block
  113. height: 240px
  114. width: 240px
  115. &:first-child
  116. animation-duration: 1.5s
  117. animation-fill-mode: both
  118. animation-name: fadeOut
  119. animation-timing-function: $curve
  120. g
  121. animation-duration: 1s
  122. animation-fill-mode: both
  123. animation-name: strokePath
  124. animation-timing-function: $curve
  125. fill: none
  126. stroke: $turquoise
  127. stroke-dasharray: 880
  128. stroke-width: 2px
  129. &:last-child
  130. animation-delay: 1s
  131. animation-duration: 1s
  132. animation-fill-mode: both
  133. animation-name: fadeIn
  134. animation-timing-function: $curve
  135. g
  136. fill: $turquoise
  137. +mobile
  138. border-radius: 10px
  139. height: 120px
  140. width: 120px
  141. #npm
  142. background: none
  143. margin: -10px 0 20px
  144. code
  145. border-radius: $radius
  146. color: $link
  147. display: inline-block
  148. font-size: 16px
  149. padding: 16px 32px
  150. #grid
  151. .notification
  152. padding-left: 0
  153. padding-right: 0
  154. #message
  155. display: none
  156. #tweet
  157. background: $white
  158. border-radius: $radius-large
  159. box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)
  160. padding: 20px
  161. #mc_embed_signup
  162. .control
  163. margin-bottom: 0
  164. .notification
  165. margin-top: 10px
  166. #social
  167. align-items: center
  168. display: flex
  169. height: 20px
  170. margin-bottom: 1em
  171. justify-content: center
  172. a
  173. display: inline-block
  174. font-size: 11px
  175. height: 20px
  176. line-height: 20px
  177. iframe:last-child
  178. margin-left: 10px
  179. #images
  180. tr
  181. td:nth-child(2)
  182. width: 320px
  183. .color
  184. display: inline-block
  185. float: left
  186. height: 18px
  187. margin-right: 5px
  188. width: 18px
  189. .example,
  190. .structure
  191. border: 1px solid $warning
  192. border-top-right-radius: $radius
  193. color: $warning-invert
  194. padding: 15px 20px
  195. position: relative
  196. &:not(:first-child)
  197. margin-top: 30px
  198. &:not(:last-child)
  199. margin-bottom: 20px
  200. &:before
  201. background: $warning
  202. border-radius: $radius $radius 0 0
  203. bottom: 100%
  204. content: "Example"
  205. display: inline-block
  206. font-size: 7px
  207. font-weight: bold
  208. left: -1px
  209. letter-spacing: 1px
  210. padding: 3px 5px
  211. position: absolute
  212. text-transform: uppercase
  213. vertical-align: top
  214. +tablet
  215. &.is-fullwidth
  216. border-left: none
  217. border-right: none
  218. padding: 0
  219. .example
  220. & + .highlight
  221. border: 1px solid $warning
  222. border-radius: 0 0 $radius $radius
  223. border-top: none
  224. margin-top: -20px
  225. pre
  226. max-height: 600px
  227. &:not(:last-child)
  228. margin-bottom: 40px
  229. $structure: $danger
  230. $structure-invert: $danger-invert
  231. .structure
  232. border-color: $structure
  233. border-radius: $radius
  234. padding: 20px
  235. &:before
  236. background: $structure
  237. color: $structure-invert
  238. content: "Structure"
  239. .structure-item
  240. position: relative
  241. &:before
  242. +overlay
  243. background: rgba($black, 0.7)
  244. background: $background
  245. border: 1px solid $border
  246. content: ""
  247. display: block
  248. z-index: 1
  249. &:after
  250. +overlay
  251. align-items: center
  252. content: attr(title)
  253. display: flex
  254. font-family: $family-monospace
  255. font-size: 11px
  256. justify-content: center
  257. padding: 3px 5px
  258. z-index: 2
  259. &.is-structure-container
  260. padding: 20px 10px 10px
  261. &:after
  262. align-items: flex-start
  263. justify-content: flex-start
  264. padding: 5px 10px
  265. .highlight
  266. position: relative
  267. .copy,
  268. .expand
  269. +unselectable
  270. background: $white
  271. border: solid $border
  272. border-width: 0 0 1px 1px
  273. color: $text-light
  274. cursor: pointer
  275. outline: none
  276. position: absolute
  277. right: 0
  278. top: 0
  279. &:hover
  280. border-color: $code
  281. color: $code
  282. .expand
  283. border-right-width: 1px
  284. right: 50px
  285. +tablet
  286. .section:not(.is-fullwidth) > .example:not(.is-fullwidth)
  287. margin-left: 20px
  288. margin-right: 20px
  289. & + .highlight
  290. margin-left: 20px
  291. margin-right: 20px
  292. .section.is-fullwidth
  293. padding: 0 !important
  294. .example
  295. border-left: none
  296. border-radius: 0
  297. border-right: none
  298. padding: 0
  299. & + .highlight
  300. border-left: none
  301. border-radius: 0
  302. border-right: none
  303. #newsletter
  304. .input
  305. border-color: $white
  306. box-shadow: none