Skip to content

Commit 5f8fb1a

Browse files
committed
Adjust button styles
1 parent 910e866 commit 5f8fb1a

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

src/doc/common/static/custom-jupyter-sphinx.css

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ div.jupyter_container div.cell_output div.output {
2525

2626
.thebelab-button {
2727
margin: .5rem 0 .5rem .5rem;
28+
padding: 0 .5rem;
29+
min-width: 2rem;
30+
}
31+
32+
.thebelab-button:active {
33+
color: #0f0fff;
2834
}
2935

3036
.thebelab-busy {
@@ -33,17 +39,22 @@ div.jupyter_container div.cell_output div.output {
3339

3440
#thebelab-activate-button {
3541
position: fixed;
36-
right: -6.5rem;
37-
top: calc(50% - 1.5em);
38-
border-radius: 1em;
42+
right: -5rem;
43+
top: calc(50% - 1.5rem);
44+
width: 6rem;
45+
border-radius: 1rem;
3946
transition-property: right;
4047
transition-duration: 300ms;
4148
transition-timing-function: ease-out;
4249
z-index: 100;
4350
}
4451

4552
#thebelab-activate-button:hover {
46-
right: 5px;
53+
right: .5rem;
54+
}
55+
56+
#thebelab-activate-button:active {
57+
color: #0f0fff;
4758
}
4859

4960
body[data-theme="dark"] {
@@ -57,11 +68,18 @@ body[data-theme="dark"] {
5768
background-color: #383838;
5869
}
5970

71+
.thebelab-button:active {
72+
color: #368ce2;
73+
}
74+
6075
#thebelab-activate-button {
61-
color: #d0d0d0;
6276
background-color: #383838;
6377
}
6478

79+
#thebelab-activate-button:active {
80+
color: #368ce2;
81+
}
82+
6583
.thebelab-cell .jp-OutputArea-output {
6684
color: white;
6785
background-color: black;

0 commit comments

Comments
 (0)