bulma-docs.sass 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. @charset "utf-8"
  2. @import "../bulma"
  3. @import "./sass/highlight"
  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: 0.75rem
  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. align-items: center
  168. animation: fadeIn 500ms both
  169. animation-delay: 1.4s
  170. background: none
  171. display: flex
  172. justify-content: center
  173. margin: -10px 0 20px
  174. code
  175. background: $background
  176. border-radius: $radius
  177. color: $primary
  178. display: inline-block
  179. font-size: 16px
  180. padding: 16px 32px
  181. #ghbtns
  182. animation: slideDown 500ms both
  183. animation-delay: 1.6s
  184. html.route-index #carbon
  185. animation: slideUp 500ms both
  186. animation-delay: 1.8s
  187. #download
  188. animation: fadeIn 500ms both
  189. animation-delay: 2s
  190. #grid
  191. .notification
  192. padding-left: 0
  193. padding-right: 0
  194. #message
  195. display: none
  196. #tweet
  197. background: $white
  198. border-radius: $radius-large
  199. box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)
  200. padding: 1.5rem
  201. #mc_embed_signup
  202. .control
  203. margin-bottom: 0
  204. .notification
  205. margin-top: 0.75rem
  206. #social
  207. align-items: center
  208. display: flex
  209. flex-wrap: wrap
  210. margin-bottom: 1em
  211. justify-content: center
  212. a
  213. display: inline-block
  214. font-size: 11px
  215. height: 20px
  216. line-height: 20px
  217. margin: 5px
  218. iframe
  219. margin: 5px
  220. #images
  221. tr
  222. td:nth-child(2)
  223. width: 320px
  224. .color
  225. display: inline-block
  226. float: left
  227. height: 18px
  228. margin-right: 5px
  229. width: 18px
  230. .example,
  231. .structure
  232. border: 1px solid $warning
  233. border-top-right-radius: $radius
  234. color: $warning-invert
  235. padding: 1.25rem 1.5rem
  236. position: relative
  237. &:not(:first-child)
  238. margin-top: 2rem
  239. &:not(:last-child)
  240. margin-bottom: 1.5rem
  241. &:before
  242. background: $warning
  243. border-radius: $radius $radius 0 0
  244. bottom: 100%
  245. content: "Example"
  246. display: inline-block
  247. font-size: 7px
  248. font-weight: bold
  249. left: -1px
  250. letter-spacing: 1px
  251. padding: 3px 5px
  252. position: absolute
  253. text-transform: uppercase
  254. vertical-align: top
  255. +tablet
  256. &.is-fullwidth
  257. border-left: none
  258. border-right: none
  259. padding: 0
  260. .example
  261. & + .highlight
  262. border: 1px solid $warning
  263. border-radius: 0 0 $radius $radius
  264. border-top: none
  265. margin-top: -1.5rem
  266. pre
  267. max-height: 50vh
  268. &:not(:last-child)
  269. margin-bottom: 1.5rem
  270. $structure: $danger
  271. $structure-invert: $danger-invert
  272. .structure
  273. border-color: $structure
  274. border-radius: $radius
  275. padding: 1.5rem
  276. &:before
  277. background: $structure
  278. color: $structure-invert
  279. content: "Structure"
  280. .structure-item
  281. position: relative
  282. &:before
  283. +overlay
  284. background: rgba($black, 0.7)
  285. background: $background
  286. border: 1px solid $border
  287. content: ""
  288. display: block
  289. z-index: 1
  290. &:after
  291. +overlay
  292. align-items: center
  293. content: attr(title)
  294. display: flex
  295. font-family: $family-monospace
  296. font-size: 11px
  297. justify-content: center
  298. padding: 3px 5px
  299. z-index: 2
  300. &.is-structure-container
  301. padding: 1.5rem 0.75rem 0.75rem
  302. &:after
  303. align-items: flex-start
  304. justify-content: flex-start
  305. padding: 0.5rem 0.75rem
  306. .highlight
  307. position: relative
  308. .copy,
  309. .expand
  310. +unselectable
  311. background: $white
  312. border: solid $border
  313. border-width: 0 0 1px 1px
  314. color: $text-light
  315. cursor: pointer
  316. outline: none
  317. position: absolute
  318. right: 0
  319. top: 0
  320. &:hover
  321. border-color: $code
  322. color: $code
  323. .expand
  324. border-right-width: 1px
  325. right: 50px
  326. +tablet
  327. pre
  328. white-space: pre-wrap
  329. +tablet
  330. .section:not(.is-fullwidth) > .example:not(.is-fullwidth)
  331. margin-left: 1.5rem
  332. margin-right: 1.5rem
  333. & + .highlight
  334. margin-left: 1.5rem
  335. margin-right: 1.5rem
  336. .section.is-fullwidth
  337. padding: 0 !important
  338. .example
  339. border-left: none
  340. border-radius: 0
  341. border-right: none
  342. padding: 0
  343. & + .highlight
  344. border-left: none
  345. border-radius: 0
  346. border-right: none
  347. #newsletter
  348. .input
  349. border-color: $white
  350. box-shadow: none
  351. html
  352. \::-moz-selection
  353. background: $primary
  354. color: $primary-invert
  355. \::selection
  356. background: $primary
  357. color: $primary-invert