mirror of
https://github.com/Xevion/rdap.git
synced 2026-01-31 00:25:18 -06:00
Use .dashed class instead of global attribute selector for title indication
This commit is contained in:
@@ -22,7 +22,7 @@ const DynamicDate: FunctionComponent<DynamicDateProps> = ({
|
|||||||
const date = new Date(value);
|
const date = new Date(value);
|
||||||
return (
|
return (
|
||||||
<button onClick={toggleFormat}>
|
<button onClick={toggleFormat}>
|
||||||
<span title={date.toISOString()}>
|
<span className="dashed" title={date.toISOString()}>
|
||||||
{showAbsolute
|
{showAbsolute
|
||||||
? format(date, absoluteFormat ?? "LLL do, y HH:mm:ss xxx")
|
? format(date, absoluteFormat ?? "LLL do, y HH:mm:ss xxx")
|
||||||
: <TimeAgo date={date} />}
|
: <TimeAgo date={date} />}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const PropertyListItem: FunctionComponent<{
|
|||||||
}> = ({ title, children }) => {
|
}> = ({ title, children }) => {
|
||||||
return (
|
return (
|
||||||
<li>
|
<li>
|
||||||
<span title={title}>{children}</span>
|
<span className="dashed" title={title}>{children}</span>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ dd {
|
|||||||
margin: 0.5em 0 1em 2em;
|
margin: 0.5em 0 1em 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
[title]:not(.no-title) {
|
.dashed {
|
||||||
border-bottom: 1px dashed silver;
|
border-bottom: 1px dashed silver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user