File size: 4,519 Bytes
977cc7d
 
e55e859
 
73d003b
 
 
 
e55e859
73d003b
 
 
 
e55e859
 
 
 
 
 
 
 
73d003b
e55e859
 
73d003b
99769ed
 
73d003b
 
 
 
 
e55e859
 
 
 
 
 
 
73d003b
e55e859
 
73d003b
99769ed
 
73d003b
 
 
 
e55e859
 
 
 
977cc7d
 
 
 
 
 
e55e859
977cc7d
 
 
 
 
 
 
 
e55e859
977cc7d
 
 
 
 
 
 
e55e859
 
 
 
 
 
 
977cc7d
 
 
 
 
99769ed
 
 
 
 
977cc7d
 
 
 
 
 
 
 
 
 
 
 
 
 
e55e859
 
 
977cc7d
 
 
e55e859
977cc7d
 
 
e55e859
 
977cc7d
 
 
 
 
 
 
 
e55e859
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99769ed
 
 
 
 
 
 
 
 
73d003b
 
 
 
 
 
99769ed
 
 
 
 
 
73d003b
 
 
 
 
 
99769ed
 
 
 
 
 
 
 
 
73d003b
 
 
 
99769ed
 
73d003b
 
 
 
 
 
 
 
 
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/* rtemislive.scss */

// Define your custom colors
// primary color
$light-primary: #1295D8;
$dark-primary: #1295D8;
$light-primary-rgb: #{red($light-primary)}, #{green($light-primary)}, #{blue($light-primary)};
$dark-primary-rgb: #{red($dark-primary)}, #{green($dark-primary)}, #{blue($dark-primary)};
// info color
$light-info: #E44C9A;
$light-info-rgb: #{red($light-info)}, #{green($light-info)}, #{blue($light-info)};
$dark-info: #FEB2E0;
$dark-info-rgb: #{red($dark-info)}, #{green($dark-info)}, #{blue($dark-info)};
// tooltip-bg
$light-tooltipbg: #cdcdcd;
$dark-tooltipbg: #333333;

// Customize the theme colors
@include color-mode(light) {
  // primary color
  --bs-primary: #{$light-primary};
  --bs-primary-rgb: #{$light-primary-rgb};
  // info color
  --bs-info: #{$light-info};
  --bs-info-rgb: #{$light-info-rgb};
  // button color
  --bs-button: #{$light-primary};
  --bs-button-rgb: #{$light-primary-rgb};
  // link color
  --bs-link-color: #{$light-primary};
  --bs-link-color-rgb: #{$light-primary-rgb};


  --rt-tooltipbg: #{$light-tooltipbg};
}

@include color-mode(dark) {
  // primary color
  --bs-primary: #{$dark-primary};
  --bs-primary-rgb: #{$dark-primary-rgb};
  // info color
  --bs-info: #{$dark-info};
  --bs-info-rgb: #{$dark-info-rgb};
  // button color
  --bs-button: #{$dark-primary};
  --bs-button-rgb: #{$dark-primary-rgb};
  // link color
  --bs-link-color: #{$dark-primary};
  --bs-link-color-rgb: #{$dark-primary-rgb};

  --rt-tooltipbg: #{$dark-tooltipbg};
}

/* rthelp */
.rthelp {
  position: fixed !important;
  top: 33% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  color: var(--bs-info) !important;
  margin: 11px;
  border: 0.5px solid transparent;
  border-radius: 10px;
  padding: 11px;
}

.rthelp-inline {
  display: inline-block;
  color: var(--bs-info) !important;
  margin: 11px;
  border: 0.5px solid transparent;
  border-radius: 10px;
  padding: 11px;
  text-align: left;
}

.rthelplist {
  color: var(--bs-info) !important;
  background-color: var(--rt-tooltipbg) !important;
  text-align: left;
}


// modify bs link color only for body links
// card-body a {
//   color: $primary !important;
// }

// .rt-tooltip {
//   background-color: #282828aa;
//   color: orange;
//   border-radius: 10px;
// }

// Border animation
.rthelp,
.rthelp-inline {
  // animation: highlight-border 1s ease-in-out forwards;
  animation-name: highlight-border;
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  // animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}

@keyframes highlight-border {
  0% {
    // border-color: transparent;
    // Make border-color var(--bs-info) at 10% transparency
    border-color: rgba(var(--bs-info-rgb), 0.10);
  }

  50% {
    border-color: var(--bs-info);
  }

  100% {
    // border-color: transparent;
    border-color: rgba(var(--bs-info-rgb), 0.10);
  }
}

// theme switch
#lightson {
  margin-top: auto;
  margin-bottom: auto;
}

// Bootstrap tooltips
// set tooltip, tooltip-inner and tooltip-arrow colors to rt-tooltipbg
.tooltip {
  --bs-tooltip-bg: var(--rt-tooltipbg);
  --bs-tooltip-arrow-color: var(--rt-tooltipbg);
  border-radius: 10px;
}

.tooltip-inner {
  background-color: var(--rt-tooltipbg);
  color: var(--bs-info) !important;
}

// Remove underscore from all links
a {
  text-decoration: none;
}

// Define a SCSS variable that uses the CSS custom property
$primary-color: var(--bs-primary);

// Customize Bootstrap buttons
.btn-primary {
  background-color: $primary-color;
  border-color: $primary-color;

  // &:hover,
  // &:focus,
  // &:active {
  //   background-color: rgba($primary-color, 0.8);
  //   border-color: rgba($primary-color, 0.8);
  // }
}

.btn-outline-primary {
  color: $primary-color;
  border-color: $primary-color;

  // &:hover,
  // &:focus,
  // &:active {
  //   background-color: $primary-color;
  //   border-color: $primary-color;
  // }
}

// Customize radio buttons
.form-check-input {
  &:checked {
    background-color: $primary-color;
    border-color: $primary-color;
  }

  // &:focus {
  //   border-color: $primary-color;
  //   box-shadow: 0 0 0 0.25rem rgba($primary-color, 0.25);
  // }
}

// Radio buttons
.form-check-input:checked,
.shiny-input-container .checkbox input:checked,
.shiny-input-container .checkbox-inline input:checked,
.shiny-input-container .radio input:checked,
.shiny-input-container .radio-inline input:checked {
  background-color: $primary-color;
  border-color: $primary-color;
}