Skip to content

Commit

Permalink
Merge pull request ipfs#29 from ipfs/makeresponsive-removefontrefs
Browse files Browse the repository at this point in the history
Make responsive, remove extraneous font refs, add video icons, CSS refactor
  • Loading branch information
jessicaschilling authored May 5, 2020
2 parents 2d4c67e + 4bd6455 commit e391655
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 516 deletions.
55 changes: 3 additions & 52 deletions dir-index-uncat.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,9 @@
<head>
<meta charset="utf-8" />
<!-- TODO: seed these - maybe like the starter ex or the webui? -->
<link rel="stylesheet" href="/ipfs/QmXB7PLRWH6bCiwrGh2MrBBjNkLv3mY3JdYXCikYZSwLED/bootstrap.min.css"/>
<!-- helper to construct this is here: https://github.com/cryptix/exp/blob/master/imgesToCSSData/convert.go -->
<link rel="stylesheet" href="/ipfs/QmXB7PLRWH6bCiwrGh2MrBBjNkLv3mY3JdYXCikYZSwLED/icons.css">
<style>
.narrow {width: 0px;}
.padding { margin: 100px;}
#header {
background: #0b3a53;
border-bottom: 4px solid #69c4cd;
color: #ffffff;
margin: 0;
padding: 0;
}
#logo {
height: 35px;
margin: 10px;
}
#header-menu {
align-items: center;
display: flex;
margin: 10px;
float: right;
font-size: 16px;
font-weight: 500;
}
#header-menu a {
color: #69c4cd;
}
#header-menu a:active, a:visited {
color: #9ad4db;
}
#header-menu a:hover {
color: #ffffff;
}
.header-menu-item {
margin: 0px 8px;
}
#bug-report svg {
height: 30px;
fill: #69c4cd;
margin-top: 2px;
}
#bug-report svg:hover {
fill: #ffffff;
}
.ipfs-icon {
width:16px;
}
.ipfs-hash {
color: #999;
}
</style>
<link rel="stylesheet" href="/ipfs/Qme2SZFZhhgzT4v3d2R87c8KwaozjyqqUrXPzzA85QbGnj/style.css"/>
<!-- Icon art is https://fileicons.org/ -->
<link rel="stylesheet" href="/ipfs/Qme2SZFZhhgzT4v3d2R87c8KwaozjyqqUrXPzzA85QbGnj/icons.css">
<title>{{ .Path }}</title>
</head>
<body>
Expand Down
99 changes: 25 additions & 74 deletions dir-index.html

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions gw-assets/bootstrap.min.css

This file was deleted.

385 changes: 1 addition & 384 deletions gw-assets/icons.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions gw-assets/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions knownIcons.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
.key
.less
.mid
.mkv
.mov
.mp3
.mp4
.mpg
Expand Down Expand Up @@ -55,6 +57,7 @@
.tiff
.txt
.wav
.wmv
.xls
.xlsx
.xml
Expand Down
2 changes: 1 addition & 1 deletion test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var testData = listingTemplateData{
Name: "this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt",
Path: "this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt",
}},
Path: "/ipfs/QmFoo",
Path: "/ipfs/QmFooBarQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7RgQm",
BackLink: "/..",
Hash: "QmFooBarQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7RgQm",
}
Expand Down

0 comments on commit e391655

Please sign in to comment.