git clone https://garage44.eu/jeroen/cartopolis.git.. /crates/atlas/web/src/components/pages/tokens/tokens.css
/* `/tokens`: a person's access tokens — the list, the form, the secret shown once. */
.tokens-page {
display: flex;
flex-direction: column;
gap: var(--m-space-4);
margin: 0 auto;
max-width: 40rem;
form .m-card__body {
display: flex;
flex-direction: column;
gap: var(--m-space-3);
}
}
.tokens-page__hint,
.tokens-page__meta {
color: var(--m-text-dim);
margin: 0;
}
.tokens-page__meta {
font-size: 0.85em;
}
.tokens-page__list {
display: flex;
flex-direction: column;
gap: var(--m-space-3);
list-style: none;
margin: 0;
padding: 0;
}
.tokens-page__row {
align-items: center;
display: flex;
gap: var(--m-space-3);
justify-content: space-between;
}
/* The secret: one selectable line that wraps rather than scrolls on a phone. */
.tokens-page__secret {
display: block;
margin: var(--m-space-3) 0;
overflow-wrap: anywhere;
user-select: all;
}
/* "Ways to sign in": a provider or the password per row, with its one action. */
.ways {
display: flex;
flex-direction: column;
gap: var(--m-space-3);
list-style: none;
margin: 0 0 var(--m-space-3);
padding: 0;
}
.ways__row {
align-items: center;
display: flex;
gap: var(--m-space-3);
}
.ways__icon {
align-items: center;
display: inline-flex;
flex: none;
height: 1.5rem;
justify-content: center;
width: 1.5rem;
& .chat-icon {
height: 1.25rem;
width: 1.25rem;
}
}
.ways__text {
display: flex;
flex: 1;
flex-direction: column;
min-width: 0;
& small {
color: var(--m-text-dim);
font-size: 0.85em;
}
}
.ways__password {
display: flex;
flex-direction: column;
gap: var(--m-space-3);
margin-top: var(--m-space-3);
}
.ways__actions {
display: flex;
gap: var(--m-space-2);
justify-content: flex-end;
}
.tokens-page__confirm {
align-items: flex-start;
display: flex;
flex-direction: column;
gap: var(--m-space-2);
}