scripts/apps/vocabularies/styles/vocabularies.scss
@import '~mixins.scss';
@import '~variables.scss';
.vocabularyForm {
button.del {
width: 30px;
padding: 8px 10px;
}
table {
width: 100%;
border-spacing: 0;
}
table th, table td {
vertical-align: top;
}
tbody tr {
td:not(:first-child):last-child {
text-align: end;
}
td:first-child {
padding-inline-start: 0;
}
}
thead tr {
th {
font-weight: 500;
padding: 0.8rem 0.8rem;
label {
margin-block-end: 0;
}
&:first-child {
padding-inline-start: 0;
}
}
}
tr.add-border-top td {
padding: 20px;
border-block-start: 2px solid rgba(0, 0, 0, 0.15);
}
}
.vocabularyField {
display: inline;
label {
width: 140px;
display: inline-block;
padding-inline-start: 6px;
}
input {
width: 140px;
margin: 3px;
&[type="color"] {
width: 130px;
}
&.long-name {
width: 320px;
font-size: 10px;
}
}
}
.vocabularyStatus {
inset-block-start: 5px;
&.sd-toggle {
margin-block-start: 2px !important;
}
}
.divider {
@include nav-divider();
}
.add-vocabulary-popup {
.modal-dialog {
width: auto !important;
white-space: normal;
}
}
.modal-header-fields {
background: #f8f8f8;
width: 100%;
flex: 0 0 auto;
width: 100%;
box-sizing: border-box;
padding: 0px 20px;
border-block-end: 1px solid #e4e4e4;
.long-name {
width: 310px;
}
}
.vocabulary-items__wrapper {
margin: 1rem 0 0;
h3 {
margin-block-end: 0.6rem;
font-size: 1.6rem;
line-height: 100%;
}
}
.vocabulary-items__button-bar {
padding: 1.2rem 0;
}
.vocabulary-items__wrapper {
table {
th {
position: sticky;
inset-block-start: -20px;
background: #f8f8f8;
z-index: 1;
}
}
}
.date_shortcuts {
margin-block-start: 2em;
.sd-line-input.date_shortcuts--smaller {
width: 5%;
}
}
.sd-file-upload__drop-target {
border: 2px dashed var(--sd-colour-line--medium);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: $sd-base-increment * 2;
cursor: default;
width: 100%;
border-radius: var(--b-radius--medium);
transition: all 0.3s ease;
p {
opacity: 0.7;
text-align: center;
max-width: 400px;
margin: 0 auto;
font-size: 1.4rem;
}
&--height-l {
min-height: var(--width__container--xx-small);
}
&:hover {
border: 2px dashed var(--sd-colour-line--strong);
}
&:active {
border: 2px dashed var(--sd-colour-interactive);
}
}
.sd-file-upload__icon {
width: 52px;
height: 52px;
font-size: 52px;
line-height: 52px;
opacity: 0.5;
}
.file-uploaded {
min-height: var(--width__container--xx-small);
text-align: center;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
border-radius: var(--b-radius--medium);
gap: 1.6rem;
border: 2px dashed var(--sd-colour-line--medium) !important;
p {
opacity: 0.7;
text-align: center;
max-width: 400px;
margin: 0 auto;
font-size: 1.4rem;
}
.sd-file-upload__icon {
opacity: 1;
color: var(--sd-colour-success);
}
}