Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Native feel of Browser Action popups #339

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion add-on/src/popup/browser-action/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const isJsIpfsEnabled = require('../../lib/is-js-ipfs-enabled')()

module.exports = function header ({ ipfsNodeType, onToggleNodeType, isIpfsOnline }) {
return html`
<div class="pv3 br2 br--top ba bw1 b--white" style="background-image: url('../../../images/stars.png'), linear-gradient(to bottom, #041727 0%,#043b55 100%); background-size: auto 100%">
<div class="pv3 ba bw1 bt-0 br-0 bl-0" style="background-image: url('../../../images/stars.png'), linear-gradient(to bottom, #041727 0%,#043b55 100%); background-size: auto 100%">
<div class="tc mb2" title="${isIpfsOnline ? '' : 'offline'}">
${logo({
size: 52,
Expand Down
2 changes: 1 addition & 1 deletion add-on/src/popup/browser-action/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width" />
</head>
<body style="width: 320px; overflow: hidden; background: white;">
<body style="width: 320px; overflow: hidden;">
<div id="root"></div>
<script src="../../ipfs-companion-common.js"></script>
<script src="browser-action.js"></script>
Expand Down
5 changes: 5 additions & 0 deletions add-on/src/popup/browser-action/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@
.outline-0--focus:focus {
outline: 0;
}

html,
body {
background: #041727 linear-gradient(to bottom, #041727, white 50%);
}
2 changes: 1 addition & 1 deletion add-on/src/popup/browser-action/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = function browserActionPage (state, emit) {
const gwStatusProps = Object.assign({}, state)

return html`
<div class="helvetica">
<div class="helvetica bg-white">
${header(headerProps)}
${contextActions(contextActionsProps)}
${operations(opsProps)}
Expand Down