material-ui 0.7.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +31 -0
- data/Rakefile +20 -0
- data/lib/material-ui.rb +4 -0
- data/material-ui-gem.gemspec +33 -0
- data/vendor/assets/javascripts/material-ui.js +1 -0
- data/vendor/assets/javascripts/material-ui/components/app-bar.jsx +93 -0
- data/vendor/assets/javascripts/material-ui/components/app-canvas.jsx +27 -0
- data/vendor/assets/javascripts/material-ui/components/checkbox.jsx +60 -0
- data/vendor/assets/javascripts/material-ui/components/date-picker/calendar-month.jsx +59 -0
- data/vendor/assets/javascripts/material-ui/components/date-picker/calendar-toolbar.jsx +64 -0
- data/vendor/assets/javascripts/material-ui/components/date-picker/calendar.jsx +194 -0
- data/vendor/assets/javascripts/material-ui/components/date-picker/date-display.jsx +79 -0
- data/vendor/assets/javascripts/material-ui/components/date-picker/date-picker-dialog.jsx +118 -0
- data/vendor/assets/javascripts/material-ui/components/date-picker/date-picker.jsx +116 -0
- data/vendor/assets/javascripts/material-ui/components/date-picker/day-button.jsx +49 -0
- data/vendor/assets/javascripts/material-ui/components/dialog-window.jsx +183 -0
- data/vendor/assets/javascripts/material-ui/components/dialog.jsx +54 -0
- data/vendor/assets/javascripts/material-ui/components/drop-down-icon.jsx +68 -0
- data/vendor/assets/javascripts/material-ui/components/drop-down-menu.jsx +94 -0
- data/vendor/assets/javascripts/material-ui/components/enhanced-button.jsx +147 -0
- data/vendor/assets/javascripts/material-ui/components/enhanced-switch.jsx +296 -0
- data/vendor/assets/javascripts/material-ui/components/enhanced-textarea.jsx +113 -0
- data/vendor/assets/javascripts/material-ui/components/flat-button.jsx +46 -0
- data/vendor/assets/javascripts/material-ui/components/floating-action-button.jsx +123 -0
- data/vendor/assets/javascripts/material-ui/components/font-icon.jsx +23 -0
- data/vendor/assets/javascripts/material-ui/components/icon-button.jsx +123 -0
- data/vendor/assets/javascripts/material-ui/components/ink-bar.jsx +25 -0
- data/vendor/assets/javascripts/material-ui/components/input.jsx +143 -0
- data/vendor/assets/javascripts/material-ui/components/left-nav.jsx +105 -0
- data/vendor/assets/javascripts/material-ui/components/menu/link-menu-item.jsx +42 -0
- data/vendor/assets/javascripts/material-ui/components/menu/menu-item.jsx +105 -0
- data/vendor/assets/javascripts/material-ui/components/menu/menu.jsx +325 -0
- data/vendor/assets/javascripts/material-ui/components/menu/subheader-menu-item.jsx +18 -0
- data/vendor/assets/javascripts/material-ui/components/mixins/classable.js +42 -0
- data/vendor/assets/javascripts/material-ui/components/mixins/click-awayable.js +35 -0
- data/vendor/assets/javascripts/material-ui/components/mixins/window-listenable.js +23 -0
- data/vendor/assets/javascripts/material-ui/components/overlay.jsx +58 -0
- data/vendor/assets/javascripts/material-ui/components/paper.jsx +58 -0
- data/vendor/assets/javascripts/material-ui/components/radio-button-group.jsx +112 -0
- data/vendor/assets/javascripts/material-ui/components/radio-button.jsx +65 -0
- data/vendor/assets/javascripts/material-ui/components/raised-button.jsx +102 -0
- data/vendor/assets/javascripts/material-ui/components/ripples/circle.jsx +35 -0
- data/vendor/assets/javascripts/material-ui/components/ripples/focus-ripple.jsx +40 -0
- data/vendor/assets/javascripts/material-ui/components/ripples/touch-ripple.jsx +174 -0
- data/vendor/assets/javascripts/material-ui/components/slider.jsx +178 -0
- data/vendor/assets/javascripts/material-ui/components/snackbar.jsx +76 -0
- data/vendor/assets/javascripts/material-ui/components/svg-icons/drop-down-arrow.jsx +16 -0
- data/vendor/assets/javascripts/material-ui/components/svg-icons/navigation-chevron-left.jsx +16 -0
- data/vendor/assets/javascripts/material-ui/components/svg-icons/navigation-chevron-right.jsx +17 -0
- data/vendor/assets/javascripts/material-ui/components/svg-icons/navigation-menu.jsx +16 -0
- data/vendor/assets/javascripts/material-ui/components/svg-icons/svg-icon.jsx +23 -0
- data/vendor/assets/javascripts/material-ui/components/svg-icons/toggle-check-box-checked.jsx +16 -0
- data/vendor/assets/javascripts/material-ui/components/svg-icons/toggle-check-box-outline-blank.jsx +16 -0
- data/vendor/assets/javascripts/material-ui/components/svg-icons/toggle-radio-button-off.jsx +16 -0
- data/vendor/assets/javascripts/material-ui/components/svg-icons/toggle-radio-button-on.jsx +16 -0
- data/vendor/assets/javascripts/material-ui/components/table-header.jsx +50 -0
- data/vendor/assets/javascripts/material-ui/components/table-rows-item.jsx +31 -0
- data/vendor/assets/javascripts/material-ui/components/table-rows.jsx +57 -0
- data/vendor/assets/javascripts/material-ui/components/tabs/tab.jsx +38 -0
- data/vendor/assets/javascripts/material-ui/components/tabs/tabTemplate.jsx +15 -0
- data/vendor/assets/javascripts/material-ui/components/tabs/tabs.jsx +96 -0
- data/vendor/assets/javascripts/material-ui/components/text-field.jsx +215 -0
- data/vendor/assets/javascripts/material-ui/components/toggle.jsx +62 -0
- data/vendor/assets/javascripts/material-ui/components/toolbar-group.jsx +28 -0
- data/vendor/assets/javascripts/material-ui/components/toolbar.jsx +21 -0
- data/vendor/assets/javascripts/material-ui/components/tooltip.jsx +58 -0
- data/vendor/assets/javascripts/material-ui/components/transition-groups/slide-in.jsx +48 -0
- data/vendor/assets/javascripts/material-ui/components/utils/css-event.js +52 -0
- data/vendor/assets/javascripts/material-ui/components/utils/date-time.js +132 -0
- data/vendor/assets/javascripts/material-ui/components/utils/dom.js +71 -0
- data/vendor/assets/javascripts/material-ui/components/utils/events.js +34 -0
- data/vendor/assets/javascripts/material-ui/components/utils/key-code.js +10 -0
- data/vendor/assets/javascripts/material-ui/components/utils/key-line.js +13 -0
- data/vendor/assets/javascripts/material-ui/components/utils/unique-id.js +7 -0
- data/vendor/assets/stylesheets/material-ui.less +2 -0
- data/vendor/assets/stylesheets/material-ui/components.less +5 -0
- data/vendor/assets/stylesheets/material-ui/components/app-bar.less +37 -0
- data/vendor/assets/stylesheets/material-ui/components/card.less +20 -0
- data/vendor/assets/stylesheets/material-ui/components/checkbox.less +66 -0
- data/vendor/assets/stylesheets/material-ui/components/components.less +37 -0
- data/vendor/assets/stylesheets/material-ui/components/date-picker/calendar-month.less +11 -0
- data/vendor/assets/stylesheets/material-ui/components/date-picker/calendar-toolbar.less +23 -0
- data/vendor/assets/stylesheets/material-ui/components/date-picker/calendar.less +59 -0
- data/vendor/assets/stylesheets/material-ui/components/date-picker/date-display.less +84 -0
- data/vendor/assets/stylesheets/material-ui/components/date-picker/date-picker-dialog.less +18 -0
- data/vendor/assets/stylesheets/material-ui/components/date-picker/date-picker.less +9 -0
- data/vendor/assets/stylesheets/material-ui/components/date-picker/day-button.less +35 -0
- data/vendor/assets/stylesheets/material-ui/components/dialog-window.less +42 -0
- data/vendor/assets/stylesheets/material-ui/components/dialog.less +10 -0
- data/vendor/assets/stylesheets/material-ui/components/drop-down-icon.less +43 -0
- data/vendor/assets/stylesheets/material-ui/components/drop-down-menu.less +77 -0
- data/vendor/assets/stylesheets/material-ui/components/enhanced-button.less +24 -0
- data/vendor/assets/stylesheets/material-ui/components/enhanced-switch.less +52 -0
- data/vendor/assets/stylesheets/material-ui/components/enhanced-textarea.less +16 -0
- data/vendor/assets/stylesheets/material-ui/components/flat-button.less +93 -0
- data/vendor/assets/stylesheets/material-ui/components/floating-action-button.less +95 -0
- data/vendor/assets/stylesheets/material-ui/components/font-icon.less +6 -0
- data/vendor/assets/stylesheets/material-ui/components/icon-button.less +46 -0
- data/vendor/assets/stylesheets/material-ui/components/ink-bar.less +9 -0
- data/vendor/assets/stylesheets/material-ui/components/input.less +186 -0
- data/vendor/assets/stylesheets/material-ui/components/left-nav.less +31 -0
- data/vendor/assets/stylesheets/material-ui/components/menu-item.less +69 -0
- data/vendor/assets/stylesheets/material-ui/components/menu.less +50 -0
- data/vendor/assets/stylesheets/material-ui/components/overlay.less +21 -0
- data/vendor/assets/stylesheets/material-ui/components/paper.less +59 -0
- data/vendor/assets/stylesheets/material-ui/components/radio-button.less +67 -0
- data/vendor/assets/stylesheets/material-ui/components/raised-button.less +132 -0
- data/vendor/assets/stylesheets/material-ui/components/ripples/circle.less +31 -0
- data/vendor/assets/stylesheets/material-ui/components/ripples/focus-ripple.less +30 -0
- data/vendor/assets/stylesheets/material-ui/components/ripples/touch-ripple.less +9 -0
- data/vendor/assets/stylesheets/material-ui/components/slider.less +163 -0
- data/vendor/assets/stylesheets/material-ui/components/snackbar.less +44 -0
- data/vendor/assets/stylesheets/material-ui/components/subheader.less +17 -0
- data/vendor/assets/stylesheets/material-ui/components/svg-icon.less +11 -0
- data/vendor/assets/stylesheets/material-ui/components/table.less +46 -0
- data/vendor/assets/stylesheets/material-ui/components/tabs.less +41 -0
- data/vendor/assets/stylesheets/material-ui/components/text-field.less +168 -0
- data/vendor/assets/stylesheets/material-ui/components/toggle.less +83 -0
- data/vendor/assets/stylesheets/material-ui/components/toolbar.less +95 -0
- data/vendor/assets/stylesheets/material-ui/components/tooltip.less +73 -0
- data/vendor/assets/stylesheets/material-ui/components/transition-groups/slide-in.less +92 -0
- data/vendor/assets/stylesheets/material-ui/core/base.less +31 -0
- data/vendor/assets/stylesheets/material-ui/core/core.less +4 -0
- data/vendor/assets/stylesheets/material-ui/core/keylines.less +29 -0
- data/vendor/assets/stylesheets/material-ui/core/layouts.less +12 -0
- data/vendor/assets/stylesheets/material-ui/core/typography.less +158 -0
- data/vendor/assets/stylesheets/material-ui/mixins/clearfix.less +22 -0
- data/vendor/assets/stylesheets/material-ui/mixins/mixins.less +3 -0
- data/vendor/assets/stylesheets/material-ui/mixins/no-wrap.less +3 -0
- data/vendor/assets/stylesheets/material-ui/mixins/transitions.less +17 -0
- data/vendor/assets/stylesheets/material-ui/resets/normalize.css +430 -0
- data/vendor/assets/stylesheets/material-ui/resets/typography-resets.less +34 -0
- data/vendor/assets/stylesheets/material-ui/scaffolding.less +10 -0
- data/vendor/assets/stylesheets/material-ui/variables/colors.less +285 -0
- data/vendor/assets/stylesheets/material-ui/variables/custom-variables.less +163 -0
- data/vendor/assets/stylesheets/material-ui/variables/media-queries.less +4 -0
- data/vendor/assets/stylesheets/material-ui/variables/spacing.less +16 -0
- metadata +268 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
.mui-left-nav {
|
2
|
+
|
3
|
+
.mui-left-nav-menu {
|
4
|
+
height: 100%;
|
5
|
+
position: fixed;
|
6
|
+
width: @left-nav-width;
|
7
|
+
background-color: @left-nav-color;
|
8
|
+
z-index: 10;
|
9
|
+
left: 0px;
|
10
|
+
top: 0px;
|
11
|
+
.ease-out();
|
12
|
+
|
13
|
+
.mui-menu {
|
14
|
+
.mui-menu-item {
|
15
|
+
height: @desktop-left-nav-menu-item-height;
|
16
|
+
line-height: @desktop-left-nav-menu-item-height;
|
17
|
+
}
|
18
|
+
a.mui-menu-item {
|
19
|
+
display: block;
|
20
|
+
text-decoration: none;
|
21
|
+
color: @body-text-color;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
&.mui-closed {
|
27
|
+
.mui-left-nav-menu {
|
28
|
+
transform: translate3d((-1 * @left-nav-width) - 10px, 0, 0);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
.mui-menu-item {
|
2
|
+
|
3
|
+
* { user-select: none }
|
4
|
+
|
5
|
+
cursor: pointer;
|
6
|
+
line-height: @menu-item-height;
|
7
|
+
padding-left: @menu-item-padding;
|
8
|
+
padding-right: @menu-item-padding;
|
9
|
+
background-color: fade(@menu-item-hover-color, 0%);
|
10
|
+
|
11
|
+
&:hover {
|
12
|
+
&:not(.mui-is-disabled) {
|
13
|
+
background-color: @menu-item-hover-color;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.mui-menu-item-number {
|
18
|
+
float: right;
|
19
|
+
width: 24px;
|
20
|
+
text-align: center;
|
21
|
+
}
|
22
|
+
|
23
|
+
.mui-menu-item-attribute {
|
24
|
+
float: right;
|
25
|
+
}
|
26
|
+
|
27
|
+
.mui-menu-item-icon-right {
|
28
|
+
line-height: @menu-item-height;
|
29
|
+
float: right;
|
30
|
+
}
|
31
|
+
|
32
|
+
.mui-menu-item-icon {
|
33
|
+
float: left;
|
34
|
+
line-height: @menu-item-height;
|
35
|
+
margin-right: @desktop-gutter;
|
36
|
+
}
|
37
|
+
|
38
|
+
.mui-menu-item-data {
|
39
|
+
display: block;
|
40
|
+
padding-left: (@desktop-gutter * 2);
|
41
|
+
line-height: @menu-item-data-height;
|
42
|
+
height: @menu-item-data-height;
|
43
|
+
vertical-align: top;
|
44
|
+
top: -12px;
|
45
|
+
position: relative;
|
46
|
+
.mui-font-weight-light;
|
47
|
+
}
|
48
|
+
|
49
|
+
.muidocs-icon-custom-arrow-drop-right {
|
50
|
+
margin-right: (@desktop-gutter-mini * -1);
|
51
|
+
color: @drop-down-menu-icon-color;
|
52
|
+
}
|
53
|
+
|
54
|
+
.mui-toggle {
|
55
|
+
margin-top: ((@menu-item-height - @radio-button-size) / 2);
|
56
|
+
float: right;
|
57
|
+
width: 42px;
|
58
|
+
}
|
59
|
+
|
60
|
+
&.mui-is-selected {
|
61
|
+
color: @menu-item-selected-text-color;
|
62
|
+
}
|
63
|
+
|
64
|
+
&.mui-is-disabled {
|
65
|
+
color: @disabled-color !important;
|
66
|
+
cursor: default;
|
67
|
+
}
|
68
|
+
|
69
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
.mui-menu {
|
2
|
+
|
3
|
+
* { .ease-out; }
|
4
|
+
|
5
|
+
background-color: @menu-background-color;
|
6
|
+
|
7
|
+
&.mui-menu-hideable {
|
8
|
+
opacity: 0;
|
9
|
+
position: absolute;
|
10
|
+
top: 0;
|
11
|
+
z-index: 1;
|
12
|
+
|
13
|
+
.mui-paper-container {
|
14
|
+
overflow: hidden;
|
15
|
+
padding: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
&.mui-visible {
|
19
|
+
& > .mui-paper-container {
|
20
|
+
padding-top: @desktop-gutter-mini;
|
21
|
+
padding-bottom: @desktop-gutter-mini;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.mui-paper-container {
|
27
|
+
padding-top: @desktop-gutter-mini;
|
28
|
+
padding-bottom: @desktop-gutter-mini;
|
29
|
+
}
|
30
|
+
|
31
|
+
.mui-subheader {
|
32
|
+
padding-left: @menu-subheader-padding;
|
33
|
+
padding-right: @menu-subheader-padding;
|
34
|
+
}
|
35
|
+
|
36
|
+
.mui-nested-menu-item {
|
37
|
+
position: relative;
|
38
|
+
|
39
|
+
&.mui-is-disabled {
|
40
|
+
color: @disabled-color;
|
41
|
+
cursor: default;
|
42
|
+
}
|
43
|
+
|
44
|
+
&.mui-open {
|
45
|
+
& > .mui-menu {
|
46
|
+
opacity: 1;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.mui-overlay {
|
2
|
+
position: fixed;
|
3
|
+
height: 100%;
|
4
|
+
width: 100%;
|
5
|
+
z-index: 9;
|
6
|
+
top: 0px;
|
7
|
+
|
8
|
+
left: -100%;
|
9
|
+
background-color: rgba(0, 0, 0, 0);
|
10
|
+
transition:
|
11
|
+
left 0ms @ease-out-function 400ms,
|
12
|
+
background-color 400ms @ease-out-function 0ms;
|
13
|
+
|
14
|
+
&.mui-is-shown {
|
15
|
+
left: 0px;
|
16
|
+
background-color: @light-black;
|
17
|
+
transition:
|
18
|
+
left 0ms @ease-out-function 0ms,
|
19
|
+
background-color 400ms @ease-out-function 0ms;
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
.mui-paper {
|
2
|
+
|
3
|
+
&.mui-rounded {
|
4
|
+
border-radius: 2px;
|
5
|
+
|
6
|
+
& > .mui-paper-container {
|
7
|
+
border-radius: 2px;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
&.mui-circle {
|
12
|
+
border-radius: 50%;
|
13
|
+
|
14
|
+
& > .mui-paper-container {
|
15
|
+
border-radius: 50%;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
& > .mui-paper-container {
|
20
|
+
height: 100%;
|
21
|
+
width: 100%;
|
22
|
+
}
|
23
|
+
|
24
|
+
&.mui-z-depth-1 {
|
25
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
|
26
|
+
& > .mui-z-depth-bottom {
|
27
|
+
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
&.mui-z-depth-2 {
|
32
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.23);
|
33
|
+
& > .mui-z-depth-bottom {
|
34
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&.mui-z-depth-3 {
|
39
|
+
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.23);
|
40
|
+
& > .mui-z-depth-bottom {
|
41
|
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.19);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
&.mui-z-depth-4 {
|
46
|
+
box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
|
47
|
+
& > .mui-z-depth-bottom {
|
48
|
+
box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
&.mui-z-depth-5 {
|
53
|
+
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.22);
|
54
|
+
& > .mui-z-depth-bottom {
|
55
|
+
box-shadow: 0 19px 60px rgba(0, 0, 0, 0.30);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
.mui-radio-button {
|
2
|
+
.mui-radio-button-icon {
|
3
|
+
@radio-button-size: 24px;
|
4
|
+
|
5
|
+
height: @radio-button-size;
|
6
|
+
width: @radio-button-size;
|
7
|
+
margin-right: @desktop-gutter-less;
|
8
|
+
|
9
|
+
|
10
|
+
.mui-radio-button-fill {
|
11
|
+
position: absolute;
|
12
|
+
opacity: 0;
|
13
|
+
transform: scale(0);
|
14
|
+
transform-origin: 50% 50%;
|
15
|
+
.ease-out;
|
16
|
+
* { fill: @radio-button-checked-color; }
|
17
|
+
}
|
18
|
+
|
19
|
+
.mui-radio-button-target {
|
20
|
+
.ease-out();
|
21
|
+
position: absolute;
|
22
|
+
opacity: 1;
|
23
|
+
transform: scale(1);
|
24
|
+
* {
|
25
|
+
fill: @radio-button-border-color;
|
26
|
+
.ease-out(@duration: 2s; @delay: 200ms);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
&.mui-is-switched {
|
32
|
+
.mui-radio-button-icon {
|
33
|
+
.mui-radio-button-fill {
|
34
|
+
opacity: 1;
|
35
|
+
transform: scale(1);
|
36
|
+
}
|
37
|
+
|
38
|
+
.mui-radio-button-target {
|
39
|
+
opacity: 0;
|
40
|
+
transform: scale(0);
|
41
|
+
* {
|
42
|
+
fill: @radio-button-checked-color;
|
43
|
+
.ease-out(@duration: 100s; @delay: 0ms);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&.mui-is-disabled {
|
50
|
+
.mui-radio-button-icon {
|
51
|
+
.mui-radio-button-fill,
|
52
|
+
.mui-radio-button-target {
|
53
|
+
* { fill: @radio-button-disabled-color; }
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
&.mui-is-required {
|
59
|
+
.mui-radio-button-icon {
|
60
|
+
.mui-radio-button-target {
|
61
|
+
* { fill: @radio-button-required-color; }
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
|
@@ -0,0 +1,132 @@
|
|
1
|
+
.mui-raised-button {
|
2
|
+
|
3
|
+
display: inline-block;
|
4
|
+
min-width: @button-min-width;
|
5
|
+
height: @button-height;
|
6
|
+
|
7
|
+
&, * { .ease-out(); }
|
8
|
+
|
9
|
+
.mui-raised-button-container {
|
10
|
+
position: relative;
|
11
|
+
width: 100%;
|
12
|
+
padding: 0;
|
13
|
+
overflow: hidden;
|
14
|
+
border-radius: 2px;
|
15
|
+
background-color: @raised-button-color;
|
16
|
+
|
17
|
+
//This is need so that ripples do not bleed
|
18
|
+
//past border radius.
|
19
|
+
//See: http://stackoverflow.com/questions/17298739/css-overflow-hidden-not-working-in-chrome-when-parent-has-border-radius-and-chil
|
20
|
+
transform: translate3d(0, 0, 0);
|
21
|
+
|
22
|
+
&.mui-is-keyboard-focused {
|
23
|
+
background-color: @raised-button-hover-color;
|
24
|
+
}
|
25
|
+
|
26
|
+
&.mui-is-disabled {
|
27
|
+
background-color: @raised-button-disabled-color;
|
28
|
+
|
29
|
+
.mui-raised-button-label {
|
30
|
+
color: @raised-button-disabled-text-color;
|
31
|
+
}
|
32
|
+
|
33
|
+
&:hover {
|
34
|
+
background-color: @raised-button-disabled-color;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.mui-touch-ripple {
|
40
|
+
.mui-ripple-circle-inner {
|
41
|
+
background-color: @raised-button-ripple-color;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.mui-focus-ripple {
|
46
|
+
.mui-focus-ripple-inner {
|
47
|
+
background-color: @raised-button-focus-ripple-color;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.mui-raised-button-label {
|
52
|
+
position: relative;
|
53
|
+
.mui-font-style-button;
|
54
|
+
margin: 0;
|
55
|
+
padding: 0 @desktop-gutter-less;
|
56
|
+
user-select: none;
|
57
|
+
line-height: @button-height;
|
58
|
+
color: @raised-button-text-color;
|
59
|
+
}
|
60
|
+
|
61
|
+
&:hover {
|
62
|
+
.mui-raised-button-container {
|
63
|
+
background-color: @raised-button-hover-color;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
&.mui-is-primary {
|
68
|
+
|
69
|
+
.mui-raised-button-container {
|
70
|
+
background-color: @raised-button-primary-color;
|
71
|
+
|
72
|
+
&.mui-is-keyboard-focused {
|
73
|
+
background-color: @raised-button-primary-hover-color;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.mui-touch-ripple {
|
78
|
+
.mui-ripple-circle-inner {
|
79
|
+
background-color: @raised-button-primary-ripple-color;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.mui-focus-ripple {
|
84
|
+
.mui-focus-ripple-inner {
|
85
|
+
background-color: @raised-button-primary-focus-ripple-color;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.mui-raised-button-label {
|
90
|
+
color: @raised-button-primary-text-color;
|
91
|
+
}
|
92
|
+
|
93
|
+
&:hover {
|
94
|
+
.mui-raised-button-container {
|
95
|
+
background-color: @raised-button-primary-hover-color;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
&.mui-is-secondary {
|
101
|
+
|
102
|
+
.mui-raised-button-container {
|
103
|
+
background-color: @raised-button-secondary-color;
|
104
|
+
|
105
|
+
&.mui-is-keyboard-focused {
|
106
|
+
background-color: @raised-button-secondary-hover-color;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
.mui-touch-ripple {
|
111
|
+
.mui-ripple-circle-inner {
|
112
|
+
background-color: @raised-button-secondary-ripple-color;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.mui-focus-ripple {
|
117
|
+
.mui-focus-ripple-inner {
|
118
|
+
background-color: @raised-button-secondary-focus-ripple-color;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
.mui-raised-button-label {
|
123
|
+
color: @raised-button-secondary-text-color;
|
124
|
+
}
|
125
|
+
|
126
|
+
&:hover {
|
127
|
+
.mui-raised-button-container {
|
128
|
+
background-color: @raised-button-secondary-hover-color;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
.mui-ripple-circle {
|
2
|
+
position: absolute;
|
3
|
+
top: 0;
|
4
|
+
left: 0;
|
5
|
+
height: 100%;
|
6
|
+
width: 100%;
|
7
|
+
opacity: 0.7;
|
8
|
+
.ease-out(@property: opacity; @duration: 2s);
|
9
|
+
|
10
|
+
.mui-ripple-circle-inner {
|
11
|
+
height: 100%;
|
12
|
+
width: 100%;
|
13
|
+
border-radius: 50%;
|
14
|
+
transform: scale(0);
|
15
|
+
background-color: rgba(0,0,0,0.2);
|
16
|
+
.ease-out(@property: transform; @duration: 1s);
|
17
|
+
}
|
18
|
+
|
19
|
+
&.mui-is-started {
|
20
|
+
opacity: 1;
|
21
|
+
|
22
|
+
.mui-ripple-circle-inner {
|
23
|
+
transform: scale(1);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
&.mui-is-ending {
|
28
|
+
opacity: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
}
|