adds non-ascii file tree view

This commit is contained in:
Robert Messerle 2015-12-15 01:53:24 -08:00 committed by Naomi Black
parent 0b541d513e
commit f93bc28b62
3 changed files with 47 additions and 8 deletions

View File

@ -23,14 +23,15 @@ figure.image-display
img(src='/resources/images/devguide/quickstart/my-first-app.png' alt="Output of quickstart app") img(src='/resources/images/devguide/quickstart/my-first-app.png' alt="Output of quickstart app")
:marked :marked
Here is the file structure: Here is the file structure:
.filetree
code-example(format=""). .file angular2-quickstart
angular2-quickstart .children
├─ app .file app
│ ├── app.component.ts .children
│ └── boot.ts .file app.component.ts
├─ index.htm .file boot.ts
└─ license.md .file index.htm
.file license.md
:marked :marked
Functionally, it's an `index.html` and two TypeScript files in an `app/` folder. Functionally, it's an `index.html` and two TypeScript files in an `app/` folder.
We can handle that! We can handle that!

View File

@ -45,6 +45,7 @@
@import 'module/example-title'; @import 'module/example-title';
@import 'module/api'; @import 'module/api';
@import 'module/cheatsheet'; @import 'module/cheatsheet';
@import 'module/filetree';
/* /*

View File

@ -0,0 +1,37 @@
.filetree {
padding: 12px 24px;
background: $mist;
.file {
display: block;
font-family: $mono-font;
line-height: 32px;
color: $platinum;
}
.children {
padding-left: 24px;
position: relative;
&:before {
content: '';
left: 6px;
width: 2px;
background: $grey;
bottom: 16px;
top: 0;
position: absolute;
transform: scaleX(0.75);
}
.file {
position: relative;
&:before {
content: '';
left: -18px;
top: 16px;
width: 12px;
height: 2px;
background: $grey;
position: absolute;
transform: scaleY(0.75);
}
}
}
}