mirror of
https://github.com/broekema41/obsidian-vcf-contacts.git
synced 2026-07-22 05:42:58 +00:00
274 lines
4.4 KiB
CSS
274 lines
4.4 KiB
CSS
.menu-vert {
|
|
border: 1px solid var(--titlebar-background-focused);
|
|
margin-left: 2px;
|
|
margin-right: 2px;
|
|
}
|
|
|
|
|
|
.contacts-menu {
|
|
margin-top: 35px;
|
|
}
|
|
|
|
.contact-card {
|
|
padding: 8px;
|
|
}
|
|
|
|
.contact-modal-buttons {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.contact-modal-buttons button {
|
|
font-weight: "bold";
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.contact-modal-label {
|
|
display: block;
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.contact-modal-input {
|
|
margin-bottom: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.contacts-menu .nav-header {
|
|
position: absolute;
|
|
background-color: var(--titlebar-background);
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 99;
|
|
}
|
|
|
|
.inner-card-container {
|
|
container-name: bizzy-card;
|
|
container-type: inline-size;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.bizzy-card-container {
|
|
position: relative;
|
|
display: flex;
|
|
border: 2px solid var(--divider-color);
|
|
min-width: 200px;
|
|
max-width: 450px;
|
|
flex-basis: auto;
|
|
flex-wrap: wrap;
|
|
border-radius: 18px;
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.bizzy-card-container:hover {
|
|
.biz-shape {
|
|
background: var(--tag-background-hover);
|
|
border: 2px solid var(--tag-border-color-hover);
|
|
}
|
|
}
|
|
|
|
.bizzy-card-container .biz-contact-actions {
|
|
position: absolute;
|
|
right: 4px;
|
|
top: 4px;
|
|
display: flex;
|
|
}
|
|
.bizzy-card-container .biz-contact-actions .clickable-icon {
|
|
padding: var(--size-2-2);
|
|
}
|
|
|
|
/*=============================
|
|
Left Content
|
|
===============================*/
|
|
.biz-card-a {
|
|
position: relative;
|
|
width: 160px;
|
|
height: 220px;
|
|
padding: 10px;
|
|
transition: 0.2s ease;
|
|
color: var(--text-normal);
|
|
display: flex;
|
|
}
|
|
|
|
.bizzy-card-organization {
|
|
position: absolute;
|
|
width: 218px;
|
|
padding: 2px;
|
|
padding-left: 14px;
|
|
padding-right: 14px;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
font-weight: bold;
|
|
text-align: right;
|
|
color: var(--nav-item-color);
|
|
border-bottom: 2px solid var(--divider-color);
|
|
}
|
|
|
|
.biz-headshot {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.bizzy-card-organization + .biz-card-a .biz-headshot {
|
|
padding-top: 27px;
|
|
}
|
|
|
|
.avatar-initials {
|
|
display: block;
|
|
width: 100px;
|
|
box-shadow: 0 0 0 2px var(--tag-border-color);
|
|
background-color: var(--tag-background);
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.avatar-initials img,
|
|
.avatar-initials svg {
|
|
display: block; /* removes extra white space under inline elements */
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.avatar-initials svg text {
|
|
fill: var(--tag-color);
|
|
}
|
|
|
|
|
|
.biz-words-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 6px;
|
|
margin-bottom: 6px;
|
|
justify-content: center;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.biz-name {
|
|
text-align: center;
|
|
font-family: 'Anton', sans-serif;
|
|
font-size: 1.1rem;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.biz-title {
|
|
text-align: center;
|
|
font-family: 'Nunito', sans-serif;
|
|
font-size: 0.8em;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
|
|
/*=============================
|
|
Right Content
|
|
===============================*/
|
|
.biz-card-b {
|
|
position: relative;
|
|
width: 230px;
|
|
height: 220px;
|
|
padding: 10px;
|
|
transition: 0.2s ease;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.biz-shape {
|
|
position: absolute;
|
|
background: var(--tag-background);
|
|
transform: scaleX(1) rotate(20deg);
|
|
top: -60px;
|
|
left: 40px;
|
|
height: 308px;
|
|
border-radius: 50px;
|
|
width: 120%;
|
|
color: var(--tag-color);
|
|
border: 2px solid var(--tag-border-color);
|
|
z-index: -1;
|
|
}
|
|
|
|
.biz-contact-box {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
padding: 18px;
|
|
width: 215px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
text-align: right;
|
|
}
|
|
|
|
.biz-item {
|
|
font-size: 12px;
|
|
letter-spacing: 0.15rem;
|
|
margin-left: 0px;
|
|
cursor: pointer;
|
|
padding-top: 5px;
|
|
font-family: 'Nunito', sans-serif;
|
|
font-weight: 300;
|
|
color:var(--tag-color);
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.biz-item a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/*=============================
|
|
Business Card Mobile
|
|
===============================*/
|
|
@Container bizzy-card (max-width: 430px) {
|
|
.bizzy-card-container {
|
|
width: 240px;
|
|
}
|
|
|
|
.avatar-initials {
|
|
width: 85px;
|
|
}
|
|
|
|
|
|
.bizzy-card-organization {
|
|
width: 240px;
|
|
padding: 6px;
|
|
padding-left: 14px;
|
|
text-align: left;
|
|
}
|
|
|
|
|
|
.biz-card-a {
|
|
width: 240px;
|
|
height: 185px;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.biz-headshot {
|
|
position: relative;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.biz-card-b {
|
|
width: 240px;
|
|
height: 180px;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.biz-shape {
|
|
transform: scaleX(1) rotate(85deg);
|
|
top: 0;
|
|
left: 35px;
|
|
}
|
|
|
|
.biz-contact-box {
|
|
position: absolute;
|
|
margin-top: 150px;
|
|
margin-left: -10px;
|
|
width: 100%;
|
|
}
|
|
}
|