add icon before the files

This commit is contained in:
tdurieux
2018-02-06 16:44:30 +01:00
parent a6fb90a119
commit 26510d53bc
2 changed files with 17 additions and 1 deletions

View File

@@ -16,10 +16,11 @@
.files a {
display: block;
padding: 9px;
padding: 9px 9px 9px 30px;
}
.files .blob, .files .tree, .files .parent_folder {
position: relative;
border-bottom: 1px solid #dddddd;
}
@@ -27,6 +28,20 @@
background: #f0f0f0;
}
.files .tree::before, .files .blob::before {
content: "\f07b";
font-family: Font Awesome\ 5 Free;
position: absolute;
left: 0px;
width: 7px;
padding: 9px;
color: #007bff;
}
.files .blob::before {
content: "\f15b";
}
.paths {
margin: 15px;
border: 1px solid #dddddd;

View File

@@ -11,6 +11,7 @@
<link href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/2.8.0/github-markdown.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" rel="stylesheet" type="text/css" />
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet" type="text/css" />
</head>