bulma-docs.sass 7.1 KB

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