material 0.9.24 → 0.9.26
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/.editorconfig +36 -0
- package/.zed/README.md +64 -0
- package/.zed/settings.json +42 -0
- package/CONTRIBUTING.md +125 -0
- package/bun.lock +615 -0
- package/eslint.config.js +63 -0
- package/index.d.ts +77 -0
- package/package.json +1 -1
- package/src/module/extract.js +31 -30
- package/src/module/request.js +22 -2
- package/src/skin/material/base/body.scss +83 -0
- package/src/skin/material/base/{elevation.sass → elevation.scss} +76 -50
- package/src/skin/material/base/{grid.sass → grid.scss} +44 -32
- package/src/skin/material/base/typo.scss +133 -0
- package/src/skin/material/button/action.scss +124 -0
- package/src/skin/material/button/button.scss +245 -0
- package/src/skin/material/button/file.scss +27 -0
- package/src/skin/material/button/floating.scss +160 -0
- package/src/skin/material/button/raised.scss +145 -0
- package/src/skin/material/button/stroked.scss +102 -0
- package/src/skin/material/component/component.scss +11 -0
- package/src/skin/material/component/divider.scss +22 -0
- package/src/skin/material/component/image.scss +9 -0
- package/src/skin/material/component/label.scss +4 -0
- package/src/skin/material/component/navigation.scss +15 -0
- package/src/skin/material/component/progress.scss +176 -0
- package/src/skin/material/component/subheader.scss +5 -0
- package/src/skin/material/component/text.scss +101 -0
- package/src/skin/material/container/appbar.scss +215 -0
- package/src/skin/material/container/banner.scss +44 -0
- package/src/skin/material/container/card.scss +23 -0
- package/src/skin/material/container/container.scss +2 -0
- package/src/skin/material/container/dialog.scss +196 -0
- package/src/skin/material/container/drawer.scss +185 -0
- package/src/skin/material/container/menu.scss +69 -0
- package/src/skin/material/container/snackbar.scss +21 -0
- package/src/skin/material/container/tabs.scss +94 -0
- package/src/skin/material/container/toolbar.scss +207 -0
- package/src/skin/material/control/button.scss +172 -0
- package/src/skin/material/control/checkbox.scss +134 -0
- package/src/skin/material/control/colorpicker.scss +220 -0
- package/src/skin/material/control/menu.scss +25 -0
- package/src/skin/material/control/progress.scss +174 -0
- package/src/skin/material/control/search.scss +50 -0
- package/src/skin/material/control/selecter.scss +152 -0
- package/src/skin/material/control/selector.scss +46 -0
- package/src/skin/material/control/slider.scss +221 -0
- package/src/skin/material/control/snackbar.scss +77 -0
- package/src/skin/material/control/switch.scss +349 -0
- package/src/skin/material/control/switcher.scss +48 -0
- package/src/skin/material/control/textfield.scss +159 -0
- package/src/skin/material/control/tooltip.scss +42 -0
- package/src/skin/material/layout/layout.scss +92 -0
- package/src/skin/material/layout/resizer.scss +97 -0
- package/src/skin/material/material.scss +67 -0
- package/src/skin/material/module/ripple.scss +11 -0
- package/src/skin/material/theme/{default.sass → default.scss} +18 -17
- package/src/skin/material/theme/ocean.scss +30 -0
- package/src/skin/material/theme/theme.scss +4 -0
- package/src/skin/material/view/calendar.scss +219 -0
- package/src/skin/material/view/form.scss +21 -0
- package/src/skin/material/view/grid.scss +134 -0
- package/src/skin/material/view/list.scss +107 -0
- package/src/skin/material/view/listview.scss +221 -0
- package/src/skin/material/view/map.scss +8 -0
- package/src/skin/material/view/page.scss +5 -0
- package/src/skin/material/view/tabview-bak.scss +49 -0
- package/src/skin/material/view/tabview.scss +65 -0
- package/src/skin/material/view/tree.scss +85 -0
- package/src/skin/material/view/{view.sass → view.scss} +1 -0
- package/src/skin/material/base/body.sass +0 -55
- package/src/skin/material/base/typo.sass +0 -107
- package/src/skin/material/button/action.sass +0 -89
- package/src/skin/material/button/button.sass +0 -183
- package/src/skin/material/button/file.sass +0 -24
- package/src/skin/material/button/floating.sass +0 -113
- package/src/skin/material/button/raised.sass +0 -101
- package/src/skin/material/button/stroked.sass +0 -71
- package/src/skin/material/component/component.sass +0 -7
- package/src/skin/material/component/divider.sass +0 -17
- package/src/skin/material/component/image.sass +0 -6
- package/src/skin/material/component/label.sass +0 -2
- package/src/skin/material/component/navigation.sass +0 -13
- package/src/skin/material/component/progress.sass +0 -138
- package/src/skin/material/component/subheader.sass +0 -3
- package/src/skin/material/component/text.sass +0 -85
- package/src/skin/material/container/appbar.sass +0 -167
- package/src/skin/material/container/banner.sass +0 -38
- package/src/skin/material/container/card.sass +0 -19
- package/src/skin/material/container/dialog.sass +0 -172
- package/src/skin/material/container/drawer.sass +0 -159
- package/src/skin/material/container/menu.sass +0 -58
- package/src/skin/material/container/snackbar.sass +0 -18
- package/src/skin/material/container/tabs.sass +0 -75
- package/src/skin/material/container/toolbar.sass +0 -161
- package/src/skin/material/control/button.sass +0 -135
- package/src/skin/material/control/checkbox.sass +0 -105
- package/src/skin/material/control/colorpicker.sass +0 -188
- package/src/skin/material/control/dialog.sass +0 -0
- package/src/skin/material/control/menu.sass +0 -18
- package/src/skin/material/control/progress.sass +0 -136
- package/src/skin/material/control/search.sass +0 -40
- package/src/skin/material/control/selecter.sass +0 -131
- package/src/skin/material/control/selector.sass +0 -38
- package/src/skin/material/control/slider.sass +0 -181
- package/src/skin/material/control/snackbar.sass +0 -65
- package/src/skin/material/control/switch.sass +0 -284
- package/src/skin/material/control/switcher.sass +0 -41
- package/src/skin/material/control/textfield.sass +0 -126
- package/src/skin/material/control/tooltip.sass +0 -36
- package/src/skin/material/layout/layout.sass +0 -69
- package/src/skin/material/layout/resizer.sass +0 -69
- package/src/skin/material/material.sass +0 -66
- package/src/skin/material/module/ripple.sass +0 -9
- package/src/skin/material/theme/ocean.sass +0 -29
- package/src/skin/material/theme/theme.sass +0 -3
- package/src/skin/material/view/calendar.sass +0 -193
- package/src/skin/material/view/form.sass +0 -15
- package/src/skin/material/view/grid.sass +0 -116
- package/src/skin/material/view/list.sass +0 -87
- package/src/skin/material/view/listview.sass +0 -195
- package/src/skin/material/view/map.sass +0 -6
- package/src/skin/material/view/page.sass +0 -4
- package/src/skin/material/view/tabview-bak.sass +0 -40
- package/src/skin/material/view/tabview.sass +0 -55
- package/src/skin/material/view/tree.sass +0 -73
- /package/src/skin/material/{container/container.sass → control/dialog.scss} +0 -0
package/eslint.config.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
|
|
4
|
+
export default [
|
|
5
|
+
// Base configuration
|
|
6
|
+
js.configs.recommended,
|
|
7
|
+
|
|
8
|
+
// Standard JS configuration for material library
|
|
9
|
+
{
|
|
10
|
+
languageOptions: {
|
|
11
|
+
ecmaVersion: 2022,
|
|
12
|
+
sourceType: 'module',
|
|
13
|
+
globals: {
|
|
14
|
+
...globals.browser,
|
|
15
|
+
...globals.es2021,
|
|
16
|
+
// Material library specific globals
|
|
17
|
+
log: 'readonly',
|
|
18
|
+
document: 'readonly',
|
|
19
|
+
window: 'readonly',
|
|
20
|
+
navigator: 'readonly',
|
|
21
|
+
Element: 'readonly',
|
|
22
|
+
HTMLElement: 'readonly',
|
|
23
|
+
Event: 'readonly',
|
|
24
|
+
EventTarget: 'readonly',
|
|
25
|
+
CustomEvent: 'readonly',
|
|
26
|
+
localStorage: 'readonly',
|
|
27
|
+
sessionStorage: 'readonly',
|
|
28
|
+
requestAnimationFrame: 'readonly',
|
|
29
|
+
cancelAnimationFrame: 'readonly'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
rules: {
|
|
33
|
+
// Standard JS rules - core formatting
|
|
34
|
+
'no-var': 'error',
|
|
35
|
+
'prefer-const': 'error',
|
|
36
|
+
'semi': ['error', 'never'],
|
|
37
|
+
'quotes': ['error', 'single', { avoidEscape: true }],
|
|
38
|
+
'space-before-function-paren': ['error', 'always'],
|
|
39
|
+
'object-curly-spacing': ['error', 'always'],
|
|
40
|
+
'comma-spacing': ['error', { before: false, after: true }],
|
|
41
|
+
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
|
42
|
+
'no-trailing-spaces': 'error',
|
|
43
|
+
'eol-last': 'error',
|
|
44
|
+
'no-multiple-empty-lines': ['error', { max: 1 }],
|
|
45
|
+
'indent': ['error', 2],
|
|
46
|
+
'comma-dangle': ['error', 'never'],
|
|
47
|
+
'space-infix-ops': 'error',
|
|
48
|
+
'keyword-spacing': ['error', { before: true, after: true }],
|
|
49
|
+
'space-before-blocks': 'error',
|
|
50
|
+
'arrow-spacing': ['error', { before: true, after: true }]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
// Ignore patterns
|
|
55
|
+
{
|
|
56
|
+
ignores: [
|
|
57
|
+
'node_modules/**',
|
|
58
|
+
'dist/**',
|
|
59
|
+
'build/**',
|
|
60
|
+
'*.min.js'
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare module "material" {
|
|
2
|
+
// Base classes
|
|
3
|
+
export class Component {
|
|
4
|
+
constructor(options?: any);
|
|
5
|
+
options: any;
|
|
6
|
+
element: HTMLElement;
|
|
7
|
+
ui: any;
|
|
8
|
+
underlay?: HTMLElement;
|
|
9
|
+
position(target: HTMLElement): void;
|
|
10
|
+
destroy(): Promise<void>;
|
|
11
|
+
static defaults: any;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class Control extends Component {}
|
|
15
|
+
|
|
16
|
+
export class Element {
|
|
17
|
+
constructor(options?: any);
|
|
18
|
+
static isElement(): boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Components
|
|
22
|
+
export class AppBar extends Component {}
|
|
23
|
+
export class Badge extends Component {}
|
|
24
|
+
export class Button extends Component {}
|
|
25
|
+
export class Card extends Component {}
|
|
26
|
+
export class Checkbox extends Component {}
|
|
27
|
+
export class ColorPicker extends Component {}
|
|
28
|
+
export class DateHour extends Component {}
|
|
29
|
+
export class Dialog extends Component {}
|
|
30
|
+
export class Drawer extends Component {}
|
|
31
|
+
export class File extends Component {}
|
|
32
|
+
export class Form extends Component {}
|
|
33
|
+
export class Image extends Component {}
|
|
34
|
+
export class List extends Component {}
|
|
35
|
+
export class Loading extends Component {}
|
|
36
|
+
export class Menu extends Component {}
|
|
37
|
+
export class Navigation extends Component {}
|
|
38
|
+
export class Progress extends Component {}
|
|
39
|
+
export class Select extends Component {}
|
|
40
|
+
export class Selecter extends Component {}
|
|
41
|
+
export class Snackbar extends Component {}
|
|
42
|
+
export class Slider extends Component {}
|
|
43
|
+
export class Switch extends Component {}
|
|
44
|
+
export class Switcher extends Component {}
|
|
45
|
+
export class Tabs extends Component {}
|
|
46
|
+
export class TabView extends Component {}
|
|
47
|
+
export class Text extends Component {}
|
|
48
|
+
export class Textfield extends Component {}
|
|
49
|
+
export class Toolbar extends Component {}
|
|
50
|
+
export class Tooltip extends Component {}
|
|
51
|
+
export class View extends Component {}
|
|
52
|
+
|
|
53
|
+
// Mixins
|
|
54
|
+
export const EventEmitter: any;
|
|
55
|
+
export const display: any;
|
|
56
|
+
export const build: any;
|
|
57
|
+
export const position: {
|
|
58
|
+
position(target: HTMLElement, position?: any): any;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// Modules
|
|
62
|
+
export const attributes: any;
|
|
63
|
+
export const clone: any;
|
|
64
|
+
export const create: any;
|
|
65
|
+
export const dataset: any;
|
|
66
|
+
export const device: any;
|
|
67
|
+
export const emitter: any;
|
|
68
|
+
export const events: any;
|
|
69
|
+
export const jsonToHTML: any;
|
|
70
|
+
export const mediator: any;
|
|
71
|
+
export const merge: any;
|
|
72
|
+
export const observer: any;
|
|
73
|
+
export const request: any;
|
|
74
|
+
export const ripple: any;
|
|
75
|
+
export const smoothscroll: any;
|
|
76
|
+
export function touch(): boolean;
|
|
77
|
+
}
|
package/package.json
CHANGED
package/src/module/extract.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
|
|
2
1
|
/**
|
|
3
2
|
* extract.e extract a event and the context
|
|
4
3
|
* @param {[type]} str [description]
|
|
5
4
|
* @return {[type]} [description]
|
|
6
5
|
*/
|
|
7
6
|
const e = (instance, ev) => {
|
|
8
|
-
if (!ev) return instance
|
|
7
|
+
if (!ev) return instance;
|
|
9
8
|
else if (!ev.match(/\./)) {
|
|
10
9
|
return {
|
|
11
10
|
element: instance,
|
|
12
|
-
name: ev
|
|
13
|
-
}
|
|
11
|
+
name: ev,
|
|
12
|
+
};
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
let iteration
|
|
17
|
-
const obj = {}
|
|
18
|
-
let element
|
|
15
|
+
let iteration;
|
|
16
|
+
const obj = {};
|
|
17
|
+
let element;
|
|
19
18
|
|
|
20
|
-
const keys = ev.split(
|
|
19
|
+
const keys = ev.split(".");
|
|
21
20
|
|
|
22
|
-
if (keys[0] ===
|
|
23
|
-
element = window
|
|
21
|
+
if (keys[0] === "window") {
|
|
22
|
+
element = window;
|
|
23
|
+
} else if (keys[0] === "document") {
|
|
24
|
+
element = document;
|
|
24
25
|
} else {
|
|
25
26
|
for (let i = 0, l = keys.length; i <= l; i++) {
|
|
26
|
-
const key = keys[i]
|
|
27
|
-
iteration = iteration || instance
|
|
28
|
-
iteration = iteration[key]
|
|
27
|
+
const key = keys[i];
|
|
28
|
+
iteration = iteration || instance;
|
|
29
|
+
iteration = iteration[key];
|
|
29
30
|
|
|
30
31
|
if (i === keys.length - 2) {
|
|
31
|
-
element = iteration
|
|
32
|
+
element = iteration;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
obj.element = element
|
|
37
|
-
obj.name = keys[keys.length - 1]
|
|
38
|
-
return obj
|
|
39
|
-
}
|
|
37
|
+
obj.element = element;
|
|
38
|
+
obj.name = keys[keys.length - 1];
|
|
39
|
+
return obj;
|
|
40
|
+
};
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* extract.f extract a function from a string using dot
|
|
@@ -44,22 +45,22 @@ const e = (instance, ev) => {
|
|
|
44
45
|
* @return {function} The function
|
|
45
46
|
*/
|
|
46
47
|
const f = (instance, func) => {
|
|
47
|
-
if (!func) return
|
|
48
|
+
if (!func) return;
|
|
48
49
|
|
|
49
|
-
if (typeof func ===
|
|
50
|
-
return func
|
|
51
|
-
} else if (!func.match(/\./)) return instance[func]
|
|
52
|
-
let iteration
|
|
50
|
+
if (typeof func === "function") {
|
|
51
|
+
return func;
|
|
52
|
+
} else if (!func.match(/\./)) return instance[func];
|
|
53
|
+
let iteration;
|
|
53
54
|
|
|
54
|
-
const keys = func.split(
|
|
55
|
+
const keys = func.split(".");
|
|
55
56
|
for (let i = 0, l = keys.length; i < l; i++) {
|
|
56
|
-
const key = keys[i]
|
|
57
|
+
const key = keys[i];
|
|
57
58
|
|
|
58
|
-
iteration = iteration || instance
|
|
59
|
-
iteration = iteration[key]
|
|
59
|
+
iteration = iteration || instance;
|
|
60
|
+
iteration = iteration[key];
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
return iteration
|
|
63
|
-
}
|
|
63
|
+
return iteration;
|
|
64
|
+
};
|
|
64
65
|
|
|
65
|
-
export default { e, f }
|
|
66
|
+
export default { e, f };
|
package/src/module/request.js
CHANGED
|
@@ -64,7 +64,22 @@ const request = async (
|
|
|
64
64
|
if (debug) {
|
|
65
65
|
console.error('Response error:', response.status, response.statusText)
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
// Try to parse error response as JSON to preserve backend error data
|
|
69
|
+
let errorData
|
|
70
|
+
try {
|
|
71
|
+
errorData = await response.json()
|
|
72
|
+
} catch (jsonError) {
|
|
73
|
+
// If JSON parsing fails, throw basic error (backward compatible)
|
|
74
|
+
throw { error: `HTTP error! status: ${response.status}` }
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// If we successfully parsed JSON, throw it with all data
|
|
78
|
+
// If we successfully parsed JSON, throw it with all data
|
|
79
|
+
throw {
|
|
80
|
+
error: errorData.error || `HTTP error! status: ${response.status}`,
|
|
81
|
+
...errorData
|
|
82
|
+
}
|
|
68
83
|
}
|
|
69
84
|
|
|
70
85
|
// Handle response based on Accept header
|
|
@@ -77,7 +92,12 @@ const request = async (
|
|
|
77
92
|
if (headers.Accept === 'text/xml') {
|
|
78
93
|
throw error
|
|
79
94
|
} else {
|
|
80
|
-
|
|
95
|
+
// If error is already an object with error field, preserve it
|
|
96
|
+
if (typeof error === 'object' && error.error) {
|
|
97
|
+
throw error
|
|
98
|
+
} else {
|
|
99
|
+
throw { error: error.message || 'Request failed' }
|
|
100
|
+
}
|
|
81
101
|
}
|
|
82
102
|
}
|
|
83
103
|
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
|
|
2
|
+
// HTML Tags General Defintion
|
|
3
|
+
html {
|
|
4
|
+
font-size: 100%;
|
|
5
|
+
line-height: 1.15;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
body {
|
|
11
|
+
color: rgba(0, 0, 0, 0.67);
|
|
12
|
+
font-family: Roboto, arial, serif {
|
|
13
|
+
/* empty */
|
|
14
|
+
}
|
|
15
|
+
font-size: 100%;
|
|
16
|
+
// position: relative
|
|
17
|
+
// display: block
|
|
18
|
+
// height: 100%
|
|
19
|
+
// width: 100%
|
|
20
|
+
// overflow: hidden
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
// user-select: none
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
input, {
|
|
27
|
+
/* empty */
|
|
28
|
+
}
|
|
29
|
+
textarea, {
|
|
30
|
+
/* empty */
|
|
31
|
+
}
|
|
32
|
+
keygen, {
|
|
33
|
+
/* empty */
|
|
34
|
+
}
|
|
35
|
+
select, {
|
|
36
|
+
/* empty */
|
|
37
|
+
}
|
|
38
|
+
button {
|
|
39
|
+
font-size: 1em;
|
|
40
|
+
font-family: Roboto, arial, serif {
|
|
41
|
+
/* empty */
|
|
42
|
+
}
|
|
43
|
+
color: rgb(51, 51, 51);
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
p {
|
|
47
|
+
line-height: 20px;
|
|
48
|
+
padding-top: 6px;
|
|
49
|
+
margin-bottom: 14px;
|
|
50
|
+
letter-spacing: 0;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
|
|
53
|
+
// get rid of outline
|
|
54
|
+
}
|
|
55
|
+
select, {
|
|
56
|
+
/* empty */
|
|
57
|
+
}
|
|
58
|
+
input, {
|
|
59
|
+
/* empty */
|
|
60
|
+
}
|
|
61
|
+
textarea, {
|
|
62
|
+
/* empty */
|
|
63
|
+
}
|
|
64
|
+
button {
|
|
65
|
+
outline: none;
|
|
66
|
+
&:hover {
|
|
67
|
+
outline: none;
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
button {
|
|
72
|
+
user-select: none;
|
|
73
|
+
|
|
74
|
+
// set all container boder-box
|
|
75
|
+
}
|
|
76
|
+
* {
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
|
|
79
|
+
}
|
|
80
|
+
a {
|
|
81
|
+
color: rgba(0, 0, 0, 0.7);
|
|
82
|
+
|
|
83
|
+
}
|
|
@@ -1,50 +1,76 @@
|
|
|
1
|
-
.elevation-z0
|
|
2
|
-
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
.elevation-
|
|
8
|
-
box-shadow: 0px 3px
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.
|
|
12
|
-
|
|
13
|
-
.elevation-
|
|
14
|
-
box-shadow: 0px
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
.elevation-
|
|
20
|
-
box-shadow: 0px 5px
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.
|
|
24
|
-
|
|
25
|
-
.elevation-
|
|
26
|
-
box-shadow: 0px
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
.elevation-
|
|
32
|
-
box-shadow: 0px
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
.
|
|
36
|
-
|
|
37
|
-
.elevation-
|
|
38
|
-
box-shadow: 0px
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
.elevation-
|
|
44
|
-
box-shadow: 0px
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
.elevation-
|
|
50
|
-
box-shadow: 0px
|
|
1
|
+
.elevation-z0 {
|
|
2
|
+
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);
|
|
3
|
+
}
|
|
4
|
+
.elevation-z1 {
|
|
5
|
+
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
|
|
6
|
+
}
|
|
7
|
+
.elevation-z2 {
|
|
8
|
+
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
9
|
+
}
|
|
10
|
+
.elevation-z3 {
|
|
11
|
+
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
|
|
12
|
+
}
|
|
13
|
+
.elevation-z4 {
|
|
14
|
+
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
|
|
15
|
+
}
|
|
16
|
+
.elevation-z5 {
|
|
17
|
+
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12);
|
|
18
|
+
}
|
|
19
|
+
.elevation-z6 {
|
|
20
|
+
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
|
|
21
|
+
}
|
|
22
|
+
.elevation-z7 {
|
|
23
|
+
box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);
|
|
24
|
+
}
|
|
25
|
+
.elevation-z8 {
|
|
26
|
+
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
27
|
+
}
|
|
28
|
+
.elevation-z9 {
|
|
29
|
+
box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12);
|
|
30
|
+
}
|
|
31
|
+
.elevation-z10 {
|
|
32
|
+
box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12);
|
|
33
|
+
}
|
|
34
|
+
.elevation-z11 {
|
|
35
|
+
box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12);
|
|
36
|
+
}
|
|
37
|
+
.elevation-z12 {
|
|
38
|
+
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);
|
|
39
|
+
}
|
|
40
|
+
.elevation-z13 {
|
|
41
|
+
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12);
|
|
42
|
+
}
|
|
43
|
+
.elevation-z14 {
|
|
44
|
+
box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12);
|
|
45
|
+
}
|
|
46
|
+
.elevation-z15 {
|
|
47
|
+
box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12);
|
|
48
|
+
}
|
|
49
|
+
.elevation-z16 {
|
|
50
|
+
box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);
|
|
51
|
+
}
|
|
52
|
+
.elevation-z17 {
|
|
53
|
+
box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12);
|
|
54
|
+
}
|
|
55
|
+
.elevation-z18 {
|
|
56
|
+
box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12);
|
|
57
|
+
}
|
|
58
|
+
.elevation-z19 {
|
|
59
|
+
box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12);
|
|
60
|
+
}
|
|
61
|
+
.elevation-z20 {
|
|
62
|
+
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12);
|
|
63
|
+
}
|
|
64
|
+
.elevation-z21 {
|
|
65
|
+
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12);
|
|
66
|
+
}
|
|
67
|
+
.elevation-z22 {
|
|
68
|
+
box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12);
|
|
69
|
+
}
|
|
70
|
+
.elevation-z23 {
|
|
71
|
+
box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12);
|
|
72
|
+
}
|
|
73
|
+
.elevation-z24 {
|
|
74
|
+
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
|
|
75
|
+
|
|
76
|
+
}
|
|
@@ -3,61 +3,73 @@
|
|
|
3
3
|
/////////////////
|
|
4
4
|
|
|
5
5
|
// Defaults which you can freely override
|
|
6
|
-
$column-width: 60px
|
|
7
|
-
$gutter-width: 20px
|
|
8
|
-
$columns: 12
|
|
6
|
+
$column-width: 60px;
|
|
7
|
+
$gutter-width: 20px;
|
|
8
|
+
$columns: 12;
|
|
9
9
|
|
|
10
10
|
// Utility function — you should never need to modify this
|
|
11
|
-
@function gridsystem-width($columns:$columns)
|
|
12
|
-
@return ($column-width * $columns) + ($gutter-width * $columns)
|
|
11
|
+
@function gridsystem-width($columns:$columns) {
|
|
12
|
+
@return ($column-width * $columns) + ($gutter-width * $columns);
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
// Set $total-width to 100% for a fluid layout
|
|
16
|
-
|
|
16
|
+
}
|
|
17
|
+
$total-width: gridsystem-width($columns);
|
|
17
18
|
|
|
18
19
|
// Uncomment these two lines and the star-hack width/margin lines below to enable sub-pixel fix for IE6 & 7. See http://tylertate.com/blog/2012/01/05/subpixel-rounding.html
|
|
19
20
|
// $min-width: 999999
|
|
20
21
|
// $correction: 0.5 / $min-width * 100
|
|
21
22
|
|
|
22
23
|
// The micro clearfix http://nicolasgallagher.com/micro-clearfix-hack/
|
|
23
|
-
@mixin clearfix()
|
|
24
|
-
*zoom:1
|
|
24
|
+
@mixin clearfix() {
|
|
25
|
+
*zoom:1;
|
|
25
26
|
|
|
26
|
-
&:before,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
&:before, {
|
|
28
|
+
/* empty */
|
|
29
|
+
}
|
|
30
|
+
&:after {
|
|
31
|
+
content:"";
|
|
32
|
+
display:table;
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
&:after {
|
|
36
|
+
clear:both;
|
|
33
37
|
|
|
34
38
|
//////////
|
|
35
39
|
// GRID //
|
|
36
40
|
//////////
|
|
37
41
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
body {
|
|
45
|
+
width: 100%;
|
|
46
|
+
@include clearfix();
|
|
41
47
|
|
|
42
48
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
}
|
|
50
|
+
@mixin row($columns:$columns) {
|
|
51
|
+
display: block;
|
|
52
|
+
width: $total-width*(($gutter-width + gridsystem-width($columns))/gridsystem-width($columns));
|
|
53
|
+
margin: 0 $total-width*((($gutter-width*.5)/gridsystem-width($columns))*-1);
|
|
47
54
|
// *width: $total-width*(($gutter-width + gridsystem-width($columns))/gridsystem-width($columns))-$correction
|
|
48
55
|
// *margin: 0 $total-width*((($gutter-width*.5)/gridsystem-width($columns))*-1)-$correction
|
|
49
|
-
@include clearfix()
|
|
56
|
+
@include clearfix();
|
|
50
57
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
}
|
|
59
|
+
@mixin column($x,$columns:$columns) {
|
|
60
|
+
display: inline;
|
|
61
|
+
float: left;
|
|
62
|
+
width: $total-width*(((($gutter-width+$column-width)*$x)-$gutter-width) / gridsystem-width($columns));
|
|
63
|
+
margin: 0 $total-width*(($gutter-width*.5)/gridsystem-width($columns));
|
|
56
64
|
// *width: $total-width*(((($gutter-width+$column-width)*$x)-$gutter-width) / gridsystem-width($columns))-$correction
|
|
57
65
|
// *margin: 0 $total-width*(($gutter-width*.5)/gridsystem-width($columns))-$correction
|
|
58
66
|
|
|
59
|
-
|
|
60
|
-
|
|
67
|
+
}
|
|
68
|
+
@mixin push($offset:1) {
|
|
69
|
+
margin-left: $total-width*((($gutter-width+$column-width)*$offset) / gridsystem-width($columns)) + $total-width*(($gutter-width*.5)/gridsystem-width($columns));
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
@mixin pull($offset:1) {
|
|
73
|
+
margin-right: $total-width*((($gutter-width+$column-width)*$offset) / gridsystem-width($columns)) + $total-width*(($gutter-width*.5)/gridsystem-width($columns));
|
|
61
74
|
|
|
62
|
-
|
|
63
|
-
margin-right: $total-width*((($gutter-width+$column-width)*$offset) / gridsystem-width($columns)) + $total-width*(($gutter-width*.5)/gridsystem-width($columns))
|
|
75
|
+
}
|