bulma-docs.sass 7.2 KB

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