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

Redid the Action Popup #1525

Merged
merged 11 commits into from
Nov 25, 2024
134 changes: 52 additions & 82 deletions ext/action-popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,94 +11,64 @@
<link rel="icon" type="image/png" href="/images/icon48.png" sizes="48x48">
<link rel="icon" type="image/png" href="/images/icon64.png" sizes="64x64">
<link rel="icon" type="image/png" href="/images/icon128.png" sizes="128x128">
<link rel="stylesheet" type="text/css" href="/css/material.css">
<link rel="stylesheet" type="text/css" href="/css/action-popup.css">
<script src="/js/pages/action-popup-main.js" type="module"></script>
</head>
<body>

<div id="loading">
martholomew marked this conversation as resolved.
Show resolved Hide resolved
Loading...
</div>

<div id="action-popups">
<div id="mini">
<label class="toggle">
<input type="checkbox" class="enable-search">
<div class="toggle-group">
<span class="toggle-on">On</span>
<span class="toggle-off">Off</span>
<span class="toggle-handle"></span>
</div>
</label>
<div class="nav-button-container">
<button type="button" class="nav-button action-select-profile" title="Change default profile" hidden>
<span class="icon" data-icon="profile"></span>
<span class="profile-select-container"><select class="profile-select">
<optgroup label="Default Profile" class="profile-select-option-group"></optgroup>
</select></span>
</button>
<a tabindex="0" class="nav-button action-open-settings" title="Settings" data-hotkey='["global:openSettingsPage","title","Settings ({0})"]'>
<span class="icon" data-icon="cog"></span>
<div class="nav-button-warning-badge no-dictionaries-enabled-warning" hidden>
<div class="nav-button-warning-badge-outer"></div>
<div class="nav-button-warning-badge-inner"></div>
<div>
<div tabindex="0" class="action-item action-select-profile" hidden>
<div class="action-item-inner">
<div class="action-item-left">
<h2>Profile</h2>
</div>
<div class="action-item-right">
<select class="profile-select" id="profile-select">
martholomew marked this conversation as resolved.
Show resolved Hide resolved
</select>
</div>
</div>
</a>
<a tabindex="0" class="nav-button action-open-permissions" title="Permissions" hidden>
<span class="icon" data-icon="key"></span>
<div class="nav-button-warning-badge permissions-required-warning" hidden>
<div class="nav-button-warning-badge-outer"></div>
<div class="nav-button-warning-badge-inner"></div>
</div>
<div tabindex="0" class="action-item">
<div class="action-item-inner">
<div class="action-item-center">
<label class="toggle">
<input type="checkbox" class="enable-search">
<div class="toggle-group">
<span class="toggle-on">On</span>
<span class="toggle-off">Off</span>
<span class="toggle-handle"></span>
</div>
</label>
<p class="tooltip">Hold <em class="modifier-key">shift</em> to scan</p>
</div>
</div>
</a>
<a tabindex="0" class="nav-button action-open-search" title="Search" data-hotkey='["global:openSearchPage","title","Search ({0})\nShift+click to open here"]'>
<span class="icon" data-icon="magnifying-glass"></span>
</a>
<a tabindex="0" class="nav-button action-open-info" title="Information" data-hotkey='["global:openInfoPage","title","Information ({0})"]'>
<span class="icon" data-icon="question-mark-circle"></span>
</a>
</div>
</div>

<div id="full">
<h3 id="extension-info">Yomitan</h3>
<label class="toggle">
<input type="checkbox" class="enable-search">
<div class="toggle-group">
<span class="toggle-on">On</span>
<span class="toggle-off">Off</span>
<span class="toggle-handle"></span>
</div>
</label>
<a tabindex="0" class="link-group action-select-profile">
<span class="link-group-icon" data-icon="profile"></span>
<span class="link-group-label">Profile</span>
<span class="profile-select-container"><select class="profile-select">
<optgroup label="Default Profile" class="profile-select-option-group"></optgroup>
</select></span>
</a>
<a tabindex="0" class="link-group action-open-settings">
<span class="link-group-icon" data-icon="cog"></span>
<span class="link-group-label">Settings</span>
<span class="link-group-badge">
<div class="flex-margin-left warning-badge no-dictionaries-enabled-warning" hidden><span class="icon" data-icon="exclamation-point-short"></span></div>
</span>
</a>
<a tabindex="0" class="link-group action-open-permissions" hidden>
<span class="link-group-icon" data-icon="key"></span>
<span class="link-group-label">Permissions</span>
<span class="link-group-badge">
<div class="flex-margin-left warning-badge permissions-required-warning" hidden><span class="icon" data-icon="exclamation-point-short"></span></div>
</span>
</a>
<a tabindex="0" class="link-group action-open-search">
<span class="link-group-icon" data-icon="magnifying-glass"></span><span class="link-group-label">Search</span>
</a>
<a tabindex="0" class="link-group action-open-info">
<span class="link-group-icon" data-icon="question-mark-circle"></span><span class="link-group-label">Information</span>
</a>
</div>
</div>

<div tabindex="0" class="action-container">
<button type="button" class="low-emphasis action-open-settings" title="Settings" data-hotkey='["global:openSettingsPage","title","Settings ({0})"]'>
martholomew marked this conversation as resolved.
Show resolved Hide resolved
<div class="action-icon">
<span class="icon" data-icon="cog"></span>
</div>
</button>
<button type="button" class="low-emphasis action-open-permissions" title="Permissions" hidden>
<div class="action-icon">
<span class="icon" data-icon="key"></span>
<div class="nav-button-warning-badge permissions-required-warning" hidden>
<div class="nav-button-warning-badge-outer"></div>
<div class="nav-button-warning-badge-inner"></div>
</div>
</div>
</button>
<button type="button" class="low-emphasis action-open-search" title="Search" data-hotkey='["global:openSearchPage","title","Search ({0})\nShift+click to open here"]'>
martholomew marked this conversation as resolved.
Show resolved Hide resolved
<div class="action-icon">
<span class="icon" data-icon="magnifying-glass"></span>
</div>
</button>
<button type="button" class="low-emphasis action-open-info" title="Information" data-hotkey='["global:openInfoPage","title","Information ({0})"]'>
<div class="action-icon">
<span class="icon" data-icon="info"></span>
</div>
</button>
</div>
</div>
</body>
</html>
Loading
Loading