Skip to content

Commit

Permalink
added in giphy attributions and functionality for dark/light themes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnathanstewartmlb committed Apr 19, 2017
1 parent 6a4ab10 commit 676c6c3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
"url": "https://github.com/johnstew/vscode-gif.git"
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"vscode:prepublish": "tsc -p ./ && cp -r src/assets out/src",
"compile": "tsc -watch -p ./ && cp -r src/assets out/src",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
Expand Down
Binary file added src/assets/giphy-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/giphy-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/gif.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ class Gif {
'.gif-item__img-container img { display: block; max-width: 100%; height: auto; }',
'.gif-item__url-container { display: flex; align-items: center; height: 30px; }',
'.gif-item__url-container input { display: block; width: 100%; border: 1px solid #DDD; height: 30px; padding: 0 10px;}',
'.giphy-logo { display: inline-block; width: 150px; height: auto;}',
'.vscode-light .giphy-logo--light { display: none; }',
'.vscode-dark .giphy-logo--dark { display: none; }',
'</style>',
'<h1><span class="small">powered by</span> GIPHY</h1>',
'<h1 class="gif-heading"><span>GIF</span>',
'<img class="giphy-logo giphy-logo--dark" src="../assets/giphy-dark.png" />',
'<img class="giphy-logo giphy-logo--light" src="../assets/giphy-light.png" />',
'</h1>',
'<main class="gif-container">',
'{{#each gifResults}}',
'<div class="gif-item" style="width: {{this.images.fixed_height.width}}px;">',
Expand Down

0 comments on commit 676c6c3

Please sign in to comment.