@materializecss/materialize 2.0.2-alpha → 2.0.3-alpha
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/dist/css/materialize.css +1336 -118
- package/dist/css/materialize.min.css +2 -2
- package/dist/js/materialize.js +27 -25
- package/dist/js/materialize.min.js +2 -2
- package/dist/js/materialize.min.js.map +1 -1
- package/dist/src/autocomplete.d.ts +143 -0
- package/dist/src/autocomplete.d.ts.map +1 -0
- package/dist/src/bounding.d.ts +7 -0
- package/dist/src/bounding.d.ts.map +1 -0
- package/dist/src/buttons.d.ts +65 -0
- package/dist/src/buttons.d.ts.map +1 -0
- package/dist/src/cards.d.ts +4 -0
- package/dist/src/cards.d.ts.map +1 -0
- package/dist/src/carousel.d.ts +131 -0
- package/dist/src/carousel.d.ts.map +1 -0
- package/dist/src/characterCounter.d.ts +37 -0
- package/dist/src/characterCounter.d.ts.map +1 -0
- package/dist/src/chips.d.ts +131 -0
- package/dist/src/chips.d.ts.map +1 -0
- package/dist/src/collapsible.d.ts +74 -0
- package/dist/src/collapsible.d.ts.map +1 -0
- package/dist/src/component.d.ts +74 -0
- package/dist/src/component.d.ts.map +1 -0
- package/dist/src/datepicker.d.ts +248 -0
- package/dist/src/datepicker.d.ts.map +1 -0
- package/dist/src/dropdown.d.ts +148 -0
- package/dist/src/dropdown.d.ts.map +1 -0
- package/dist/src/edges.d.ts +7 -0
- package/dist/src/edges.d.ts.map +1 -0
- package/dist/src/forms.d.ts +12 -0
- package/dist/src/forms.d.ts.map +1 -0
- package/dist/src/global.d.ts +60 -0
- package/dist/src/global.d.ts.map +1 -0
- package/dist/src/index.d.ts +27 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/materialbox.d.ts +92 -0
- package/dist/src/materialbox.d.ts.map +1 -0
- package/dist/src/modal.d.ts +119 -0
- package/dist/src/modal.d.ts.map +1 -0
- package/dist/src/parallax.d.ts +40 -0
- package/dist/src/parallax.d.ts.map +1 -0
- package/dist/src/pushpin.d.ts +52 -0
- package/dist/src/pushpin.d.ts.map +1 -0
- package/dist/src/range.d.ts +41 -0
- package/dist/src/range.d.ts.map +1 -0
- package/dist/src/scrollspy.d.ts +62 -0
- package/dist/src/scrollspy.d.ts.map +1 -0
- package/dist/src/select.d.ts +77 -0
- package/dist/src/select.d.ts.map +1 -0
- package/dist/src/sidenav.d.ts +122 -0
- package/dist/src/sidenav.d.ts.map +1 -0
- package/dist/src/slider.d.ts +103 -0
- package/dist/src/slider.d.ts.map +1 -0
- package/dist/src/tabs.d.ts +80 -0
- package/dist/src/tabs.d.ts.map +1 -0
- package/dist/src/tapTarget.d.ts +59 -0
- package/dist/src/tapTarget.d.ts.map +1 -0
- package/dist/src/timepicker.d.ts +208 -0
- package/dist/src/timepicker.d.ts.map +1 -0
- package/dist/src/toasts.d.ts +90 -0
- package/dist/src/toasts.d.ts.map +1 -0
- package/dist/src/tooltip.d.ts +112 -0
- package/dist/src/tooltip.d.ts.map +1 -0
- package/dist/src/utils.d.ts +97 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/waves.d.ts +16 -0
- package/dist/src/waves.d.ts.map +1 -0
- package/package.json +4 -1
- package/sass/components/_cards.scss +1 -1
- package/sass/components/_global.scss +50 -0
- package/sass/components/_grid.scss +28 -47
- package/sass/components/_navbar.scss +26 -26
- package/sass/components/_pulse.scss +1 -0
- package/sass/components/_sidenav.scss +3 -14
- package/sass/components/_theme_variables.scss +27 -47
- package/sass/components/_variables.scss +2 -0
- package/sass/components/colors.module.scss +180 -0
- package/sass/components/theme.dark.module.scss +32 -0
- package/sass/components/theme.light.module.scss +32 -0
- package/sass/components/tokens.module.scss +272 -0
- package/sass/components/typography.module.scss +150 -0
- package/sass/materialize.scss +7 -1
- package/src/carousel.ts +1 -1
- package/src/chips.ts +1 -1
- package/src/datepicker.ts +1 -1
- package/src/dropdown.ts +0 -3
- package/src/forms.ts +20 -11
- package/src/global.ts +21 -23
- package/src/index.ts +26 -0
- package/src/select.ts +1 -1
- package/src/timepicker.ts +1 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Edges } from './edges';
|
|
2
|
+
import { Bounding } from './bounding';
|
|
3
|
+
/**
|
|
4
|
+
* Class with utilitary functions for global usage.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Utils {
|
|
7
|
+
/** Specifies wether tab is pressed or not. */
|
|
8
|
+
static tabPressed: boolean;
|
|
9
|
+
/** Specifies wether there is a key pressed. */
|
|
10
|
+
static keyDown: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Key maps.
|
|
13
|
+
*/
|
|
14
|
+
static keys: {
|
|
15
|
+
TAB: string[];
|
|
16
|
+
ENTER: string[];
|
|
17
|
+
ESC: string[];
|
|
18
|
+
BACKSPACE: string[];
|
|
19
|
+
ARROW_UP: string[];
|
|
20
|
+
ARROW_DOWN: string[];
|
|
21
|
+
ARROW_LEFT: string[];
|
|
22
|
+
ARROW_RIGHT: string[];
|
|
23
|
+
DELETE: string[];
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Detects when a key is pressed.
|
|
27
|
+
* @param e Event instance.
|
|
28
|
+
*/
|
|
29
|
+
static docHandleKeydown(e: KeyboardEvent): void;
|
|
30
|
+
/**
|
|
31
|
+
* Detects when a key is released.
|
|
32
|
+
* @param e Event instance.
|
|
33
|
+
*/
|
|
34
|
+
static docHandleKeyup(e: KeyboardEvent): void;
|
|
35
|
+
/**
|
|
36
|
+
* Detects when document is focused.
|
|
37
|
+
* @param e Event instance.
|
|
38
|
+
*/
|
|
39
|
+
static docHandleFocus(e: FocusEvent): void;
|
|
40
|
+
/**
|
|
41
|
+
* Detects when document is not focused.
|
|
42
|
+
* @param e Event instance.
|
|
43
|
+
*/
|
|
44
|
+
static docHandleBlur(e: FocusEvent): void;
|
|
45
|
+
/**
|
|
46
|
+
* Generates a unique string identifier.
|
|
47
|
+
*/
|
|
48
|
+
static guid(): string;
|
|
49
|
+
/**
|
|
50
|
+
* Checks for exceeded edges
|
|
51
|
+
* @param container Container element.
|
|
52
|
+
* @param bounding Bounding rect.
|
|
53
|
+
* @param offset Element offset.
|
|
54
|
+
*/
|
|
55
|
+
static checkWithinContainer(container: HTMLElement, bounding: Bounding, offset: number): Edges;
|
|
56
|
+
/**
|
|
57
|
+
* Checks if element can be aligned in multiple directions.
|
|
58
|
+
* @param el Element to be inspected.
|
|
59
|
+
* @param container Container element.
|
|
60
|
+
* @param bounding Bounding rect.
|
|
61
|
+
* @param offset Element offset.
|
|
62
|
+
*/
|
|
63
|
+
static checkPossibleAlignments(el: HTMLElement, container: HTMLElement, bounding: Bounding, offset: number): {
|
|
64
|
+
top: boolean;
|
|
65
|
+
right: boolean;
|
|
66
|
+
bottom: boolean;
|
|
67
|
+
left: boolean;
|
|
68
|
+
spaceOnTop: number;
|
|
69
|
+
spaceOnRight: number;
|
|
70
|
+
spaceOnBottom: number;
|
|
71
|
+
spaceOnLeft: number;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves target element id from trigger.
|
|
75
|
+
* @param trigger Trigger element.
|
|
76
|
+
*/
|
|
77
|
+
static getIdFromTrigger(trigger: HTMLElement): string;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves document scroll postion from top.
|
|
80
|
+
*/
|
|
81
|
+
static getDocumentScrollTop(): number;
|
|
82
|
+
/**
|
|
83
|
+
* Retrieves document scroll postion from left.
|
|
84
|
+
*/
|
|
85
|
+
static getDocumentScrollLeft(): number;
|
|
86
|
+
/**
|
|
87
|
+
* Fires the given function after a certain ammount of time.
|
|
88
|
+
* @param func Function to be fired.
|
|
89
|
+
* @param wait Wait time.
|
|
90
|
+
* @param options Additional options.
|
|
91
|
+
*/
|
|
92
|
+
static throttle(func: Function, wait: number, options?: Partial<{
|
|
93
|
+
leading: boolean;
|
|
94
|
+
trailing: boolean;
|
|
95
|
+
}>): () => any;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,qBAAa,KAAK;IAChB,8CAA8C;IAC9C,MAAM,CAAC,UAAU,EAAE,OAAO,CAAS;IACnC,+CAA+C;IAC/C,MAAM,CAAC,OAAO,EAAE,OAAO,CAAS;IAEhC;;OAEG;IACH,MAAM,CAAC,IAAI;;;;;;;;;;MAUT;IAEF;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,CAAC,EAAE,aAAa;IAOxC;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa;IAOtC;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,UAAU;IAMnC;;;OAGG;IACH,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,UAAU;IAIlC;;OAEG;IACH,MAAM,CAAC,IAAI,IAAI,MAAM;IASrB;;;;;OAKG;IACH,MAAM,CAAC,oBAAoB,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK;IA+C9F;;;;;;OAMG;IACH,MAAM,CAAC,uBAAuB,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM;aAEjG,OAAO;eACL,OAAO;gBACN,OAAO;cACT,OAAO;oBACD,MAAM;sBACJ,MAAM;uBACL,MAAM;qBACR,MAAM;;IA4DvB;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM;IASrD;;OAEG;IACH,MAAM,CAAC,oBAAoB,IAAI,MAAM;IAIrC;;OAEG;IACH,MAAM,CAAC,qBAAqB,IAAI,MAAM;IAItC;;;;;OAKG;WACW,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,OAAO,CAAC;QAAC,OAAO,EAAC,OAAO,CAAC;QAAA,QAAQ,EAAC,OAAO,CAAA;KAAC,CAAQ;CA6BjH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type RGBColor = {
|
|
2
|
+
r: number;
|
|
3
|
+
g: number;
|
|
4
|
+
b: number;
|
|
5
|
+
};
|
|
6
|
+
type Position = {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
export declare class Waves {
|
|
11
|
+
private static _offset;
|
|
12
|
+
static renderWaveEffect(targetElement: HTMLElement, position?: Position | null, color?: RGBColor | null): void;
|
|
13
|
+
static Init(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=waves.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waves.d.ts","sourceRoot":"","sources":["../../src/waves.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAA;AAED,KAAK,QAAQ,GAAG;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAA;AAED,qBAAa,KAAK;IAEhB,OAAO,CAAC,MAAM,CAAC,OAAO;WAWR,gBAAgB,CAAC,aAAa,EAAE,WAAW,EAAE,QAAQ,GAAE,QAAQ,GAAC,IAAW,EAAE,KAAK,GAAE,QAAQ,GAAC,IAAW,GAAG,IAAI;IAyB7H,MAAM,CAAC,IAAI;CAoBZ"}
|
package/package.json
CHANGED
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
"description": "Builds Materialize distribution packages",
|
|
4
4
|
"author": "Alvin Wang, Alan Chang",
|
|
5
5
|
"homepage": "https://materializecss.github.io/materialize/",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.3-alpha",
|
|
7
7
|
"main": "dist/js/materialize.js",
|
|
8
|
+
"module": "src/index.ts",
|
|
8
9
|
"style": "dist/css/materialize.css",
|
|
9
10
|
"sass": "sass/materialize.scss",
|
|
11
|
+
"typings": "dist/src/index.d.ts",
|
|
10
12
|
"license": "MIT",
|
|
11
13
|
"repository": {
|
|
12
14
|
"type": "git",
|
|
@@ -37,6 +39,7 @@
|
|
|
37
39
|
"devDependencies": {
|
|
38
40
|
"@commitlint/cli": "^17.0.3",
|
|
39
41
|
"@commitlint/config-conventional": "^17.0.3",
|
|
42
|
+
"@types/node": "^20.5.2",
|
|
40
43
|
"autoprefixer": "^7.1.1",
|
|
41
44
|
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
|
42
45
|
"babel-preset-es2015": "^6.24.1",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.card {
|
|
13
|
+
overflow: hidden;
|
|
13
14
|
position: relative;
|
|
14
15
|
//margin: $element-top-margin 0 $element-bottom-margin 0;
|
|
15
16
|
background-color: $card-bg-color;
|
|
@@ -17,7 +18,6 @@
|
|
|
17
18
|
border-radius: 12px;
|
|
18
19
|
@extend .z-depth-1;
|
|
19
20
|
|
|
20
|
-
|
|
21
21
|
.card-title {
|
|
22
22
|
font-size: 24px;
|
|
23
23
|
font-weight: 300;
|
|
@@ -396,6 +396,11 @@ ul.staggered-list li {
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
+
.page-footer ul {
|
|
400
|
+
padding-left: 0;
|
|
401
|
+
list-style-type: none;
|
|
402
|
+
}
|
|
403
|
+
|
|
399
404
|
// Tables
|
|
400
405
|
table, th, td {
|
|
401
406
|
border: none;
|
|
@@ -666,3 +671,48 @@ td, th {
|
|
|
666
671
|
.no-padding {
|
|
667
672
|
padding: 0 !important;
|
|
668
673
|
}
|
|
674
|
+
|
|
675
|
+
/**************************
|
|
676
|
+
Utility Spacing Classes
|
|
677
|
+
**************************/
|
|
678
|
+
|
|
679
|
+
$spacing-shortcuts: ("margin": "m", "padding": "p") !default;
|
|
680
|
+
$spacing-directions: ("top": "t", "right": "r", "bottom": "b", "left": "l") !default;
|
|
681
|
+
$spacing-horizontal: "x" !default;
|
|
682
|
+
$spacing-vertical: "y" !default;
|
|
683
|
+
$spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5": 1.5rem, "6": 3rem, "auto": auto) !default;
|
|
684
|
+
|
|
685
|
+
@each $property, $shortcut in $spacing-shortcuts{
|
|
686
|
+
@each $name, $value in $spacing-values{
|
|
687
|
+
// All direction spacing
|
|
688
|
+
|
|
689
|
+
.#{$shortcut}-#{$name}{
|
|
690
|
+
#{$property}: $value !important;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
// (t, b, r, l) spacing
|
|
694
|
+
@each $direction, $suffix in $spacing-directions{
|
|
695
|
+
.#{$shortcut}#{$suffix}-#{$name}{
|
|
696
|
+
#{$property}-#{$direction}: $value !important
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
// x spacing
|
|
701
|
+
@if $spacing-horizontal != null{
|
|
702
|
+
.#{$shortcut}#{$spacing-horizontal}-#{$name}{
|
|
703
|
+
#{$property}-left: $value !important;
|
|
704
|
+
#{$property}-right: $value !important;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// y spacing
|
|
709
|
+
@if $spacing-vertical != null{
|
|
710
|
+
.#{$shortcut}#{$spacing-vertical}-#{$name}{
|
|
711
|
+
#{$property}-top: $value !important;
|
|
712
|
+
#{$property}-bottom: $value !important;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
}
|
|
718
|
+
}
|
|
@@ -16,28 +16,9 @@
|
|
|
16
16
|
width: 70%;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
/*
|
|
20
|
-
.col .row {
|
|
21
|
-
margin-left: (-1 * $gutter-width * 0.5);
|
|
22
|
-
margin-right: (-1 * $gutter-width * 0.5);
|
|
23
|
-
}
|
|
24
|
-
*/
|
|
25
19
|
|
|
26
20
|
.section {
|
|
27
|
-
padding
|
|
28
|
-
padding-bottom: 1rem;
|
|
29
|
-
// No documented
|
|
30
|
-
/*
|
|
31
|
-
&.no-pad {
|
|
32
|
-
padding: 0;
|
|
33
|
-
}
|
|
34
|
-
&.no-pad-bot {
|
|
35
|
-
padding-bottom: 0;
|
|
36
|
-
}
|
|
37
|
-
&.no-pad-top {
|
|
38
|
-
padding-top: 0;
|
|
39
|
-
}
|
|
40
|
-
*/
|
|
21
|
+
padding: 1rem 0;
|
|
41
22
|
}
|
|
42
23
|
|
|
43
24
|
// Mixins to eliminate code repetition
|
|
@@ -80,15 +61,15 @@
|
|
|
80
61
|
.s11 { grid-column: auto / span 11; }
|
|
81
62
|
.s12 { grid-column: auto / span 12; }
|
|
82
63
|
|
|
83
|
-
.offset-s1
|
|
84
|
-
.offset-s2
|
|
85
|
-
.offset-s3
|
|
86
|
-
.offset-s4
|
|
87
|
-
.offset-s5
|
|
88
|
-
.offset-s6
|
|
89
|
-
.offset-s7
|
|
90
|
-
.offset-s8
|
|
91
|
-
.offset-s9
|
|
64
|
+
.offset-s1 { grid-column-start: 3; }
|
|
65
|
+
.offset-s2 { grid-column-start: 2; }
|
|
66
|
+
.offset-s3 { grid-column-start: 4; }
|
|
67
|
+
.offset-s4 { grid-column-start: 5; }
|
|
68
|
+
.offset-s5 { grid-column-start: 6; }
|
|
69
|
+
.offset-s6 { grid-column-start: 7; }
|
|
70
|
+
.offset-s7 { grid-column-start: 8; }
|
|
71
|
+
.offset-s8 { grid-column-start: 9; }
|
|
72
|
+
.offset-s9 { grid-column-start: 10; }
|
|
92
73
|
.offset-s10 { grid-column-start: 11; }
|
|
93
74
|
.offset-s11 { grid-column-start: 12; }
|
|
94
75
|
|
|
@@ -107,15 +88,15 @@
|
|
|
107
88
|
.m11 { grid-column: auto / span 11; }
|
|
108
89
|
.m12 { grid-column: auto / span 12; }
|
|
109
90
|
|
|
110
|
-
.offset-m1
|
|
111
|
-
.offset-m2
|
|
112
|
-
.offset-m3
|
|
113
|
-
.offset-m4
|
|
114
|
-
.offset-m5
|
|
115
|
-
.offset-m6
|
|
116
|
-
.offset-m7
|
|
117
|
-
.offset-m8
|
|
118
|
-
.offset-m9
|
|
91
|
+
.offset-m1 { grid-column-start: 2; }
|
|
92
|
+
.offset-m2 { grid-column-start: 3; }
|
|
93
|
+
.offset-m3 { grid-column-start: 4; }
|
|
94
|
+
.offset-m4 { grid-column-start: 5; }
|
|
95
|
+
.offset-m5 { grid-column-start: 6; }
|
|
96
|
+
.offset-m6 { grid-column-start: 7; }
|
|
97
|
+
.offset-m7 { grid-column-start: 8; }
|
|
98
|
+
.offset-m8 { grid-column-start: 9; }
|
|
99
|
+
.offset-m9 { grid-column-start: 10; }
|
|
119
100
|
.offset-m10 { grid-column-start: 11; }
|
|
120
101
|
.offset-m11 { grid-column-start: 12; }
|
|
121
102
|
}
|
|
@@ -163,15 +144,15 @@
|
|
|
163
144
|
.xl11 { grid-column: auto / span 11; }
|
|
164
145
|
.xl12 { grid-column: auto / span 12; }
|
|
165
146
|
|
|
166
|
-
.offset-xl1
|
|
167
|
-
.offset-xl2
|
|
168
|
-
.offset-xl3
|
|
169
|
-
.offset-xl4
|
|
170
|
-
.offset-xl5
|
|
171
|
-
.offset-xl6
|
|
172
|
-
.offset-xl7
|
|
173
|
-
.offset-xl8
|
|
174
|
-
.offset-xl9
|
|
147
|
+
.offset-xl1 { grid-column-start: 2; }
|
|
148
|
+
.offset-xl2 { grid-column-start: 3; }
|
|
149
|
+
.offset-xl3 { grid-column-start: 4; }
|
|
150
|
+
.offset-xl4 { grid-column-start: 5; }
|
|
151
|
+
.offset-xl5 { grid-column-start: 6; }
|
|
152
|
+
.offset-xl6 { grid-column-start: 7; }
|
|
153
|
+
.offset-xl7 { grid-column-start: 8; }
|
|
154
|
+
.offset-xl8 { grid-column-start: 9; }
|
|
155
|
+
.offset-xl9 { grid-column-start: 10; }
|
|
175
156
|
.offset-xl10 { grid-column-start: 11; }
|
|
176
157
|
.offset-xl11 { grid-column-start: 12; }
|
|
177
158
|
}
|
|
@@ -15,7 +15,7 @@ nav {
|
|
|
15
15
|
|
|
16
16
|
color: $navbar-font-color;
|
|
17
17
|
@extend .z-depth-1;
|
|
18
|
-
background-color: $
|
|
18
|
+
background-color: $secondary-container-color;
|
|
19
19
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: $navbar-height-mobile;
|
|
@@ -119,38 +119,38 @@ nav {
|
|
|
119
119
|
list-style-type: none;
|
|
120
120
|
margin: 0;
|
|
121
121
|
|
|
122
|
-
li {
|
|
122
|
+
& > li {
|
|
123
123
|
transition: background-color .3s;
|
|
124
124
|
float: left;
|
|
125
125
|
padding: 0;
|
|
126
|
-
}
|
|
127
126
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
&.active {
|
|
137
|
-
background-color: $navbar-bg-color-focus;
|
|
138
|
-
}
|
|
127
|
+
& > a {
|
|
128
|
+
transition: background-color .3s;
|
|
129
|
+
font-size: $navbar-font-size;
|
|
130
|
+
color: $navbar-font-color;
|
|
131
|
+
display: block;
|
|
132
|
+
padding: 0 15px;
|
|
133
|
+
cursor: pointer;
|
|
139
134
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
&.active {
|
|
136
|
+
background-color: $navbar-bg-color-focus;
|
|
137
|
+
}
|
|
143
138
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
margin-right: 15px;
|
|
148
|
-
display: inline-block;
|
|
139
|
+
&:hover:not(.active) {
|
|
140
|
+
background-color: $navbar-bg-color-hover;
|
|
141
|
+
}
|
|
149
142
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
143
|
+
&.btn, &.btn-large, &.btn-flat, &.btn-floating {
|
|
144
|
+
margin-top: -2px;
|
|
145
|
+
margin-left: 15px;
|
|
146
|
+
margin-right: 15px;
|
|
147
|
+
display: inline-block;
|
|
148
|
+
|
|
149
|
+
& > .material-icons, & > .material-symbols-outlined,
|
|
150
|
+
& > .material-symbols-rounded, & > .material-symbols-sharp {
|
|
151
|
+
height: inherit;
|
|
152
|
+
line-height: inherit;
|
|
153
|
+
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
background-color: $button-flat-focus-background-color;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
li.active > a:not(.collapsible-header)
|
|
42
|
-
color: $font-on-
|
|
43
|
-
background-color: $
|
|
41
|
+
li.active > a:not(.collapsible-header):not(.btn):not(.btn-large):not(.btn-small):not(.btn-flat):not(.btn-large):not(.btn-floating) {
|
|
42
|
+
color: $font-on-secondary-container-color;
|
|
43
|
+
background-color: $secondary-container-color;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.collapsible-body > ul { padding-left: 10px; }
|
|
@@ -201,16 +201,6 @@
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
/*
|
|
205
|
-
.sidenav .collapsible-body > ul:not(.collapsible) > li.active,
|
|
206
|
-
.sidenav.sidenav-fixed .collapsible-body > ul:not(.collapsible) > li.active {
|
|
207
|
-
background-color: $primary-color;
|
|
208
|
-
a:not(.btn) {
|
|
209
|
-
color: $font-on-primary-color-main;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
*/
|
|
213
|
-
|
|
214
204
|
.sidenav .collapsible-body {
|
|
215
205
|
padding: 0;
|
|
216
206
|
}
|
|
@@ -239,6 +229,5 @@
|
|
|
239
229
|
}
|
|
240
230
|
.collapsible-body {
|
|
241
231
|
border: none;
|
|
242
|
-
background-color: $collapsible-bg-color;
|
|
243
232
|
}
|
|
244
233
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
:root, :host {
|
|
2
|
-
--surface-color:
|
|
3
|
-
--background-color:
|
|
2
|
+
--surface-color: var(--md-sys-color-surface);
|
|
3
|
+
--background-color: var(--md-sys-color-background);
|
|
4
4
|
|
|
5
|
-
--font-color-main:
|
|
6
|
-
--font-color-medium:
|
|
7
|
-
--font-color-disabled:
|
|
5
|
+
--font-color-main: var(--md-sys-color-on-background);
|
|
6
|
+
--font-color-medium: var(--md-sys-color-on-surface-variant);
|
|
7
|
+
--font-color-disabled: var(--md-sys-color-on-surface);
|
|
8
8
|
|
|
9
|
-
--font-on-primary-color-main:
|
|
10
|
-
--font-on-primary-color-dark-main:
|
|
11
|
-
--font-on-primary-color-dark-medium:
|
|
12
|
-
--font-on-primary-color-medium:
|
|
9
|
+
--font-on-primary-color-main: var(--md-sys-color-on-primary);
|
|
10
|
+
--font-on-primary-color-dark-main: var(--md-sys-color-on-primary-dark);
|
|
11
|
+
--font-on-primary-color-dark-medium: var(--md-sys-color-on-surface-variant-dark);
|
|
12
|
+
--font-on-primary-color-medium: var(--md-sys-color-on-surface-variant);
|
|
13
13
|
--font-on-primary-color-disabled: rgba(255, 255, 255, 0.38);
|
|
14
|
-
--font-on-secondary-color-main:
|
|
14
|
+
--font-on-secondary-color-main: var(--md-sys-color-on-secondary);
|
|
15
15
|
|
|
16
16
|
--hover-color: rgba(0, 0, 0, 0.04);
|
|
17
17
|
--focus-color: rgba(0, 0, 0, 0.12);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--background-color-disabled: rgba(0, 0, 0, 0.12);
|
|
21
21
|
--background-color-level-4dp: rgba(0, 0, 0, 0.09);
|
|
22
22
|
--background-color-level-16dp-solid: var(--surface-color);
|
|
23
|
-
--background-color-slight-emphasis: rgba(0, 0, 0, 0.
|
|
23
|
+
--background-color-slight-emphasis: rgba(0, 0, 0, 0.08);
|
|
24
24
|
--background-color-card: var(--surface-color);
|
|
25
25
|
|
|
26
26
|
--tooltip-background-color: #313033;
|
|
@@ -30,41 +30,32 @@
|
|
|
30
30
|
|
|
31
31
|
--error-color: #F44336;
|
|
32
32
|
|
|
33
|
-
--slider-track-color:
|
|
34
|
-
--switch-thumb-off-color:
|
|
33
|
+
--slider-track-color: var(--md-sys-color-shadow-light);
|
|
34
|
+
--switch-thumb-off-color: var(--md-ref-palette-primary100);
|
|
35
35
|
|
|
36
36
|
--carousel-indicator-color: rgba(255, 255, 255, 0.45);
|
|
37
|
-
--carousel-indicator-active-color:
|
|
37
|
+
--carousel-indicator-active-color: var(--md-ref-palette-primary100);
|
|
38
38
|
|
|
39
|
-
--primary-color:
|
|
40
|
-
--primary-color-dark:
|
|
41
|
-
--primary-color-
|
|
42
|
-
--primary-color-raised-
|
|
43
|
-
--primary-color-raised-focus-solid: #44C4B8;
|
|
39
|
+
--primary-color: var(--md-sys-color-primary);
|
|
40
|
+
--primary-color-dark: var(--md-sys-color-primary-dark);
|
|
41
|
+
--primary-color-raised-hover-solid: var(--md-ref-palette-primary70);
|
|
42
|
+
--primary-color-raised-focus-solid: var(--md-ref-palette-primary80);
|
|
44
43
|
--primary-color-font-medium-color: rgba(var(--primary-color-numeric), 0.7);
|
|
45
44
|
--primary-color-font-disabled-color: rgba(var(--primary-color-numeric), 0.4);
|
|
46
45
|
--primary-color-hover-opaque: rgba(var(--primary-color-numeric), 0.06);
|
|
47
46
|
--primary-color-focus-opaque: rgba(var(--primary-color-numeric), 0.18);
|
|
48
47
|
|
|
49
|
-
--secondary-color:
|
|
50
|
-
--secondary-color-hover-solid:
|
|
51
|
-
--secondary-color-focus-solid:
|
|
48
|
+
--secondary-color: var(--md-sys-color-secondary);
|
|
49
|
+
--secondary-color-hover-solid: var(--md-ref-palette-secondary70);
|
|
50
|
+
--secondary-color-focus-solid: var(--md-ref-palette-secondary80);
|
|
51
|
+
--secondary-container-color: var(--md-sys-color-secondary-container);
|
|
52
|
+
--font-on-secondary-container-color: var(--md-sys-color-on-secondary-container);
|
|
52
53
|
|
|
53
54
|
--md_sys_color_on-surface: 28, 27, 31;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
:
|
|
57
|
-
|
|
58
|
-
--surface-color: #242424;
|
|
59
|
-
|
|
60
|
-
--font-color-main: rgba(255, 255, 255, 0.87);
|
|
61
|
-
--font-color-medium: rgba(255, 255, 255, 0.60);
|
|
62
|
-
--font-color-disabled: rgba(255, 255, 255, 0.38);
|
|
63
|
-
|
|
64
|
-
--font-on-primary-color-main: rgba(0, 0, 0, 0.87);
|
|
65
|
-
--font-on-primary-color-dark-main: rgba(255, 255, 255, 0.87);
|
|
66
|
-
--font-on-primary-color-dark-medium: rgba(255, 255, 255, 0.60);
|
|
67
|
-
--font-on-primary-color-medium: rgba(0, 0, 0, 0.56);
|
|
57
|
+
//important: when all variables are assigned this could be removed as will be no difference
|
|
58
|
+
:root[theme='dark'] {
|
|
68
59
|
--font-on-primary-color-disabled: rgba(0, 0, 0, 0.38);
|
|
69
60
|
|
|
70
61
|
--hover-color: rgba(255, 255, 255, 0.04);
|
|
@@ -73,26 +64,15 @@
|
|
|
73
64
|
|
|
74
65
|
--background-color-disabled: rgba(255, 255, 255, 0.12);
|
|
75
66
|
--background-color-level-4dp: rgba(255, 255, 255, 0.09);
|
|
76
|
-
--background-color-level-16dp-solid: #262626;
|
|
77
|
-
--background-color-card: var(--surface-color);
|
|
78
67
|
--background-color-slight-emphasis: rgba(255, 255, 255, 0.05);
|
|
79
68
|
|
|
80
69
|
--separator-color: #424242; /* borders between components */
|
|
81
70
|
|
|
82
71
|
--error-color: #CF6679;
|
|
83
72
|
|
|
84
|
-
--slider-track-color: rgba(255, 255, 255, 0.26);
|
|
85
73
|
--switch-thumb-off-color: #bababa;
|
|
86
74
|
|
|
87
|
-
--
|
|
88
|
-
|
|
89
|
-
--primary-color-numeric: 179, 157, 219;
|
|
90
|
-
--primary-color-raised-hover-solid: #C2ACEA;
|
|
91
|
-
--primary-color-raised-focus-solid: #DBC5FF;
|
|
75
|
+
--md_sys_color_on-surface: 230, 225, 229;
|
|
76
|
+
}
|
|
92
77
|
|
|
93
|
-
--secondary-color: #CDDC39;
|
|
94
|
-
--secondary-color-hover-solid: #DCEB48;
|
|
95
|
-
--secondary-color-focus-solid: #F5FF61;
|
|
96
78
|
|
|
97
|
-
--md_sys_color_on-surface: 230, 225, 229;
|
|
98
|
-
}
|
|
@@ -62,6 +62,8 @@ $font-on-secondary-color-main: var(--font-on-secondary-color-main) !default;
|
|
|
62
62
|
$secondary-color: var(--secondary-color) !default;
|
|
63
63
|
$secondary-color-when-hovered-solid: var(--secondary-color-hover-solid) !default;
|
|
64
64
|
$secondary-color-when-focused-solid: var(--secondary-color-focus-solid) !default;
|
|
65
|
+
$secondary-container-color: var(--secondary-container-color) !default;
|
|
66
|
+
$font-on-secondary-container-color: var(--font-on-secondary-container-color) !default;
|
|
65
67
|
|
|
66
68
|
$success-color: color("green", "base") !default;
|
|
67
69
|
$error-color: var(--error-color) !default;
|