uikit 3.7.7-dev.372404499 → 3.8.1-dev.3a43322ca

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 (119) hide show
  1. package/CHANGELOG.md +27 -5
  2. package/dist/css/uikit-core-rtl.css +332 -840
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +332 -840
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +364 -848
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +364 -848
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +1 -1
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +1 -1
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +17 -8
  37. package/dist/js/uikit-core.min.js +2 -2
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +17 -8
  41. package/dist/js/uikit.min.js +2 -2
  42. package/package.json +1 -1
  43. package/src/js/util/viewport.js +13 -7
  44. package/src/less/components/accordion.less +3 -6
  45. package/src/less/components/alert.less +2 -3
  46. package/src/less/components/animation.less +69 -216
  47. package/src/less/components/badge.less +2 -5
  48. package/src/less/components/base.less +42 -11
  49. package/src/less/components/breadcrumb.less +3 -5
  50. package/src/less/components/button.less +17 -36
  51. package/src/less/components/close.less +3 -6
  52. package/src/less/components/cover.less +11 -6
  53. package/src/less/components/dotnav.less +3 -6
  54. package/src/less/components/dropdown.less +1 -3
  55. package/src/less/components/icon.less +5 -11
  56. package/src/less/components/iconnav.less +3 -6
  57. package/src/less/components/lightbox.less +11 -7
  58. package/src/less/components/link.less +6 -14
  59. package/src/less/components/marker.less +3 -6
  60. package/src/less/components/nav.less +10 -24
  61. package/src/less/components/navbar.less +6 -15
  62. package/src/less/components/padding.less +1 -1
  63. package/src/less/components/pagination.less +3 -5
  64. package/src/less/components/position.less +45 -82
  65. package/src/less/components/search.less +3 -11
  66. package/src/less/components/slidenav.less +3 -6
  67. package/src/less/components/slider.less +0 -4
  68. package/src/less/components/slideshow.less +0 -4
  69. package/src/less/components/subnav.less +6 -11
  70. package/src/less/components/tab.less +3 -5
  71. package/src/less/components/thumbnav.less +3 -6
  72. package/src/less/components/totop.less +3 -6
  73. package/src/less/components/transition.less +48 -40
  74. package/src/less/components/utility.less +7 -10
  75. package/src/less/components/visibility.less +16 -45
  76. package/src/less/theme/button.less +0 -3
  77. package/src/less/theme/form.less +1 -1
  78. package/src/less/theme/table.less +9 -1
  79. package/src/scss/components/accordion.scss +2 -4
  80. package/src/scss/components/alert.scss +2 -3
  81. package/src/scss/components/animation.scss +69 -216
  82. package/src/scss/components/badge.scss +1 -3
  83. package/src/scss/components/base.scss +34 -9
  84. package/src/scss/components/breadcrumb.scss +2 -3
  85. package/src/scss/components/button.scss +12 -25
  86. package/src/scss/components/close.scss +2 -4
  87. package/src/scss/components/cover.scss +11 -6
  88. package/src/scss/components/dotnav.scss +2 -4
  89. package/src/scss/components/dropdown.scss +1 -3
  90. package/src/scss/components/icon.scss +3 -7
  91. package/src/scss/components/iconnav.scss +2 -4
  92. package/src/scss/components/lightbox.scss +11 -7
  93. package/src/scss/components/link.scss +3 -8
  94. package/src/scss/components/marker.scss +2 -4
  95. package/src/scss/components/nav.scss +6 -16
  96. package/src/scss/components/navbar.scss +6 -13
  97. package/src/scss/components/padding.scss +1 -1
  98. package/src/scss/components/pagination.scss +2 -3
  99. package/src/scss/components/position.scss +45 -82
  100. package/src/scss/components/search.scss +2 -9
  101. package/src/scss/components/slidenav.scss +2 -4
  102. package/src/scss/components/slider.scss +0 -4
  103. package/src/scss/components/slideshow.scss +0 -4
  104. package/src/scss/components/subnav.scss +4 -7
  105. package/src/scss/components/tab.scss +2 -3
  106. package/src/scss/components/thumbnav.scss +2 -4
  107. package/src/scss/components/totop.scss +2 -4
  108. package/src/scss/components/transition.scss +48 -40
  109. package/src/scss/components/utility.scss +6 -8
  110. package/src/scss/components/visibility.scss +16 -45
  111. package/src/scss/mixins-theme.scss +42 -101
  112. package/src/scss/mixins.scss +38 -66
  113. package/src/scss/theme/button.scss +0 -2
  114. package/src/scss/theme/form.scss +1 -1
  115. package/src/scss/theme/table.scss +2 -1
  116. package/src/scss/variables-theme.scss +12 -6
  117. package/src/scss/variables.scss +11 -5
  118. package/tests/scroll.html +65 -1
  119. package/tests/transition.html +4 -10
@@ -133,12 +133,6 @@ $search-toggle-hover-color: $global-color !default;
133
133
  /* Icon (Adopts `uk-icon`)
134
134
  ========================================================================== */
135
135
 
136
- /*
137
- * Remove default focus style
138
- */
139
-
140
- .uk-search-icon:focus { outline: none; }
141
-
142
136
  /*
143
137
  * Position above input
144
138
  * 1. Set position
@@ -275,9 +269,8 @@ $search-toggle-hover-color: $global-color !default;
275
269
  @if(mixin-exists(hook-search-toggle)) {@include hook-search-toggle();}
276
270
  }
277
271
 
278
- /* Hover + Focus */
279
- .uk-search-toggle:hover,
280
- .uk-search-toggle:focus {
272
+ /* Hover */
273
+ .uk-search-toggle:hover {
281
274
  color: $search-toggle-hover-color;
282
275
  @if(mixin-exists(hook-search-toggle-hover)) {@include hook-search-toggle-hover();}
283
276
  }
@@ -40,11 +40,9 @@ $slidenav-large-padding-horizontal: $slidenav-large-padding-vertica
40
40
  @if(mixin-exists(hook-slidenav)) {@include hook-slidenav();}
41
41
  }
42
42
 
43
- /* Hover + Focus */
44
- .uk-slidenav:hover,
45
- .uk-slidenav:focus {
43
+ /* Hover */
44
+ .uk-slidenav:hover {
46
45
  color: $slidenav-hover-color;
47
- outline: none;
48
46
  @if(mixin-exists(hook-slidenav-hover)) {@include hook-slidenav-hover();}
49
47
  }
50
48
 
@@ -94,7 +94,6 @@ $slider-container-margin-right: -25px !default;
94
94
  * `max-width` needed to keep image responsiveness and prevent content overflow
95
95
  * 3. Create position context
96
96
  * 4. Disable horizontal panning gestures in IE11 and Edge
97
- * 5. Suppress outline on focus
98
97
  */
99
98
 
100
99
  .uk-slider-items > * {
@@ -107,9 +106,6 @@ $slider-container-margin-right: -25px !default;
107
106
  touch-action: pan-y;
108
107
  }
109
108
 
110
- /* 5 */
111
- .uk-slider-items > :focus { outline: none; }
112
-
113
109
 
114
110
  // Hooks
115
111
  // ========================================================================
@@ -59,7 +59,6 @@
59
59
  * 3. Clip child elements, e.g. for `uk-cover`
60
60
  * 4. Optimize animation
61
61
  * 5. Disable horizontal panning gestures in IE11 and Edge
62
- * 6. Suppress outline on focus
63
62
  */
64
63
 
65
64
  .uk-slideshow-items > * {
@@ -78,9 +77,6 @@
78
77
  touch-action: pan-y;
79
78
  }
80
79
 
81
- /* 6 */
82
- .uk-slideshow-items > :focus { outline: none; }
83
-
84
80
  /*
85
81
  * Hide not active items
86
82
  */
@@ -104,12 +104,10 @@ $subnav-item-disabled-color: $global-muted-color !default;
104
104
  @if(mixin-exists(hook-subnav-item)) {@include hook-subnav-item();}
105
105
  }
106
106
 
107
- /* Hover + Focus */
108
- .uk-subnav > * > a:hover,
109
- .uk-subnav > * > a:focus {
107
+ /* Hover */
108
+ .uk-subnav > * > a:hover {
110
109
  color: $subnav-item-hover-color;
111
110
  text-decoration: $subnav-item-hover-text-decoration;
112
- outline: none;
113
111
  @if(mixin-exists(hook-subnav-item-hover)) {@include hook-subnav-item-hover();}
114
112
  }
115
113
 
@@ -168,9 +166,8 @@ $subnav-item-disabled-color: $global-muted-color !default;
168
166
  @if(mixin-exists(hook-subnav-pill-item)) {@include hook-subnav-pill-item();}
169
167
  }
170
168
 
171
- /* Hover + Focus */
172
- .uk-subnav-pill > * > a:hover,
173
- .uk-subnav-pill > * > a:focus {
169
+ /* Hover */
170
+ .uk-subnav-pill > * > a:hover {
174
171
  background-color: $subnav-pill-item-hover-background;
175
172
  color: $subnav-pill-item-hover-color;
176
173
  @if(mixin-exists(hook-subnav-pill-item-hover)) {@include hook-subnav-pill-item-hover();}
@@ -90,9 +90,8 @@ $tab-item-disabled-color: $global-muted-color !default;
90
90
  @if(mixin-exists(hook-tab-item)) {@include hook-tab-item();}
91
91
  }
92
92
 
93
- /* Hover + Focus */
94
- .uk-tab > * > a:hover,
95
- .uk-tab > * > a:focus {
93
+ /* Hover */
94
+ .uk-tab > * > a:hover {
96
95
  color: $tab-item-hover-color;
97
96
  text-decoration: $tab-item-hover-text-decoration;
98
97
  @if(mixin-exists(hook-tab-item-hover)) {@include hook-tab-item-hover();}
@@ -63,10 +63,8 @@ $thumbnav-margin-vertical: $thumbnav-margin-horizontal !de
63
63
  @if(mixin-exists(hook-thumbnav-item)) {@include hook-thumbnav-item();}
64
64
  }
65
65
 
66
- /* Hover + Focus */
67
- .uk-thumbnav > * > :hover,
68
- .uk-thumbnav > * > :focus {
69
- outline: none;
66
+ /* Hover */
67
+ .uk-thumbnav > * > :hover {
70
68
  @if(mixin-exists(hook-thumbnav-item-hover)) {@include hook-thumbnav-item-hover();}
71
69
  }
72
70
 
@@ -31,11 +31,9 @@ $totop-active-color: $global-emphasis-color !default
31
31
  @if(mixin-exists(hook-totop)) {@include hook-totop();}
32
32
  }
33
33
 
34
- /* Hover + Focus */
35
- .uk-totop:hover,
36
- .uk-totop:focus {
34
+ /* Hover */
35
+ .uk-totop:hover {
37
36
  color: $totop-hover-color;
38
- outline: none;
39
37
  @if(mixin-exists(hook-totop-hover)) {@include hook-totop-hover();}
40
38
  }
41
39
 
@@ -38,26 +38,6 @@ $transition-slow-duration: 0.7s !default;
38
38
  Component: Transition
39
39
  ========================================================================== */
40
40
 
41
-
42
- /* Toggle (Hover + Focus)
43
- ========================================================================== */
44
-
45
- /*
46
- * 1. Prevent tab highlighting on iOS.
47
- */
48
-
49
- .uk-transition-toggle {
50
- /* 1 */
51
- -webkit-tap-highlight-color: transparent;
52
- }
53
-
54
- /*
55
- * Remove outline for `tabindex`
56
- */
57
-
58
- .uk-transition-toggle:focus { outline: none; }
59
-
60
-
61
41
  /* Transitions
62
42
  ========================================================================== */
63
43
 
@@ -66,14 +46,25 @@ $transition-slow-duration: 0.7s !default;
66
46
  * 1. Using `:focus` and tabindex
67
47
  * 2. Using `:hover` and a `touchstart` event listener registered on the document
68
48
  * (Doesn't work on Surface touch devices)
69
- *
70
- * Note: Transitions don't work with `uk-postion-center-*` classes because they also use `transform`,
71
- * therefore it's recommended to use an extra `div` for the transition.
72
49
  */
73
50
 
51
+ :where(.uk-transition-fade),
52
+ :where([class*='uk-transition-scale']),
53
+ :where([class*='uk-transition-slide']) {
54
+ --uk-position-translate-x: 0;
55
+ --uk-position-translate-y: 0;
56
+ }
57
+
74
58
  .uk-transition-fade,
75
59
  [class*='uk-transition-scale'],
76
60
  [class*='uk-transition-slide'] {
61
+ --uk-translate-x: 0;
62
+ --uk-translate-y: 0;
63
+ --uk-scale-x: 1;
64
+ --uk-scale-y: 1;
65
+ transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y))
66
+ translate(var(--uk-translate-x), var(--uk-translate-y))
67
+ scale(var(--uk-scale-x), var(--uk-scale-y));
77
68
  transition: $transition-duration ease-out;
78
69
  transition-property: opacity, transform, filter;
79
70
  opacity: 0;
@@ -85,55 +76,72 @@ $transition-slow-duration: 0.7s !default;
85
76
 
86
77
  .uk-transition-toggle:hover .uk-transition-fade,
87
78
  .uk-transition-toggle:focus .uk-transition-fade,
79
+ .uk-transition-toggle .uk-transition-fade:focus-within,
88
80
  .uk-transition-active.uk-active .uk-transition-fade { opacity: 1; }
89
81
 
90
82
  /*
91
83
  * Scale
84
+ * 1. Make image rendering the same during the transition as before and after. Prefixed because of Safari.
92
85
  */
93
86
 
94
- .uk-transition-scale-up { transform: scale(1,1); }
95
- .uk-transition-scale-down { transform: scale($transition-scale,$transition-scale); }
87
+ /* 1 */
88
+ [class*='uk-transition-scale'] { -webkit-backface-visibility: hidden; }
89
+
90
+ .uk-transition-scale-up {
91
+ --uk-scale-x: 1;
92
+ --uk-scale-y: 1;
93
+ }
94
+ .uk-transition-scale-down {
95
+ --uk-scale-x: #{$transition-scale};
96
+ --uk-scale-y: #{$transition-scale};
97
+ }
96
98
 
97
99
  /* Show */
98
100
  .uk-transition-toggle:hover .uk-transition-scale-up,
99
101
  .uk-transition-toggle:focus .uk-transition-scale-up,
102
+ .uk-transition-toggle .uk-transition-scale-up:focus-within,
100
103
  .uk-transition-active.uk-active .uk-transition-scale-up {
104
+ --uk-scale-x: #{$transition-scale};
105
+ --uk-scale-y: #{$transition-scale};
101
106
  opacity: 1;
102
- transform: scale($transition-scale,$transition-scale);
103
107
  }
104
108
 
105
109
  .uk-transition-toggle:hover .uk-transition-scale-down,
106
110
  .uk-transition-toggle:focus .uk-transition-scale-down,
111
+ .uk-transition-toggle .uk-transition-scale-down:focus-within,
107
112
  .uk-transition-active.uk-active .uk-transition-scale-down {
113
+ --uk-scale-x: 1;
114
+ --uk-scale-y: 1;
108
115
  opacity: 1;
109
- transform: scale(1,1);
110
116
  }
111
117
 
112
118
  /*
113
119
  * Slide
114
120
  */
115
121
 
116
- .uk-transition-slide-top { transform: translateY(-100%); }
117
- .uk-transition-slide-bottom { transform: translateY(100%); }
118
- .uk-transition-slide-left { transform: translateX(-100%); }
119
- .uk-transition-slide-right { transform: translateX(100%); }
122
+ .uk-transition-slide-top { --uk-translate-y: -100%; }
123
+ .uk-transition-slide-bottom { --uk-translate-y: 100%; }
124
+ .uk-transition-slide-left { --uk-translate-x: -100%; }
125
+ .uk-transition-slide-right { --uk-translate-x: 100%; }
120
126
 
121
- .uk-transition-slide-top-small { transform: translateY(-$transition-slide-small-translate); }
122
- .uk-transition-slide-bottom-small { transform: translateY($transition-slide-small-translate); }
123
- .uk-transition-slide-left-small { transform: translateX(-$transition-slide-small-translate); }
124
- .uk-transition-slide-right-small { transform: translateX($transition-slide-small-translate); }
127
+ .uk-transition-slide-top-small { --uk-translate-y: (-$transition-slide-small-translate); }
128
+ .uk-transition-slide-bottom-small { --uk-translate-y: #{$transition-slide-small-translate}; }
129
+ .uk-transition-slide-left-small { --uk-translate-x: (-$transition-slide-small-translate); }
130
+ .uk-transition-slide-right-small { --uk-translate-x: #{$transition-slide-small-translate}; }
125
131
 
126
- .uk-transition-slide-top-medium { transform: translateY(-$transition-slide-medium-translate); }
127
- .uk-transition-slide-bottom-medium { transform: translateY($transition-slide-medium-translate); }
128
- .uk-transition-slide-left-medium { transform: translateX(-$transition-slide-medium-translate); }
129
- .uk-transition-slide-right-medium { transform: translateX($transition-slide-medium-translate); }
132
+ .uk-transition-slide-top-medium { --uk-translate-y: (-$transition-slide-medium-translate); }
133
+ .uk-transition-slide-bottom-medium { --uk-translate-y: #{$transition-slide-medium-translate}; }
134
+ .uk-transition-slide-left-medium { --uk-translate-x: (-$transition-slide-medium-translate); }
135
+ .uk-transition-slide-right-medium { --uk-translate-x: #{$transition-slide-medium-translate}; }
130
136
 
131
137
  /* Show */
132
138
  .uk-transition-toggle:hover [class*='uk-transition-slide'],
133
139
  .uk-transition-toggle:focus [class*='uk-transition-slide'],
140
+ .uk-transition-toggle [class*='uk-transition-slide']:focus-within,
134
141
  .uk-transition-active.uk-active [class*='uk-transition-slide'] {
142
+ --uk-translate-x: 0;
143
+ --uk-translate-y: 0;
135
144
  opacity: 1;
136
- transform: translate(0,0);
137
145
  }
138
146
 
139
147
 
@@ -49,8 +49,8 @@ $dropcap-font-size: (($global-line-height * 3) * 1e
49
49
 
50
50
  $logo-font-size: $global-large-font-size !default;
51
51
  $logo-font-family: $global-font-family !default;
52
- $logo-color: $global-color !default;
53
- $logo-hover-color: $global-color !default;
52
+ $logo-color: $global-emphasis-color !default;
53
+ $logo-hover-color: $global-emphasis-color !default;
54
54
 
55
55
  $dragover-box-shadow: 0 0 20px rgba(100,100,100,0.3) !default;
56
56
 
@@ -372,11 +372,9 @@ $dragover-box-shadow: 0 0 20px rgba(100,100,100,0.3)
372
372
  @if(mixin-exists(hook-logo)) {@include hook-logo();}
373
373
  }
374
374
 
375
- /* Hover + Focus */
376
- .uk-logo:hover,
377
- .uk-logo:focus {
375
+ /* Hover */
376
+ .uk-logo:hover {
378
377
  color: $logo-hover-color;
379
- outline: none;
380
378
  /* 1 */
381
379
  text-decoration: none;
382
380
  @if(mixin-exists(hook-logo-hover)) {@include hook-logo-hover();}
@@ -472,8 +470,8 @@ $dragover-box-shadow: 0 0 20px rgba(100,100,100,0.3)
472
470
  // Inverse
473
471
  // ========================================================================
474
472
 
475
- $inverse-logo-color: $inverse-global-color !default;
476
- $inverse-logo-hover-color: $inverse-global-color !default;
473
+ $inverse-logo-color: $inverse-global-emphasis-color !default;
474
+ $inverse-logo-hover-color: $inverse-global-emphasis-color !default;
477
475
 
478
476
 
479
477
 
@@ -92,21 +92,19 @@
92
92
  .uk-invisible { visibility: hidden !important; }
93
93
 
94
94
 
95
- /* Toggle (Hover + Focus)
95
+ /* Based on the State of the Parent Element
96
96
  ========================================================================== */
97
97
 
98
98
  /*
99
- * Hidden
100
- * 1. The toggle is triggered on touch devices using `:focus` and tabindex
101
- * 2. The target stays visible if any element within receives focus through keyboard
102
- * Doesn't work in Edge, yet.
103
- * 3. Can't use `display: none` nor `visibility: hidden` because both are not focusable.
104
- *
99
+ * Can't use `display: none` nor `visibility: hidden` because both are not focusable.
100
+ * The target stays visible if any element within receives focus through keyboard.
101
+ */
102
+
103
+ /*
104
+ * Discard space when hidden.
105
105
  */
106
106
 
107
- /* 1 + 2 */
108
107
  .uk-visible-toggle:not(:hover):not(:focus) .uk-hidden-hover:not(:focus-within) {
109
- /* 3 */
110
108
  position: absolute !important;
111
109
  width: 0 !important;
112
110
  height: 0 !important;
@@ -116,54 +114,27 @@
116
114
  }
117
115
 
118
116
  /*
119
- * Invisible
120
- */
121
-
122
- /* 1 + 2 */
123
- .uk-visible-toggle:not(:hover):not(:focus) .uk-invisible-hover:not(:focus-within) {
124
- /* 3 */
125
- opacity: 0 !important;
126
- }
127
-
128
- /*
129
- * 1. Prevent tab highlighting on iOS.
117
+ * Keep space when hidden.
130
118
  */
131
119
 
132
- .uk-visible-toggle {
133
- /* 1 */
134
- -webkit-tap-highlight-color: transparent;
135
- }
136
-
137
- /*
138
- * Remove outline for `tabindex`
139
- */
140
-
141
- .uk-visible-toggle:focus { outline: none; }
120
+ .uk-visible-toggle:not(:hover):not(:focus) .uk-invisible-hover:not(:focus-within) { opacity: 0 !important; }
142
121
 
143
122
 
144
- /* Touch
123
+ /* Based on Hover Capability of the Pointing Device
145
124
  ========================================================================== */
146
125
 
147
126
  /*
148
- * Hide if primary pointing device has limited accuracy, e.g. a touch screen.
149
- * Works on mobile browsers: Safari, Chrome and Android browser
127
+ * Hover
150
128
  */
151
129
 
152
- @media (pointer: coarse) {
130
+ /* Hide if primary pointing device doesn't support hover, e.g. touch screens. */
131
+ @media (hover: none) {
153
132
  .uk-hidden-touch { display: none !important; }
154
133
  }
155
134
 
156
- /*
157
- * Hide if primary pointing device is accurate, e.g. mouse.
158
- * 1. Fallback for IE11 and Firefox, because `pointer` is not supported
159
- * 2. Reset if supported
160
- */
161
-
162
- /* 1 */
163
- .uk-hidden-notouch { display: none !important; }
164
-
165
- @media (pointer: coarse) {
166
- .uk-hidden-notouch { display: block !important; }
135
+ /* Hide if primary pointing device supports hover, e.g. mice. */
136
+ @media (hover) {
137
+ .uk-hidden-notouch { display: none !important; }
167
138
  }
168
139
 
169
140