Skip to content

Commit d7cd448

Browse files
authored
Remover border for code lines in comparison page (#2721)
* Remove border for td and th * Supress border * Remove border style for code elements * Delete weird lines in gem locks
1 parent e909502 commit d7cd448

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

_overviews/scala3-book/scala4x.css

+1-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@
1010
background: #fdfdf7;
1111
border-collapse: collapse;
1212
}
13-
.content-primary .scala3-comparison-page th,
14-
.content-primary .scala3-comparison-page td
15-
{
16-
border-top: 1px solid #E5EAEA;
17-
border-bottom: 1px solid #E5EAEA;
18-
}
13+
1914
.content-primary .scala3-comparison-page table td.python-block,
2015
.content-primary .scala3-comparison-page table td.java-block,
2116
.content-primary .scala3-comparison-page table td.javascript-block,

_sass/layout/type-md.scss

+12-6
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@
149149

150150
li,
151151
p,
152-
tr,
153-
td,
154152
dt,
155153
dd,
156154
pre {
@@ -162,8 +160,6 @@
162160

163161
li,
164162
p,
165-
tr,
166-
td,
167163
dt,
168164
dd {
169165
code {
@@ -175,6 +171,16 @@
175171
}
176172
}
177173

174+
tr,
175+
td{
176+
code {
177+
font-family: 'Consolas';
178+
font-size: 0.9375rem;
179+
}
180+
}
181+
182+
183+
178184
pre {
179185
code {
180186
overflow-x: auto;
@@ -195,8 +201,8 @@
195201

196202
td,
197203
th {
198-
border-bottom: $base-border-gray;
199-
padding: 6px 0;
204+
border: $base-border-gray;
205+
padding: 6px;
200206
}
201207
}
202208

0 commit comments

Comments
 (0)