@rio-cloud/rio-uikit 0.15.0-beta-47 → 0.15.0-beta-48
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.
- package/README.md +12 -8
- package/lib/components/applicationLayout/ApplicationLayoutBody.js +3 -1
- package/lib/components/assetTree/AssetTree.less +1 -0
- package/lib/components/bottomSheet/BottomSheet.js +157 -0
- package/lib/components/button/Button.js +110 -7
- package/lib/components/button/ToggleButton.js +11 -108
- package/lib/components/charts/BarChart.js +2 -1
- package/lib/components/charts/PieChart.js +2 -2
- package/lib/components/datepicker/DatePicker.less +4 -0
- package/lib/components/selects/DropdownHeader.js +2 -6
- package/lib/components/spinner/Spinner.less +2 -2
- package/lib/components/states/MaintenanceState.js +25 -0
- package/lib/es/BottomSheet.d.ts +5 -0
- package/lib/es/BottomSheet.js +15 -0
- package/lib/es/MaintenanceState.d.ts +5 -0
- package/lib/es/MaintenanceState.js +15 -0
- package/lib/es/SortDirection.d.ts +4 -2
- package/lib/es/useAfterMount.d.ts +1 -1
- package/lib/es/useClickOutside.d.ts +1 -1
- package/lib/es/useClipboard.d.ts +1 -1
- package/lib/es/useDebugInfo.d.ts +4 -0
- package/lib/es/useDebugInfo.js +15 -0
- package/lib/es/useEffectOnce.d.ts +1 -1
- package/lib/es/useElementSize.d.ts +1 -1
- package/lib/es/useEsc.d.ts +1 -1
- package/lib/es/useEvent.d.ts +1 -1
- package/lib/es/useInterval.d.ts +1 -1
- package/lib/es/useKey.d.ts +1 -1
- package/lib/es/useLocalStorage.d.ts +4 -0
- package/lib/es/useLocalStorage.js +13 -0
- package/lib/es/useOnScreen.d.ts +4 -0
- package/lib/es/useOnScreen.js +15 -0
- package/lib/es/useOnlineStatus.d.ts +4 -0
- package/lib/es/useOnlineStatus.js +15 -0
- package/lib/es/useRenderCount.d.ts +4 -0
- package/lib/es/useRenderCount.js +15 -0
- package/lib/es/useSessionStorage.d.ts +4 -0
- package/lib/es/useSessionStorage.js +13 -0
- package/lib/es/useStateWithValidation.d.ts +1 -1
- package/lib/es/useTimeout.d.ts +1 -1
- package/lib/es/useWindowResize.d.ts +1 -1
- package/lib/hooks/useDebugInfo.js +55 -0
- package/lib/hooks/useOnScreen.js +46 -0
- package/lib/hooks/useOnlineStatus.js +30 -0
- package/lib/hooks/useRenderCount.js +17 -0
- package/lib/hooks/useStorage.js +53 -0
- package/lib/style/css/_exports/rio-uikit-core.less +0 -1
- package/lib/style/css/_exports/rio-website.less +41 -0
- package/lib/style/css/_exports/vw-uikit.less +1 -1
- package/lib/style/css/rio-theme/buttons.less +5 -1
- package/lib/style/css/rio-theme/dropdowns.less +6 -25
- package/lib/style/css/rio-theme/navbar.less +1 -1
- package/lib/style/css/rio-theme/navs.less +19 -0
- package/lib/style/css/utils/_imports.less +1 -0
- package/lib/style/css/utils/responsive/display.less +2 -0
- package/lib/style/css/utils/responsive/grid.less +6 -0
- package/lib/types.ts +67 -2
- package/lib/version.json +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _useDebugInfo2.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var _useDebugInfo2 = _interopRequireDefault(require("../hooks/useDebugInfo"));
|
package/lib/es/useEsc.d.ts
CHANGED
package/lib/es/useEvent.d.ts
CHANGED
package/lib/es/useInterval.d.ts
CHANGED
package/lib/es/useKey.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _useStorage.useLocalStorage;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _useStorage = require("../hooks/useStorage");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _useOnScreen2.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var _useOnScreen2 = _interopRequireDefault(require("../hooks/useOnScreen"));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _useOnlineStatus2.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var _useOnlineStatus2 = _interopRequireDefault(require("../hooks/useOnlineStatus"));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _useRenderCount2.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var _useRenderCount2 = _interopRequireDefault(require("../hooks/useRenderCount"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _useStorage.useSessionStorage;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _useStorage = require("../hooks/useStorage");
|
package/lib/es/useTimeout.d.ts
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = useDebugInfo;
|
|
9
|
+
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
|
|
14
|
+
var _useRenderCount = _interopRequireDefault(require("./useRenderCount"));
|
|
15
|
+
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
+
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
|
+
|
|
20
|
+
var logStyle = ["color: #4c5667", "background-color: #e5ebf0", "padding: 2px 4px", "border-radius: 2px"].join(";");
|
|
21
|
+
|
|
22
|
+
function useDebugInfo(componentName, props) {
|
|
23
|
+
var renderCount = (0, _useRenderCount.default)();
|
|
24
|
+
var changedProps = (0, _react.useRef)({});
|
|
25
|
+
var previousProps = (0, _react.useRef)(props);
|
|
26
|
+
var lastRenderTimestamp = (0, _react.useRef)(Date.now());
|
|
27
|
+
var propKeys = Object.keys(_objectSpread(_objectSpread({}, props), previousProps));
|
|
28
|
+
changedProps.current = propKeys.reduce(function (obj, key) {
|
|
29
|
+
if (props[key] === previousProps.current[key]) {
|
|
30
|
+
return obj;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return _objectSpread(_objectSpread({}, obj), {}, (0, _defineProperty2.default)({}, key, {
|
|
34
|
+
previous: previousProps.current[key],
|
|
35
|
+
current: props[key]
|
|
36
|
+
}));
|
|
37
|
+
}, {});
|
|
38
|
+
var info = {
|
|
39
|
+
renderCount: renderCount,
|
|
40
|
+
changedProps: changedProps.current,
|
|
41
|
+
timeSinceLastRender: Date.now() - lastRenderTimestamp.current,
|
|
42
|
+
lastRenderTimestamp: lastRenderTimestamp.current
|
|
43
|
+
};
|
|
44
|
+
(0, _react.useEffect)(function () {
|
|
45
|
+
previousProps.current = props;
|
|
46
|
+
lastRenderTimestamp.current = Date.now();
|
|
47
|
+
|
|
48
|
+
if (console) {
|
|
49
|
+
console.groupCollapsed("%c[debug-info] ".concat(componentName), logStyle);
|
|
50
|
+
console.log(info);
|
|
51
|
+
console.groupEnd();
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return info;
|
|
55
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = useOnScreen;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
|
|
14
|
+
// Inspired by https://github.com/WebDevSimplified/useful-custom-react-hooks/blob/main/src/14-useOnScreen/useOnScreen.js
|
|
15
|
+
function useOnScreen(ref) {
|
|
16
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
17
|
+
rootMargin: '0px'
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var _useState = (0, _react.useState)(false),
|
|
21
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
22
|
+
isVisible = _useState2[0],
|
|
23
|
+
setIsVisible = _useState2[1];
|
|
24
|
+
|
|
25
|
+
(0, _react.useEffect)(function () {
|
|
26
|
+
if (!ref.current) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var observer = new IntersectionObserver(function (_ref) {
|
|
31
|
+
var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
|
|
32
|
+
entry = _ref2[0];
|
|
33
|
+
|
|
34
|
+
return setIsVisible(entry.isIntersecting);
|
|
35
|
+
}, options);
|
|
36
|
+
observer.observe(ref.current);
|
|
37
|
+
return function () {
|
|
38
|
+
if (!ref.current) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
observer.unobserve(ref.current);
|
|
43
|
+
};
|
|
44
|
+
}, [ref.current, options]);
|
|
45
|
+
return isVisible;
|
|
46
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = useOnlineStatus;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
|
|
14
|
+
var _useEvent = _interopRequireDefault(require("./useEvent"));
|
|
15
|
+
|
|
16
|
+
// Inspired by https://github.com/WebDevSimplified/useful-custom-react-hooks/blob/main/src/26-useOnlineStatus/useOnlineStatus.js
|
|
17
|
+
function useOnlineStatus() {
|
|
18
|
+
var _useState = (0, _react.useState)(navigator.onLine),
|
|
19
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
20
|
+
online = _useState2[0],
|
|
21
|
+
setOnline = _useState2[1];
|
|
22
|
+
|
|
23
|
+
(0, _useEvent.default)('online', function () {
|
|
24
|
+
return setOnline(navigator.onLine);
|
|
25
|
+
}, false, window);
|
|
26
|
+
(0, _useEvent.default)('offline', function () {
|
|
27
|
+
return setOnline(navigator.onLine);
|
|
28
|
+
}, false, window);
|
|
29
|
+
return online;
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = useRenderCount;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
// Inspired by https://github.com/WebDevSimplified/useful-custom-react-hooks/blob/main/src/27-useRenderCount/useRenderCount.js
|
|
11
|
+
function useRenderCount() {
|
|
12
|
+
var count = (0, _react.useRef)(1);
|
|
13
|
+
(0, _react.useEffect)(function () {
|
|
14
|
+
count.current++;
|
|
15
|
+
});
|
|
16
|
+
return count.current;
|
|
17
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useLocalStorage = useLocalStorage;
|
|
9
|
+
exports.useSessionStorage = useSessionStorage;
|
|
10
|
+
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
|
|
13
|
+
var _react = require("react");
|
|
14
|
+
|
|
15
|
+
// Inspired by https://github.com/WebDevSimplified/useful-custom-react-hooks/blob/main/src/8-useStorage/useStorage.js
|
|
16
|
+
function useLocalStorage(key, defaultValue) {
|
|
17
|
+
return useStorage(key, defaultValue, window.localStorage);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function useSessionStorage(key, defaultValue) {
|
|
21
|
+
return useStorage(key, defaultValue, window.sessionStorage);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function useStorage(key, defaultValue, storageObject) {
|
|
25
|
+
var _useState = (0, _react.useState)(function () {
|
|
26
|
+
var jsonValue = storageObject.getItem(key);
|
|
27
|
+
|
|
28
|
+
if (jsonValue) {
|
|
29
|
+
return JSON.parse(jsonValue);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (typeof defaultValue === 'function') {
|
|
33
|
+
return defaultValue();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return defaultValue;
|
|
37
|
+
}),
|
|
38
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
39
|
+
value = _useState2[0],
|
|
40
|
+
setValue = _useState2[1];
|
|
41
|
+
|
|
42
|
+
(0, _react.useEffect)(function () {
|
|
43
|
+
if (!value) {
|
|
44
|
+
return storageObject.removeItem(key);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
storageObject.setItem(key, JSON.stringify(value));
|
|
48
|
+
}, [key, value, storageObject]);
|
|
49
|
+
var remove = (0, _react.useCallback)(function () {
|
|
50
|
+
setValue(undefined);
|
|
51
|
+
}, []);
|
|
52
|
+
return [value, setValue, remove];
|
|
53
|
+
}
|
|
@@ -98,7 +98,6 @@
|
|
|
98
98
|
@import (less) '../../../components/applicationLayout/ApplicationLayout.less';
|
|
99
99
|
@import (less) '../../../components/assetTree/AssetTree.less';
|
|
100
100
|
@import (less) '../../../components/autosuggest/AutoSuggest.less';
|
|
101
|
-
@import (less) '../../../components/button/ToggleButton.less';
|
|
102
101
|
@import (less) '../../../components/checkbox/Checkbox.less';
|
|
103
102
|
@import (less) '../../../components/clearableInput/ClearableInput.less';
|
|
104
103
|
@import (less) '../../../components/counter/Counter.less';
|
|
@@ -631,6 +631,35 @@ html.show-handheld-navigation {
|
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
|
|
634
|
+
&.headline-block {
|
|
635
|
+
.section-content-container-row {
|
|
636
|
+
display: flex;
|
|
637
|
+
flex-direction: column;
|
|
638
|
+
|
|
639
|
+
.section-content-container-headline {
|
|
640
|
+
padding: 10px 20px;
|
|
641
|
+
background: @color-black;
|
|
642
|
+
text-transform: uppercase;
|
|
643
|
+
width: fit-content;
|
|
644
|
+
|
|
645
|
+
&:before {
|
|
646
|
+
display: block;
|
|
647
|
+
content: "+";
|
|
648
|
+
width: 20px;
|
|
649
|
+
height: 20px;
|
|
650
|
+
position: absolute;
|
|
651
|
+
top: 0px;
|
|
652
|
+
left: 0px;
|
|
653
|
+
transform: translate(-100%, -100%);
|
|
654
|
+
text-align: center;
|
|
655
|
+
line-height: 20px;
|
|
656
|
+
color: @color-black;
|
|
657
|
+
font-size: 40px;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
634
663
|
// Section Wrapper Inner Container
|
|
635
664
|
.section-content-container {
|
|
636
665
|
height: 100%;
|
|
@@ -1502,6 +1531,18 @@ html.show-handheld-navigation {
|
|
|
1502
1531
|
}
|
|
1503
1532
|
}
|
|
1504
1533
|
|
|
1534
|
+
&-double-col-padding {
|
|
1535
|
+
.section-layout > .section-layout-container {
|
|
1536
|
+
padding-left: 0;
|
|
1537
|
+
padding-right: 0;
|
|
1538
|
+
|
|
1539
|
+
[class*="col-"] {
|
|
1540
|
+
padding-left: 20px;
|
|
1541
|
+
padding-right: 20px;
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1505
1546
|
&-man {
|
|
1506
1547
|
.section-layout {
|
|
1507
1548
|
.section-layout-container {
|
|
@@ -79,6 +79,10 @@
|
|
|
79
79
|
padding: 0;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
&.btn-toggle.active {
|
|
83
|
+
box-shadow: inset 0 0 4px 1px rgb(90 101 102 / 60%);
|
|
84
|
+
}
|
|
85
|
+
|
|
82
86
|
&-toolbar {
|
|
83
87
|
display: flex;
|
|
84
88
|
flex-wrap: wrap;
|
|
@@ -397,7 +401,7 @@
|
|
|
397
401
|
&:before {
|
|
398
402
|
.rioglyph;
|
|
399
403
|
content: "\e9c7";
|
|
400
|
-
color: @
|
|
404
|
+
color: @brand-primary;
|
|
401
405
|
animation: spinning 1s linear infinite;
|
|
402
406
|
font-size: 20px;
|
|
403
407
|
}
|
|
@@ -32,8 +32,10 @@
|
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
line-height: 1.25;
|
|
34
34
|
padding: 7px 13px;
|
|
35
|
+
margin: 2px 6px;
|
|
35
36
|
position: relative;
|
|
36
37
|
user-select: none;
|
|
38
|
+
border-radius: 4px;
|
|
37
39
|
|
|
38
40
|
&:active:focus {
|
|
39
41
|
outline: 0;
|
|
@@ -47,17 +49,11 @@
|
|
|
47
49
|
&:last-child:not(:first-child) {
|
|
48
50
|
margin-bottom: 5px;
|
|
49
51
|
}
|
|
50
|
-
|
|
51
|
-
.TagManager & {
|
|
52
|
-
&:first-child:not(:last-child) {
|
|
53
|
-
margin-top: 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
52
|
}
|
|
57
53
|
|
|
58
54
|
> .active > a {
|
|
59
55
|
color: inherit;
|
|
60
|
-
background-color: inherit;
|
|
56
|
+
background-color: inherit;
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
.menuitem:focus {
|
|
@@ -66,47 +62,32 @@
|
|
|
66
62
|
|
|
67
63
|
> .dropdown-header {
|
|
68
64
|
display: flex;
|
|
69
|
-
padding:
|
|
65
|
+
padding: 5px 10px;
|
|
70
66
|
pointer-events: none;
|
|
71
67
|
align-items: center;
|
|
72
68
|
|
|
73
|
-
.dropdown-header-line {
|
|
74
|
-
flex: 1 1 auto;
|
|
75
|
-
|
|
76
|
-
hr {
|
|
77
|
-
border-width: 2px;
|
|
78
|
-
margin: 0;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
69
|
&:not(.center) {
|
|
83
70
|
margin-top: 15px;
|
|
84
71
|
|
|
85
72
|
~ li:not(.dropdown-header) a {
|
|
86
73
|
padding-left: 20px;
|
|
87
74
|
}
|
|
88
|
-
|
|
89
|
-
.dropdown-header-line:first-child {
|
|
90
|
-
flex: 0 0 auto;
|
|
91
|
-
width: 8px;
|
|
92
|
-
}
|
|
93
75
|
}
|
|
94
76
|
|
|
95
77
|
.dropdown-header-text {
|
|
96
78
|
background: @color-white;
|
|
97
|
-
color: @gray
|
|
79
|
+
color: lighten(@gray, 5%);
|
|
98
80
|
font-size: 12px;
|
|
99
81
|
font-weight: @text-medium;
|
|
100
82
|
line-height: 1.25;
|
|
101
83
|
max-width: calc(~"100% - 30px");
|
|
102
|
-
padding: 1px 5px 2px 5px;
|
|
103
84
|
text-align: center;
|
|
104
85
|
text-transform: uppercase;
|
|
105
86
|
}
|
|
106
87
|
}
|
|
107
88
|
|
|
108
89
|
> .divider {
|
|
109
|
-
margin:
|
|
90
|
+
margin: 3px 6px;
|
|
110
91
|
}
|
|
111
92
|
}
|
|
112
93
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import '../bootstrap/navbar.less';
|
|
2
2
|
|
|
3
3
|
@navbar-height: 50px;
|
|
4
|
-
@navbar-application-dropdown-width: 300px;
|
|
5
4
|
@navbar-height-without-border: @navbar-height - 1;
|
|
5
|
+
@navbar-application-dropdown-width: 300px;
|
|
6
6
|
@navbar-padding-horizontal: @grid-gutter-width;
|
|
7
7
|
@navbar-padding-vertical: 15px;
|
|
8
8
|
@navbar-margin-bottom: @navbar-padding-vertical;
|
|
@@ -164,6 +164,25 @@
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
&-filled {
|
|
168
|
+
background: @gray-lightest;
|
|
169
|
+
border-radius: 5px;
|
|
170
|
+
box-shadow: none !important;
|
|
171
|
+
padding: 5px;
|
|
172
|
+
|
|
173
|
+
> li.active,
|
|
174
|
+
> li:hover {
|
|
175
|
+
.shadow-default;
|
|
176
|
+
background: @color-white;
|
|
177
|
+
border-radius: 5px;
|
|
178
|
+
font-weight: 600;
|
|
179
|
+
|
|
180
|
+
> a, > span, > div {
|
|
181
|
+
box-shadow: none !important;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
167
186
|
&.nav-justified {
|
|
168
187
|
@media (min-width: 0) {
|
|
169
188
|
display: flex;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@import (multiple) "responsive/display.less";
|
|
8
8
|
@import (multiple) "responsive/flexbox.less";
|
|
9
9
|
@import (multiple) "responsive/floating.less";
|
|
10
|
+
@import (multiple) "responsive/grid.less";
|
|
10
11
|
@import (multiple) "responsive/hyphens.less";
|
|
11
12
|
@import (multiple) "responsive/overflow.less";
|
|
12
13
|
@import (multiple) "responsive/position.less";
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
.display-inline-block@{suffix} { display: inline-block !important }
|
|
3
3
|
.display-flex@{suffix} { display: flex !important }
|
|
4
4
|
.display-inline-flex@{suffix} { display: inline-flex !important }
|
|
5
|
+
.display-grid@{suffix} { display: grid !important }
|
|
6
|
+
.display-inline-grid@{suffix} { display: inline-grid !important }
|
|
5
7
|
.display-inline@{suffix} { display: inline !important }
|
|
6
8
|
.display-contents@{suffix} { display: contents !important}
|
|
7
9
|
.display-none@{suffix} { display: none !important }
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* Grid - Basics */
|
|
2
|
+
.grid-template-columns-2@{suffix} { grid-template-columns: repeat(2, auto) !important }
|
|
3
|
+
.grid-template-columns-3@{suffix} { grid-template-columns: repeat(3, auto) !important }
|
|
4
|
+
.grid-template-columns-4@{suffix} { grid-template-columns: repeat(4, auto) !important }
|
|
5
|
+
.grid-template-columns-5@{suffix} { grid-template-columns: repeat(5, auto) !important }
|
|
6
|
+
.grid-template-columns-6@{suffix} { grid-template-columns: repeat(6, auto) !important }
|