mirror of
https://github.com/jalad25/contact-note.git
synced 2026-07-22 17:10:33 +00:00
280 lines
5.5 KiB
CSS
280 lines
5.5 KiB
CSS
/* #region Contact Card */
|
|
|
|
.contact-note-card.is-clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.contact-note-card {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: stretch;
|
|
gap: 16px;
|
|
padding: 16px 20px;
|
|
margin-bottom: 24px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-m, 8px);
|
|
background-color: var(--background-secondary);
|
|
}
|
|
|
|
/* Contact Note */
|
|
.contact-note .contact-note-card {
|
|
justify-self: center;
|
|
}
|
|
|
|
/* Validation Error */
|
|
.contact-note-error {
|
|
padding: 12px 16px;
|
|
border: 1px solid var(--color-red);
|
|
border-radius: var(--radius-m, 8px);
|
|
background-color: var(--background-modifier-error);
|
|
color: var(--text-normal);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.contact-note-error p {
|
|
margin: 6px 0 0;
|
|
font-size: var(--font-ui-small);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Photo */
|
|
.contact-note-photo {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contact-note-photo-img,
|
|
.contact-note-photo-default {
|
|
width: 150px !important;
|
|
height: 150px !important;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 2px solid var(--background-modifier-border);
|
|
display: block;
|
|
}
|
|
|
|
/* Name, Company, and Title */
|
|
.contact-note-info {
|
|
flex: 1;
|
|
min-width: 150px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.contact-note-name {
|
|
font-size: 1.7rem;
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-normal);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.contact-note-title {
|
|
font-size: 1.1rem;
|
|
color: var(--text-muted);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.contact-note-company {
|
|
font-size: 1.1rem;
|
|
font-weight: var(--font-medium);
|
|
color: var(--text-normal);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* Socials, Emails, and Phones */
|
|
.contact-note-details {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px 32px;
|
|
padding-top: 4px;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.contact-note-emails,
|
|
.contact-note-phones {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.contact-note-detail-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.contact-note-detail-icon {
|
|
color: var(--text-faint);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.contact-note-detail-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.contact-note-socials .contact-note-detail-icon svg {
|
|
fill: currentColor;
|
|
}
|
|
|
|
.contact-note-detail-value {
|
|
font-size: var(--font-ui-small);
|
|
color: var(--text-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.contact-note-detail-value:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* #endregion */
|
|
|
|
/* #region Contact List View */
|
|
|
|
.is-mobile .contact-note-list-view {
|
|
margin-top: 45px !important;
|
|
}
|
|
|
|
/* Header */
|
|
.contact-note-list-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.contact-note-list-title {
|
|
margin: 0;
|
|
}
|
|
|
|
.contact-note-header-btns {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contact-note-header-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 0;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s, 4px);
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.contact-note-header-btn:hover {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.contact-note-header-btn.is-active {
|
|
background: var(--interactive-accent);
|
|
border-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.contact-note-header-btn svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* Letter filter */
|
|
.contact-note-alpha-bar .nav-buttons-container {
|
|
flex-wrap: wrap;
|
|
gap: 2px;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.contact-note-alpha-btn {
|
|
height: 24px;
|
|
padding: 0 4px;
|
|
font-size: var(--font-ui-smaller);
|
|
border-radius: var(--radius-s, 4px);
|
|
}
|
|
|
|
.contact-note-alpha-btn.is-active {
|
|
background: var(--interactive-accent) !important;
|
|
color: var(--text-on-accent) !important;
|
|
}
|
|
|
|
/* Search */
|
|
.contact-note-search {
|
|
width: 100%;
|
|
margin-bottom: 16px;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s, 4px);
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-small);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.contact-note-search:focus {
|
|
outline: none;
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
/* Contact Card Normal */
|
|
.contact-note-list-view .contact-note-card:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
border-color: var(--interactive-accent);
|
|
transition: background-color 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
|
|
.contact-note-list-view .contact-note-card {
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
margin-bottom: 17px;
|
|
}
|
|
|
|
.contact-note-list-view .contact-note-photo-img,
|
|
.contact-note-list-view .contact-note-photo-default {
|
|
width: 108px !important;
|
|
height: 108px !important;
|
|
}
|
|
|
|
.contact-note-list-view .contact-note-name {
|
|
font-size: 1.22rem;
|
|
}
|
|
|
|
.contact-note-list-view .contact-note-title,
|
|
.contact-note-list-view .contact-note-company {
|
|
font-size: 0.79rem;
|
|
}
|
|
|
|
/* Contact Card Condesned */
|
|
.contact-note-list-condensed .contact-note-card {
|
|
padding: 6px 10px;
|
|
gap: 10px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.contact-note-list-condensed .contact-note-photo-img,
|
|
.contact-note-list-condensed .contact-note-photo-default {
|
|
width: 40px !important;
|
|
height: 40px !important;
|
|
}
|
|
|
|
.contact-note-list-condensed .contact-note-name {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* #endregion */
|
|
|
|
/* Hide the native frontmatter block for contact notes.
|
|
The class is applied directly to the .mod-frontmatter
|
|
element by the post-processor. */
|
|
.contact-note .mod-header {
|
|
display: none !important;
|
|
}
|