fix transperent mode?
Browse files
files_cells/notebooks/en/widgets_en.ipynb
CHANGED
@@ -58,6 +58,7 @@
|
|
58 |
"parser.add_argument('-x', type=int, help='X coordinate for the image in px', metavar='', default=0)\n",
|
59 |
"parser.add_argument('-s', '--scale', type=int, help='Scale image in %%', metavar='', default=100)\n",
|
60 |
"parser.add_argument('-m', '--mode', type=str, help='Specify \"no-repeat\" so that the image pattern is not repeated.', metavar='', default='repeat')\n",
|
|
|
61 |
"args = parser.parse_args()\n",
|
62 |
"\"\"\"---\"\"\"\n",
|
63 |
"url_img = args.image\n",
|
@@ -72,10 +73,15 @@
|
|
72 |
"fix_heigh_img = \"-815px\"\n",
|
73 |
"if env == \"Google Colab\":\n",
|
74 |
" fix_heigh_img = \"-775px\"\n",
|
|
|
|
|
|
|
|
|
75 |
"\n",
|
76 |
"container_background = f'''\n",
|
77 |
"<style>\n",
|
78 |
":root {{\n",
|
|
|
79 |
" --img_background: url({url_img});\n",
|
80 |
" --img_opacity: {opacity_img};\n",
|
81 |
" --img_blur: {blur_img}px;\n",
|
@@ -83,7 +89,11 @@
|
|
83 |
" --image_x: {x_img}px;\n",
|
84 |
" --img_scale: {scale_img}%;\n",
|
85 |
" --img_mode: {mode_img};\n",
|
86 |
-
" --img_height_dif: {fix_heigh_img}
|
|
|
|
|
|
|
|
|
87 |
"}}\n",
|
88 |
"'''\n",
|
89 |
"\n",
|
@@ -205,7 +215,7 @@
|
|
205 |
".widget-dropdown select,\n",
|
206 |
".widget-text input[type=\"text\"] {\n",
|
207 |
" height: 30px;\n",
|
208 |
-
" background-color:
|
209 |
" border: 1px solid #262626;\n",
|
210 |
" border-radius: 10px;\n",
|
211 |
" box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);\n",
|
@@ -220,10 +230,14 @@
|
|
220 |
".widget-dropdown select:hover,\n",
|
221 |
".widget-text input[type=\"text\"]:hover {\n",
|
222 |
" transform: scale(1.003);\n",
|
223 |
-
" background-color:
|
224 |
" box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);\n",
|
225 |
"}\n",
|
226 |
"\n",
|
|
|
|
|
|
|
|
|
227 |
"\n",
|
228 |
"/* Slider Checkbox style */\n",
|
229 |
"\n",
|
|
|
58 |
"parser.add_argument('-x', type=int, help='X coordinate for the image in px', metavar='', default=0)\n",
|
59 |
"parser.add_argument('-s', '--scale', type=int, help='Scale image in %%', metavar='', default=100)\n",
|
60 |
"parser.add_argument('-m', '--mode', type=str, help='Specify \"no-repeat\" so that the image pattern is not repeated.', metavar='', default='repeat')\n",
|
61 |
+
"parser.add_argument('-t', '--transparent', action='store_true', help='Makes input/selection fields 35% more transparent')\n",
|
62 |
"args = parser.parse_args()\n",
|
63 |
"\"\"\"---\"\"\"\n",
|
64 |
"url_img = args.image\n",
|
|
|
73 |
"fix_heigh_img = \"-815px\"\n",
|
74 |
"if env == \"Google Colab\":\n",
|
75 |
" fix_heigh_img = \"-775px\"\n",
|
76 |
+
"# transperent fields\n",
|
77 |
+
"t_bg_alpha = \"1\"\n",
|
78 |
+
"if args.transparent:\n",
|
79 |
+
" t_bg_alpha = \"0.65\"\n",
|
80 |
"\n",
|
81 |
"container_background = f'''\n",
|
82 |
"<style>\n",
|
83 |
":root {{\n",
|
84 |
+
" /* for background container*/\n",
|
85 |
" --img_background: url({url_img});\n",
|
86 |
" --img_opacity: {opacity_img};\n",
|
87 |
" --img_blur: {blur_img}px;\n",
|
|
|
89 |
" --image_x: {x_img}px;\n",
|
90 |
" --img_scale: {scale_img}%;\n",
|
91 |
" --img_mode: {mode_img};\n",
|
92 |
+
" --img_height_dif: {fix_heigh_img};\n",
|
93 |
+
"\n",
|
94 |
+
" /* for fields */\n",
|
95 |
+
" --bg-field-color: rgba(28, 28, 28, {t_bg_alpha}); /* -> #1c1c1c */\n",
|
96 |
+
" --bg-field-color-hover: rgba(38, 38, 38, {t_bg_alpha}); /* -> #262626; */\n",
|
97 |
"}}\n",
|
98 |
"'''\n",
|
99 |
"\n",
|
|
|
215 |
".widget-dropdown select,\n",
|
216 |
".widget-text input[type=\"text\"] {\n",
|
217 |
" height: 30px;\n",
|
218 |
+
" background-color: var(--bg-field-color);\n",
|
219 |
" border: 1px solid #262626;\n",
|
220 |
" border-radius: 10px;\n",
|
221 |
" box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);\n",
|
|
|
230 |
".widget-dropdown select:hover,\n",
|
231 |
".widget-text input[type=\"text\"]:hover {\n",
|
232 |
" transform: scale(1.003);\n",
|
233 |
+
" background-color: var(--bg-field-color-hover);\n",
|
234 |
" box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);\n",
|
235 |
"}\n",
|
236 |
"\n",
|
237 |
+
".widget-dropdown option {\n",
|
238 |
+
" background-color: #1c1c1c;\n",
|
239 |
+
"}\n",
|
240 |
+
"\n",
|
241 |
"\n",
|
242 |
"/* Slider Checkbox style */\n",
|
243 |
"\n",
|
files_cells/notebooks/ru/widgets_ru.ipynb
CHANGED
@@ -58,6 +58,7 @@
|
|
58 |
"parser.add_argument('-x', type=int, help='X coordinate for the image in px', metavar='', default=0)\n",
|
59 |
"parser.add_argument('-s', '--scale', type=int, help='Scale image in %%', metavar='', default=100)\n",
|
60 |
"parser.add_argument('-m', '--mode', type=str, help='Specify \"no-repeat\" so that the image pattern is not repeated.', metavar='', default='repeat')\n",
|
|
|
61 |
"args = parser.parse_args()\n",
|
62 |
"\"\"\"---\"\"\"\n",
|
63 |
"url_img = args.image\n",
|
@@ -72,10 +73,15 @@
|
|
72 |
"fix_heigh_img = \"-815px\"\n",
|
73 |
"if env == \"Google Colab\":\n",
|
74 |
" fix_heigh_img = \"-775px\"\n",
|
|
|
|
|
|
|
|
|
75 |
"\n",
|
76 |
"container_background = f'''\n",
|
77 |
"<style>\n",
|
78 |
":root {{\n",
|
|
|
79 |
" --img_background: url({url_img});\n",
|
80 |
" --img_opacity: {opacity_img};\n",
|
81 |
" --img_blur: {blur_img}px;\n",
|
@@ -83,7 +89,11 @@
|
|
83 |
" --image_x: {x_img}px;\n",
|
84 |
" --img_scale: {scale_img}%;\n",
|
85 |
" --img_mode: {mode_img};\n",
|
86 |
-
" --img_height_dif: {fix_heigh_img}
|
|
|
|
|
|
|
|
|
87 |
"}}\n",
|
88 |
"'''\n",
|
89 |
"\n",
|
@@ -205,7 +215,7 @@
|
|
205 |
".widget-dropdown select,\n",
|
206 |
".widget-text input[type=\"text\"] {\n",
|
207 |
" height: 30px;\n",
|
208 |
-
" background-color:
|
209 |
" border: 1px solid #262626;\n",
|
210 |
" border-radius: 10px;\n",
|
211 |
" box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);\n",
|
@@ -220,10 +230,14 @@
|
|
220 |
".widget-dropdown select:hover,\n",
|
221 |
".widget-text input[type=\"text\"]:hover {\n",
|
222 |
" transform: scale(1.003);\n",
|
223 |
-
" background-color:
|
224 |
" box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);\n",
|
225 |
"}\n",
|
226 |
"\n",
|
|
|
|
|
|
|
|
|
227 |
"\n",
|
228 |
"/* Slider Checkbox style */\n",
|
229 |
"\n",
|
|
|
58 |
"parser.add_argument('-x', type=int, help='X coordinate for the image in px', metavar='', default=0)\n",
|
59 |
"parser.add_argument('-s', '--scale', type=int, help='Scale image in %%', metavar='', default=100)\n",
|
60 |
"parser.add_argument('-m', '--mode', type=str, help='Specify \"no-repeat\" so that the image pattern is not repeated.', metavar='', default='repeat')\n",
|
61 |
+
"parser.add_argument('-t', '--transparent', action='store_true', help='Makes input/selection fields 35% more transparent')\n",
|
62 |
"args = parser.parse_args()\n",
|
63 |
"\"\"\"---\"\"\"\n",
|
64 |
"url_img = args.image\n",
|
|
|
73 |
"fix_heigh_img = \"-815px\"\n",
|
74 |
"if env == \"Google Colab\":\n",
|
75 |
" fix_heigh_img = \"-775px\"\n",
|
76 |
+
"# transperent fields\n",
|
77 |
+
"t_bg_alpha = \"1\"\n",
|
78 |
+
"if args.transparent:\n",
|
79 |
+
" t_bg_alpha = \"0.65\"\n",
|
80 |
"\n",
|
81 |
"container_background = f'''\n",
|
82 |
"<style>\n",
|
83 |
":root {{\n",
|
84 |
+
" /* for background container*/\n",
|
85 |
" --img_background: url({url_img});\n",
|
86 |
" --img_opacity: {opacity_img};\n",
|
87 |
" --img_blur: {blur_img}px;\n",
|
|
|
89 |
" --image_x: {x_img}px;\n",
|
90 |
" --img_scale: {scale_img}%;\n",
|
91 |
" --img_mode: {mode_img};\n",
|
92 |
+
" --img_height_dif: {fix_heigh_img};\n",
|
93 |
+
"\n",
|
94 |
+
" /* for fields */\n",
|
95 |
+
" --bg-field-color: rgba(28, 28, 28, {t_bg_alpha}); /* -> #1c1c1c */\n",
|
96 |
+
" --bg-field-color-hover: rgba(38, 38, 38, {t_bg_alpha}); /* -> #262626; */\n",
|
97 |
"}}\n",
|
98 |
"'''\n",
|
99 |
"\n",
|
|
|
215 |
".widget-dropdown select,\n",
|
216 |
".widget-text input[type=\"text\"] {\n",
|
217 |
" height: 30px;\n",
|
218 |
+
" background-color: var(--bg-field-color);\n",
|
219 |
" border: 1px solid #262626;\n",
|
220 |
" border-radius: 10px;\n",
|
221 |
" box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);\n",
|
|
|
230 |
".widget-dropdown select:hover,\n",
|
231 |
".widget-text input[type=\"text\"]:hover {\n",
|
232 |
" transform: scale(1.003);\n",
|
233 |
+
" background-color: var(--bg-field-color-hover);\n",
|
234 |
" box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);\n",
|
235 |
"}\n",
|
236 |
"\n",
|
237 |
+
".widget-dropdown option {\n",
|
238 |
+
" background-color: #1c1c1c;\n",
|
239 |
+
"}\n",
|
240 |
+
"\n",
|
241 |
"\n",
|
242 |
"/* Slider Checkbox style */\n",
|
243 |
"\n",
|
files_cells/python/en/widgets_en.py
CHANGED
@@ -39,6 +39,7 @@ parser.add_argument('-y', type=int, help='Y coordinate for the image in px', met
|
|
39 |
parser.add_argument('-x', type=int, help='X coordinate for the image in px', metavar='', default=0)
|
40 |
parser.add_argument('-s', '--scale', type=int, help='Scale image in %%', metavar='', default=100)
|
41 |
parser.add_argument('-m', '--mode', type=str, help='Specify "no-repeat" so that the image pattern is not repeated.', metavar='', default='repeat')
|
|
|
42 |
args = parser.parse_args()
|
43 |
"""---"""
|
44 |
url_img = args.image
|
@@ -53,10 +54,15 @@ mode_img = args.mode
|
|
53 |
fix_heigh_img = "-815px"
|
54 |
if env == "Google Colab":
|
55 |
fix_heigh_img = "-775px"
|
|
|
|
|
|
|
|
|
56 |
|
57 |
container_background = f'''
|
58 |
<style>
|
59 |
:root {{
|
|
|
60 |
--img_background: url({url_img});
|
61 |
--img_opacity: {opacity_img};
|
62 |
--img_blur: {blur_img}px;
|
@@ -64,7 +70,11 @@ container_background = f'''
|
|
64 |
--image_x: {x_img}px;
|
65 |
--img_scale: {scale_img}%;
|
66 |
--img_mode: {mode_img};
|
67 |
-
--img_height_dif: {fix_heigh_img}
|
|
|
|
|
|
|
|
|
68 |
}}
|
69 |
'''
|
70 |
|
@@ -186,7 +196,7 @@ a {
|
|
186 |
.widget-dropdown select,
|
187 |
.widget-text input[type="text"] {
|
188 |
height: 30px;
|
189 |
-
background-color:
|
190 |
border: 1px solid #262626;
|
191 |
border-radius: 10px;
|
192 |
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
|
@@ -201,10 +211,14 @@ a {
|
|
201 |
.widget-dropdown select:hover,
|
202 |
.widget-text input[type="text"]:hover {
|
203 |
transform: scale(1.003);
|
204 |
-
background-color:
|
205 |
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
|
206 |
}
|
207 |
|
|
|
|
|
|
|
|
|
208 |
|
209 |
/* Slider Checkbox style */
|
210 |
|
|
|
39 |
parser.add_argument('-x', type=int, help='X coordinate for the image in px', metavar='', default=0)
|
40 |
parser.add_argument('-s', '--scale', type=int, help='Scale image in %%', metavar='', default=100)
|
41 |
parser.add_argument('-m', '--mode', type=str, help='Specify "no-repeat" so that the image pattern is not repeated.', metavar='', default='repeat')
|
42 |
+
parser.add_argument('-t', '--transparent', action='store_true', help='Makes input/selection fields 35% more transparent')
|
43 |
args = parser.parse_args()
|
44 |
"""---"""
|
45 |
url_img = args.image
|
|
|
54 |
fix_heigh_img = "-815px"
|
55 |
if env == "Google Colab":
|
56 |
fix_heigh_img = "-775px"
|
57 |
+
# transperent fields
|
58 |
+
t_bg_alpha = "1"
|
59 |
+
if args.transparent:
|
60 |
+
t_bg_alpha = "0.65"
|
61 |
|
62 |
container_background = f'''
|
63 |
<style>
|
64 |
:root {{
|
65 |
+
/* for background container*/
|
66 |
--img_background: url({url_img});
|
67 |
--img_opacity: {opacity_img};
|
68 |
--img_blur: {blur_img}px;
|
|
|
70 |
--image_x: {x_img}px;
|
71 |
--img_scale: {scale_img}%;
|
72 |
--img_mode: {mode_img};
|
73 |
+
--img_height_dif: {fix_heigh_img};
|
74 |
+
|
75 |
+
/* for fields */
|
76 |
+
--bg-field-color: rgba(28, 28, 28, {t_bg_alpha}); /* -> #1c1c1c */
|
77 |
+
--bg-field-color-hover: rgba(38, 38, 38, {t_bg_alpha}); /* -> #262626; */
|
78 |
}}
|
79 |
'''
|
80 |
|
|
|
196 |
.widget-dropdown select,
|
197 |
.widget-text input[type="text"] {
|
198 |
height: 30px;
|
199 |
+
background-color: var(--bg-field-color);
|
200 |
border: 1px solid #262626;
|
201 |
border-radius: 10px;
|
202 |
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
|
|
|
211 |
.widget-dropdown select:hover,
|
212 |
.widget-text input[type="text"]:hover {
|
213 |
transform: scale(1.003);
|
214 |
+
background-color: var(--bg-field-color-hover);
|
215 |
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
|
216 |
}
|
217 |
|
218 |
+
.widget-dropdown option {
|
219 |
+
background-color: #1c1c1c;
|
220 |
+
}
|
221 |
+
|
222 |
|
223 |
/* Slider Checkbox style */
|
224 |
|
files_cells/python/ru/widgets_ru.py
CHANGED
@@ -39,6 +39,7 @@ parser.add_argument('-y', type=int, help='Y coordinate for the image in px', met
|
|
39 |
parser.add_argument('-x', type=int, help='X coordinate for the image in px', metavar='', default=0)
|
40 |
parser.add_argument('-s', '--scale', type=int, help='Scale image in %%', metavar='', default=100)
|
41 |
parser.add_argument('-m', '--mode', type=str, help='Specify "no-repeat" so that the image pattern is not repeated.', metavar='', default='repeat')
|
|
|
42 |
args = parser.parse_args()
|
43 |
"""---"""
|
44 |
url_img = args.image
|
@@ -53,10 +54,15 @@ mode_img = args.mode
|
|
53 |
fix_heigh_img = "-815px"
|
54 |
if env == "Google Colab":
|
55 |
fix_heigh_img = "-775px"
|
|
|
|
|
|
|
|
|
56 |
|
57 |
container_background = f'''
|
58 |
<style>
|
59 |
:root {{
|
|
|
60 |
--img_background: url({url_img});
|
61 |
--img_opacity: {opacity_img};
|
62 |
--img_blur: {blur_img}px;
|
@@ -64,7 +70,11 @@ container_background = f'''
|
|
64 |
--image_x: {x_img}px;
|
65 |
--img_scale: {scale_img}%;
|
66 |
--img_mode: {mode_img};
|
67 |
-
--img_height_dif: {fix_heigh_img}
|
|
|
|
|
|
|
|
|
68 |
}}
|
69 |
'''
|
70 |
|
@@ -186,7 +196,7 @@ a {
|
|
186 |
.widget-dropdown select,
|
187 |
.widget-text input[type="text"] {
|
188 |
height: 30px;
|
189 |
-
background-color:
|
190 |
border: 1px solid #262626;
|
191 |
border-radius: 10px;
|
192 |
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
|
@@ -201,10 +211,14 @@ a {
|
|
201 |
.widget-dropdown select:hover,
|
202 |
.widget-text input[type="text"]:hover {
|
203 |
transform: scale(1.003);
|
204 |
-
background-color:
|
205 |
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
|
206 |
}
|
207 |
|
|
|
|
|
|
|
|
|
208 |
|
209 |
/* Slider Checkbox style */
|
210 |
|
|
|
39 |
parser.add_argument('-x', type=int, help='X coordinate for the image in px', metavar='', default=0)
|
40 |
parser.add_argument('-s', '--scale', type=int, help='Scale image in %%', metavar='', default=100)
|
41 |
parser.add_argument('-m', '--mode', type=str, help='Specify "no-repeat" so that the image pattern is not repeated.', metavar='', default='repeat')
|
42 |
+
parser.add_argument('-t', '--transparent', action='store_true', help='Makes input/selection fields 35% more transparent')
|
43 |
args = parser.parse_args()
|
44 |
"""---"""
|
45 |
url_img = args.image
|
|
|
54 |
fix_heigh_img = "-815px"
|
55 |
if env == "Google Colab":
|
56 |
fix_heigh_img = "-775px"
|
57 |
+
# transperent fields
|
58 |
+
t_bg_alpha = "1"
|
59 |
+
if args.transparent:
|
60 |
+
t_bg_alpha = "0.65"
|
61 |
|
62 |
container_background = f'''
|
63 |
<style>
|
64 |
:root {{
|
65 |
+
/* for background container*/
|
66 |
--img_background: url({url_img});
|
67 |
--img_opacity: {opacity_img};
|
68 |
--img_blur: {blur_img}px;
|
|
|
70 |
--image_x: {x_img}px;
|
71 |
--img_scale: {scale_img}%;
|
72 |
--img_mode: {mode_img};
|
73 |
+
--img_height_dif: {fix_heigh_img};
|
74 |
+
|
75 |
+
/* for fields */
|
76 |
+
--bg-field-color: rgba(28, 28, 28, {t_bg_alpha}); /* -> #1c1c1c */
|
77 |
+
--bg-field-color-hover: rgba(38, 38, 38, {t_bg_alpha}); /* -> #262626; */
|
78 |
}}
|
79 |
'''
|
80 |
|
|
|
196 |
.widget-dropdown select,
|
197 |
.widget-text input[type="text"] {
|
198 |
height: 30px;
|
199 |
+
background-color: var(--bg-field-color);
|
200 |
border: 1px solid #262626;
|
201 |
border-radius: 10px;
|
202 |
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
|
|
|
211 |
.widget-dropdown select:hover,
|
212 |
.widget-text input[type="text"]:hover {
|
213 |
transform: scale(1.003);
|
214 |
+
background-color: var(--bg-field-color-hover);
|
215 |
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
|
216 |
}
|
217 |
|
218 |
+
.widget-dropdown option {
|
219 |
+
background-color: #1c1c1c;
|
220 |
+
}
|
221 |
+
|
222 |
|
223 |
/* Slider Checkbox style */
|
224 |
|