Delete button style
This commit is contained in:
parent
3cc294ca83
commit
f8d857546f
|
@ -1,6 +1,7 @@
|
||||||
import React from 'preact/compat';
|
import React from 'preact/compat';
|
||||||
import { useState, useRef, useEffect } from 'preact/hooks';
|
import { useState, useRef, useEffect } from 'preact/hooks';
|
||||||
import { getWidget, DEFAULT_WIDGETS } from './widgets';
|
import { getWidget, DEFAULT_WIDGETS } from './widgets';
|
||||||
|
import { TrashIcon } from '../Icons';
|
||||||
import setPosition from './setPosition';
|
import setPosition from './setPosition';
|
||||||
import i18n from '../i18n';
|
import i18n from '../i18n';
|
||||||
|
|
||||||
|
@ -189,8 +190,11 @@ const Editor = props => {
|
||||||
) : (
|
) : (
|
||||||
<div className="r6o-footer">
|
<div className="r6o-footer">
|
||||||
{ hasDelete && (
|
{ hasDelete && (
|
||||||
<button className="r6o-btn highlight left outline" onClick={onDelete}>
|
<button
|
||||||
{i18n.t('Remove')}
|
className="r6o-btn left delete-annotation"
|
||||||
|
title={i18n.t('Delete')}
|
||||||
|
onClick={onDelete}>
|
||||||
|
<TrashIcon width={15} />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
|
@ -54,12 +54,35 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.r6o-footer {
|
.r6o-footer {
|
||||||
|
position:relative;
|
||||||
text-align:right;
|
text-align:right;
|
||||||
padding:8px 0;
|
padding:8px 0;
|
||||||
|
|
||||||
.r6o-btn {
|
.r6o-btn {
|
||||||
margin-right:8px;
|
margin-right:8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.r6o-btn.delete-annotation {
|
||||||
|
position:absolute;
|
||||||
|
top:5px;
|
||||||
|
left:5px;
|
||||||
|
background-color:transparent;
|
||||||
|
border:none;
|
||||||
|
color:rgba($ocean, .8);
|
||||||
|
width:36px;
|
||||||
|
height:36px;
|
||||||
|
min-width:0;
|
||||||
|
border-radius: 100%;
|
||||||
|
padding:0;
|
||||||
|
display: flex;
|
||||||
|
justify-content:center;
|
||||||
|
align-items:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.r6o-btn.delete-annotation:hover {
|
||||||
|
color:$ocean;
|
||||||
|
background-color:$blueish-white-hi;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue