material 0.9.25 → 0.9.27

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.
Files changed (118) hide show
  1. package/package.json +1 -1
  2. package/src/skin/material/base/body.scss +64 -0
  3. package/src/skin/material/base/{elevation.sass → elevation.scss} +75 -50
  4. package/src/skin/material/base/{grid.sass → grid.scss} +40 -32
  5. package/src/skin/material/base/typo.scss +132 -0
  6. package/src/skin/material/button/action.scss +112 -0
  7. package/src/skin/material/button/button.scss +239 -0
  8. package/src/skin/material/button/file.scss +27 -0
  9. package/src/skin/material/button/floating.scss +156 -0
  10. package/src/skin/material/button/raised.scss +141 -0
  11. package/src/skin/material/button/stroked.scss +97 -0
  12. package/src/skin/material/component/component.scss +8 -0
  13. package/src/skin/material/component/divider.scss +21 -0
  14. package/src/skin/material/component/image.scss +8 -0
  15. package/src/skin/material/component/label.scss +3 -0
  16. package/src/skin/material/component/navigation.scss +15 -0
  17. package/src/skin/material/component/progress.scss +166 -0
  18. package/src/skin/material/component/subheader.scss +4 -0
  19. package/src/skin/material/component/text.scss +100 -0
  20. package/src/skin/material/container/appbar.scss +202 -0
  21. package/src/skin/material/container/banner.scss +43 -0
  22. package/src/skin/material/container/card.scss +22 -0
  23. package/src/skin/material/container/container.scss +2 -0
  24. package/src/skin/material/container/dialog.scss +192 -0
  25. package/src/skin/material/container/drawer.scss +176 -0
  26. package/src/skin/material/container/menu.scss +66 -0
  27. package/src/skin/material/container/snackbar.scss +21 -0
  28. package/src/skin/material/container/tabs.scss +93 -0
  29. package/src/skin/material/container/toolbar.scss +193 -0
  30. package/src/skin/material/control/button.scss +169 -0
  31. package/src/skin/material/control/checkbox.scss +131 -0
  32. package/src/skin/material/control/colorpicker.scss +218 -0
  33. package/src/skin/material/control/menu.scss +21 -0
  34. package/src/skin/material/control/progress.scss +166 -0
  35. package/src/skin/material/control/search.scss +49 -0
  36. package/src/skin/material/control/selecter.scss +150 -0
  37. package/src/skin/material/control/selector.scss +44 -0
  38. package/src/skin/material/control/slider.scss +219 -0
  39. package/src/skin/material/control/snackbar.scss +74 -0
  40. package/src/skin/material/control/switch.scss +345 -0
  41. package/src/skin/material/control/switcher.scss +47 -0
  42. package/src/skin/material/control/textfield.scss +152 -0
  43. package/src/skin/material/control/tooltip.scss +40 -0
  44. package/src/skin/material/layout/layout.scss +88 -0
  45. package/src/skin/material/layout/resizer.scss +77 -0
  46. package/src/skin/material/material.scss +67 -0
  47. package/src/skin/material/module/ripple.scss +10 -0
  48. package/src/skin/material/theme/{default.sass → default.scss} +18 -17
  49. package/src/skin/material/theme/ocean.scss +30 -0
  50. package/src/skin/material/theme/theme.scss +4 -0
  51. package/src/skin/material/view/calendar.scss +214 -0
  52. package/src/skin/material/view/form.scss +20 -0
  53. package/src/skin/material/view/grid.scss +133 -0
  54. package/src/skin/material/view/list.scss +105 -0
  55. package/src/skin/material/view/listview.scss +214 -0
  56. package/src/skin/material/view/map.scss +7 -0
  57. package/src/skin/material/view/page.scss +4 -0
  58. package/src/skin/material/view/tabview-bak.scss +48 -0
  59. package/src/skin/material/view/tabview.scss +63 -0
  60. package/src/skin/material/view/tree.scss +84 -0
  61. package/src/skin/material/view/{view.sass → view.scss} +1 -0
  62. package/src/skin/material/base/body.sass +0 -55
  63. package/src/skin/material/base/typo.sass +0 -107
  64. package/src/skin/material/button/action.sass +0 -89
  65. package/src/skin/material/button/button.sass +0 -183
  66. package/src/skin/material/button/file.sass +0 -24
  67. package/src/skin/material/button/floating.sass +0 -113
  68. package/src/skin/material/button/raised.sass +0 -101
  69. package/src/skin/material/button/stroked.sass +0 -71
  70. package/src/skin/material/component/component.sass +0 -7
  71. package/src/skin/material/component/divider.sass +0 -17
  72. package/src/skin/material/component/image.sass +0 -6
  73. package/src/skin/material/component/label.sass +0 -2
  74. package/src/skin/material/component/navigation.sass +0 -13
  75. package/src/skin/material/component/progress.sass +0 -138
  76. package/src/skin/material/component/subheader.sass +0 -3
  77. package/src/skin/material/component/text.sass +0 -85
  78. package/src/skin/material/container/appbar.sass +0 -167
  79. package/src/skin/material/container/banner.sass +0 -38
  80. package/src/skin/material/container/card.sass +0 -19
  81. package/src/skin/material/container/dialog.sass +0 -172
  82. package/src/skin/material/container/drawer.sass +0 -159
  83. package/src/skin/material/container/menu.sass +0 -58
  84. package/src/skin/material/container/snackbar.sass +0 -18
  85. package/src/skin/material/container/tabs.sass +0 -75
  86. package/src/skin/material/container/toolbar.sass +0 -161
  87. package/src/skin/material/control/button.sass +0 -135
  88. package/src/skin/material/control/checkbox.sass +0 -105
  89. package/src/skin/material/control/colorpicker.sass +0 -188
  90. package/src/skin/material/control/dialog.sass +0 -0
  91. package/src/skin/material/control/menu.sass +0 -18
  92. package/src/skin/material/control/progress.sass +0 -136
  93. package/src/skin/material/control/search.sass +0 -40
  94. package/src/skin/material/control/selecter.sass +0 -131
  95. package/src/skin/material/control/selector.sass +0 -38
  96. package/src/skin/material/control/slider.sass +0 -181
  97. package/src/skin/material/control/snackbar.sass +0 -65
  98. package/src/skin/material/control/switch.sass +0 -284
  99. package/src/skin/material/control/switcher.sass +0 -41
  100. package/src/skin/material/control/textfield.sass +0 -126
  101. package/src/skin/material/control/tooltip.sass +0 -36
  102. package/src/skin/material/layout/layout.sass +0 -69
  103. package/src/skin/material/layout/resizer.sass +0 -69
  104. package/src/skin/material/material.sass +0 -66
  105. package/src/skin/material/module/ripple.sass +0 -9
  106. package/src/skin/material/theme/ocean.sass +0 -29
  107. package/src/skin/material/theme/theme.sass +0 -3
  108. package/src/skin/material/view/calendar.sass +0 -193
  109. package/src/skin/material/view/form.sass +0 -15
  110. package/src/skin/material/view/grid.sass +0 -116
  111. package/src/skin/material/view/list.sass +0 -87
  112. package/src/skin/material/view/listview.sass +0 -195
  113. package/src/skin/material/view/map.sass +0 -6
  114. package/src/skin/material/view/page.sass +0 -4
  115. package/src/skin/material/view/tabview-bak.sass +0 -40
  116. package/src/skin/material/view/tabview.sass +0 -55
  117. package/src/skin/material/view/tree.sass +0 -73
  118. /package/src/skin/material/{container/container.sass → control/dialog.scss} +0 -0
@@ -0,0 +1,152 @@
1
+ .material-textfield {
2
+ display: block;
3
+ position: relative;
4
+ margin-right: 16px;
5
+ padding-top: 8px;
6
+ margin-bottom: 16px;
7
+ vertical-align: top;
8
+ .textfield-label {
9
+ transition: .2s;
10
+ color: rgba(0, 0, 0, 0.3);
11
+ position: absolute;
12
+ font-size: .7em;
13
+ top: -2px;
14
+ }
15
+
16
+ .textfield-underline {
17
+ position: absolute;
18
+ opacity: 0;
19
+ left: 50%;
20
+ bottom: 0px;
21
+ height: 2px;
22
+ width: 2px;
23
+ background-color: #4891F4;
24
+ transition: .1s;
25
+ }
26
+
27
+ &.textfield-error {
28
+ .textfield-label {
29
+ color: #F44336;
30
+ color: #D6392C;
31
+ }
32
+
33
+ textarea,
34
+ input {
35
+ border-bottom: 1px solid #F44336;
36
+ }
37
+ }
38
+
39
+ &.hide {
40
+ display: none;
41
+
42
+ // states
43
+ }
44
+ }
45
+ .material-textfield {
46
+ &.is-focused {
47
+ .textfield-label {
48
+ transition: .2s;
49
+ }
50
+
51
+ .textfield-underline {
52
+ opacity: 1;
53
+ display: block;
54
+ width: 100%;
55
+ left: 0;
56
+ transition: .1s;
57
+ background-color: $primary-color;
58
+ }
59
+ }
60
+
61
+ &.is-empty {
62
+ .textfield-label {
63
+ transition: .2s;
64
+ pointer-events: none;
65
+ position: absolute;
66
+ top: 20px;
67
+ left: 0;
68
+ display: block;
69
+ font-size: 1em;
70
+ padding: 0 2px 0 0;
71
+ }
72
+
73
+ &.is-focused {
74
+ .textfield-label {
75
+ transition: .2s;
76
+ font-size: .7em;
77
+ top: -2px;
78
+ }
79
+ }
80
+
81
+ .textfield-input {
82
+ float: none;
83
+ width: 100%;
84
+ border: none;
85
+ margin: 0;
86
+
87
+ // margin-top: 13px;
88
+ background-color: transparent;
89
+ border-radius: 0;
90
+ border-bottom: 1px solid rgba(0, 0, 0, 0.12);
91
+
92
+ //outline:none;
93
+ }
94
+ }
95
+
96
+ .textfield-input {
97
+ float: none;
98
+ width: 100%;
99
+ padding: 12px 8px 8px 0;
100
+ border: none;
101
+ margin: 0;
102
+ background-color: transparent;
103
+ border-radius: 0;
104
+ border-bottom: 1px solid rgba(0, 0, 0, 0.12);
105
+
106
+ //outline:none;
107
+ &:hover {
108
+ cursor: default;
109
+
110
+ //background-color: rgba(100, 100, 100, .06);
111
+ }
112
+
113
+ &:focus {
114
+ cursor: text;
115
+ }
116
+ }
117
+
118
+ input[readonly],
119
+ textarea[readonly] {
120
+ //color: #9A9A9A;
121
+ //color: rgba(0, 0, 0, 1);
122
+ //background-color: rgba(255,255,255,1);
123
+ border-bottom: 1px solid transparent;
124
+
125
+ &:hover {
126
+ cursor: default;
127
+
128
+ //background-color: rgba(255,255,255,1);
129
+ }
130
+
131
+ &:focus,
132
+ &:active {
133
+ cursor: text;
134
+ border-bottom: 1px solid transparent !important;
135
+
136
+ //background-color: rgba(255,255,255,1);
137
+ }
138
+ }
139
+ }
140
+
141
+ .dark-mode {
142
+ .material-textfield {
143
+ .textfield-label {
144
+ transition: .2s;
145
+ color: rgba(255, 255, 255, 0.3);
146
+ }
147
+
148
+ .textfield-input {
149
+ border-bottom: 1px solid rgba(255, 255, 255, 0.12);
150
+ }
151
+ }
152
+ }
@@ -0,0 +1,40 @@
1
+ .tooltip {
2
+ z-index: 100;
3
+ // pointer-events: none
4
+ display: none;
5
+ position: absolute;
6
+ background-color: rgba(0,0,0,.7);
7
+ max-width: 200px;
8
+ text-align: center;
9
+ padding: 4px 8px 8px;
10
+ transform: translateY(24px);
11
+ border-radius: 3px;
12
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
13
+ &.show {
14
+ display: block;
15
+ >.label {
16
+ font-size: .8em;
17
+ line-height: 1em;
18
+ color: rgba(255,255,255,.87);
19
+ }
20
+ >.pointer {
21
+ display: block;
22
+ width: 100%;
23
+ height: 8px;
24
+ position: absolute;
25
+ left: 0;
26
+ right: 0;
27
+ top: -8px;
28
+ background-image: url('/theme/minimal/icon/tooltip.svg');
29
+ background-position: center;
30
+ background-size: contain;
31
+ background-repeat: no-repeat;
32
+ }
33
+ }
34
+ }
35
+
36
+ @media only screen and (max-width: 640px) {
37
+ .tooltip {
38
+ display: none;
39
+ }
40
+ }
@@ -0,0 +1,88 @@
1
+ .material-layout {
2
+ // overflow: hidden;
3
+ // padding: 0;
4
+ // margin: 0;
5
+ // height: 100%;
6
+ // position: absolute;
7
+ // top: 0;
8
+ // bottom: 0;
9
+ // left: 0;
10
+ // right: 0;
11
+ }
12
+
13
+ .flex-row,
14
+ .flex-raw {
15
+ display: flex;
16
+ flex-direction: row;
17
+ flex-wrap: nowrap;
18
+
19
+ > .ui-container {
20
+ height: inherit;
21
+ }
22
+ }
23
+
24
+ .flex-column {
25
+ display: flex;
26
+ flex-direction: column;
27
+ flex-wrap: nowrap;
28
+
29
+ > .material-container {
30
+ width: inherit;
31
+ }
32
+ }
33
+
34
+ .display-absolute {
35
+ display: absolute;
36
+ }
37
+
38
+ .flex-none {
39
+ flex: none;
40
+ }
41
+
42
+ .flex-1 {
43
+ flex: 1;
44
+ }
45
+
46
+ .flex-2 {
47
+ flex: 2;
48
+ }
49
+
50
+ .flex-3 {
51
+ flex: 3;
52
+ }
53
+
54
+ .flex-4 {
55
+ flex: 4;
56
+ }
57
+
58
+ .flex-5 {
59
+ flex: 5;
60
+ }
61
+
62
+ .flex-6 {
63
+ flex: 6;
64
+ }
65
+
66
+ .flex-7 {
67
+ flex: 7;
68
+ }
69
+
70
+ .flex-8 {
71
+ flex: 8;
72
+ }
73
+
74
+ .flex-9 {
75
+ flex: 9;
76
+ }
77
+
78
+ .flex-10 {
79
+ flex: 10;
80
+ }
81
+
82
+ .flex-11 {
83
+ flex: 11;
84
+ }
85
+
86
+ .flex-12 {
87
+ flex: 12;
88
+ }
@@ -0,0 +1,77 @@
1
+
2
+ .resizer-layer {
3
+ position: absolute;
4
+ top: 0;
5
+ left: 0;
6
+ }
7
+
8
+ .ui-resizer {
9
+ opacity: .2;
10
+ position: absolute;
11
+ z-index: 200;
12
+ right: -3px;
13
+ bottom: -3px;
14
+ width: 12px;
15
+ height: 12px;
16
+ cursor: nwse-resize;
17
+
18
+ // &:hover, &.drag {
19
+ // background-color: rgba(66, 133, 244, .5);
20
+ // }
21
+ }
22
+
23
+ .resizer-height {
24
+ cursor: ns-resize;
25
+ position: absolute;
26
+ z-index: 100;
27
+ left: 0;
28
+ width: 100%;
29
+ height: 5px;
30
+ }
31
+
32
+ .resizer-width {
33
+ cursor: ew-resize;
34
+ position: absolute;
35
+ z-index: 100;
36
+ top: 0;
37
+ height: 100%;
38
+ width: 5px;
39
+ }
40
+
41
+ .ui-resizer-height,
42
+ .ui-resizer-width,
43
+ .ui-resizer-top,
44
+ .ui-resizer-right,
45
+ .ui-resizer-bottom,
46
+ .ui-resizer-left {
47
+ background-color: rgba(255, 165, 0, 5);
48
+ opacity: .5;
49
+ position: absolute;
50
+ z-index: 100;
51
+
52
+ &:hover {
53
+ //background-color: rgba(255, 165, 0,5);
54
+ }
55
+ }
56
+
57
+ .ui-resizer-height,
58
+ .ui-resizer-top,
59
+ .ui-resizer-bottom {
60
+ cursor: ns-resize;
61
+ position: absolute;
62
+ z-index: 100;
63
+ left: 0;
64
+ width: 100%;
65
+ height: 5px;
66
+ }
67
+
68
+ .ui-resizer-width,
69
+ .ui-resizer-right,
70
+ .ui-resizer-left {
71
+ cursor: ew-resize;
72
+ position: absolute;
73
+ z-index: 100;
74
+ top: 0;
75
+ height: 100%;
76
+ width: 5px;
77
+ }
@@ -0,0 +1,67 @@
1
+
2
+ // font
3
+ // @import ../../../vendor/roboto/roboto.css
4
+
5
+ // base
6
+ @import "base/body.scss";
7
+ @import "base/typo.scss";
8
+ @import "base/elevation.scss";
9
+
10
+ // theme
11
+ @import "theme/default.scss";
12
+ @import "theme/theme.scss";
13
+
14
+ // module
15
+ @import "module/ripple.scss";
16
+
17
+ // component
18
+ @import "component/component.scss";
19
+ @import "component/text.scss";
20
+ @import "component/image.scss";
21
+ @import "component/subheader.scss";
22
+ @import "component/label.scss";
23
+ @import "component/divider.scss";
24
+ @import "component/progress.scss";
25
+
26
+ // container
27
+ @import "container/banner.scss";
28
+ @import "container/card.scss";
29
+ @import "container/menu.scss";
30
+ @import "container/dialog.scss";
31
+ @import "container/container.scss";
32
+ @import "container/drawer.scss";
33
+ @import "container/tabs.scss";
34
+ @import "container/appbar.scss";
35
+ @import "container/toolbar.scss";
36
+ @import "container/snackbar.scss";
37
+
38
+ // button
39
+ @import "button/button.scss";
40
+ @import "button/raised.scss";
41
+ @import "button/floating.scss";
42
+ @import "button/action.scss";
43
+ @import "button/file.scss";
44
+
45
+ // control
46
+ @import "control/button.scss";
47
+ @import "control/textfield.scss";
48
+ @import "control/switch.scss";
49
+ @import "control/checkbox.scss";
50
+ @import "control/selector.scss";
51
+ @import "control/slider.scss";
52
+ @import "control/tooltip.scss";
53
+ @import "control/search.scss";
54
+
55
+ // view
56
+ @import "view/view.scss";
57
+ @import "view/list.scss";
58
+ @import "view/form.scss";
59
+ @import "view/tree.scss";
60
+ @import "view/calendar.scss";
61
+ @import "view/page.scss";
62
+ @import "view/tabview.scss";
63
+
64
+ // layout
65
+ @import "layout/layout.scss";
66
+ @import "layout/resizer.scss";
67
+
@@ -0,0 +1,10 @@
1
+ .material-ripple, .ripple {
2
+ opacity: 1;
3
+ pointer-events: none;
4
+ z-index: 1;
5
+ position: absolute;
6
+ background-color: rgba(255, 255, 255, 0.1);
7
+ height: 5px;
8
+ width: 5px;
9
+ border-radius: 50%;
10
+ }
@@ -25,26 +25,27 @@
25
25
 
26
26
 
27
27
  // ocean theme
28
- $background-color: rgba(255, 255, 255, 1)
29
- $background-color-dark: rgba(51, 51, 51, 1)
28
+ $background-color: rgba(255, 255, 255, 1);
29
+ $background-color-dark: rgba(51, 51, 51, 1);
30
30
 
31
31
  // color schema
32
- $default-color: rgba(0, 0, 0, 1)
33
- $default-color-text: rgba(0, 0, 0, 0.67)
34
- $default-color-button: rgba(0, 0, 0, 0.47)
35
- $default-color-icon: rgba(0, 0, 0, 0.67)
36
- $primary-color: rgb(98, 0, 238)
37
- $primary-color: rgb(54, 79, 144)
38
- $primary-color-text: rgba(255, 255, 255, 0.95)
39
- $secondary-color: #1A9989
40
- $secondary-color-text: rgba(255, 255, 255, 0.95)
32
+ $default-color: rgba(0, 0, 0, 1);
33
+ $default-color-text: rgba(0, 0, 0, 0.67);
34
+ $default-color-button: rgba(0, 0, 0, 0.47);
35
+ $default-color-icon: rgba(0, 0, 0, 0.67);
36
+ $primary-color: rgb(98, 0, 238);
37
+ $primary-color: rgb(54, 79, 144);
38
+ $primary-color-text: rgba(255, 255, 255, 0.95);
39
+ $secondary-color: #1A9989;
40
+ $secondary-color-text: rgba(255, 255, 255, 0.95);
41
41
 
42
42
  // on dark theme
43
- $default-color-dark: rgba(255, 255, 255, 1)
44
- $default-color-text-dark: rgba(255, 255, 255, 0.95)
45
- $primary-color-dark: rgb(54, 79, 144)
46
- $primary-color-text-dark: rgba(255, 255, 255, 0.95)
47
- $secondary-color-dark: #1A9989
48
- $secondary-color-text-dark: rgba(255, 255, 255, 0.95)
43
+ $default-color-dark: rgba(255, 255, 255, 1);
44
+ $default-color-text-dark: rgba(255, 255, 255, 0.95);
45
+ $primary-color-dark: rgb(54, 79, 144);
46
+ $primary-color-text-dark: rgba(255, 255, 255, 0.95);
47
+ $secondary-color-dark: #1A9989;
48
+ $secondary-color-text-dark: rgba(255, 255, 255, 0.95);
49
+
49
50
 
50
51
 
@@ -0,0 +1,30 @@
1
+
2
+
3
+
4
+ // base color
5
+ $background: rgba(255, 255, 255, 1);
6
+
7
+ // color schema
8
+ $default-color: rgba(0, 0, 0, 1);
9
+ $default-color-text: rgba(0, 0, 0, 0.87);
10
+
11
+ // primary color
12
+ $primary-color: #3f51b5;
13
+ $primary-color-text: rgba(255, 255, 255, 0.95);
14
+
15
+ // secondary color
16
+ $secondary-color: #1A9989;
17
+ $secondary-color-text: rgba(255, 255, 255, 0.95);
18
+
19
+ // on dark theme
20
+ $default-color-dark: rgba(255, 255, 255, 1);
21
+ $default-color-text-dark: rgba(255, 255, 255, 0.95);
22
+
23
+ $primary-color-dark: #3f51b5;
24
+ $primary-color-text-dark: rgba(255, 255, 255, 0.95);
25
+
26
+ $secondary-color-dark: #1A9989;
27
+ $secondary-color-text-dark: rgba(255, 255, 255, 0.95);
28
+
29
+
30
+
@@ -0,0 +1,4 @@
1
+ .dark-mode {
2
+ background-color: rgba(51, 51, 51, 1);
3
+ color: rgba(255, 255, 255, 0.95);
4
+ }