Skip to content

Commit 371f2cd

Browse files
committed
More removal of IE-specific code
See #336
1 parent 4765f46 commit 371f2cd

File tree

8 files changed

+9
-121
lines changed

8 files changed

+9
-121
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"browserslist": [
4242
"> 0.5%",
4343
"Firefox ESR",
44-
"IE 11"
44+
"not IE 11"
4545
],
4646
"scripts": {
4747
"test": "grunt travis --verbose"

src/assets/sass/modules/_accessibility.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,4 @@
3030
animation: none;
3131
background-image: none;
3232
}
33-
34-
progress::-ms-fill {
35-
animation: none;
36-
background-image: none;
37-
}
3833
}

src/assets/sass/modules/_base.scss

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/assets/sass/modules/_forms.scss

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,6 @@ select[size="1"] {
335335
height: 2em; // 32px / 16px
336336
}
337337

338-
/**
339-
* Remove browser-specific `select` UI in IE 11.
340-
*/
341-
342-
select::-ms-expand {
343-
opacity: 0;
344-
}
345-
346338
/**
347339
* Normalize styling of `optgroup`.
348340
*/
@@ -353,18 +345,16 @@ optgroup {
353345
}
354346

355347
/**
356-
* 1. Remove the default vertical scrollbar in IE 11.
357-
* 2. Remove unwanted space below `textarea` in Safari, Chrome, Opera.
358-
* 3. Restrict to vertical resizing to prevent layout breakage.
348+
* 1. Remove unwanted space below `textarea` in Safari, Chrome, Opera.
349+
* 2. Restrict to vertical resizing to prevent layout breakage.
359350
*/
360351

361352
textarea {
362353
width: 100%;
363354
height: auto;
364355
min-height: 3em;
365-
overflow: auto; /* 1 */
366-
vertical-align: top; /* 2 */
367-
resize: vertical; /* 3 */
356+
vertical-align: top; /* 1 */
357+
resize: vertical; /* 2 */
368358
}
369359

370360
/**

src/assets/sass/modules/_responsive.scss

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,9 @@
2323
*/
2424

2525
.layout-container {
26-
display: flex; // Flexbox fallback for browsers without CSS Grid support.
2726
display: grid;
2827
gap: 0 2em;
2928
grid-template-columns: repeat(12, 1fr);
30-
flex-wrap: wrap; // Flexbox fallback for browsers without CSS Grid support.
31-
margin: 0 -1em; // Flexbox fallback for browsers without CSS Grid support.
32-
33-
> * {
34-
box-sizing: border-box; // Flexbox fallback.
35-
min-width: 0; // Fix Firefox `pre` overflow issues.
36-
padding: 0 1em; // Flexbox fallback.
37-
}
3829
}
3930

4031
/**
@@ -62,7 +53,6 @@
6253
.layout-4col-2span,
6354
.layout-4col-3span {
6455
grid-column: span 12;
65-
width: 100%; // Flexbox fallback.
6656
}
6757

6858
/**
@@ -71,26 +61,6 @@
7161

7262
.layout-4col:not(.sidebar) {
7363
grid-column: span 6;
74-
width: 50%; // Flexbox fallback.
75-
}
76-
77-
// Override Flexbox fallback for browsers with CSS Grid support.
78-
@supports (display: grid) {
79-
.layout-container {
80-
margin: 0;
81-
}
82-
83-
.layout-1col,
84-
.layout-2col,
85-
.layout-3col,
86-
.layout-3col-2span,
87-
.layout-4col,
88-
.layout-4col-2span,
89-
.layout-4col-3span,
90-
.layout-4col:not(.sidebar) {
91-
width: auto;
92-
padding: 0;
93-
}
9464
}
9565

9666
/**
@@ -237,26 +207,14 @@
237207

238208
.layout-2col {
239209
grid-column: span 6;
240-
width: 50%; // Flexbox fallback.
241210
}
242211

243212
.layout-3col {
244213
grid-column: span 4;
245-
width: 33.333%; // Flexbox fallback.
246214
}
247215

248216
.layout-3col-2span {
249217
grid-column: span 8;
250-
width: 66.666%; // Flexbox fallback.
251-
}
252-
253-
// Override Flexbox fallback for browsers with CSS Grid support.
254-
@supports (display: grid) {
255-
.layout-2col,
256-
.layout-3col,
257-
.layout-3col-2span {
258-
width: auto;
259-
}
260218
}
261219

262220
/**
@@ -497,31 +455,14 @@
497455
.layout-4col,
498456
.layout-4col:not(.sidebar) {
499457
grid-column: span 3;
500-
width: 25%; // Flexbox fallback.
501458
}
502459

503460
.layout-4col-2span {
504461
grid-column: span 6;
505-
width: 50%; // Flexbox fallback.
506462
}
507463

508464
.layout-4col-3span {
509465
grid-column: span 9;
510-
width: 73%; // Flexbox fallback.
511-
}
512-
513-
// Override Flexbox fallback for browsers with CSS Grid support.
514-
@supports (display: grid) {
515-
.layout-4col,
516-
.layout-4col-2span,
517-
.layout-4col-3span,
518-
.layout-4col:not(.sidebar) {
519-
width: auto;
520-
}
521-
522-
main .layout-4col-3span {
523-
margin-right: 1.5em;
524-
}
525466
}
526467

527468
/**

src/assets/sass/modules/_typography.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
/**
77
* Establish baseline.
88
*
9-
* 1. Prevent adjustments of font size after orientation changes in
10-
* IE on Windows Phone and in iOS.
9+
* 1. Prevent adjustments of font size after orientation changes in iOS.
1110
*/
1211

1312
html {
@@ -239,7 +238,7 @@ ul.example {
239238

240239
/**
241240
* 1. Remove the bottom border in Chrome 57+.
242-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
241+
* 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
243242
*/
244243

245244
abbr[title] {

src/assets/sass/style.scss

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,8 @@
125125
}
126126
}
127127

128-
129-
/* ==========================================================================
130-
Styling and layout for all media
131-
========================================================================== */
132-
133-
@import "modules/fonts";
134-
@import "modules/base";
135-
136-
137-
/* ==========================================================================
138-
Styling and layout for screen media (mobile first)
139-
========================================================================== */
140-
141128
@media screen {
129+
@import "modules/fonts";
142130
@import "modules/layout";
143131
@import "modules/navigation";
144132
@import "modules/links";
@@ -167,11 +155,6 @@
167155
@import "modules/accessibility";
168156
@import "modules/animation-keyframes";
169157

170-
171-
/* ==========================================================================
172-
Styling and layout for print media
173-
========================================================================== */
174-
175158
@media print {
176159
@import "modules/print";
177160
}

src/docs/design-patterns.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<div class="docs-menu">
4747
<h1>Design patterns</h1>
4848
<div class="article-description">
49-
<p>Examples of inline/block elements that should be considered and styled within the <a href="https://textpattern.com/">Textpattern website</a>. Supported browsers: Chrome, Edge, Firefox, Safari, Opera the last 2 stable releases, IE11.</p>
49+
<p>Examples of inline/block elements that should be considered and styled within the <a href="https://textpattern.com/">Textpattern website</a>. Supported browsers: Chrome, Edge, Firefox, Safari, Opera the last 2 stable releases.</p>
5050
</div>
5151
<nav>
5252
<h3>Contents</h3>

0 commit comments

Comments
 (0)