Implemented phase 5 for the POC prototype in the Website service.
This commit is contained in:
1 parent
89a7a7b8e5
commit
31d2d98d49
46 files changed
+4039
-162
No files matched your search
@@ -0,0 +1,235 @@
|
||||
/* CCN — series index, series, and the comparison of copies. */
|
||||
|
||||
.series,
|
||||
.series__section,
|
||||
.series__intro,
|
||||
.compare {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.series,
|
||||
.compare {
|
||||
gap: var(--space-8);
|
||||
}
|
||||
|
||||
.series__section {
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.series__intro {
|
||||
gap: var(--space-3);
|
||||
min-width: 0;
|
||||
max-width: 760px;
|
||||
}
|
||||
|
||||
.series__head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.cover--series {
|
||||
flex-shrink: 0;
|
||||
width: 96px;
|
||||
box-shadow: var(--shadow-cover-sm);
|
||||
}
|
||||
|
||||
.series__keys {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.series__keys .chip {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
/* The run, issue by issue: a gap reads quieter than a listed issue, and leads to an alert. */
|
||||
.series__issues {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.series__issue {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-1);
|
||||
padding: var(--space-3);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--card);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.series__issue--gap {
|
||||
border-style: dashed;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.series__issue a {
|
||||
color: var(--ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.series__issue--gap a {
|
||||
color: var(--muted);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.series__issue a[aria-current] {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.series__number {
|
||||
font-family: var(--font-display);
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.series__copies {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.series__copies .table-scroll {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.series__index {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.series__entry {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4);
|
||||
color: var(--ink);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.series__entry:hover {
|
||||
border-color: var(--ink);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.series__entry-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-1);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.series__entry-name {
|
||||
font-family: var(--font-display);
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
/* Comparison */
|
||||
.compare__head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
padding-bottom: var(--space-5);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.compare__lead {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.compare__copies {
|
||||
display: grid;
|
||||
gap: var(--space-5);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.compare__copy {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.compare__cover {
|
||||
display: block;
|
||||
width: min(100%, 180px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.compare__price {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.compare__facts {
|
||||
display: grid;
|
||||
grid-template-columns: 110px minmax(0, 1fr);
|
||||
column-gap: var(--space-3);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.compare__facts dt,
|
||||
.compare__facts dd {
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.compare__facts dt {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.compare__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.cover--series {
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
.series__index {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.compare__copies {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.series,
|
||||
.compare {
|
||||
padding-top: var(--space-6);
|
||||
}
|
||||
|
||||
.series__head {
|
||||
gap: var(--space-8);
|
||||
}
|
||||
|
||||
.cover--series {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.series__issues {
|
||||
grid-template-columns: repeat(8, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.series__index {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
@@ -58,6 +58,11 @@
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.listing__series {
|
||||
color: var(--ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.buy-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -1049,20 +1049,6 @@ textarea.input {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* The sign-out is a form, so it cannot be triggered by a link on another site. */
|
||||
.site-header__sign-out {
|
||||
display: flex;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.site-header__sign-out button {
|
||||
min-height: var(--control-md);
|
||||
padding: 0 var(--space-1);
|
||||
border: 0;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.site-header__account {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -1854,6 +1840,91 @@ textarea.input {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* Tables, scrolling sideways on their own when the screen is narrower than their columns */
|
||||
.table-scroll {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.table th,
|
||||
.table td {
|
||||
padding: var(--space-3) var(--space-3) var(--space-3) 0;
|
||||
border-top: 1px solid var(--line);
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.table th {
|
||||
border-top: 0;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.table td a {
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
/* A checkbox whose label runs over several lines */
|
||||
.check--block {
|
||||
align-items: flex-start;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.check--block input {
|
||||
flex-shrink: 0;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* A switch: a button that flips a setting and says which way it is */
|
||||
.switch {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: var(--control-md);
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.switch__track {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
width: 44px;
|
||||
height: 26px;
|
||||
border-radius: 13px;
|
||||
background: var(--rule);
|
||||
}
|
||||
|
||||
.switch__track::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
left: 3px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: var(--card);
|
||||
}
|
||||
|
||||
.switch[aria-checked="true"] .switch__track {
|
||||
background: var(--header);
|
||||
}
|
||||
|
||||
.switch[aria-checked="true"] .switch__track::after {
|
||||
left: 21px;
|
||||
}
|
||||
|
||||
/* Empty states */
|
||||
.empty {
|
||||
display: flex;
|
||||
|
||||
@@ -69,6 +69,31 @@
|
||||
gap: var(--space-7);
|
||||
}
|
||||
|
||||
/* The backup-passkey nudge on first sign-in */
|
||||
.gate__nudge {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--header);
|
||||
color: var(--on-dark-muted);
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.gate__nudge .icon {
|
||||
margin-top: 1px;
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
.gate__nudge-title {
|
||||
margin-bottom: 3px;
|
||||
color: var(--on-dark);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.gate__demo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -896,3 +896,173 @@ a.rows__row:hover {
|
||||
padding-top: var(--space-8);
|
||||
}
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Want list
|
||||
========================================================================== */
|
||||
|
||||
.wants {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
max-width: calc(720px + 2 * var(--gutter));
|
||||
}
|
||||
|
||||
.wants__form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.wants__list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.wants__want {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.wants__top,
|
||||
.wants__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.wants__title {
|
||||
color: var(--ink);
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wants__title:hover {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
.wants__new {
|
||||
padding: 3px 7px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.wants__match {
|
||||
color: var(--ink);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.wants__add {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 50px;
|
||||
border: 1.5px dashed var(--ink);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--ink);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wants__add:hover {
|
||||
background: var(--card);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.wants__note {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Account
|
||||
========================================================================== */
|
||||
|
||||
.account {
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.account__rail,
|
||||
.account__main,
|
||||
.account__section,
|
||||
.account__nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.account__rail {
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.account__nav {
|
||||
padding-top: var(--space-2);
|
||||
}
|
||||
|
||||
.account__nav a {
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid var(--line);
|
||||
color: var(--ink);
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.account__nav a:hover {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
.account__main {
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.account__section {
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.account__form {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.account__form .field {
|
||||
flex: 1 1 260px;
|
||||
}
|
||||
|
||||
.account__form .button {
|
||||
margin-top: 23px;
|
||||
}
|
||||
|
||||
.account__text {
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.rows__row--passkey {
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.wants {
|
||||
padding-top: var(--space-8);
|
||||
}
|
||||
|
||||
.account {
|
||||
grid-template-columns: 240px minmax(0, 1fr);
|
||||
gap: var(--space-10);
|
||||
padding-top: var(--space-8);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user