bulma-docs.sass 7.6 KB

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