forked from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 10
/
styles.css
40 lines (35 loc) · 815 Bytes
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.run-code-button {
color: var(--background-primary);
background-color: var(--text-normal);
border-radius: 1px 1px 0px 0px;
/* right-align */
display: block;
margin-left: auto;
margin-right: 0;
padding: 3px 8px;
font-size: 0.8em;
position: absolute;
bottom: 0px;
right: 0px;
}
.run-code-button:hover {
cursor: pointer;
background-color: var(--text-normal);
}
.run-code-button:focus {
/* Avoid an ugly focus outline on click in Chrome,
but darken the button for accessibility.
See https://stackoverflow.com/a/25298082/1481479 */
background-color: var(--text-normal);
outline: 0;
}
.run-code-button:active {
background-color: var(--text-normal);
}
.highlight pre {
/* Avoid pushing up the run buttons. */
margin: 0;
}
.has-run-button {
position: relative;
}