Skip to content

Commit e9e2d57

Browse files
authored
Remove old CSS properties (#4196)
* Remove old CSS properties * More fixes
1 parent 3aff618 commit e9e2d57

4 files changed

Lines changed: 13 additions & 33 deletions

File tree

src/static/css/almanac.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -984,9 +984,8 @@ p.copyright a {
984984
height: 1px;
985985
width: 1px;
986986
overflow: hidden;
987-
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
988-
clip: rect(1px, 1px, 1px, 1px);
989-
white-space: nowrap; /* added line */
987+
clip-path: inset(50%);
988+
white-space: nowrap;
990989
}
991990

992991
.hidden {
@@ -1052,9 +1051,8 @@ p.copyright a {
10521051
height: 1px;
10531052
width: 1px;
10541053
overflow: hidden;
1055-
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
1056-
clip: rect(1px, 1px, 1px, 1px);
1057-
white-space: nowrap; /* added line */
1054+
clip-path: inset(50%);
1055+
white-space: nowrap;
10581056
}
10591057

10601058
.title-lg {

src/static/css/ebook.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ tbody tr:nth-child(even) {
203203

204204
.content ul li.contributor {
205205
list-style: none;
206-
page-break-inside: avoid;
206+
break-inside: avoid;
207207
}
208208

209209
pre {
@@ -372,7 +372,7 @@ section.chapter {
372372
}
373373

374374
.content > section {
375-
page-break-after: always;
375+
break-after: always;
376376
}
377377

378378
#toc a::after {
@@ -413,7 +413,7 @@ section.chapter {
413413
figcaption {
414414
max-width: 100%;
415415
text-align: center;
416-
page-break-inside: avoid;
416+
break-inside: avoid;
417417
}
418418

419419
figure .code-block {
@@ -440,7 +440,7 @@ section.chapter {
440440
display: table;
441441
border-spacing: 2px;
442442
border-color: grey;
443-
page-break-inside: avoid;
443+
break-inside: avoid;
444444
}
445445

446446
h2 {
@@ -458,18 +458,18 @@ section.chapter {
458458
h4,
459459
h5 {
460460
font-weight: bold;
461-
page-break-after: avoid;
462-
page-break-inside: avoid;
461+
break-after: avoid;
462+
break-inside: avoid;
463463
}
464464

465465
h1 + p,
466466
h2 + p,
467467
h3 + p {
468-
page-break-before: avoid;
468+
break-before: avoid;
469469
}
470470

471471
.authors li {
472-
page-break-inside: avoid;
472+
break-inside: avoid;
473473
}
474474

475475
.authors .avatar {

src/static/css/index.css

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ header.alt-bg {
1313
}
1414

1515
#maincontent {
16-
display: -ms-grid;
1716
display: grid;
1817
grid-template-areas:
1918
'. intro .'
@@ -54,17 +53,13 @@ p {
5453
.intro-container {
5554
color: #fff;
5655
grid-area: intro;
57-
-ms-grid-row: 1;
58-
-ms-grid-columns: 2fr 1fr;
59-
display: -ms-grid;
6056
display: grid;
6157
grid-template-areas: 'intro image';
62-
grid-gap: 2rem;
58+
gap: 2rem;
6359
justify-content: space-between;
6460
}
6561

6662
.intro {
67-
-ms-grid-column: 1;
6863
grid-area: intro;
6964
width: 100%;
7065
max-width: 550px;
@@ -74,14 +69,12 @@ p {
7469
}
7570

7671
.intro-year {
77-
-ms-grid-row: 1;
7872
grid-area: year;
7973
display: none;
8074
font-family: 'Poppins', sans-serif;
8175
}
8276

8377
.intro-image-wrapper {
84-
-ms-grid-column: 2;
8578
grid-area: image;
8679
max-height: 485px;
8780
max-height: 30.3125rem;
@@ -126,7 +119,6 @@ p {
126119

127120
/* Featured Chapter */
128121
.featured-chapter {
129-
-ms-grid-row: 2;
130122
grid-area: chapter;
131123
padding: 120px 0;
132124
padding: 7.5rem 0;
@@ -183,7 +175,6 @@ p {
183175
.contributors-container {
184176
padding-left: 180px;
185177
padding-left: min(180px, 15vw);
186-
-ms-grid-row: 3;
187178
grid-area: contributors;
188179
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDIiIGhlaWdodD0iMzMwIiB2aWV3Qm94PSIwIDAgMzAyIDMzMCI+CiAgPHBhdGggb3BhY2l0eT0iLjMiIGZpbGw9IiNmN2Y3NzkiIGQ9Ik0tMTcxMiAyNTdIMjI1djczaC0xOTM3eiIvPgogIDxwYXRoIG9wYWNpdHk9Ii45IiBmaWxsPSIjYThjYWJhIiBkPSJNLTE2NDAgMTM2SDI5N3Y3M2gtMTkzN3oiLz4KICA8cGF0aCBvcGFjaXR5PSIuOSIgZmlsbD0iI2Y3Zjc3OSIgZD0iTS0xNjc3IDE2NkgyNjB2NzNoLTE5Mzd6Ii8+CiAgPHBhdGggb3BhY2l0eT0iLjkiIGZpbGw9IiM0YTMyNDQiIGQ9Ik0tMTc3MiAzSDE2NXY3M2gtMTkzN3oiLz4KPC9zdmc+");
189180
background-position: -150px center;
@@ -238,7 +229,6 @@ p {
238229

239230
/* Methodology */
240231
.methodology-container {
241-
-ms-grid-row: 4;
242232
grid-area: methodology;
243233
padding: 0 min(60px, 5vw);
244234
}

src/static/css/page.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.main {
2-
display: -ms-grid;
32
display: grid;
43
grid-template-areas: 'index content';
5-
-ms-grid-columns: 300px calc(100% - 300px);
64
grid-template-columns: 300px auto;
75
grid-template-columns: min(18.75rem, 20vw) calc(100% - min(18.75rem, 25vw)); /* auto sometimes not set correctly on font zoom */
86
}
@@ -42,7 +40,6 @@
4240

4341
.index {
4442
grid-area: index;
45-
-ms-grid-column: 1;
4643
}
4744

4845
.index .index-box {
@@ -166,7 +163,6 @@
166163

167164
.content {
168165
grid-area: content;
169-
-ms-grid-column: 2;
170166
margin-left: 40px;
171167
}
172168

@@ -729,7 +725,6 @@ figure .fig-desktop {
729725

730726
@media (max-width: 56.25em) {
731727
.main {
732-
-ms-grid-columns: 1fr;
733728
grid-template-areas:
734729
'index'
735730
'content';
@@ -738,13 +733,10 @@ figure .fig-desktop {
738733
}
739734

740735
.main .content {
741-
-ms-grid-row: 2;
742-
-ms-grid-column: 1;
743736
margin-left: 0;
744737
}
745738

746739
.index {
747-
-ms-grid-row: 1;
748740
margin: 30px 0;
749741
margin: 1.875rem 0;
750742
}

0 commit comments

Comments
 (0)