Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion resource/css/skosmos.css
Original file line number Diff line number Diff line change
Expand Up @@ -1315,18 +1315,43 @@
margin-right: 0.25em;
}

@media (max-width: 992px) {
#concept-mappings .prop-mapping-label,
#concept-mappings .prop-mapping-vocab {
overflow-wrap: break-word;
}

@media (max-width: 992px) { /* lg breakpoint */
.property {
border-top: 1px solid var(--main-content-border);
padding-top: .5rem;
}

.property-label,
.property-value {
padding-top: 0;
}

.property-value::before {
display: none;
}

#concept-mappings .property:first-child {
border-top: none;
padding-top: 0;
}
}

/* --- Mobile specific rules --- */

@media (max-width: 768px) { /* md breakpoint */
.main-content-section {
padding-left: 2rem;
padding-right: 2rem;
}

#concept-mappings .prop-mapping:last-child .row:last-child { /* Last mapping */
margin-bottom: 0 !important;

Check warning on line 1353 in resource/css/skosmos.css

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this "!important" and resolve the specificity conflict instead.

See more on https://sonarcloud.io/project/issues?id=NatLibFi_Skosmos&issues=AaHK55a6mYtDHFu_io3U&open=AaHK55a6mYtDHFu_io3U&pullRequest=2134
}
}

/* --- Vocab statistics --- */
Expand Down
4 changes: 2 additions & 2 deletions resource/js/concept-mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ conceptMappingsApp.component('concept-mappings', {
</div>
<div class="col-lg-8 gx-0 gx-lg-4 property-value">
<div class="row mb-2" v-for="m in mapping">
<div class="col-5 prop-mapping-label">
<div class="col-sm-5 prop-mapping-label">
<span v-if="m.notation" class="prop-mapping-notation">{{ m.notation }}</span>
<a :href="m.hrefLink">{{ m.prefLabel }}</a>
<span v-if="m.lang && m.lang !== this.content_lang"> ({{ m.lang }})</span>
</div>
<div class="col-7 prop-mapping-vocab">{{ m.vocabName }}</div>
<div class="col-sm-7 prop-mapping-vocab">{{ m.vocabName }}</div>
</div>
</div>
</div>
Expand Down
Loading