Skip to content

Commit 7f50c20

Browse files
authored
Revert CSS changes (#276)
Reverted these to before commit faef693
1 parent faef693 commit 7f50c20

4 files changed

Lines changed: 25 additions & 22 deletions

File tree

website/themes/mlir/static/css/chroma.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
/* LineNumbersTable */
3232
.chroma .lnt {
3333
white-space: pre;
34-
-webkit-user-select: none;
35-
-moz-user-select: none;
36-
user-select: none;
34+
user-select: none;
3735
margin-right: 0.4em;
3836
padding: 0 0.4em 0 0.4em;
3937
color: #7f7f7f;
@@ -42,9 +40,7 @@
4240
/* LineNumbers */
4341
.chroma .ln {
4442
white-space: pre;
45-
-webkit-user-select: none;
46-
-moz-user-select: none;
47-
user-select: none;
43+
user-select: none;
4844
margin-right: 0.4em;
4945
padding: 0 0.4em 0 0.4em;
5046
color: #7f7f7f;

website/themes/mlir/static/css/chroma.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/themes/mlir/static/css/theme.css

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ body {
416416
font-family: -apple-system, BlinkMacSystemFont, "游ゴシック体", YuGothic, "メイリオ", Meiryo, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
417417
font-feature-settings: 'pwid';
418418
line-height: 1.8;
419-
background: #ffffff;
420419
margin: 0;
421420
}
422421

@@ -503,7 +502,6 @@ ul,
503502
ol {
504503
font-size: 100%;
505504
margin: 0;
506-
margin-left: 1.5rem;
507505
}
508506

509507
ul.unstyled {
@@ -704,7 +702,7 @@ main * + figure, .edit-meta,
704702
.button,
705703
.gist,
706704
.twitter-tweet {
707-
margin-top: 1.8rem;
705+
margin-top: 1rem;
708706
}
709707

710708
.no-stack, figure > figcaption, .pagination > * {
@@ -732,6 +730,8 @@ body {
732730
display: flex;
733731
flex-flow: column nowrap;
734732
margin: auto;
733+
border-left: solid 1px #eee;
734+
border-right: solid 1px #eee;
735735
}
736736

737737
.content-container {
@@ -895,8 +895,8 @@ figure > figcaption h4 {
895895
}
896896

897897
header {
898-
color: var(--custom-font-color, #fff);
899-
background: var(--custom-background-color, #1D3C5D);
898+
color: var(--custom-font-color, #000);
899+
background: var(--custom-background-color, #FFFFFF);
900900
padding: 0.5rem 1.2rem;
901901
}
902902

@@ -917,7 +917,7 @@ header .github {
917917

918918
.global-menu {
919919
color: var(--custom-font-color, #fff);
920-
background: var(--custom-background-color, #1D3C5D);
920+
background: var(--custom-background-color, #173559);
921921
padding: 0.2rem 1.2rem;
922922
}
923923

@@ -944,7 +944,7 @@ header .github {
944944

945945
.global-menu ul.sub-menu li {
946946
padding: 0.2rem 1.2rem;
947-
background: var(--custom-background-color, #1D3C5D);
947+
background: var(--custom-background-color, #4E96D1);
948948
width: 140px;
949949
font-size: 80%;
950950
}
@@ -1012,11 +1012,6 @@ main {
10121012
}
10131013
}
10141014

1015-
.container {
1016-
border-left: solid 1px #eee;
1017-
border-right: solid 1px #eee;
1018-
}
1019-
10201015
.sidebar {
10211016
font-size: 90%;
10221017
background: #f9f9f9;
@@ -1027,6 +1022,7 @@ main {
10271022
list-style: none;
10281023
padding: 0;
10291024
margin: 0;
1025+
margin-left: 10px;
10301026
}
10311027

10321028
.sidebar a {
@@ -1046,11 +1042,11 @@ main {
10461042
}
10471043

10481044
.sidebar nav > ul > li li a {
1049-
padding-left: 2rem;
1045+
padding-left: 1rem;
10501046
}
10511047

10521048
.sidebar nav > ul ul > li li a {
1053-
padding-left: 3rem;
1049+
padding-left: 1rem;
10541050
}
10551051

10561052
@media screen and (max-width: 480px) {
@@ -1100,3 +1096,14 @@ main {
11001096
text-align: right;
11011097
color: #999;
11021098
}
1099+
1100+
1101+
1102+
/* custom MLIR
1103+
*/
1104+
1105+
a.headline-hash {
1106+
color: #555;
1107+
text-decoration:none;
1108+
text-style:italic;
1109+
}

0 commit comments

Comments
 (0)