Another popup mockup
This is a fraction of what I want to do with the popup, but these are improvements that can be made to the existing version without a complete overhaul. Should be no difference appearance-wise, only some simple enhancements to existing functionality in terms of click area and stylability. Eliminates ill-conceived `.left-gutter` altogether. Checkboxes and labels are now either parent/child or siblings, with no weird spaces between them, and their hovers can therefore be styled together. `entry` checkbox/label `.style-name` now occupies the entire height/width of the `.entry` to the left of the `.actions` icons, so no more errant clicks.
This commit is contained in:
parent
fdcdaf3db5
commit
cf2c7402dd
39
popup.html
39
popup.html
|
@ -23,25 +23,23 @@
|
||||||
|
|
||||||
<template data-id="style">
|
<template data-id="style">
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<div class="left-gutter">
|
|
||||||
<input class="checker" type="checkbox">
|
|
||||||
</div>
|
|
||||||
<div class="main-controls">
|
<div class="main-controls">
|
||||||
<label class="style-name"></label>
|
<label class="style-name">
|
||||||
<div class="actions">
|
<input class="checker" type="checkbox"></label>
|
||||||
<a href="#" class="enable" i18n-text="enableStyleLabel"></a>
|
</div>
|
||||||
<a href="#" class="disable" i18n-text="disableStyleLabel"></a>
|
<div class="actions">
|
||||||
<a class="style-edit-link" href="edit.html?id=" i18n-title="editStyleLabel">
|
<a href="#" class="enable" i18n-text="enableStyleLabel"></a>
|
||||||
<svg class="svg-icon edit" viewBox="0 0 14 16">
|
<a href="#" class="disable" i18n-text="disableStyleLabel"></a>
|
||||||
<path fill-rule="evenodd" d="M0 12v3h3l8-8-3-3-8 8zm3 2H1v-2h1v1h1v1zm10.3-9.3L12 6 9 3l1.3-1.3a.996.996 0 0 1 1.41 0l1.59 1.59c.39.39.39 1.02 0 1.41z"/>
|
<a class="style-edit-link" href="edit.html?id=" i18n-title="editStyleLabel">
|
||||||
</svg>
|
<svg class="svg-icon edit" viewBox="0 0 14 16">
|
||||||
</a>
|
<path fill-rule="evenodd" d="M0 12v3h3l8-8-3-3-8 8zm3 2H1v-2h1v1h1v1zm10.3-9.3L12 6 9 3l1.3-1.3a.996.996 0 0 1 1.41 0l1.59 1.59c.39.39.39 1.02 0 1.41z"/>
|
||||||
<a href="#" class="delete" i18n-title="deleteStyleLabel">
|
</svg>
|
||||||
<svg class="svg-icon remove" viewBox="0 0 14 16">
|
</a>
|
||||||
<path fill-rule="evenodd" d="M11 2H9c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1H2c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1v9c0 .55.45 1 1 1h7c.55 0 1-.45 1-1V5c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 12H3V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9zm1-10H2V3h9v1z"/>
|
<a href="#" class="delete" i18n-title="deleteStyleLabel">
|
||||||
</svg>
|
<svg class="svg-icon remove" viewBox="0 0 14 16">
|
||||||
</a>
|
<path fill-rule="evenodd" d="M11 2H9c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1H2c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1v9c0 .55.45 1 1 1h7c.55 0 1-.45 1-1V5c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 12H3V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9zm1-10H2V3h9v1z"/>
|
||||||
</div>
|
</svg>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -108,14 +106,11 @@
|
||||||
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<div id="disable-all-wrapper">
|
<div id="disable-all-wrapper">
|
||||||
<div class="left-gutter">
|
|
||||||
<input id="disableAll" type="checkbox">
|
|
||||||
</div>
|
|
||||||
<div class="main-controls">
|
<div class="main-controls">
|
||||||
|
<input id="disableAll" type="checkbox">
|
||||||
<label id="disableAll-label" for="disableAll" i18n-text="disableAllStyles"></label>
|
<label id="disableAll-label" for="disableAll" i18n-text="disableAllStyles"></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="left-gutter"></div>
|
|
||||||
<div class="main-controls">
|
<div class="main-controls">
|
||||||
<div id="find-styles">
|
<div id="find-styles">
|
||||||
<a id="find-styles-link" href="https://userstyles.org/styles/browse/"
|
<a id="find-styles-link" href="https://userstyles.org/styles/browse/"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user