Adds style compatibility to new relationship metadata value_as_html

This commit is contained in:
mateuswetah 2021-08-12 11:54:08 -03:00
parent 37fdf5779c
commit 649b2373fb
5 changed files with 103 additions and 10 deletions

View File

@ -203,8 +203,8 @@
.multivalue-separator {
display: block;
max-height: 1px;
width: 35px;
background: #cbcbcb;
width: 45%;
background: #e0e5eb;
content: none;
color: transparent;
margin: 0.875rem auto;
@ -214,6 +214,51 @@
padding-left: 1.5rem;
border-left: 1px solid #e0e5eb;
}
.tainacan-relationship-group {
.tainacan-relationship-metadatum {
.tainacan-relationship-metadatum-header {
display: flex;
align-items: center;
margin-bottom: 0.5em;
img {
margin-right: 12px;
max-width: 28px;
max-height: 28px;
}
.label {
font-weight: normal;
font-style: normal;
margin-top: 0;
margin-left: 0;
margin-bottom: 0;
margin-right: 0;
padding: 0;
}
}
.tainacan-metadatum {
margin-left: 40px;
.label {
font-size: 1em;
line-height: 1em;
margin-top: 0px;
margin-bottom: 2px;
}
p {
margin-top: 0.25rem;
margin-bottom: 0.5rem;
}
}
}
&>.multivalue-separator {
display: block;
max-height: 1px;
width: calc(100% - 40px);
background: #e0e5eb;
content: none;
color: transparent;
margin: 0.5em 0 0.5em 40px;
}
}
&.metadata-type-2 {
&>div {
@ -330,7 +375,7 @@
border-radius: 24px;
width: 36px;
height: 36px;
bottom: -18px;
bottom: 0px;
right: calc(50% - 18px);
cursor: pointer;
font-size: 0;

View File

@ -566,8 +566,8 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .metadata-type-textarea .multivalue-separator {
display: block;
max-height: 1px;
width: 35px;
background: #cbcbcb;
width: 45%;
background: #e0e5eb;
content: none;
color: transparent;
margin: 0.875rem auto;
@ -578,6 +578,54 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
border-left: 1px solid #e0e5eb;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-relationship-group .tainacan-relationship-metadatum .tainacan-relationship-metadatum-header {
display: flex;
align-items: center;
margin-bottom: 0.5em;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-relationship-group .tainacan-relationship-metadatum .tainacan-relationship-metadatum-header img {
margin-right: 12px;
max-width: 28px;
max-height: 28px;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-relationship-group .tainacan-relationship-metadatum .tainacan-relationship-metadatum-header .label {
font-weight: normal;
font-style: normal;
margin-top: 0;
margin-left: 0;
margin-bottom: 0;
margin-right: 0;
padding: 0;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-relationship-group .tainacan-relationship-metadatum .tainacan-metadatum {
margin-left: 40px;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-relationship-group .tainacan-relationship-metadatum .tainacan-metadatum .label {
font-size: 1em;
line-height: 1em;
margin-top: 0px;
margin-bottom: 2px;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-relationship-group .tainacan-relationship-metadatum .tainacan-metadatum p {
margin-top: 0.25rem;
margin-bottom: 0.5rem;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-relationship-group > .multivalue-separator {
display: block;
max-height: 1px;
width: calc(100% - 40px);
background: #e0e5eb;
content: none;
color: transparent;
margin: 0.5em 0 0.5em 40px;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 > div {
display: flex;
flex-wrap: nowrap;
@ -688,7 +736,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
border-radius: 24px;
width: 36px;
height: 36px;
bottom: -18px;
bottom: 0px;
right: calc(50% - 18px);
cursor: pointer;
font-size: 0;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long