-
Notifications
You must be signed in to change notification settings - Fork 60
/
theme.js
71 lines (68 loc) · 2.87 KB
/
theme.js
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$('body').append(
'<style class="theme-rest-jetplane">' +
' input[type="range"]::-webkit-slider-thumb, .switch-slide input:checked + label {' +
' background: ' + newRestColor + ';' +
' }' +
' input[type="checkbox"]::after, .rest, .rest::-webkit-input-placeholder, .rest:hover, #controller .dropdown-toggle::before, #controller .dropdown-toggle::after {' +
' color: ' + newRestColor + ';' +
' }' +
' select > option:focus {' +
' background-color: ' + newRestColor + ';' +
' }' +
' .rest:focus::-webkit-input-placeholder, .rest:hover::-webkit-input-placeholder {\n' +
' color: ' + newRestColor + 'c2;\n' +
' }' +
' .btn-primary, .btn-outline-primary {\n' +
' color: ' + newRestColor + ';\n' +
' border-color: ' + newRestColor + ';\n' +
' }\n' +
' .btn-primary:hover, .btn-outline-primary:hover {\n' +
' background-color: ' + newRestColor + ';\n' +
' border-color: ' + newRestColor + ';' +
' color: #fff !important;\n' +
' }' +
'</style>'
);
$("body").append(
'<style class="theme-rest-jetplane">' +
' #focus-work-set::after, #focus-work-set:checked::after, .work, .work::-webkit-input-placeholder, .work:hover {\n' +
' color: ' + newWorkColor + ';\n' +
' }' +
' .work:focus::-webkit-input-placeholder, .work:hover::-webkit-input-placeholder {\n' +
' color: ' + newWorkColor + 'c2;\n' +
' }' +
'</style>'
)
$("body").append(
'<style class="theme-positive-jetplane">' +
' .positive, .positive::-webkit-input-placeholder, .positive:hover {\n' +
' color: ' + newPositiveColor + ' !important;\n' +
' }\n' +
' .positive:focus::-webkit-input-placeholder, .positive:hover::-webkit-input-placeholder {\n' +
' color: ' + newPositiveColor + ' !important;\n' +
' }' +
'</style>'
)
$("body").append(
'<style class="theme-onlyrest-jetplane">' +
' #focus-rest-set-onlyrest::after, #focus-rest-set-onlyrest:checked::after,\n' +
' #focus-continueloop-set-onlyrest::after, #focus-continueloop-set-onlyrest:checked::after {\n' +
' color: ' + newOnlyRestColor + ';\n' +
' }' +
' .btn-onlyRest {\n' +
' color: ' + newOnlyRestColor + ';\n' +
' border-color: ' + newOnlyRestColor + ';\n' +
' }' +
' .btn-onlyRest:hover {\n' +
' color: #fff;\n' +
' background-color: ' + newOnlyRestColor + ';\n' +
' border-color: ' + newOnlyRestColor + ';\n' +
' }' +
' .onlyRest, .onlyRest::-webkit-input-placeholder, .onlyRest:hover {\n' +
' color: ' + newOnlyRestColor + ';\n' +
' }\n' +
' .onlyRest:focus::-webkit-input-placeholder, .onlyRest:hover::-webkit-input-placeholder {\n' +
' color: ' + newOnlyRestColor + ';\n' +
' }' +
'</style>'
)