@shortfuse/materialdesignweb 0.3.0 → 0.4.0
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/.eslintrc.json +136 -30
- package/.stylelintrc.json +6 -40
- package/.vscode/launch.json +20 -5
- package/CHANGELOG.md +24 -0
- package/README.md +12 -9
- package/adapters/datatable/column.js +82 -74
- package/adapters/datatable/index.js +173 -131
- package/adapters/dom/index.js +529 -75
- package/adapters/list/index.js +25 -12
- package/adapters/search/index.js +13 -13
- package/components/appbar/_spec.scss +87 -64
- package/components/appbar/index.scss +2 -2
- package/components/banner/_spec.scss +8 -8
- package/components/banner/index.scss +2 -2
- package/components/bottomnav/_spec.scss +22 -17
- package/components/bottomnav/index.js +61 -52
- package/components/bottomnav/index.scss +2 -2
- package/components/bottomnav/item.js +44 -25
- package/components/button/README.md +14 -14
- package/components/button/_spec.scss +23 -22
- package/components/button/_theme.scss +37 -21
- package/components/button/index.eta +32 -0
- package/components/button/index.js +12 -12
- package/components/button/index.scss +2 -2
- package/components/card/_spec.scss +40 -36
- package/components/card/index.scss +2 -2
- package/components/chip/_spec.scss +7 -8
- package/components/chip/_theme.scss +31 -31
- package/components/chip/index.js +3 -2
- package/components/chip/index.scss +2 -2
- package/components/chip/item.js +1 -16
- package/components/datatable/_spec.scss +71 -85
- package/components/datatable/_theme.scss +61 -156
- package/components/datatable/cell.js +45 -0
- package/components/datatable/columnheader.js +47 -0
- package/components/datatable/index.js +279 -366
- package/components/datatable/index.scss +2 -2
- package/components/datatable/row.js +49 -0
- package/components/datatable/rowheader.js +18 -0
- package/components/dialog/_spec.scss +61 -41
- package/components/dialog/index.js +325 -297
- package/components/dialog/index.scss +2 -2
- package/components/divider/_spec.scss +8 -6
- package/components/divider/index.scss +2 -2
- package/components/elevation/_spec.scss +2 -2
- package/components/elevation/index.scss +2 -2
- package/components/fab/_spec.scss +23 -24
- package/components/fab/index.js +50 -50
- package/components/fab/index.scss +2 -2
- package/components/grid/_spec.scss +33 -31
- package/components/grid/index.scss +2 -2
- package/components/layout/_mixins.scss +5 -5
- package/components/layout/_spec.scss +206 -176
- package/components/layout/_theme.scss +14 -16
- package/components/layout/index.js +181 -153
- package/components/layout/index.scss +2 -2
- package/components/list/_spec.scss +117 -104
- package/components/list/_theme.scss +31 -34
- package/components/list/content.js +68 -52
- package/components/list/index.js +194 -61
- package/components/list/index.scss +2 -2
- package/components/list/item.js +136 -12
- package/components/list/secondary.js +46 -0
- package/components/menu/_spec.scss +32 -19
- package/components/menu/index.js +242 -229
- package/components/menu/index.scss +2 -2
- package/components/menu/item.js +95 -110
- package/components/progress/_spec.scss +35 -27
- package/components/progress/index.js +21 -0
- package/components/progress/index.scss +2 -1
- package/components/selection/_spec.scss +242 -224
- package/components/selection/_theme.scss +100 -95
- package/components/selection/index.eta +60 -0
- package/components/selection/index.js +76 -0
- package/components/selection/index.pug +15 -8
- package/components/selection/index.scss +2 -2
- package/components/selection/input.js +56 -0
- package/components/selection/radiogroup.js +47 -0
- package/components/slider/_spec.scss +10 -8
- package/components/slider/index.scss +2 -2
- package/components/snackbar/_spec.scss +22 -21
- package/components/snackbar/index.js +102 -111
- package/components/snackbar/index.scss +2 -2
- package/components/tab/_spec.scss +20 -19
- package/components/tab/content.js +41 -40
- package/components/tab/index.js +192 -99
- package/components/tab/index.scss +2 -2
- package/components/tab/item.js +38 -55
- package/components/tab/list.js +96 -72
- package/components/tab/panel.js +12 -13
- package/components/template/_theme.scss +11 -11
- package/components/textfield/_mixins.scss +52 -0
- package/components/textfield/_spec.scss +215 -266
- package/components/textfield/_theme.scss +95 -72
- package/components/textfield/index.eta +74 -0
- package/components/textfield/index.js +63 -57
- package/components/textfield/index.scss +2 -2
- package/components/tooltip/_spec.scss +27 -25
- package/components/tooltip/index.scss +2 -2
- package/components/type/_spec.scss +51 -38
- package/components/type/index.scss +2 -2
- package/core/_breakpoint.scss +75 -91
- package/core/_elevation.scss +10 -10
- package/core/_length.scss +9 -0
- package/core/_motion.scss +14 -14
- package/core/_platform.scss +9 -15
- package/core/_type.scss +33 -32
- package/core/aria/attributes.js +125 -25
- package/core/aria/button.js +23 -23
- package/core/aria/keyboard.js +93 -0
- package/core/aria/rovingtabindex.js +69 -154
- package/core/aria/tab.js +31 -28
- package/core/color/_theme.scss +240 -280
- package/core/color/index.scss +2 -2
- package/core/document/index.js +39 -0
- package/core/dom.js +12 -12
- package/core/overlay/_spec.scss +0 -3
- package/core/overlay/_theme.scss +56 -74
- package/core/overlay/index.js +49 -18
- package/core/overlay/index.scss +2 -2
- package/core/ripple/_spec.scss +22 -39
- package/core/ripple/_theme.scss +13 -13
- package/core/ripple/index.js +137 -134
- package/core/ripple/index.scss +2 -2
- package/core/theme/_config.scss +2 -0
- package/core/theme/_mixins.scss +172 -0
- package/core/theme/_palettes.scss +155 -135
- package/core/theme/_variables.scss +24 -15
- package/core/theme/index.js +50 -0
- package/core/throttler.js +1 -1
- package/core/transition/index.js +36 -20
- package/{docs-src → docs}/_flex.scss +0 -0
- package/{docs-src → docs}/_menuoptions.js +21 -34
- package/{docs-src → docs}/_mixins.pug +39 -26
- package/docs/_partials/_androidnavbar.eta +5 -0
- package/docs/_partials/_androidstatusbar.eta +13 -0
- package/docs/_partials/_appbar.eta +29 -0
- package/docs/_partials/_buttontest.eta +31 -0
- package/docs/_partials/_header.eta +149 -0
- package/docs/_partials/_navlistitem.eta +16 -0
- package/docs/_partials/_target.eta +1 -0
- package/{docs-src → docs}/_sample-utils.js +8 -6
- package/{docs-src → docs}/_storage.js +0 -0
- package/{docs-src → docs}/docs.scss +5 -2
- package/docs/index.eta +16 -0
- package/{docs-src → docs}/index.js +0 -0
- package/docs/pages/appbar.eta +114 -0
- package/{docs-src/components → docs/pages}/appbar.js +0 -0
- package/{docs-src/components → docs/pages}/appbar.pug +15 -18
- package/docs/pages/bottomnav.eta +188 -0
- package/{docs-src/components → docs/pages}/bottomnav.js +23 -24
- package/{docs-src/components → docs/pages}/bottomnav.pug +4 -4
- package/docs/pages/button.eta +124 -0
- package/{docs-src/components → docs/pages}/button.js +19 -19
- package/{docs-src/components → docs/pages}/button.pug +15 -15
- package/docs/pages/card.eta +90 -0
- package/{docs-src/components → docs/pages}/card.js +3 -3
- package/{docs-src/components → docs/pages}/card.pug +7 -7
- package/docs/pages/chip.eta +122 -0
- package/{docs-src/components → docs/pages}/chip.js +3 -6
- package/{docs-src/components → docs/pages}/chip.pug +2 -2
- package/docs/pages/color.eta +143 -0
- package/{docs-src/core → docs/pages}/color.js +95 -20
- package/docs/pages/color.pug +121 -0
- package/docs/pages/datatable.eta +323 -0
- package/{docs-src/components → docs/pages}/datatable.js +26 -13
- package/docs/pages/datatable.pug +283 -0
- package/docs/pages/dialog.eta +186 -0
- package/{docs-src/components → docs/pages}/dialog.js +26 -13
- package/{docs-src/components → docs/pages}/dialog.pug +46 -28
- package/docs/pages/dom.eta +26 -0
- package/docs/pages/dom.js +143 -0
- package/docs/pages/dom.pug +22 -0
- package/docs/pages/elevation.eta +35 -0
- package/{docs-src/components → docs/pages}/elevation.js +0 -0
- package/{docs-src/components → docs/pages}/elevation.pug +0 -0
- package/docs/pages/fab.eta +99 -0
- package/{docs-src/components → docs/pages}/fab.js +3 -3
- package/{docs-src/components → docs/pages}/fab.pug +2 -2
- package/docs/pages/grid.eta +135 -0
- package/{docs-src/components → docs/pages}/grid.js +1 -1
- package/{docs-src/components → docs/pages}/grid.pug +3 -3
- package/docs/pages/layout.eta +8 -0
- package/{docs-src/components → docs/pages}/layout.js +0 -0
- package/{docs-src/components → docs/pages}/layout.pug +0 -0
- package/docs/pages/list.eta +465 -0
- package/{docs-src/components → docs/pages}/list.js +2 -2
- package/{docs-src/components → docs/pages}/list.pug +7 -14
- package/docs/pages/menu.eta +276 -0
- package/{docs-src/components → docs/pages}/menu.js +14 -10
- package/{docs-src/components → docs/pages}/menu.pug +0 -0
- package/docs/pages/overlay.eta +69 -0
- package/docs/pages/overlay.js +4 -0
- package/{docs-src/core → docs/pages}/overlay.pug +14 -11
- package/docs/pages/progress.eta +23 -0
- package/{docs-src/components → docs/pages}/progress.js +1 -1
- package/{docs-src/components → docs/pages}/progress.pug +1 -1
- package/docs/pages/ripple.eta +27 -0
- package/docs/pages/ripple.js +4 -0
- package/{docs-src/core → docs/pages}/ripple.pug +4 -4
- package/docs/pages/search.eta +246 -0
- package/{docs-src/components → docs/pages}/search.js +59 -42
- package/{docs-src/components → docs/pages}/search.pug +50 -51
- package/docs/pages/selection.eta +111 -0
- package/docs/pages/selection.js +13 -0
- package/docs/pages/selection.pug +74 -0
- package/docs/pages/slider.eta +23 -0
- package/{docs-src/components → docs/pages}/slider.js +0 -0
- package/{docs-src/components → docs/pages}/slider.pug +0 -0
- package/docs/pages/snackbar.eta +83 -0
- package/{docs-src/components → docs/pages}/snackbar.js +3 -3
- package/{docs-src/components → docs/pages}/snackbar.pug +0 -0
- package/docs/pages/tab.eta +421 -0
- package/{docs-src/components → docs/pages}/tab.js +18 -35
- package/{docs-src/components → docs/pages}/tab.pug +4 -4
- package/docs/pages/textfield.eta +486 -0
- package/{docs-src/components → docs/pages}/textfield.js +3 -4
- package/{docs-src/components → docs/pages}/textfield.pug +87 -35
- package/docs/pages/tooltip.eta +94 -0
- package/{docs-src/components → docs/pages}/tooltip.js +0 -0
- package/{docs-src/components → docs/pages}/tooltip.pug +0 -1
- package/docs/pages/transition.eta +117 -0
- package/{docs-src/core → docs/pages}/transition.js +7 -8
- package/{docs-src/core → docs/pages}/transition.pug +0 -0
- package/docs/pages/type.eta +31 -0
- package/{docs-src/components → docs/pages}/type.js +0 -0
- package/{docs-src/components → docs/pages}/type.pug +0 -1
- package/docs/postrender.js +39 -0
- package/{docs-src → docs}/prerender.js +3 -9
- package/docs/pwa/_dialogs.eta +143 -0
- package/docs/pwa/_dialogs.pug +96 -0
- package/docs/pwa/_menus.eta +16 -0
- package/{docs-src → docs}/pwa/_menus.pug +0 -0
- package/docs/pwa/pwa-prerender.js +3 -0
- package/docs/pwa/pwa.eta +480 -0
- package/docs/pwa/pwa.js +306 -0
- package/{docs-src → docs}/pwa/pwa.pug +166 -263
- package/docs/pwa/pwa.scss +26 -0
- package/docs/spec.scss +26 -0
- package/docs/themes/_component-themes.scss +26 -0
- package/docs/themes/theme-colored-fallbacks.scss +17 -0
- package/docs/themes/theme-colored.scss +17 -0
- package/docs/themes/theme-default-fallbacks.scss +17 -0
- package/docs/themes/theme-default.scss +17 -0
- package/jsconfig.json +4 -2
- package/package.json +40 -27
- package/scripts/deploy-docs.sh +9 -0
- package/templates/index.eta +2 -0
- package/utils/function.js +3 -0
- package/webpack.config.cjs +257 -0
- package/_spec.scss +0 -27
- package/_theme.scss +0 -27
- package/components/list/expander.js +0 -142
- package/components/list/itemgroup.js +0 -22
- package/core/theme/_builder.scss +0 -116
- package/core/theme/index.scss +0 -68
- package/docs/appbar.html +0 -1
- package/docs/appbar.min.js +0 -2
- package/docs/appbar.min.js.map +0 -1
- package/docs/bottomnav.html +0 -1
- package/docs/bottomnav.min.js +0 -2
- package/docs/bottomnav.min.js.map +0 -1
- package/docs/button.html +0 -1
- package/docs/button.min.js +0 -2
- package/docs/button.min.js.map +0 -1
- package/docs/card.html +0 -1
- package/docs/card.min.js +0 -2
- package/docs/card.min.js.map +0 -1
- package/docs/chip.html +0 -1
- package/docs/chip.min.js +0 -2
- package/docs/chip.min.js.map +0 -1
- package/docs/color.html +0 -1
- package/docs/color.min.js +0 -2
- package/docs/color.min.js.map +0 -1
- package/docs/datatable.html +0 -1
- package/docs/datatable.min.js +0 -2
- package/docs/datatable.min.js.map +0 -1
- package/docs/default.common.min.js +0 -2
- package/docs/default.common.min.js.map +0 -1
- package/docs/dialog.html +0 -1
- package/docs/dialog.min.js +0 -2
- package/docs/dialog.min.js.map +0 -1
- package/docs/docs.min.css +0 -1
- package/docs/docs.min.js +0 -2
- package/docs/docs.min.js.map +0 -1
- package/docs/elevation.html +0 -1
- package/docs/elevation.min.js +0 -2
- package/docs/elevation.min.js.map +0 -1
- package/docs/fab.html +0 -1
- package/docs/fab.min.js +0 -2
- package/docs/fab.min.js.map +0 -1
- package/docs/grid.html +0 -1
- package/docs/grid.min.js +0 -2
- package/docs/grid.min.js.map +0 -1
- package/docs/index.html +0 -1
- package/docs/index.min.js +0 -2
- package/docs/index.min.js.map +0 -1
- package/docs/ink.html +0 -1
- package/docs/ink.min.js +0 -2
- package/docs/ink.min.js.map +0 -1
- package/docs/layout.html +0 -1
- package/docs/layout.min.js +0 -2
- package/docs/layout.min.js.map +0 -1
- package/docs/list.html +0 -1
- package/docs/list.min.js +0 -2
- package/docs/list.min.js.map +0 -1
- package/docs/menu.html +0 -1
- package/docs/menu.min.js +0 -2
- package/docs/menu.min.js.map +0 -1
- package/docs/overlay.html +0 -1
- package/docs/overlay.min.js +0 -2
- package/docs/overlay.min.js.map +0 -1
- package/docs/prerender.common.min.js +0 -2
- package/docs/prerender.common.min.js.map +0 -1
- package/docs/prerender.min.js +0 -2
- package/docs/prerender.min.js.map +0 -1
- package/docs/progress.html +0 -1
- package/docs/progress.min.js +0 -2
- package/docs/progress.min.js.map +0 -1
- package/docs/pwa-prerender.min.js +0 -2
- package/docs/pwa-prerender.min.js.map +0 -1
- package/docs/pwa.html +0 -11
- package/docs/pwa.min.css +0 -1
- package/docs/pwa.min.js +0 -2
- package/docs/pwa.min.js.map +0 -1
- package/docs/ripple.html +0 -1
- package/docs/ripple.min.js +0 -2
- package/docs/ripple.min.js.map +0 -1
- package/docs/search.html +0 -1
- package/docs/search.min.js +0 -2
- package/docs/search.min.js.map +0 -1
- package/docs/selection.html +0 -1
- package/docs/selection.min.js +0 -2
- package/docs/selection.min.js.map +0 -1
- package/docs/slider.html +0 -1
- package/docs/slider.min.js +0 -2
- package/docs/slider.min.js.map +0 -1
- package/docs/snackbar.html +0 -1
- package/docs/snackbar.min.js +0 -2
- package/docs/snackbar.min.js.map +0 -1
- package/docs/spec.min.css +0 -1
- package/docs/spec.min.js +0 -2
- package/docs/spec.min.js.map +0 -1
- package/docs/surface.html +0 -1
- package/docs/surface.min.js +0 -2
- package/docs/surface.min.js.map +0 -1
- package/docs/tab.html +0 -1
- package/docs/tab.min.js +0 -2
- package/docs/tab.min.js.map +0 -1
- package/docs/textfield.html +0 -2
- package/docs/textfield.min.js +0 -2
- package/docs/textfield.min.js.map +0 -1
- package/docs/theme-colored-fallbacks.min.css +0 -1
- package/docs/theme-colored-fallbacks.min.js +0 -2
- package/docs/theme-colored-fallbacks.min.js.map +0 -1
- package/docs/theme-colored.min.css +0 -1
- package/docs/theme-colored.min.js +0 -2
- package/docs/theme-colored.min.js.map +0 -1
- package/docs/theme-default-fallbacks.min.css +0 -1
- package/docs/theme-default-fallbacks.min.js +0 -2
- package/docs/theme-default-fallbacks.min.js.map +0 -1
- package/docs/theme-default.min.css +0 -1
- package/docs/theme-default.min.js +0 -2
- package/docs/theme-default.min.js.map +0 -1
- package/docs/themes-fallbacks.min.css +0 -1
- package/docs/themes-fallbacks.min.js +0 -2
- package/docs/themes-fallbacks.min.js.map +0 -1
- package/docs/themes.min.css +0 -1
- package/docs/themes.min.js +0 -2
- package/docs/themes.min.js.map +0 -1
- package/docs/tooltip.html +0 -1
- package/docs/tooltip.min.js +0 -2
- package/docs/tooltip.min.js.map +0 -1
- package/docs/transition.html +0 -1
- package/docs/transition.min.js +0 -2
- package/docs/transition.min.js.map +0 -1
- package/docs/type.html +0 -1
- package/docs/type.min.js +0 -2
- package/docs/type.min.js.map +0 -1
- package/docs-src/components/datatable.pug +0 -327
- package/docs-src/components/selection.js +0 -9
- package/docs-src/components/selection.pug +0 -77
- package/docs-src/core/color.pug +0 -201
- package/docs-src/core/overlay.js +0 -4
- package/docs-src/core/ripple.js +0 -4
- package/docs-src/index.pug +0 -9
- package/docs-src/pwa/_dialogs.pug +0 -15
- package/docs-src/pwa/pwa-prerender.js +0 -3
- package/docs-src/pwa/pwa.js +0 -182
- package/docs-src/pwa/pwa.scss +0 -25
- package/docs-src/spec.scss +0 -1
- package/docs-src/themes/theme-colored-fallbacks.scss +0 -14
- package/docs-src/themes/theme-colored.scss +0 -14
- package/docs-src/themes/theme-default-fallbacks.scss +0 -14
- package/docs-src/themes/theme-default.scss +0 -14
- package/index.js +0 -51
- package/index.scss +0 -2
- package/webpack.config.js +0 -187
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
// https://material.io/design/components/tooltips.html#spec
|
|
2
2
|
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
3
|
+
@use '../../core/_length.scss' as *;
|
|
4
|
+
@use '../../core/_motion.scss' as motion;
|
|
5
|
+
@use '../../core/_platform.scss' as platform;
|
|
6
|
+
@use '../../core/_type.scss' as type;
|
|
7
|
+
|
|
6
8
|
|
|
7
9
|
// Guidelines state background is #616161, which is Gray 700
|
|
8
10
|
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$
|
|
12
|
-
$
|
|
11
|
+
$desktop-margin: dp(14) !default;
|
|
12
|
+
$mobile-margin: dp(24) !default;
|
|
13
|
+
$touch-fade-out-time: 1.5s !default;
|
|
14
|
+
$touch-min-hold-time: 500ms !default;
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
.mdw-tooltip__wrapper {
|
|
@@ -27,7 +29,7 @@ $mdw-tooltip__touch-min-hold-time: 500ms !default;
|
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
.mdw-tooltip {
|
|
30
|
-
@include type
|
|
32
|
+
@include type.addRules('caption');
|
|
31
33
|
|
|
32
34
|
position: absolute;
|
|
33
35
|
|
|
@@ -42,15 +44,15 @@ $mdw-tooltip__touch-min-hold-time: 500ms !default;
|
|
|
42
44
|
|
|
43
45
|
cursor: none;
|
|
44
46
|
|
|
45
|
-
transition-duration:
|
|
47
|
+
transition-duration: motion.$fadeOutDuration;
|
|
46
48
|
transition-property: opacity;
|
|
47
|
-
transition-timing-function:
|
|
49
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
48
50
|
|
|
49
51
|
opacity: 0;
|
|
50
52
|
pointer-events: none;
|
|
51
53
|
// Default Alignment is Center
|
|
52
54
|
|
|
53
|
-
transform: translateX(-50%) translateY($
|
|
55
|
+
transform: translateX(-50%) translateY($desktop-margin);
|
|
54
56
|
z-index: 8;
|
|
55
57
|
|
|
56
58
|
border-radius: dp(4);
|
|
@@ -62,8 +64,8 @@ $mdw-tooltip__touch-min-hold-time: 500ms !default;
|
|
|
62
64
|
.mdw-tooltip__target:focus > &,
|
|
63
65
|
.mdw-tooltip__wrapper > .mdw-tooltip__target:hover ~ &,
|
|
64
66
|
.mdw-tooltip__wrapper > .mdw-tooltip__target:not([tabindex="-1"]):focus ~ & {
|
|
65
|
-
transition-duration:
|
|
66
|
-
transition-timing-function:
|
|
67
|
+
transition-duration: motion.$fadeInDuration;
|
|
68
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
67
69
|
|
|
68
70
|
opacity: 0.9;
|
|
69
71
|
}
|
|
@@ -82,7 +84,7 @@ $mdw-tooltip__touch-min-hold-time: 500ms !default;
|
|
|
82
84
|
|
|
83
85
|
&[mdw-align="start"],
|
|
84
86
|
&[mdw-align="end"] {
|
|
85
|
-
transform: translateY($
|
|
87
|
+
transform: translateY($desktop-margin);
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
&[mdw-position="start"],
|
|
@@ -110,11 +112,11 @@ $mdw-tooltip__touch-min-hold-time: 500ms !default;
|
|
|
110
112
|
&[mdw-position="top"] {
|
|
111
113
|
top: 0;
|
|
112
114
|
|
|
113
|
-
transform: translateX(-50%) translateY(-100%) translateY(-$
|
|
115
|
+
transform: translateX(-50%) translateY(-100%) translateY(-$desktop-margin);
|
|
114
116
|
|
|
115
117
|
&[mdw-align="start"],
|
|
116
118
|
&[mdw-align="end"] {
|
|
117
|
-
transform: translateY(-100%) translateY(-$
|
|
119
|
+
transform: translateY(-100%) translateY(-$desktop-margin);
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
122
|
|
|
@@ -140,27 +142,27 @@ $mdw-tooltip__touch-min-hold-time: 500ms !default;
|
|
|
140
142
|
opacity: 0;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
@include
|
|
145
|
+
@include platform.ifHasTouch() {
|
|
144
146
|
.mdw-tooltip {
|
|
145
147
|
padding: dp(10) dp(16);
|
|
146
148
|
|
|
147
|
-
transition-delay: $
|
|
149
|
+
transition-delay: $touch-min-hold-time;
|
|
148
150
|
|
|
149
|
-
transform: translateX(-50%) translateY($
|
|
151
|
+
transform: translateX(-50%) translateY($mobile-margin);
|
|
150
152
|
|
|
151
153
|
font-size: sp(14);
|
|
152
154
|
|
|
153
155
|
&[mdw-align="start"],
|
|
154
156
|
&[mdw-align="end"] {
|
|
155
|
-
transform: translateY($
|
|
157
|
+
transform: translateY($mobile-margin);
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
&[mdw-position="top"] {
|
|
159
|
-
transform: translateX(-50%) translateY(-100%) translateY(-$
|
|
161
|
+
transform: translateX(-50%) translateY(-100%) translateY(-$mobile-margin);
|
|
160
162
|
|
|
161
163
|
&[mdw-align="start"],
|
|
162
164
|
&[mdw-align="end"] {
|
|
163
|
-
transform: translateY(-100%) translateY(-$
|
|
165
|
+
transform: translateY(-100%) translateY(-$mobile-margin);
|
|
164
166
|
}
|
|
165
167
|
}
|
|
166
168
|
|
|
@@ -169,15 +171,15 @@ $mdw-tooltip__touch-min-hold-time: 500ms !default;
|
|
|
169
171
|
.mdw-tooltip__target:focus:not(:active) > &,
|
|
170
172
|
.mdw-tooltip__wrapper > .mdw-tooltip__target:hover:not(:active) ~ &,
|
|
171
173
|
.mdw-tooltip__wrapper > .mdw-tooltip__target:not([tabindex="-1"]):focus:not(:active) ~ & {
|
|
172
|
-
transition-delay: $
|
|
174
|
+
transition-delay: $touch-fade-out-time;
|
|
173
175
|
|
|
174
176
|
opacity: 0;
|
|
175
177
|
}
|
|
176
178
|
|
|
177
179
|
.mdw-tooltip__target:active > &,
|
|
178
180
|
.mdw-tooltip__wrapper > .mdw-tooltip__target:active ~ .mdw-tooltip {
|
|
179
|
-
transition-duration:
|
|
180
|
-
transition-timing-function:
|
|
181
|
+
transition-duration: motion.$fadeInDuration;
|
|
182
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
181
183
|
|
|
182
184
|
opacity: 0.9;
|
|
183
185
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@forward './_spec.scss';
|
|
2
|
+
@forward './_theme.scss';
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// https://material.io/guidelines/style/typography.html
|
|
2
2
|
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
3
|
+
@use '../../core/_breakpoint.scss' as breakpoint;
|
|
4
|
+
@use '../../core/_length.scss' as *;
|
|
5
|
+
@use '../../core/_type.scss' as type;
|
|
6
|
+
|
|
7
|
+
// 4 dp/sp baselines
|
|
8
|
+
$baselines: (4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 48, 56, 64) !default;
|
|
9
|
+
|
|
6
10
|
|
|
7
11
|
h1.mdw-type,
|
|
8
12
|
h2.mdw-type,
|
|
@@ -15,151 +19,156 @@ p.mdw-type {
|
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
p.mdw-type {
|
|
18
|
-
hyphens: auto;
|
|
19
|
-
-webkit-hyphens: auto;
|
|
20
22
|
-ms-hyphens: auto;
|
|
23
|
+
-webkit-hyphens: auto;
|
|
24
|
+
hyphens: auto;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
h1.mdw-type,
|
|
24
28
|
.mdw-type[mdw-style="h1"] {
|
|
25
|
-
@include type
|
|
29
|
+
@include type.addRules('h1');
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
h2.mdw-type,
|
|
29
33
|
.mdw-type[mdw-style="h2"] {
|
|
30
|
-
@include type
|
|
34
|
+
@include type.addRules('h2');
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
h3.mdw-type,
|
|
34
38
|
.mdw-type[mdw-style="h3"] {
|
|
35
|
-
@include type
|
|
39
|
+
@include type.addRules('h3');
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
h4.mdw-type,
|
|
39
43
|
.mdw-type[mdw-style="h4"] {
|
|
40
|
-
@include type
|
|
44
|
+
@include type.addRules('h4');
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
h5.mdw-type,
|
|
44
48
|
.mdw-type[mdw-style="h5"] {
|
|
45
|
-
@include type
|
|
49
|
+
@include type.addRules('h5');
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
h6.mdw-type,
|
|
49
53
|
.mdw-type[mdw-style="h6"] {
|
|
50
|
-
@include type
|
|
54
|
+
@include type.addRules('h6');
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
.mdw-type[mdw-style="subtitle"] {
|
|
54
|
-
@include type
|
|
58
|
+
@include type.addRules('subtitle');
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
.mdw-type[mdw-style="subtitle-2"] {
|
|
58
|
-
@include type
|
|
62
|
+
@include type.addRules('subtitle-2');
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
body.mdw-type,
|
|
62
66
|
p.mdw-type,
|
|
63
67
|
.mdw-type[mdw-style="body"] {
|
|
64
|
-
@include type
|
|
68
|
+
@include type.addRules('body');
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
.mdw-type[mdw-style="body-2"] {
|
|
68
|
-
@include type
|
|
72
|
+
@include type.addRules('body-2');
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
.mdw-type[mdw-style="button"] {
|
|
72
|
-
@include type
|
|
76
|
+
@include type.addRules('button');
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
.mdw-type[mdw-style="caption"] {
|
|
76
|
-
@include type
|
|
80
|
+
@include type.addRules('caption');
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
.mdw-type[mdw-style="overline"] {
|
|
80
|
-
@include type
|
|
84
|
+
@include type.addRules('overline');
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
// MD-2014 Typography
|
|
84
88
|
|
|
85
89
|
|
|
86
90
|
.mdw-type[mdw-style|="display"] {
|
|
87
|
-
font-weight:
|
|
91
|
+
font-weight: type.$weightRegular;
|
|
88
92
|
font-size: sp(34);
|
|
89
93
|
line-height: sp(40);
|
|
90
94
|
}
|
|
95
|
+
|
|
91
96
|
.mdw-type[mdw-style="display-4"] {
|
|
97
|
+
font-weight: type.$weightLight;
|
|
92
98
|
font-size: sp(112);
|
|
93
99
|
line-height: normal;
|
|
94
|
-
font-weight: $font-weight-light;
|
|
95
100
|
white-space: nowrap;
|
|
96
101
|
}
|
|
102
|
+
|
|
97
103
|
.mdw-type[mdw-style="display-3"] {
|
|
98
104
|
font-size: sp(56);
|
|
99
105
|
line-height: normal;
|
|
100
106
|
white-space: nowrap;
|
|
101
107
|
}
|
|
108
|
+
|
|
102
109
|
.mdw-type[mdw-style="display-2"] {
|
|
103
110
|
font-size: sp(45);
|
|
104
111
|
line-height: sp(48);
|
|
105
112
|
}
|
|
113
|
+
|
|
106
114
|
.mdw-type[mdw-style="headline"] {
|
|
115
|
+
font-weight: type.$weightRegular;
|
|
107
116
|
font-size: sp(24);
|
|
108
117
|
line-height: sp(32);
|
|
109
|
-
font-weight: $font-weight-regular;
|
|
110
118
|
}
|
|
119
|
+
|
|
111
120
|
.mdw-type[mdw-style="title"] {
|
|
121
|
+
font-weight: type.$weightMedium;
|
|
112
122
|
font-size: sp(20);
|
|
113
|
-
font-weight: $font-weight-medium;
|
|
114
123
|
white-space: nowrap;
|
|
115
124
|
}
|
|
125
|
+
|
|
116
126
|
.mdw-type[mdw-style|="subheading"] {
|
|
127
|
+
font-weight: type.$weightRegular;
|
|
117
128
|
font-size: sp(15);
|
|
118
|
-
@include
|
|
119
|
-
|
|
129
|
+
@include breakpoint.maxTabletDevice() {
|
|
130
|
+
font-size: sp(16);
|
|
120
131
|
}
|
|
121
|
-
font-weight: $font-weight-regular;
|
|
122
132
|
line-height: sp(24);
|
|
123
133
|
}
|
|
134
|
+
|
|
124
135
|
.mdw-type[mdw-style="subheading-2"] {
|
|
125
136
|
line-height: sp(28);
|
|
126
|
-
@include
|
|
127
|
-
|
|
137
|
+
@include breakpoint.maxTabletDevice() {
|
|
138
|
+
line-height: sp(28);
|
|
128
139
|
}
|
|
129
140
|
}
|
|
130
141
|
|
|
131
142
|
.mdw-type[mdw-texttop-top]::before {
|
|
132
|
-
content: '';
|
|
133
143
|
display: inline-block;
|
|
144
|
+
content: '';
|
|
145
|
+
|
|
134
146
|
height: 1em;
|
|
135
147
|
}
|
|
136
148
|
|
|
137
149
|
.mdw-type[mdw-baseline-top]::before {
|
|
138
|
-
content: '';
|
|
139
150
|
display: inline-block;
|
|
151
|
+
content: '';
|
|
140
152
|
}
|
|
141
153
|
|
|
142
154
|
.mdw-type[mdw-baseline-next],
|
|
143
155
|
.mdw-type[mdw-baseline-bottom] {
|
|
144
156
|
&::after {
|
|
145
|
-
content: '';
|
|
146
157
|
display: inline-block;
|
|
158
|
+
content: '';
|
|
159
|
+
|
|
160
|
+
min-height: dp(1); // Safari workaround
|
|
147
161
|
}
|
|
148
162
|
}
|
|
149
163
|
|
|
150
164
|
.mdw-type[mdw-baseline-next] {
|
|
151
165
|
& + .mdw-type::before {
|
|
152
|
-
content: '';
|
|
153
166
|
display: inline-block;
|
|
167
|
+
content: '';
|
|
154
168
|
}
|
|
155
169
|
}
|
|
156
170
|
|
|
157
|
-
|
|
158
|
-
$mdw-type__baselines: (
|
|
159
|
-
4, 8, 12, 16, 20, 24, 28, 32, 36,
|
|
160
|
-
40, 48, 56, 64) !default;
|
|
161
|
-
|
|
162
|
-
@each $bl in $mdw-type__baselines {
|
|
171
|
+
@each $bl in $baselines {
|
|
163
172
|
.mdw-type[mdw-texttop-top="#{$bl}dp"] {
|
|
164
173
|
&::before {
|
|
165
174
|
margin-top: dp($bl);
|
|
@@ -192,20 +201,24 @@ $mdw-type__baselines: (
|
|
|
192
201
|
}
|
|
193
202
|
.mdw-type[mdw-baseline-next="#{$bl}dp"] {
|
|
194
203
|
margin-bottom: dp(-$bl);
|
|
204
|
+
|
|
195
205
|
&::after {
|
|
196
206
|
vertical-align: dp(-$bl);
|
|
197
207
|
}
|
|
208
|
+
|
|
198
209
|
& + .mdw-type::before {
|
|
199
210
|
height: dp($bl);
|
|
200
211
|
}
|
|
201
212
|
}
|
|
202
213
|
.mdw-type[mdw-baseline-next="#{$bl}"] {
|
|
203
214
|
margin-bottom: sp(-$bl);
|
|
215
|
+
|
|
204
216
|
&::after {
|
|
205
217
|
vertical-align: sp(-$bl);
|
|
206
218
|
}
|
|
219
|
+
|
|
207
220
|
& + .mdw-type::before {
|
|
208
221
|
height: sp($bl);
|
|
209
222
|
}
|
|
210
223
|
}
|
|
211
|
-
}
|
|
224
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@forward './_spec.scss';
|
|
2
|
+
@forward './_theme.scss';
|
package/core/_breakpoint.scss
CHANGED
|
@@ -1,145 +1,137 @@
|
|
|
1
1
|
// https://material.io/design/layout/responsive-layout-grid.html#breakpoints
|
|
2
2
|
|
|
3
|
-
@
|
|
4
|
-
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
|
|
12
|
-
$
|
|
13
|
-
$
|
|
14
|
-
$
|
|
15
|
-
$
|
|
16
|
-
$
|
|
17
|
-
$
|
|
18
|
-
|
|
19
|
-
$
|
|
20
|
-
$
|
|
21
|
-
$
|
|
22
|
-
$
|
|
23
|
-
$
|
|
24
|
-
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
3
|
+
@use "./_length.scss" as *;
|
|
4
|
+
|
|
5
|
+
$portraitSmallHandset: dp(0) !default;
|
|
6
|
+
$portraitMediumHandset: dp(360) !default;
|
|
7
|
+
$portraitLargeHandset: dp(400) !default;
|
|
8
|
+
$portraitSmallTablet: dp(600) !default;
|
|
9
|
+
$portraitLargeTablet: dp(720) !default;
|
|
10
|
+
$portraitDesktop: dp(960) !default;
|
|
11
|
+
|
|
12
|
+
$landscapeSmallHandset: dp(480) !default;
|
|
13
|
+
$landscapeMediumHandset: dp(600) !default;
|
|
14
|
+
$landscapeLargeHandset: dp(720) !default;
|
|
15
|
+
$landscapeSmallTablet: dp(960) !default;
|
|
16
|
+
$landscapeLargeTablet: dp(1024) !default;
|
|
17
|
+
$landscapeDesktop: dp(1440) !default;
|
|
18
|
+
|
|
19
|
+
$windowXSmall: dp(0) !default;
|
|
20
|
+
$windowSmall: dp(600) !default;
|
|
21
|
+
$windowMedium: dp(1024) !default;
|
|
22
|
+
$windowLarge: dp(1440) !default;
|
|
23
|
+
$windowXLarge: dp(1920) !default;
|
|
24
|
+
|
|
25
|
+
$columns4: dp(0) !default;
|
|
26
|
+
$columns8: dp(600) !default;
|
|
27
|
+
$columns12: dp(840) !default;
|
|
28
28
|
|
|
29
29
|
// Column-count based mixins
|
|
30
30
|
|
|
31
|
-
@mixin
|
|
32
|
-
@media
|
|
31
|
+
@mixin is4Columns {
|
|
32
|
+
@media (max-width: #{$columns8 - 1}) {
|
|
33
33
|
@content;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
@mixin
|
|
38
|
-
@media
|
|
37
|
+
@mixin min8Columns {
|
|
38
|
+
@media (min-width: $columns8) {
|
|
39
39
|
@content;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@mixin
|
|
44
|
-
@media
|
|
43
|
+
@mixin max8Columns {
|
|
44
|
+
@media (max-width: #{$columns12 - 1}) {
|
|
45
45
|
@content;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
@mixin
|
|
50
|
-
@media
|
|
51
|
-
and (min-width: $mdw-breakpoint__columns__8)
|
|
52
|
-
and (max-width: #{$mdw-breakpoint__columns__12 - 1}) {
|
|
49
|
+
@mixin is8Columns {
|
|
50
|
+
@media (min-width: $columns8) and (max-width: #{$columns12 - 1}) {
|
|
53
51
|
@content;
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
@mixin
|
|
58
|
-
@media
|
|
55
|
+
@mixin is12Columns {
|
|
56
|
+
@media (min-width: $columns12) {
|
|
59
57
|
@content;
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
// Smallest width less than 600dp
|
|
64
62
|
|
|
65
|
-
@mixin
|
|
63
|
+
@mixin has16DPMargin {
|
|
66
64
|
@media
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
(orientation:portrait) and (max-width: dp(599)),
|
|
66
|
+
(orientation:landscape) and (max-height: dp(599)) {
|
|
69
67
|
@content;
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
// Window-size based mixins
|
|
74
72
|
|
|
75
|
-
@mixin
|
|
76
|
-
@media
|
|
73
|
+
@mixin isXSmallWindow {
|
|
74
|
+
@media (max-width: #{$windowSmall - 1}) {
|
|
77
75
|
@content;
|
|
78
76
|
}
|
|
79
77
|
}
|
|
80
78
|
|
|
81
|
-
@mixin
|
|
82
|
-
@media
|
|
79
|
+
@mixin minSmallWindow {
|
|
80
|
+
@media (min-width: #{$windowSmall}) {
|
|
83
81
|
@content;
|
|
84
82
|
}
|
|
85
83
|
}
|
|
86
84
|
|
|
87
|
-
@mixin
|
|
88
|
-
@media
|
|
85
|
+
@mixin maxSmallWindow {
|
|
86
|
+
@media (max-width: #{$windowMedium - 1}) {
|
|
89
87
|
@content;
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
|
|
93
|
-
@mixin
|
|
94
|
-
@media
|
|
95
|
-
and (min-width: $mdw-breakpoint__window__small)
|
|
96
|
-
and (max-width: #{$mdw-breakpoint__window__medium - 1}) {
|
|
91
|
+
@mixin isSmallWindow {
|
|
92
|
+
@media (min-width: $windowSmall) and (max-width: #{$windowMedium - 1}) {
|
|
97
93
|
@content;
|
|
98
94
|
}
|
|
99
95
|
}
|
|
100
96
|
|
|
101
|
-
@mixin
|
|
102
|
-
@media
|
|
97
|
+
@mixin minMediumWindow {
|
|
98
|
+
@media (min-width: #{$windowMedium}) {
|
|
103
99
|
@content;
|
|
104
100
|
}
|
|
105
101
|
}
|
|
106
102
|
|
|
107
|
-
@mixin
|
|
108
|
-
@media
|
|
103
|
+
@mixin maxMediumWindow {
|
|
104
|
+
@media (max-width: #{$windowLarge - 1}) {
|
|
109
105
|
@content;
|
|
110
106
|
}
|
|
111
107
|
}
|
|
112
108
|
|
|
113
|
-
@mixin
|
|
114
|
-
@media
|
|
115
|
-
and (min-width: $mdw-breakpoint__window__medium)
|
|
116
|
-
and (max-width: #{$mdw-breakpoint__window__large - 1}) {
|
|
109
|
+
@mixin isMediumWindow {
|
|
110
|
+
@media (min-width: $windowMedium) and (max-width: #{$windowLarge - 1}) {
|
|
117
111
|
@content;
|
|
118
112
|
}
|
|
119
113
|
}
|
|
120
114
|
|
|
121
|
-
@mixin
|
|
122
|
-
@media
|
|
115
|
+
@mixin minLargeWindow {
|
|
116
|
+
@media (min-width: #{$windowLarge}) {
|
|
123
117
|
@content;
|
|
124
118
|
}
|
|
125
119
|
}
|
|
126
120
|
|
|
127
|
-
@mixin
|
|
128
|
-
@media
|
|
121
|
+
@mixin maxLargeWindow {
|
|
122
|
+
@media (max-width: #{$windowXLarge - 1}) {
|
|
129
123
|
@content;
|
|
130
124
|
}
|
|
131
125
|
}
|
|
132
126
|
|
|
133
|
-
@mixin
|
|
134
|
-
@media
|
|
135
|
-
and (min-width: $mdw-breakpoint__window__large)
|
|
136
|
-
and (max-width: #{$mdw-breakpoint__window__xlarge - 1}) {
|
|
127
|
+
@mixin isLargeWindow {
|
|
128
|
+
@media (min-width: $windowLarge) and (max-width: #{$windowXLarge - 1}) {
|
|
137
129
|
@content;
|
|
138
130
|
}
|
|
139
131
|
}
|
|
140
132
|
|
|
141
|
-
@mixin
|
|
142
|
-
@media
|
|
133
|
+
@mixin isXLargeWindow {
|
|
134
|
+
@media (min-width: $windowXLarge) {
|
|
143
135
|
@content;
|
|
144
136
|
}
|
|
145
137
|
}
|
|
@@ -151,54 +143,46 @@ $mdw-breakpoint__columns__12: dp(840) !default;
|
|
|
151
143
|
// min-device-width is unsafe due to older Android bugs
|
|
152
144
|
// https://developers.google.com/web/fundamentals/design-and-ux/responsive/
|
|
153
145
|
|
|
154
|
-
@mixin
|
|
155
|
-
@media
|
|
156
|
-
and (max-device-width: #{$mdw-breakpoint__portrait__small-tablet - 1})
|
|
146
|
+
@mixin isMobileDevicePortrait {
|
|
147
|
+
@media (max-device-width: #{$portraitSmallTablet - 1})
|
|
157
148
|
and (max-device-aspect-ratio: 1/1) {
|
|
158
149
|
@content;
|
|
159
150
|
}
|
|
160
151
|
}
|
|
161
|
-
@mixin
|
|
162
|
-
@media
|
|
163
|
-
and (max-device-width: #{$mdw-breakpoint__landscape__small-tablet - 1})
|
|
152
|
+
@mixin isMobileDeviceLandscape {
|
|
153
|
+
@media (max-device-width: #{$landscapeSmallTablet - 1})
|
|
164
154
|
and (min-device-aspect-ratio: 1/1) {
|
|
165
155
|
@content;
|
|
166
156
|
}
|
|
167
157
|
}
|
|
168
158
|
|
|
169
|
-
@mixin
|
|
159
|
+
@mixin isMobileDevice {
|
|
170
160
|
@media
|
|
171
|
-
|
|
172
|
-
and (max-device-width: #{$mdw-breakpoint__portrait__small-tablet - 1})
|
|
161
|
+
(max-device-width: #{$portraitSmallTablet - 1})
|
|
173
162
|
and (max-device-aspect-ratio: 1/1),
|
|
174
|
-
|
|
175
|
-
and (max-device-width: #{$mdw-breakpoint__landscape__small-tablet - 1})
|
|
163
|
+
(max-device-width: #{$landscapeSmallTablet - 1})
|
|
176
164
|
and (min-device-aspect-ratio: 1/1) {
|
|
177
165
|
@content;
|
|
178
166
|
}
|
|
179
167
|
}
|
|
180
168
|
|
|
181
|
-
@mixin
|
|
169
|
+
@mixin isTabletDevice {
|
|
182
170
|
@media
|
|
183
|
-
|
|
184
|
-
and (
|
|
185
|
-
and (max-device-width: #{$mdw-breakpoint__portrait__desktop - 1})
|
|
171
|
+
(min-width: $portraitSmallTablet)
|
|
172
|
+
and (max-device-width: #{$portraitDesktop - 1})
|
|
186
173
|
and (max-device-aspect-ratio: 1/1),
|
|
187
|
-
|
|
188
|
-
and (
|
|
189
|
-
and (max-device-width: #{$mdw-breakpoint__landscape__desktop - 1})
|
|
174
|
+
(min-width: $landscapeSmallTablet)
|
|
175
|
+
and (max-device-width: #{$landscapeDesktop - 1})
|
|
190
176
|
and (min-device-aspect-ratio: 1/1) {
|
|
191
177
|
@content;
|
|
192
178
|
}
|
|
193
179
|
}
|
|
194
180
|
|
|
195
|
-
@mixin
|
|
181
|
+
@mixin maxTabletDevice {
|
|
196
182
|
@media
|
|
197
|
-
|
|
198
|
-
and (max-device-width: #{$mdw-breakpoint__portrait__desktop - 1})
|
|
183
|
+
(max-device-width: #{$portraitDesktop - 1})
|
|
199
184
|
and (max-device-aspect-ratio: 1/1),
|
|
200
|
-
|
|
201
|
-
and (max-device-width: #{$mdw-breakpoint__landscape__desktop - 1})
|
|
185
|
+
(max-device-width: #{$landscapeDesktop - 1})
|
|
202
186
|
and (min-device-aspect-ratio: 1/1) {
|
|
203
187
|
@content;
|
|
204
188
|
}
|