colors
Browse files- app.R +1 -8
- www/rtemislive.scss +103 -7
app.R
CHANGED
@@ -15,9 +15,7 @@ source("globals.R")
|
|
15 |
source("data.R")
|
16 |
|
17 |
# Colors
|
18 |
-
|
19 |
-
info <- helpcol <- "#B43880"
|
20 |
-
success <- "#B4DC55"
|
21 |
|
22 |
#' Create protein visualization shinylive app
|
23 |
#'
|
@@ -91,12 +89,7 @@ rtemisseq <- function(
|
|
91 |
theme = bslib::bs_theme(
|
92 |
bg = "#fff",
|
93 |
fg = "#000",
|
94 |
-
# primary = primary,
|
95 |
-
secondary = "#704071",
|
96 |
success = success,
|
97 |
-
# info = info,
|
98 |
-
# `tooltip-bg` = "#303030",
|
99 |
-
# `tooltip-color` = helpcol,
|
100 |
`tooltip-opacity` = 1,
|
101 |
`tooltip-border-radius` = "10px",
|
102 |
`tooltip-padding-x` = "1rem",
|
|
|
15 |
source("data.R")
|
16 |
|
17 |
# Colors
|
18 |
+
success <- "#60D0DA"
|
|
|
|
|
19 |
|
20 |
#' Create protein visualization shinylive app
|
21 |
#'
|
|
|
89 |
theme = bslib::bs_theme(
|
90 |
bg = "#fff",
|
91 |
fg = "#000",
|
|
|
|
|
92 |
success = success,
|
|
|
|
|
|
|
93 |
`tooltip-opacity` = 1,
|
94 |
`tooltip-border-radius` = "10px",
|
95 |
`tooltip-padding-x` = "1rem",
|
www/rtemislive.scss
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
|
3 |
// Define your custom colors
|
4 |
// primary color
|
5 |
-
$light-primary: #
|
6 |
-
$dark-primary: #
|
7 |
// info color
|
8 |
$light-info: #E44C9A; // Default Bootstrap info color
|
9 |
$dark-info: #FEB2E0; // Darker shade for better contrast in dark mode
|
@@ -19,6 +19,10 @@ $dark-tooltipbg: #333333;
|
|
19 |
// info color
|
20 |
--bs-info: #{$light-info};
|
21 |
--bs-info-rgb: #{red($light-info)}, #{green($light-info)}, #{blue($light-info)};
|
|
|
|
|
|
|
|
|
22 |
|
23 |
--rt-tooltipbg: #{$light-tooltipbg};
|
24 |
}
|
@@ -30,6 +34,10 @@ $dark-tooltipbg: #333333;
|
|
30 |
// info color
|
31 |
--bs-info: #{$dark-info};
|
32 |
--bs-info-rgb: #{red($dark-info)}, #{green($dark-info)}, #{blue($dark-info)};
|
|
|
|
|
|
|
|
|
33 |
|
34 |
--rt-tooltipbg: #{$dark-tooltipbg};
|
35 |
}
|
@@ -69,11 +77,11 @@ $dark-tooltipbg: #333333;
|
|
69 |
// color: $primary !important;
|
70 |
// }
|
71 |
|
72 |
-
.rt-tooltip {
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
}
|
77 |
|
78 |
// Border animation
|
79 |
.rthelp,
|
@@ -126,3 +134,91 @@ $dark-tooltipbg: #333333;
|
|
126 |
a {
|
127 |
text-decoration: none;
|
128 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
// Define your custom colors
|
4 |
// primary color
|
5 |
+
$light-primary: #178CCB;
|
6 |
+
$dark-primary: #B8E6FA;
|
7 |
// info color
|
8 |
$light-info: #E44C9A; // Default Bootstrap info color
|
9 |
$dark-info: #FEB2E0; // Darker shade for better contrast in dark mode
|
|
|
19 |
// info color
|
20 |
--bs-info: #{$light-info};
|
21 |
--bs-info-rgb: #{red($light-info)}, #{green($light-info)}, #{blue($light-info)};
|
22 |
+
// button color
|
23 |
+
--bs-button: #{$light-primary};
|
24 |
+
// radio button color
|
25 |
+
--bs-radio: #{$light-primary};
|
26 |
|
27 |
--rt-tooltipbg: #{$light-tooltipbg};
|
28 |
}
|
|
|
34 |
// info color
|
35 |
--bs-info: #{$dark-info};
|
36 |
--bs-info-rgb: #{red($dark-info)}, #{green($dark-info)}, #{blue($dark-info)};
|
37 |
+
// button color
|
38 |
+
--bs-button: #{$dark-primary};
|
39 |
+
// radio button color
|
40 |
+
--bs-radio: #{$dark-primary};
|
41 |
|
42 |
--rt-tooltipbg: #{$dark-tooltipbg};
|
43 |
}
|
|
|
77 |
// color: $primary !important;
|
78 |
// }
|
79 |
|
80 |
+
// .rt-tooltip {
|
81 |
+
// background-color: #282828aa;
|
82 |
+
// color: orange;
|
83 |
+
// border-radius: 10px;
|
84 |
+
// }
|
85 |
|
86 |
// Border animation
|
87 |
.rthelp,
|
|
|
134 |
a {
|
135 |
text-decoration: none;
|
136 |
}
|
137 |
+
|
138 |
+
// Buttons
|
139 |
+
// .btn-primary {
|
140 |
+
// background-color: var(--bs-primary);
|
141 |
+
// border-color: var(--bs-primary);
|
142 |
+
// }
|
143 |
+
|
144 |
+
// .btn-outline-primary {
|
145 |
+
// border-color: var(--bs-primary);
|
146 |
+
// color: var(--bs-primary);
|
147 |
+
|
148 |
+
// }
|
149 |
+
|
150 |
+
// .btn-link {
|
151 |
+
// color: var(--bs-primary);
|
152 |
+
// }
|
153 |
+
|
154 |
+
// .form-check-input:checked,
|
155 |
+
// .form-check-input:focus {
|
156 |
+
// background-color: var(--bs-primary);
|
157 |
+
// border-color: var(--bs-primary);
|
158 |
+
// }
|
159 |
+
|
160 |
+
// Custom styles for buttons
|
161 |
+
// .btn-primary {
|
162 |
+
// @include button-variant($primary, $primary);
|
163 |
+
// }
|
164 |
+
|
165 |
+
// // Custom styles for radio buttons
|
166 |
+
// .btn-check {
|
167 |
+
// &:checked+.btn-primary {
|
168 |
+
// @include button-variant($primary, $primary);
|
169 |
+
|
170 |
+
// &:hover {
|
171 |
+
// background-color: darken($primary, 10%);
|
172 |
+
// border-color: darken($primary, 10%);
|
173 |
+
// }
|
174 |
+
// }
|
175 |
+
// }
|
176 |
+
|
177 |
+
// Define a SCSS variable that uses the CSS custom property
|
178 |
+
$primary-color: var(--bs-primary);
|
179 |
+
|
180 |
+
// Customize Bootstrap buttons
|
181 |
+
.btn-primary {
|
182 |
+
background-color: $primary-color;
|
183 |
+
border-color: $primary-color;
|
184 |
+
|
185 |
+
&:hover,
|
186 |
+
&:focus,
|
187 |
+
&:active {
|
188 |
+
background-color: rgba($primary-color, 0.8);
|
189 |
+
border-color: rgba($primary-color, 0.8);
|
190 |
+
}
|
191 |
+
}
|
192 |
+
|
193 |
+
.btn-outline-primary {
|
194 |
+
color: $primary-color;
|
195 |
+
border-color: $primary-color;
|
196 |
+
|
197 |
+
&:hover,
|
198 |
+
&:focus,
|
199 |
+
&:active {
|
200 |
+
background-color: $primary-color;
|
201 |
+
border-color: $primary-color;
|
202 |
+
}
|
203 |
+
}
|
204 |
+
|
205 |
+
// Customize radio buttons
|
206 |
+
.form-check-input {
|
207 |
+
&:checked {
|
208 |
+
background-color: $primary-color;
|
209 |
+
border-color: $primary-color;
|
210 |
+
}
|
211 |
+
|
212 |
+
&:focus {
|
213 |
+
border-color: $primary-color;
|
214 |
+
box-shadow: 0 0 0 0.25rem rgba($primary-color, 0.25);
|
215 |
+
}
|
216 |
+
}
|
217 |
+
|
218 |
+
// Customize focus state for buttons
|
219 |
+
.btn-primary,
|
220 |
+
.btn-outline-primary {
|
221 |
+
&:focus {
|
222 |
+
box-shadow: 0 0 0 0.25rem rgba($primary-color, 0.5);
|
223 |
+
}
|
224 |
+
}
|