Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

462 righe
7.3 KiB

  1. @import '../main.scss';
  2. $black: #000;
  3. $white: #fff;
  4. body {
  5. font-family: Sintony, Helvetica, sans-serif;
  6. font-size: 14px;
  7. margin: 0;
  8. padding: 0;
  9. }
  10. h1,
  11. h2,
  12. h3,
  13. h4,
  14. h5 {
  15. font-weight: normal;
  16. }
  17. h1 {
  18. font-size: 36px;
  19. margin: 20px 0;
  20. }
  21. h2 {
  22. font-size: 24px;
  23. margin: 15px 0;
  24. }
  25. main {
  26. padding: 40px 0;
  27. }
  28. header {
  29. background: #f0f0f0;
  30. line-height: 40px;
  31. position: fixed;
  32. top: 0;
  33. width: 100%;
  34. z-index: 1000;
  35. }
  36. .flex {
  37. display: flex;
  38. }
  39. .docs-link {
  40. font-weight: 500;
  41. font-size: 11px;
  42. margin-right: 5px;
  43. text-transform: uppercase;
  44. border-left: 1px solid #c0c0c0;
  45. padding-left: 5px;
  46. line-height: 1;
  47. }
  48. .docs-link:first-child {
  49. border-left: 0px;
  50. padding-left: 0px;
  51. }
  52. .docs-comment {
  53. display: flex;
  54. max-width: 300px;
  55. }
  56. .header-contents {
  57. align-items: center;
  58. display: flex;
  59. justify-content: space-between;
  60. padding: 0 20px;
  61. }
  62. .header-logo {
  63. color: $black;
  64. float: left;
  65. font-size: 20px;
  66. text-decoration: none;
  67. }
  68. .background-overlay {
  69. bottom: 0;
  70. left: 0;
  71. position: fixed;
  72. right: 0;
  73. top: 0;
  74. z-index: 1;
  75. }
  76. .dropdown-button {
  77. cursor: pointer;
  78. z-index: 10;
  79. }
  80. .dropdown-wrapper {
  81. display: flex;
  82. position: relative;
  83. .dropdown-inner-wrapper {
  84. background: $white;
  85. border: 2px solid $black;
  86. display: flex;
  87. flex-direction: column;
  88. font-size: 11px;
  89. height: auto;
  90. list-style: none;
  91. padding: 10px;
  92. position: absolute;
  93. right: -5px;
  94. top: 25px;
  95. width: 150px;
  96. z-index: 10;
  97. }
  98. a {
  99. display: flex;
  100. height: auto;
  101. line-height: 15px;
  102. text-decoration: none;
  103. }
  104. li {
  105. display: flex;
  106. height: 100%;
  107. }
  108. .subsection-label {
  109. font-weight: 600;
  110. line-height: 15px;
  111. }
  112. }
  113. article {
  114. display: flex;
  115. flex-direction: row;
  116. flex-wrap: wrap;
  117. justify-content: flex-start;
  118. margin: 0 auto;
  119. max-width: 1200px;
  120. min-width: 650px;
  121. padding: 30px 20px 0;
  122. h1,
  123. h2 {
  124. flex: 1 100%;
  125. small {
  126. color: #6b6b76;
  127. font-size: 50%;
  128. }
  129. }
  130. section {
  131. flex-basis: 400px;
  132. flex-grow: 1;
  133. margin: 0 0 40px;
  134. }
  135. .section-title {
  136. margin-bottom: 5px;
  137. }
  138. .section-header {
  139. margin-bottom: 1em;
  140. }
  141. }
  142. .click-me {
  143. border: 0;
  144. background: #ef5d28;
  145. color: $white;
  146. cursor: pointer;
  147. font-family: Sintony, Helvetica, sans-serif;
  148. font-size: 14px;
  149. outline: none;
  150. padding: 11px 20px;
  151. text-transform: uppercase;
  152. &:hover {
  153. background: #ff9833;
  154. }
  155. animation: shake 5s 1s cubic-bezier(0.36, 0.07, 0.19, 0.97) both infinite;
  156. transform: translate3d(0, 0, 0);
  157. }
  158. @keyframes shake {
  159. 1%,
  160. 9% {
  161. transform: translate3d(-1px, 0, 0);
  162. }
  163. 2%,
  164. 8% {
  165. transform: translate3d(2px, 0, 0);
  166. }
  167. 3%,
  168. 5%,
  169. 7% {
  170. transform: translate3d(-4px, 0, 0);
  171. }
  172. 4%,
  173. 6% {
  174. transform: translate3d(4px, 0, 0);
  175. }
  176. }
  177. .example-with-click-me {
  178. position: relative;
  179. text-align: center;
  180. width: 100%;
  181. &:hover {
  182. .click-me {
  183. animation: none;
  184. }
  185. }
  186. .chart {
  187. margin-right: 200px;
  188. .rv-xy-plot__axis__tick__line {
  189. stroke: $rv-xy-plot-axis-font-color;
  190. }
  191. }
  192. .legend {
  193. position: absolute;
  194. text-align: left;
  195. right: 0;
  196. }
  197. }
  198. .custom-hint {
  199. background: #f9e7bb;
  200. border-radius: 3px;
  201. border: 1px solid #edaf00;
  202. padding: 10px;
  203. color: #333;
  204. font-size: 10px;
  205. position: relative;
  206. margin: 12px 0 0 -10px;
  207. &::after {
  208. border-radius: 5px;
  209. border: 2px solid #edaf00;
  210. background: $white;
  211. display: block;
  212. content: ' ';
  213. height: 6px;
  214. width: 6px;
  215. top: -17px;
  216. left: 5px;
  217. position: absolute;
  218. }
  219. }
  220. .complex-hint {
  221. margin-top: 40px;
  222. .rv-hint {
  223. /* must be positioned in a parent with relative positioning */
  224. position: absolute;
  225. width: 0;
  226. height: 100%;
  227. $hint-color: black;
  228. $margin-left: 30px;
  229. $margin-right: 10px;
  230. $margin-top: 10px;
  231. $margin-bottom: 25px;
  232. & .hint--text-container {
  233. position: absolute;
  234. /*
  235. * set to 0,0 so that its content (including children)
  236. * can overflow out in vertical and horizontal
  237. */
  238. width: 0;
  239. height: 0;
  240. /*
  241. * use flex to place its children (centered) and aligned (bottom).
  242. * As its height is 0, align-items flex-end paints its items from cross-axis
  243. * up. flex-start, its items would paint from cross-axis down.
  244. */
  245. display: flex;
  246. justify-content: center;
  247. &.rightEdge-top {
  248. flex-direction: column-reverse;
  249. align-items: flex-start;
  250. }
  251. &.left-topEdge {
  252. flex-direction: row;
  253. align-items: flex-end;
  254. }
  255. &.left-bottomEdge {
  256. flex-direction: row;
  257. align-items: flex-start;
  258. }
  259. &.leftEdge-top {
  260. flex-direction: column;
  261. align-items: flex-end;
  262. }
  263. & .hint--text {
  264. /* text content uses -micro padding */
  265. padding: 4px;
  266. border: 2px solid $hint-color;
  267. color: $hint-color;
  268. white-space: nowrap;
  269. }
  270. }
  271. & .hint--pole {
  272. position: absolute;
  273. &.rightEdge-top {
  274. top: -1px;
  275. left: -$margin-right;
  276. border-top: 2px solid $hint-color;
  277. width: $margin-right;
  278. height: 0;
  279. }
  280. &.left-topEdge {
  281. border-left: 2px solid $hint-color;
  282. left: -1px;
  283. height: $margin-top;
  284. width: 0;
  285. top: 0;
  286. }
  287. &.left-bottomEdge {
  288. border-left: 2px solid $hint-color;
  289. left: -1px;
  290. height: $margin-bottom;
  291. width: 0;
  292. top: -$margin-bottom;
  293. }
  294. &.leftEdge-top {
  295. top: -1px;
  296. border-top: 2px solid $hint-color;
  297. width: $margin-left;
  298. height: 0;
  299. }
  300. }
  301. }
  302. .rv-hint--horizontalAlign-rightEdge.rv-hint--verticalAlign-top {
  303. width: 0;
  304. height: 0;
  305. }
  306. .rv-hint--horizontalAlign-left.rv-hint--verticalAlign-topEdge {
  307. width: 0;
  308. height: 100%;
  309. }
  310. .rv-hint--horizontalAlign-left.rv-hint--verticalAlign-bottomEdge {
  311. width: 0;
  312. height: 0;
  313. }
  314. .rv-hint--horizontalAlign-leftEdge.rv-hint--verticalAlign-top {
  315. width: 100%;
  316. height: 0;
  317. }
  318. }
  319. .centered-and-flexed {
  320. align-items: center;
  321. display: flex;
  322. flex-direction: column;
  323. justify-content: center;
  324. padding: 0 10px;
  325. .centered-and-flexed-controls {
  326. align-items: center;
  327. display: flex;
  328. justify-content: space-between;
  329. padding: 10px 0;
  330. width: 75%;
  331. }
  332. }
  333. .dynamic-treemap-example {
  334. .rv-treemap__leaf--circle {
  335. border: thin solid white;
  336. }
  337. }
  338. .clustered-stacked-bar-chart-example {
  339. .rv-discrete-color-legend {
  340. left: 40px;
  341. position: absolute;
  342. top: 0;
  343. }
  344. }
  345. .basic-sunburst-example-path-name {
  346. height: 20px;
  347. }
  348. .showcase-button {
  349. background: $white;
  350. border: thin solid #333;
  351. border-radius: 5px;
  352. cursor: pointer;
  353. font-size: 10px;
  354. font-weight: 600;
  355. padding: 5px 10px;
  356. }
  357. .donut-chart-example {
  358. .rv-radial-chart__series--pie__slice:hover {
  359. stroke: $black !important;
  360. stroke-width: 2px !important;
  361. }
  362. }
  363. .parallel-coordinates-example {
  364. .rv-xy-plot__series--line {
  365. stroke: #12939A !important;
  366. &:hover {
  367. stroke: #F15C17 !important;
  368. }
  369. }
  370. }
  371. .canvas-example-controls {
  372. display: flex;
  373. }
  374. .canvas-wrapper {
  375. align-items: center;
  376. display: flex;
  377. flex-direction: column;
  378. width: 100%;
  379. }
  380. .highlight-container {
  381. cursor: crosshair;
  382. }
  383. .no-select {
  384. -webkit-user-select: none;
  385. -moz-user-select: none;
  386. -ms-user-select: none;
  387. user-select: none;
  388. }