mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-20 22:00:43 +08:00
Improve contrast in light and dark modes
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
{disallowEmptyBody}
|
||||
{rid}
|
||||
{placeholder}
|
||||
borderVariant="ghost"
|
||||
submitInProgress={state === "submit"}
|
||||
{focus}
|
||||
stylePadding="0.5rem 0.75rem"
|
||||
@@ -69,7 +70,7 @@
|
||||
<Border
|
||||
hoverable
|
||||
styleCursor="text"
|
||||
variant="float"
|
||||
variant="ghost"
|
||||
styleHeight="2.5rem"
|
||||
styleWidth="100%"
|
||||
onclick={e => {
|
||||
|
||||
@@ -239,10 +239,10 @@
|
||||
cursor: default;
|
||||
}
|
||||
.addition {
|
||||
background-color: var(--color-fill-diff-green-light);
|
||||
background-color: var(--color-fill-diff-green);
|
||||
}
|
||||
.deletion {
|
||||
background-color: var(--color-fill-diff-red-light);
|
||||
background-color: var(--color-fill-diff-red);
|
||||
}
|
||||
.addition > .left,
|
||||
.addition > .right,
|
||||
@@ -299,17 +299,17 @@
|
||||
align-self: flex-start;
|
||||
}
|
||||
.thread {
|
||||
background-color: var(--color-fill-float-hover);
|
||||
background-color: var(--color-background-default);
|
||||
box-shadow: inset 0 0 0 2px var(--color-border-hint);
|
||||
padding: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.comment-form {
|
||||
background-color: var(--color-fill-float-hover);
|
||||
background-color: var(--color-background-default);
|
||||
box-shadow: inset 0 0 0 2px var(--color-border-default);
|
||||
font-family: var(--font-family-sans-serif);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.comment-header {
|
||||
display: flex;
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
width: 2px;
|
||||
height: 1rem;
|
||||
margin-left: 1.25rem;
|
||||
background-color: var(--color-background-float);
|
||||
background-color: var(--color-border-hint);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -65,8 +65,8 @@
|
||||
justify-content: center;
|
||||
z-index: 20;
|
||||
bottom: 1.5rem;
|
||||
background: var(--color-fill-ghost);
|
||||
color: var(--color-fill-gray);
|
||||
background: var(--color-fill-counter);
|
||||
color: var(--color-foreground-contrast);
|
||||
box-shadow: var(--elevation-low);
|
||||
font-family: var(--font-family-sans-serif);
|
||||
font-size: var(--font-size-small);
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
color: var(--color-fill-success);
|
||||
}
|
||||
.archived {
|
||||
color: var(--color-fill-yellow-iconic);
|
||||
color: var(--color-foreground-yellow);
|
||||
}
|
||||
.merged {
|
||||
color: var(--color-foreground-primary);
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
</div>
|
||||
|
||||
{#if revision.reviews && revision.reviews.length}
|
||||
<div style:display={hideReviews ? "none" : "revert"} class="review-list">
|
||||
<div style:display={hideReviews ? "none" : "flex"} class="review-list">
|
||||
{#each revision.reviews as review, idx}
|
||||
<ReviewTeaser
|
||||
{rid}
|
||||
|
||||
@@ -166,11 +166,13 @@
|
||||
</div>
|
||||
{#if replies.length > 0 || (createReply && showReplyForm)}
|
||||
{#if inline}
|
||||
<div style:background-color="var(--color-background-float)">
|
||||
<div
|
||||
style:background-color="var(--color-background-deafult)"
|
||||
style:border="2px solid var(--color-border-hint)">
|
||||
{@render repliesSnippet()}
|
||||
</div>
|
||||
{:else}
|
||||
<Border variant="float" styleOverflow="hidden" flatTop={!inline}>
|
||||
<Border variant="ghost" styleOverflow="hidden" flatTop={!inline}>
|
||||
{@render repliesSnippet()}
|
||||
</Border>
|
||||
{/if}
|
||||
|
||||
@@ -367,11 +367,16 @@
|
||||
|
||||
{#snippet secondColumn()}
|
||||
<div
|
||||
class="txt-medium global-flex"
|
||||
style:font-weight="var(--font-weight-medium)"
|
||||
style:min-width="450px"
|
||||
class="txt-regular txt-semibold global-flex"
|
||||
style:min-height="2.5rem"
|
||||
style:margin-bottom="1rem">
|
||||
<div class="global-flex" style:gap="4px">
|
||||
<div
|
||||
class="global-flex"
|
||||
style:font-weight="var(--font-weight-medium)"
|
||||
style:gap="4px"
|
||||
style:white-space="nowrap">
|
||||
{project.data.name}
|
||||
<Icon name="chevron-right" />
|
||||
<Link
|
||||
|
||||
Reference in New Issue
Block a user