material-sass 0.0.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/MaterialIcons-Regular.eot +0 -0
  3. data/app/assets/fonts/MaterialIcons-Regular.ijmap +1 -0
  4. data/app/assets/fonts/MaterialIcons-Regular.ttf +0 -0
  5. data/app/assets/fonts/MaterialIcons-Regular.woff +0 -0
  6. data/app/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
  7. data/app/assets/images/bg/amber.jpg +0 -0
  8. data/app/assets/images/bg/brand.jpg +0 -0
  9. data/app/assets/images/bg/green.jpg +0 -0
  10. data/app/assets/images/bg/purple.jpg +0 -0
  11. data/app/assets/images/bg/red.jpg +0 -0
  12. data/app/assets/images/bg/teal.jpg +0 -0
  13. data/app/assets/javascripts/material.js +664 -507
  14. data/app/assets/javascripts/material.min.js +2 -0
  15. data/app/assets/javascripts/material/_.js +6 -3
  16. data/app/assets/javascripts/material/bootstrap.js +6 -3
  17. data/app/assets/javascripts/material/datepicker.js +95 -64
  18. data/app/assets/javascripts/material/form-adv-label.js +49 -0
  19. data/app/assets/javascripts/material/form-adv-textarea.js +13 -0
  20. data/app/assets/javascripts/material/header.js +12 -56
  21. data/app/assets/javascripts/material/menu.js +188 -38
  22. data/app/assets/javascripts/material/modal.js +10 -8
  23. data/app/assets/javascripts/material/snackbar.js +116 -0
  24. data/app/assets/javascripts/material/tab.js +47 -27
  25. data/app/assets/javascripts/material/tile.js +169 -74
  26. data/app/assets/javascripts/material/wave.js +12 -7
  27. data/app/assets/stylesheets/material.min.css +13 -0
  28. data/app/assets/stylesheets/material/addons/_material-icons.scss +9 -0
  29. data/app/assets/stylesheets/material/addons/_waves.scss +44 -0
  30. data/app/assets/stylesheets/material/{addon/material-design-icon → addons/material-icons}/_core.scss +8 -8
  31. data/app/assets/stylesheets/material/{addon/material-design-icon → addons/material-icons}/_larger.scss +5 -2
  32. data/app/assets/stylesheets/material/addons/material-icons/_path.scss +11 -0
  33. data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +3 -0
  34. data/app/assets/stylesheets/material/base.scss +39 -40
  35. data/app/assets/stylesheets/material/{_grid.scss → base/_grid.scss} +13 -12
  36. data/app/assets/stylesheets/material/{_reset.scss → base/_reset.scss} +160 -161
  37. data/app/assets/stylesheets/material/components/_avatar.scss +94 -0
  38. data/app/assets/stylesheets/material/{element → components}/_breadcrumb.scss +3 -4
  39. data/app/assets/stylesheets/material/components/_button-flat.scss +35 -0
  40. data/app/assets/stylesheets/material/components/_button-float.scss +187 -0
  41. data/app/assets/stylesheets/material/components/_button.scss +86 -0
  42. data/app/assets/stylesheets/material/components/_card.scss +175 -0
  43. data/app/assets/stylesheets/material/{_code.scss → components/_code.scss} +14 -12
  44. data/app/assets/stylesheets/material/components/_dropdown.scss +103 -0
  45. data/app/assets/stylesheets/material/components/_form-adv-checkbox.scss +161 -0
  46. data/app/assets/stylesheets/material/{element → components}/_form-adv-datepicker.scss +87 -108
  47. data/app/assets/stylesheets/material/{element → components}/_form-adv-label.scss +17 -23
  48. data/app/assets/stylesheets/material/components/_form-adv-switch.scss +96 -0
  49. data/app/assets/stylesheets/material/{element → components}/_form-adv-textarea.scss +1 -1
  50. data/app/assets/stylesheets/material/{element → components}/_form.scss +34 -95
  51. data/app/assets/stylesheets/material/components/_label.scss +23 -0
  52. data/app/assets/stylesheets/material/{element → components}/_modal.scss +43 -18
  53. data/app/assets/stylesheets/material/{element → components}/_nav.scss +15 -8
  54. data/app/assets/stylesheets/material/{element → components}/_progress-circular.scss +36 -32
  55. data/app/assets/stylesheets/material/{element → components}/_progress-loadbar.scss +15 -21
  56. data/app/assets/stylesheets/material/{element → components}/_progress.scss +40 -30
  57. data/app/assets/stylesheets/material/components/_snackbar.scss +60 -0
  58. data/app/assets/stylesheets/material/components/_tab.scss +85 -0
  59. data/app/assets/stylesheets/material/components/_table.scss +82 -0
  60. data/app/assets/stylesheets/material/components/_tile.scss +155 -0
  61. data/app/assets/stylesheets/material/elements/_content.scss +42 -0
  62. data/app/assets/stylesheets/material/elements/_footer.scss +10 -0
  63. data/app/assets/stylesheets/material/elements/_header.scss +145 -0
  64. data/app/assets/stylesheets/material/{theme → elements}/_menu.scss +92 -150
  65. data/app/assets/stylesheets/material/mixin/_grid.scss +1 -9
  66. data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
  67. data/app/assets/stylesheets/material/mixin/_utilities.scss +1 -1
  68. data/app/assets/stylesheets/material/{_print.scss → utilities/_print.scss} +4 -4
  69. data/app/assets/stylesheets/material/{_utilities-responsive.scss → utilities/_utilities-responsive.scss} +1 -1
  70. data/app/assets/stylesheets/material/{_utilities.scss → utilities/_utilities.scss} +197 -110
  71. data/app/assets/stylesheets/material/var/_colours.scss +336 -0
  72. data/app/assets/stylesheets/material/var/_variables.scss +78 -0
  73. data/lib/material-sass/version.rb +1 -1
  74. metadata +55 -53
  75. data/app/assets/javascripts/material/content.js +0 -46
  76. data/app/assets/javascripts/material/dropdown.js +0 -18
  77. data/app/assets/javascripts/material/esc.js +0 -10
  78. data/app/assets/javascripts/material/footer.js +0 -6
  79. data/app/assets/javascripts/material/form-adv.js +0 -64
  80. data/app/assets/javascripts/material/get-target.js +0 -8
  81. data/app/assets/javascripts/material/toast.js +0 -79
  82. data/app/assets/javascripts/material/webfont.js +0 -47
  83. data/app/assets/javascripts/material/winresize.js +0 -28
  84. data/app/assets/stylesheets/material/_variable.scss +0 -120
  85. data/app/assets/stylesheets/material/addon/_material-design-icon.scss +0 -9
  86. data/app/assets/stylesheets/material/addon/_waves.scss +0 -45
  87. data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +0 -11
  88. data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +0 -3
  89. data/app/assets/stylesheets/material/element/_avatar.scss +0 -67
  90. data/app/assets/stylesheets/material/element/_button-flat.scss +0 -32
  91. data/app/assets/stylesheets/material/element/_button-float.scss +0 -202
  92. data/app/assets/stylesheets/material/element/_button.scss +0 -95
  93. data/app/assets/stylesheets/material/element/_card.scss +0 -245
  94. data/app/assets/stylesheets/material/element/_dropdown.scss +0 -132
  95. data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +0 -109
  96. data/app/assets/stylesheets/material/element/_form-adv-switch.scss +0 -102
  97. data/app/assets/stylesheets/material/element/_label.scss +0 -22
  98. data/app/assets/stylesheets/material/element/_sortable.scss +0 -8
  99. data/app/assets/stylesheets/material/element/_tab.scss +0 -107
  100. data/app/assets/stylesheets/material/element/_table.scss +0 -48
  101. data/app/assets/stylesheets/material/element/_tile.scss +0 -193
  102. data/app/assets/stylesheets/material/element/_toast.scss +0 -67
  103. data/app/assets/stylesheets/material/project.scss +0 -8
  104. data/app/assets/stylesheets/material/theme/_content.scss +0 -74
  105. data/app/assets/stylesheets/material/theme/_footer.scss +0 -17
  106. data/app/assets/stylesheets/material/theme/_header.scss +0 -128
@@ -1,47 +0,0 @@
1
- // webfont.js
2
- WebFontConfig = {
3
- classes: false,
4
- google: {
5
- families: ['Roboto:300,300italic,400,400italic,700,700italic']
6
- },
7
- // callbacks
8
- active: function() {
9
- $('.avoid-fout').each(function(index) {
10
- $(this).addClass('avoid-fout-done');
11
- });
12
-
13
- // fixed left/right hand side column padding bottom and width
14
- contentFixPushCal();
15
-
16
- // footer push
17
- footerPush();
18
-
19
- // header height
20
- headerHeightCal();
21
-
22
- // tab indicator
23
- $('.tab-nav').each(function() {
24
- tabSwitch($('.nav > li.active', $(this)), null);
25
- });
26
-
27
- // tile wrap animation
28
- tileInView();
29
- },
30
- inactive: function() {
31
- $('.avoid-fout').each(function(index) {
32
- $(this).addClass('avoid-fout-done');
33
- });
34
-
35
- // tile wrap animation
36
- tileInView();
37
- }
38
- };
39
-
40
- (function() {
41
- var wf = document.createElement('script');
42
- wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js';
43
- wf.type = 'text/javascript';
44
- wf.async = 'true';
45
- var s = document.getElementsByTagName('script')[0];
46
- s.parentNode.insertBefore(wf, s);
47
- })();
@@ -1,28 +0,0 @@
1
- // window smart resize
2
- on_resize = function (c,t){onresize=function(){clearTimeout(t);t=setTimeout(c,100)};return c};
3
-
4
- on_resize(function() {
5
- // fixed left/right hand side column padding bottom and width
6
- contentFixPushCal();
7
-
8
- // footer push
9
- footerPush();
10
-
11
- // header height
12
- headerHeightCal();
13
-
14
- // header nav positioning
15
- if ($('.header-nav-scroll').length) {
16
- headerNavPos();
17
- };
18
-
19
- // tab switch
20
- $('.tab-nav').each(function() {
21
- tabSwitch($('.nav > li.active', $(this)), null);
22
- });
23
-
24
- // tile in view
25
- if ($('.tile-wrap-animation:not(.isinview)').length) {
26
- tileInView();
27
- };
28
- })();
@@ -1,120 +0,0 @@
1
- // base
2
- $base: 8px;
3
- $css-path: ".";
4
-
5
- // colour
6
- // basic colour
7
- $palette-blue: #2196f3;
8
- $palette-blue-dark: #0d47a1;
9
- $palette-blue-dark-m: #1976d2;
10
- $palette-blue-light: #bbdefb;
11
- $palette-blue-light-m: #64b5f6;
12
-
13
- $palette-green: #8bc34a;
14
- $palette-green-dark: #33691e;
15
- $palette-green-dark-m: #689f38;
16
- $palette-green-light: #dcedc8;
17
- $palette-green-light-m: #aed581;
18
-
19
- $palette-purple: #9c27b0;
20
- $palette-purple-dark: #4a148c;
21
- $palette-purple-dark-m: #7b1fa2;
22
- $palette-purple-light: #e1bee7;
23
- $palette-purple-light-m: #ba68c8;
24
-
25
- $palette-red: #f44336;
26
- $palette-red-dark: #b71c1c;
27
- $palette-red-dark-m: #d32f2f;
28
- $palette-red-light: #ffcdd2;
29
- $palette-red-light-m: #e57373;
30
-
31
- $palette-yellow: #ffc107;
32
- $palette-yellow-dark: #ff6f00;
33
- $palette-yellow-dark-m: #ffa000;
34
- $palette-yellow-light: #ffecb3;
35
- $palette-yellow-light-m: #ffd54f;
36
-
37
- // black and white
38
- $black: #000000;
39
- $black-bg: #e0e0e0;
40
- $black-hint: #9e9e9e;
41
- $black-sec: #616161;
42
- $black-text: #212121;
43
-
44
- $white: #ffffff;
45
- $white-bg: #f5f5f5;
46
- $white-bg-dark: #eeeeee;
47
- $white-bg-light: #fafafa;
48
-
49
- // brand colour
50
- $brand-color: #4caf50;
51
- $brand-color-dark: #1b5e20;
52
- $brand-color-dark-m: #388e3c;
53
- $brand-color-light: #c8e6c9;
54
- $brand-color-light-m: #81c784;
55
-
56
- // list
57
- $palette-color: $brand-color, $palette-blue, $palette-green, $palette-purple, $palette-red, $palette-yellow;
58
- $palette-color-dark: $brand-color-dark, $palette-blue-dark, $palette-green-dark, $palette-purple-dark, $palette-red-dark, $palette-yellow-dark;
59
- $palette-color-dark-m: $brand-color-dark-m, $palette-blue-dark-m, $palette-green-dark-m, $palette-purple-dark-m, $palette-red-dark-m, $palette-yellow-dark-m;
60
- $palette-color-light: $brand-color-light, $palette-blue-light, $palette-green-light, $palette-purple-light, $palette-red-light, $palette-yellow-light;
61
- $palette-color-light-m: $brand-color-light-m, $palette-blue-light-m, $palette-green-light-m, $palette-purple-light-m, $palette-red-light-m, $palette-yellow-light-m;
62
- $palette-list: "alt", "blue", "green", "purple", "red", "yellow";
63
-
64
- // font
65
- $font-fam: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
66
- $font-fam-mono: Monaco, Menlo, Consolas, "Courier New", monospace;
67
- $font-fam-serif: Georgia, serif;
68
-
69
- // font size
70
- $font-size: ($base * 2); // 16px
71
- $font-size-h1: ($base * 5.5); // 44px
72
- $font-size-h2: ($base * 4.5); // 36px
73
- $font-size-h3: ($base * 3.5); // 28px
74
- $font-size-h4: ($base * 2.5); // 20px
75
- $font-size-h5: ($base * 2); // 16px
76
- $font-size-h6: ($base * 1.5); // 12px
77
- $font-size-lg: ($base * 7.5); // 60px
78
-
79
- // font weight
80
- $font-weight: 400;
81
- $font-weight-bold: 700;
82
- $font-weight-light: 300;
83
-
84
- // line height
85
- $line-height: ($base * 3); // 24px
86
- $line-height-h1: ($base * 6); // 48px
87
- $line-height-h2: ($base * 5); // 40px
88
- $line-height-h3: ($base * 4); // 32px
89
- $line-height-h4: ($base * 3.5); // 28px
90
- $line-height-h5: ($base * 3); // 24px
91
- $line-height-h6: ($base * 2.5); // 20px
92
- $line-height-lg: ($base * 9); // 72px
93
-
94
- // other
95
- $btn-height: (($base * 3) * 1.5); // 36px
96
- $cell-height: (($base * 3) * 2); // 48px
97
- $input-height: (($base * 3) * 1.5); // 36px
98
-
99
- // grid
100
- $grid-cols: 12;
101
- $grid-gutter: ($base * 2);
102
-
103
- // link
104
- $link-color: $palette-blue;
105
- $link-color-hover: $palette-blue-dark;
106
-
107
- // responsive
108
- $screen-lg: 1440px;
109
- $screen-md: 992px;
110
- $screen-sm: 768px;
111
- $screen-xs: 480px;
112
-
113
- // timing
114
- $timing: cubic-bezier(0.4, 0, 0.2, 1);
115
-
116
- // z-index
117
- $bottom-base: 10;
118
- $content-base: 20;
119
- $header-base: 30;
120
- $top-base: 40;
@@ -1,9 +0,0 @@
1
- // material design icons v2.0.0
2
- // http://google.github.io/material-design-icons/#icon-font-for-the-web
3
- @import "material-design-icon/variables";
4
-
5
- @import "material-design-icon/path";
6
-
7
- @import "material-design-icon/core";
8
-
9
- @import "material-design-icon/larger";
@@ -1,45 +0,0 @@
1
- .waves-button,
2
- .waves-circle {
3
- transform: translateZ(0);
4
- }
5
-
6
- .waves-effect {
7
- overflow: hidden;
8
- position: relative;
9
- -webkit-tap-highlight-color: transparent;
10
- .waves-ripple {
11
- background-color: rgba(0, 0, 0, 0.1);
12
- $gradient: rgba(0, 0, 0, 0.1) 0, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(255, 255, 255, 0) 60%;
13
- background-image: radial-gradient($gradient);
14
- border-radius: 50%;
15
- height: 100px;
16
- margin-top: -50px;
17
- margin-left: -50px;
18
- opacity: 0;
19
- pointer-events: none;
20
- position: absolute;
21
- transform: scale(0);
22
- transition: all 0.3s $timing;
23
- transition-property: opacity, transform;
24
- width: 100px;
25
-
26
- }
27
- &.waves-light .waves-ripple {
28
- background-color: rgba(255, 255, 255, 0.4);
29
- $gradient: rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 60%;
30
- background-image: radial-gradient($gradient);
31
- }
32
- @each $color in $palette-list {
33
- $i: index($palette-list, $color);
34
-
35
- &.waves-color-#{$color} .waves-ripple {
36
- background-color: nth($palette-color-light, $i);
37
- $gradient: rgba(red(nth($palette-color, $i)), green(nth($palette-color, $i)), blue(nth($palette-color, $i)), 0.1) 0, rgba(red(nth($palette-color, $i)), green(nth($palette-color, $i)), blue(nth($palette-color, $i)), 1) 100%;
38
- background-image: radial-gradient($gradient);
39
- }
40
- }
41
- }
42
-
43
- .waves-notransition {
44
- transition: none !important;
45
- }
@@ -1,11 +0,0 @@
1
- @font-face {
2
- font-family: 'Material Icons';
3
- font-style: normal;
4
- font-weight: $font-weight;
5
- src: font-url("MaterialIcons-Regular.eot?v=#{$mdversion}");
6
- src: local('Material Icons'),
7
- local('MaterialIcons-Regular'),
8
- font-url("MaterialIcons-Regular.woff2?v=#{$mdversion}") format("woff2"),
9
- font-url("MaterialIcons-Regular.woff?v=#{$mdversion}") format("woff"),
10
- font-url("MaterialIcons-Regular.ttf?v=#{$mdversion}") format("truetype"),
11
- }
@@ -1,3 +0,0 @@
1
- $mdicon-css-prefix: icon !default;
2
- $mdfont-path: "#{$css-path}/fonts" !default;
3
- $mdversion: "2.0.0" !default;
@@ -1,67 +0,0 @@
1
- .avatar {
2
- background-color: $black-bg;
3
- border-radius: 50%;
4
- color: $black-text;
5
- display: block;
6
- height: ($line-height * 2);
7
- line-height: ($line-height * 2);
8
- text-align: center;
9
- width: ($line-height * 2);
10
- &:focus,
11
- &:hover {
12
- text-decoration: none;
13
- }
14
- &.pull-left {
15
- margin-right: $grid-gutter;
16
- }
17
- &.pull-right {
18
- margin-left: $grid-gutter;
19
- }
20
- img {
21
- border-radius: 50%;
22
- height: 100%;
23
- vertical-align: top;
24
- width: 100%;
25
- }
26
- .fa {
27
- display: block;
28
- height: 100%;
29
- line-height: inherit;
30
- text-align: center;
31
- }
32
- .fa-text {
33
- font-family: inherit;
34
- }
35
- }
36
-
37
- // colour
38
- @each $color in $palette-list {
39
- $i: index($palette-list, $color);
40
-
41
- .avatar-#{$color} {
42
- background-color: nth($palette-color, $i);
43
- color: $white;
44
- }
45
- }
46
-
47
- .avatar-inline {
48
- display: inline-block;
49
- }
50
-
51
- .avatar-lg {
52
- height: ($line-height * 4);
53
- line-height: ($line-height * 4);
54
- width: ($line-height * 4);
55
- }
56
-
57
- .avatar-sm {
58
- height: ($line-height * 1.5);
59
- line-height: ($line-height * 1.5);
60
- margin-top: ($line-height * -0.25);
61
- margin-bottom: ($line-height * -0.25);
62
- width: ($line-height * 1.5);
63
- }
64
-
65
- .avatar-transparent {
66
- background-color: transparent;
67
- }
@@ -1,32 +0,0 @@
1
- .btn-flat {
2
- background-color: transparent;
3
- box-shadow: none;
4
- &:active,
5
- &:focus,
6
- &:hover {
7
- background-color: $black-bg;
8
- box-shadow: none;
9
- }
10
- &[disabled],
11
- fieldset[disabled] & {
12
- color: $black-text;
13
- }
14
- }
15
-
16
- // colour
17
- @each $color in $palette-list {
18
- $i: index($palette-list, $color);
19
-
20
- .btn-flat.btn-#{$color} {
21
- color: nth($palette-color, $i);
22
- &:active,
23
- &:focus,
24
- &:hover {
25
- background-color: nth($palette-color-light, $i);
26
- }
27
- &[disabled],
28
- fieldset[disabled] & {
29
- color: nth($palette-color, $i);
30
- }
31
- }
32
- }
@@ -1,202 +0,0 @@
1
- .fbtn {
2
- background-color: $black-bg;
3
- border-radius: 50%;
4
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
5
- clear: both;
6
- color: $black-text;
7
- cursor: pointer;
8
- display: block;
9
- font-size: $line-height;
10
- margin: ($line-height / 2) auto;
11
- padding: ($line-height / 2) 0;
12
- position: relative;
13
- text-align: center;
14
- transition: all 0.3s $timing;
15
- transition-property: box-shadow, opacity, transform;
16
- width: ($line-height * 2);
17
- }
18
-
19
- a.fbtn {
20
- &:focus,
21
- &:hover {
22
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 3px 15px rgba(0, 0, 0, 0.5);
23
- color: $black-text;
24
- }
25
- }
26
-
27
- // colour
28
- @each $color in $palette-list {
29
- $i: index($palette-list, $color);
30
-
31
- .fbtn-#{$color} {
32
- background-color: nth($palette-color, $i);
33
- color: $white !important;
34
- }
35
- }
36
-
37
- // size
38
- .fbtn-lg {
39
- padding: ($line-height * 0.75) 0;
40
- width: ($line-height * 2.5);
41
- .fbtn-sub {
42
- // position
43
- top: ($line-height * 0.75);
44
- }
45
- ~ .fbtn-dropdown {
46
- min-width: ($grid-gutter * 2 + $line-height * 2.5);
47
- }
48
- }
49
-
50
- .fbtn-container {
51
- backface-visibility: hidden;
52
- position: fixed;
53
- right: $grid-gutter;
54
- bottom: ($line-height / 2);
55
- transition: margin-bottom 0.3s $timing, right 0.3s $timing;
56
- z-index: ($content-base + 1);
57
- }
58
-
59
- .fbtn-dropdown {
60
- max-height: 0;
61
- overflow: hidden;
62
- padding-right: $grid-gutter;
63
- padding-left: $grid-gutter;
64
- position: absolute;
65
- right: ($grid-gutter * -1);
66
- bottom: 100%;
67
- transition: max-height 0s 0.5s;
68
- .fbtn-inner.open & {
69
- max-height: 99999px;
70
- overflow: visible;
71
- transition: max-height 0s;
72
- }
73
- .fbtn {
74
- opacity: 0;
75
- transform: scale(0.5);
76
- &:nth-last-child(1) {
77
- transition-delay: 300ms;
78
- }
79
- &:nth-last-child(2) {
80
- transition-delay: 250ms;
81
- }
82
- &:nth-last-child(3) {
83
- transition-delay: 200ms;
84
- }
85
- &:nth-last-child(4) {
86
- transition-delay: 150ms;
87
- }
88
- &:nth-last-child(5) {
89
- transition-delay: 100ms;
90
- }
91
- &:nth-last-child(6) {
92
- transition-delay: 50ms;
93
- }
94
- .fbtn-inner.open & {
95
- opacity: 1;
96
- transform: scale(1);
97
- transition-delay: 300ms;
98
- &:nth-last-child(1) {
99
- transition-delay: 0s;
100
- }
101
- &:nth-last-child(2) {
102
- transition-delay: 50ms;
103
- }
104
- &:nth-last-child(3) {
105
- transition-delay: 100ms;
106
- }
107
- &:nth-last-child(4) {
108
- transition-delay: 150ms;
109
- }
110
- &:nth-last-child(5) {
111
- transition-delay: 200ms;
112
- }
113
- &:nth-last-child(6) {
114
- transition-delay: 250ms;
115
- }
116
- }
117
- }
118
- }
119
-
120
- .fbtn-ori,
121
- .fbtn-sub {
122
- transition: all 0.3s $timing;
123
- transition-property: opacity, transform;
124
- &.#{$mdicon-css-prefix} {
125
- vertical-align: bottom;
126
- }
127
- }
128
-
129
- .fbtn-ori {
130
- .fbtn-inner.open & {
131
- opacity: 0;
132
- transform: rotate(225deg);
133
- }
134
- }
135
-
136
- .fbtn-rotate {
137
- transition: all 0.3s $timing;
138
- transition-property: opacity, transform;
139
- .fbtn-inner.open & {
140
- transform: rotate(225deg);
141
- }
142
- }
143
-
144
- .fbtn-sub {
145
- opacity: 0;
146
- position: absolute;
147
- top: ($line-height / 2);
148
- left: 0;
149
- text-align: center;
150
- transform: rotate(-225deg);
151
- width: 100%;
152
- .fbtn-inner.open & {
153
- opacity: 1;
154
- transform: rotate(0);
155
- }
156
- }
157
-
158
- .fbtn-text {
159
- background-color: $black-text;
160
- background-color: rgba(0, 0, 0, 0.8);
161
- border-radius: 2px;
162
- color: $white;
163
- font-size: $font-size-h6;
164
- height: 0;
165
- margin-top: ($line-height / -2);
166
- margin-right: $grid-gutter;
167
- opacity: 0;
168
- overflow: hidden;
169
- padding-right: ($grid-gutter / 2);
170
- padding-left: ($grid-gutter / 2);
171
- position: absolute;
172
- top: 50%;
173
- right: 100%;
174
- transition: opacity 0.3s $timing;
175
- white-space: nowrap;
176
- width: 0;
177
- // touch & no touch
178
- .no-touch .fbtn:hover & {
179
- height: auto;
180
- opacity: 1;
181
- width: auto;
182
- }
183
- .no-touch .fbtn-dropdown .fbtn:hover & {
184
- height: 0;
185
- opacity: 0;
186
- width: 0;
187
- }
188
- .no-touch .fbtn-inner.open .fbtn-dropdown .fbtn:hover & {
189
- height: auto;
190
- opacity: 1;
191
- width: auto;
192
- }
193
- .touch & {
194
- display: none;
195
- height: auto;
196
- opacity: 1;
197
- width: auto;
198
- }
199
- .touch .fbtn-inner.open & {
200
- display: block;
201
- }
202
- }