bulma-docs.sass 7.2 KB

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