studiokit-scaffolding-js 7.0.13-alpha.1 → 7.0.14-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -341,14 +341,6 @@ button.close > span {
|
|
|
341
341
|
* Material UI Buttons
|
|
342
342
|
*/
|
|
343
343
|
|
|
344
|
-
/* Hide bootstrap focus outline on Material buttons since they use their own highlight */
|
|
345
|
-
.MuiButtonBase-root:focus,
|
|
346
|
-
.MuiButtonBase-root:active,
|
|
347
|
-
.MuiButtonBase-root:not(:disabled):not(.disabled):active,
|
|
348
|
-
.MuiButtonBase-root:not(:disabled):not(.disabled):active:focus {
|
|
349
|
-
outline: none;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
344
|
/* Material UI icon spacing */
|
|
353
345
|
.MuiButton-text .MuiButton-label .MuiSvgIcon-root {
|
|
354
346
|
margin-right: 0.4rem;
|
|
@@ -291,14 +291,14 @@
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.quill:focus-within {
|
|
294
|
-
border-color:
|
|
295
|
-
box-shadow: 0 0 0 0.2rem
|
|
294
|
+
border-color: var(--color-focus-border);
|
|
295
|
+
box-shadow: 0 0 0 0.2rem var(--color-focus-outline);
|
|
296
296
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
297
297
|
position: relative;
|
|
298
298
|
z-index: 1;
|
|
299
299
|
|
|
300
300
|
& .ql-container.ql-snow {
|
|
301
|
-
border-color:
|
|
301
|
+
border-color: var(--color-focus-border);
|
|
302
302
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
@@ -176,10 +176,9 @@ th,
|
|
|
176
176
|
box-shadow: none;
|
|
177
177
|
|
|
178
178
|
&:focus {
|
|
179
|
-
border-color:
|
|
179
|
+
border-color: var(--color-focus-border);
|
|
180
180
|
outline: 0;
|
|
181
|
-
|
|
182
|
-
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
|
|
181
|
+
box-shadow: 0 0 0 0.2rem var(--color-focus-outline);
|
|
183
182
|
}
|
|
184
183
|
|
|
185
184
|
&::placeholder {
|
package/lib/css/variables.css
CHANGED
|
@@ -61,6 +61,10 @@
|
|
|
61
61
|
--color-error: var(--color-red);
|
|
62
62
|
--color-success: var(--color-green);
|
|
63
63
|
|
|
64
|
+
/* from Bootstrap's focus styling */
|
|
65
|
+
--color-focus-border: #80bdff;
|
|
66
|
+
--color-focus-outline: rgb(0 123 255 / 25%);
|
|
67
|
+
|
|
64
68
|
/* Border Radius */
|
|
65
69
|
--border-radius: 3px;
|
|
66
70
|
}
|
package/lib/utils/url.js
CHANGED
|
@@ -79,7 +79,7 @@ function hasHttpProtocol(url) {
|
|
|
79
79
|
exports.hasHttpProtocol = hasHttpProtocol;
|
|
80
80
|
function isUrlValid(url) {
|
|
81
81
|
// modified from https://stackoverflow.com/a/3809435
|
|
82
|
-
return /^(https?:\/\/)?[-a-zA-Z0-9@:%._
|
|
82
|
+
return /^(https?:\/\/)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_.~#?&/[\]!$&'*+,;=]*)$/.test(url);
|
|
83
83
|
}
|
|
84
84
|
exports.isUrlValid = isUrlValid;
|
|
85
85
|
/** The total number of tries for `fetchText`, including the initial request. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.14-alpha.1",
|
|
4
4
|
"description": "Common scaffolding for Studio apps at Purdue",
|
|
5
5
|
"repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
|
|
6
6
|
"license": "MIT",
|