-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mv3] Open options page at first install
To be sure first time users are properly informed about the possibility to enable broad permissions for better filtering.
- Loading branch information
Showing
11 changed files
with
164 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
body > div.body { | ||
margin: 0 1em; | ||
max-width: min(600px, 100vw); | ||
} | ||
h2, h3 { | ||
margin: 1em 0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
html, body { | ||
align-items: center; | ||
display: flex; | ||
flex-direction: column; | ||
height: 100vh; | ||
justify-content: stretch; | ||
overflow: hidden; | ||
position: relative; | ||
width: 100vw; | ||
} | ||
body > * { | ||
width: min(641px, 100vw); | ||
} | ||
#dashboard-nav { | ||
border: 0; | ||
border-bottom: 1px solid var(--border-1); | ||
display: flex; | ||
flex-shrink: 0; | ||
flex-wrap: wrap; | ||
overflow-x: hidden; | ||
padding: 0; | ||
position: sticky; | ||
top: 0; | ||
z-index: 10; | ||
} | ||
.tabButton { | ||
background-color: transparent; | ||
border: 0; | ||
border-bottom: 3px solid transparent; | ||
border-radius: 0; | ||
color: var(--dashboard-tab-ink); | ||
fill: var(--dashboard-tab-ink); | ||
font-family: var(--font-family); | ||
font-size: var(--font-size); | ||
padding: 0.7em 1.4em calc(0.7em - 3px); | ||
text-decoration: none; | ||
white-space: nowrap; | ||
} | ||
.tabButton:focus { | ||
outline: 0; | ||
} | ||
/* | ||
* TODO: support keyboard-driven navigation | ||
* | ||
.tabButton:not(:active):focus { | ||
background-color: var(--dashboard-tab-focus-surface); | ||
} | ||
*/ | ||
.tabButton.selected { | ||
background-color: var(--dashboard-tab-active-surface); | ||
border-bottom: 3px solid var(--dashboard-tab-active-ink); | ||
color: var(--dashboard-tab-active-ink); | ||
fill: var(--dashboard-tab-active-ink); | ||
} | ||
iframe { | ||
background-color: transparent; | ||
border: 0; | ||
flex-grow: 1; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
#unsavedWarning { | ||
display: none; | ||
left: 0; | ||
position: absolute; | ||
width: 100%; | ||
z-index: 20; | ||
} | ||
#unsavedWarning.on { | ||
display: initial; | ||
} | ||
#unsavedWarning > div:first-of-type { | ||
padding: 0.5em; | ||
} | ||
#unsavedWarning > div:last-of-type { | ||
height: 100vh; | ||
position: absolute; | ||
} | ||
|
||
body:not(.canUpdateShortcuts) .tabButton[data-pane="shortcuts.html"] { | ||
display: none; | ||
} | ||
body .tabButton[data-pane="no-dashboard.html"] { | ||
display: none; | ||
} | ||
body.noDashboard #dashboard-nav { | ||
display: none; | ||
} | ||
|
||
/* high dpi devices */ | ||
:root.hidpi .tabButton { | ||
font-family: Metropolis, sans-serif; | ||
font-weight: 600; | ||
letter-spacing: 0.5px; | ||
} | ||
|
||
/* hover-able devices */ | ||
:root.desktop .tabButton { | ||
cursor: default; | ||
} | ||
:root.desktop .tabButton:not(.selected) { | ||
cursor: pointer; | ||
} | ||
:root.desktop .tabButton:not(.selected):hover { | ||
background-color: var(--dashboard-tab-hover-surface); | ||
border-bottom-color: var(--dashboard-tab-hover-border); | ||
} | ||
|
||
/* touch-screen devices */ | ||
:root.mobile #dashboard-nav { | ||
flex-wrap: nowrap; | ||
overflow-x: auto; | ||
} | ||
:root.mobile #dashboard-nav .logo { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters