|
| 1 | +:root { |
| 2 | + --jupyter-light-primary: #f7dc1e; |
| 3 | + --jupyter-light-primary-muted: #fff221; |
| 4 | +} |
| 5 | + |
1 | 6 | .try_examples_button { |
2 | | - background-color: #f7dc1e; |
3 | | - border: none; |
4 | | - padding: 5px 10px; |
5 | | - border-radius: 15px; |
6 | | - font-family: vibur; |
7 | | - font-size: larger; |
8 | | - box-shadow: 0 2px 5px rgba(108,108,108,0.2); |
| 7 | + background-color: var(--jupyter-light-primary); |
| 8 | + border: none; |
| 9 | + padding: 5px 10px; |
| 10 | + border-radius: 15px; |
| 11 | + font-family: vibur; |
| 12 | + font-size: larger; |
| 13 | + box-shadow: 0 2px 5px rgba(108, 108, 108, 0.2); |
9 | 14 | } |
10 | 15 |
|
11 | 16 | .try_examples_button:hover { |
12 | | - background-color: #fff221; |
13 | | - transform: scale(1.02); |
14 | | - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); |
15 | | - cursor: pointer; |
| 17 | + background-color: var(--jupyter-light-primary-muted); |
| 18 | + transform: scale(1.02); |
| 19 | + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); |
| 20 | + cursor: pointer; |
16 | 21 | } |
17 | 22 |
|
18 | 23 | .try_examples_button_container { |
19 | | - display: flex; |
20 | | - justify-content: flex-end; |
| 24 | + display: flex; |
| 25 | + justify-content: flex-end; |
| 26 | +} |
| 27 | + |
| 28 | +.try_examples_outer_container, |
| 29 | +.try_examples_outer_iframe { |
| 30 | + flex-direction: column-reverse; |
| 31 | + display: flex; |
| 32 | +} |
| 33 | + |
| 34 | +/* override class + hidden, otherwise any attempt of custom css to |
| 35 | + * set the display mode would lead to the iframe/container always visible. |
| 36 | + * */ |
| 37 | + |
| 38 | +.try_examples_outer_container.hidden, |
| 39 | +.try_examples_outer_iframe.hidden { |
| 40 | + display: none; |
| 41 | +} |
| 42 | + |
| 43 | +/* customisation when the buttons containers have the blue-bottom class */ |
| 44 | + |
| 45 | +/* here we just show how to: |
| 46 | + * - change the color of the button |
| 47 | + * - change the color on hover. |
| 48 | + * |
| 49 | + * As we _used to have_ option to show the button above/below, and left/right |
| 50 | + * we show how to achieve the same with flex-direction |
| 51 | + */ |
| 52 | + |
| 53 | +.blue-bottom .try_examples_button_container { |
| 54 | + justify-content: flex-start; |
| 55 | +} |
| 56 | + |
| 57 | +.blue-bottom .try_examples_button { |
| 58 | + background-color: #00bcd4; |
| 59 | + color: white; |
| 60 | +} |
| 61 | + |
| 62 | +.blue-bottom button.try_examples_button:hover { |
| 63 | + background-color: #2196f3; |
21 | 64 | } |
0 commit comments