make color-swatch click area bigger
This commit is contained in:
parent
a2f9861fca
commit
3000d06a2b
5 changed files with 21 additions and 16 deletions
|
@ -1 +1 @@
|
|||
<div class="color-swatch js-swatch" style="background: <%= @color %>" data-color="<%= @color %>"></div>
|
||||
<div class="color-swatch js-swatch" style="color: <%= @color %>" data-color="<%= @color %>"></div>
|
|
@ -15,7 +15,7 @@
|
|||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" class="js-highlightColor" data-key="<%= i %>">
|
||||
<span class="dropdown-iconSpacer">
|
||||
<span class="color-swatch icon" style="background: <%= entry.color %>"></span>
|
||||
<span class="color-swatch icon" style="color: <%= entry.color %>"></span>
|
||||
</span>
|
||||
<%- @Ti(entry.name) %>
|
||||
<span class="dropdown-selectedSpacer<%= ' is-selected' if i is @activeColorIndex %>">
|
||||
|
|
|
@ -11,19 +11,19 @@
|
|||
</div>
|
||||
<ul class="dropdown-menu dropdown-menu-right" role="menu">
|
||||
<li role="presentation">
|
||||
<a class="js-highlightColor" data-key="0" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="background: #f7e7b2"></span></span> Yellow <span class="dropdown-selectedSpacer js-selectedIcon is-selected"><%- @Icon('checkmark', '') %></span></a>
|
||||
<a class="js-highlightColor" data-key="0" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="color: #f7e7b2"></span></span> Yellow <span class="dropdown-selectedSpacer js-selectedIcon is-selected"><%- @Icon('checkmark', '') %></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a class="js-highlightColor" data-key="1" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="background: #bce7b6"></span></span> Green <span class="dropdown-selectedSpacer js-selectedIcon"><%- @Icon('checkmark', '') %></span></a>
|
||||
<a class="js-highlightColor" data-key="1" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="color: #bce7b6"></span></span> Green <span class="dropdown-selectedSpacer js-selectedIcon"><%- @Icon('checkmark', '') %></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a class="js-highlightColor" data-key="2" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="background: #b3ddf9"></span></span> Blue <span class="dropdown-selectedSpacer js-selectedIcon"><%- @Icon('checkmark', '') %></span></a>
|
||||
<a class="js-highlightColor" data-key="2" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="color: #b3ddf9"></span></span> Blue <span class="dropdown-selectedSpacer js-selectedIcon"><%- @Icon('checkmark', '') %></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a class="js-highlightColor" data-key="3" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="background: #fea9c5"></span></span> Pink <span class="dropdown-selectedSpacer js-selectedIcon"><%- @Icon('checkmark', '') %></span></a>
|
||||
<a class="js-highlightColor" data-key="3" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="color: #fea9c5"></span></span> Pink <span class="dropdown-selectedSpacer js-selectedIcon"><%- @Icon('checkmark', '') %></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a class="js-highlightColor" data-key="4" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="background: #eac5ee"></span></span> Purple <span class="dropdown-selectedSpacer js-selectedIcon"><%- @Icon('checkmark', '') %></span></a>
|
||||
<a class="js-highlightColor" data-key="4" role="menuitem" tabindex="-1"><span class="dropdown-iconSpacer"><span class="color-swatch icon" style="color: #eac5ee"></span></span> Purple <span class="dropdown-selectedSpacer js-selectedIcon"><%- @Icon('checkmark', '') %></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" class="js-highlightColor" data-key="<%= i %>">
|
||||
<span class="dropdown-iconSpacer">
|
||||
<span class="color-swatch icon" style="background: <%= entry.color %>"></span>
|
||||
<span class="color-swatch icon" style="color: <%= entry.color %>"></span>
|
||||
</span>
|
||||
<%- @Ti(entry.name) %>
|
||||
<span class="dropdown-selectedSpacer js-selectedIcon<%= ' is-selected' if i is @activeColorIndex %>">
|
||||
|
|
|
@ -2332,13 +2332,18 @@ ol.tabs li {
|
|||
}
|
||||
|
||||
.color-swatch {
|
||||
border-radius: 100%;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
padding: 2px;
|
||||
margin: -2px 0;
|
||||
cursor: pointer;
|
||||
|
||||
& + .color-swatch {
|
||||
margin-left: 4px;
|
||||
/* :after technique for bigger click area */
|
||||
&:after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
height: 11px;
|
||||
width: 11px;
|
||||
border-radius: 100%;
|
||||
background: currentColor;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7440,7 +7445,7 @@ output {
|
|||
position: relative;
|
||||
height: 100%;
|
||||
transform-origin: left top;
|
||||
overflow: auto;
|
||||
overflow: hidden;
|
||||
|
||||
&[data-mode=screenshot] iframe,
|
||||
&[data-mode=iframe] img {
|
||||
|
@ -7466,13 +7471,13 @@ output {
|
|||
|
||||
.browser-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid hsl(0,0%,90%);
|
||||
|
||||
.browser-input {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
flex: 1;
|
||||
margin-right: 10px;
|
||||
|
||||
input {
|
||||
min-width: 0;
|
||||
|
|
Loading…
Reference in a new issue