Skip to content

Commit 4c57dd5

Browse files
committed
Simplifications
1 parent 57c6510 commit 4c57dd5

File tree

5 files changed

+20
-40
lines changed

5 files changed

+20
-40
lines changed

dist/four-point-eight/styles/default.css

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
@charset "UTF-8";
2+
/* ==========================================================================
3+
Styling and layout for all media
4+
========================================================================== */
25
/* Reset
36
========================================================================== */
47
/**
@@ -23,22 +26,6 @@ summary {
2326
display: list-item;
2427
}
2528

26-
/**
27-
* Add the correct display in IE 11.
28-
*/
29-
template {
30-
display: none;
31-
}
32-
33-
/**
34-
* Remove tap delay in modern browsers.
35-
*/
36-
a,
37-
input,
38-
button {
39-
touch-action: manipulation;
40-
}
41-
4229
/* Clearfix
4330
========================================================================== */
4431
header::after,
@@ -51,9 +38,6 @@ nav ol::after,
5138
clear: both;
5239
}
5340

54-
/* ==========================================================================
55-
Styling and layout for all media
56-
========================================================================== */
5741
/* ==========================================================================
5842
Styling and layout for screen media (mobile first)
5943
========================================================================== */
@@ -293,6 +277,7 @@ nav ol::after,
293277
* 2. Remove default underline style from non-hover state links.
294278
* 3. Interrupt the decoration line to let the shape of the text show through
295279
* in supported browsers.
280+
* 4. Remove tap delay in modern browsers.
296281
*/
297282
a {
298283
/* 1 */
@@ -302,6 +287,8 @@ nav ol::after,
302287
/* 3 */
303288
-webkit-text-decoration-skip: ink;
304289
text-decoration-skip-ink: auto;
290+
/* 4 */
291+
touch-action: manipulation;
305292
}
306293

307294
a:hover, a:active {
@@ -990,11 +977,15 @@ li > ol {
990977
}
991978

992979
/**
993-
* Show the overflow in Edge.
980+
* 1. Show the overflow in Edge.
981+
* 2. Remove tap delay in modern browsers.
994982
*/
995983
button,
996984
input {
985+
/* 1 */
997986
overflow: visible;
987+
/* 2 */
988+
touch-action: manipulation;
998989
}
999990

1000991
/**

src/scss/default.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Styling and layout for all media
1515
========================================================================== */
1616

17-
@use "modules/base";
17+
@include meta.load-css("modules/base");
1818

1919

2020

src/scss/modules/_base.scss

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,6 @@ summary {
2626
display: list-item;
2727
}
2828

29-
/**
30-
* Add the correct display in IE 11.
31-
*/
32-
33-
template {
34-
display: none;
35-
}
36-
37-
/**
38-
* Remove tap delay in modern browsers.
39-
*/
40-
41-
a,
42-
input,
43-
button {
44-
touch-action: manipulation;
45-
}
46-
4729

4830
/* Clearfix
4931
========================================================================== */

src/scss/modules/_forms.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ legend {
4242
}
4343

4444
/**
45-
* Show the overflow in Edge.
45+
* 1. Show the overflow in Edge.
46+
* 2. Remove tap delay in modern browsers.
4647
*/
4748

4849
button,
4950
input {
51+
/* 1 */
5052
overflow: visible;
53+
/* 2 */
54+
touch-action: manipulation;
5155
}
5256

5357
/**

src/scss/modules/_links.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* 2. Remove default underline style from non-hover state links.
1111
* 3. Interrupt the decoration line to let the shape of the text show through
1212
* in supported browsers.
13+
* 4. Remove tap delay in modern browsers.
1314
*/
1415

1516
a {
@@ -19,6 +20,8 @@ a {
1920
text-decoration: none;
2021
/* 3 */
2122
text-decoration-skip-ink: auto;
23+
/* 4 */
24+
touch-action: manipulation;
2225

2326
&:hover,
2427
&:active {

0 commit comments

Comments
 (0)