more experimental changes

add more focus for support button

minor fixes css
This commit is contained in:
btzr-io 2017-10-08 20:39:10 -06:00
parent c0f545a774
commit 7400b8c916
7 changed files with 37 additions and 15 deletions

View file

@ -23,15 +23,6 @@ class FileActions extends React.PureComponent {
navigateParams={{ id: claimId }}
/>}
<FileDownloadLink uri={uri} />
{showSupport &&
<Link
button="text"
icon="icon-gift"
label={__("Support")}
navigate="/show"
className="no-underline"
navigateParams={{ uri, tab: "tip" }}
/>}
{showDelete &&
<Link
button="text"
@ -47,6 +38,15 @@ class FileActions extends React.PureComponent {
className="no-underline"
label={__("report")}
/>
{showSupport &&
<Link
button="primary"
icon="icon-gift"
label={__("Support")}
navigate="/show"
className="card__action--right no-underline"
navigateParams={{ uri, tab: "tip" }}
/>}
</section>
);
}

View file

@ -18,12 +18,22 @@ class TransactionListItem extends React.PureComponent {
type,
} = transaction;
const dateFormat = {
month: "short",
day: "numeric",
year: "numeric",
};
return (
<tr>
<td>
{date
? <div>
<DateTime date={date} show={DateTime.SHOW_DATE} />
<DateTime
date={date}
show={DateTime.SHOW_DATE}
formatOptions={dateFormat}
/>
<div className="meta">
<DateTime date={date} show={DateTime.SHOW_TIME} />
</div>

View file

@ -87,9 +87,10 @@ class FilePage extends React.PureComponent {
<h1>{title}</h1>
<div className="card__subtitle">
<UriIndicator uri={uri} link={true} />
<span style={{ margin: "10px" }}>&#9899;</span>
<span className="divider__vertical">&bull;</span>
<span>
Published on <DateTime block={height} show="date" />
Published on{" "}
<DateTime block={height} show={DateTime.SHOW_DATE} />
</span>
</div>
</div>

View file

@ -24,4 +24,5 @@
@import "component/_scrollbar.scss";
@import "component/_tabs.scss";
@import "component/_media.scss";
@import "component/_divider.scss";
@import "page/_show.scss";

View file

@ -0,0 +1,8 @@
.divider__horizontal {
border: var(--divider);
margin: 16px 0;
}
.divider__vertical {
margin: 10px;
}

View file

@ -44,8 +44,7 @@
text-overflow: ellipsis;
}
.card__title-identity {
margin-top: $spacing-vertical * 1/3;
margin-bottom: $spacing-vertical * 1/3;
margin: $spacing-vertical * 1/2 0;
}
.card__actions {
margin-top: var(--card-margin);

View file

@ -36,7 +36,10 @@ input[type="text"].input-copyable {
padding-left: 5px;
padding-right: 5px;
width: 100%;
&:focus { border-color: var(--color-primary); }
&:focus {
border-color: var(--color-primary);
background: none !important;
}
}
.form-field {