Skip to content

Commit ed40779

Browse files
committed
No container boxes on file tree lists
See #260
1 parent 8d516ec commit ed40779

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/assets/sass/modules/_lists.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ dd {
136136
* <ol class="list--tree">
137137
*/
138138

139+
.list--tree {
140+
font-family: $font-code;
141+
font-size: $code-font-size;
142+
line-height: $line-height-mobile;
143+
font-feature-settings: normal; /* 1 */
144+
}
145+
139146
.list--tree,
140147
.list--tree ol,
141148
.list--tree ul {

src/assets/sass/modules/_typography.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ var {
246246
pre,
247247
code,
248248
kbd,
249-
samp,
250-
.list--tree {
249+
samp {
251250
border: 1px solid $color-border-extra-light;
252251
border-radius: 0.2857143em; // 4px / 14px
253252
background-color: $color-background-box;
@@ -262,8 +261,7 @@ samp,
262261
pre,
263262
code,
264263
kbd,
265-
samp,
266-
.list--tree {
264+
samp {
267265
border-color: $dark-color-border-extra-light;
268266
background-color: $dark-color-background-box;
269267
color: $dark-color-text;
@@ -284,8 +282,7 @@ samp {
284282
* 3. Set tab size to 4 spaces.
285283
*/
286284

287-
pre,
288-
.list--tree {
285+
pre {
289286
padding: 0.5714286em 1.1428571em; // 8px / 14px + 16px / 14px
290287
word-wrap: normal; /* 1 */
291288
overflow-x: auto; /* 2 */

0 commit comments

Comments
 (0)