/*! * This file is part of the Semantic MediaWiki Extension * @see https://semantic-mediawiki.org/ * * @section LICENSE * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * * Schema content related CSS * * @file * @ingroup semantic-mediawiki * * @license GNU GPL v2+ * @since 3.0 * * @author mwjames */ @import '../tokens.less'; .content-highlight { font-size: 1.2em; margin: 0; border-top: 1px solid #eaecf0; border-left: 1px solid #eaecf0; border-right: 1px solid #eaecf0; border-bottom: 1px solid #eaecf0; } .content-no-highlight-o { margin: 0; padding: 5px; background-color: #f8f9fa; border-top: 1px solid #eaecf0; border-left: 1px solid #eaecf0; border-right: 1px solid #eaecf0; border-bottom: 1px solid #eaecf0; } .unknown-type .content-highlight { border-top: 1px solid #eaecf0; } .schema-tags { border-bottom: 1px solid #ddd; border-left: 1px solid #ddd; border-right: 1px solid #ddd; background-color: #f8f9fa; /* background-color: #f8f9fa;*/ padding: 5px; /*margin-top: 1em;*/ clear: both; } .schema-tags:first-child { border: 1px solid #ddd; background-color: #f8f9fa; padding: 5px; margin-top: 1em; clear: both; } .schema-tags:last-child { margin-bottom: 5px; } .schema-tags ul { display: inline; margin: 0 !important; padding: 0; list-style: none; list-style-type: none; list-style-image: none; } .schema-tags li:first-child { padding-left: 0.25em; border-left: 0; } .schema-tags li { display: inline-block; line-height: 1.25em; border-left: 1px solid #a2a9b1; margin: 0.125em 0; padding: 0 0.5em; zoom: 1; } .smw-schema-description { color:#888; } .schema-error { color: #c00; } .smw-schema-validation-error { padding-left:0px; padding-top:10px; } .smw-schema-placeholder { opacity:0.5; position: relative; } .client-nojs .smw-schema-placeholder { opacity: 1; } .client-nojs .smw-schema-placeholder-message { display: none; } .smw-schema-data { display: none; } .client-nojs .smw-schema-data { display: block; } h3.smw-title { padding: 2px 5px; margin-top: 10px !important; margin-bottom: 10px !important; color: #000; padding-right: 10px; font-weight: 400 !important; font-size: 18px !important; border-bottom: 1px solid #ddd; line-height: 2.3 !important; } /** * Tabs */ .smw-schema #tab-schema-error:checked ~ #tab-content-schema-error, .smw-schema #tab-schema-usage:checked ~ #tab-content-schema-usage, .smw-schema #tab-schema-summary:checked ~ #tab-content-schema-summary, .smw-schema #tab-schema-content:checked ~ #tab-content-schema-content { display: block; } .smw-schema #tab-schema-usage:checked + label.nav-label .item-count { background-color: rgba(27,31,35,0.08); color: #444d56; } .smw-schema section { border-top: 1px solid #ddd; border-left: 0px solid #ddd; border-right: 0px solid #ddd; } .schema-body pre { margin-top: 0px } .smw-columnlist-container { margin-top: 10px } // TODO: Handle color in tab component instead .smw-schema input.nav-tab:checked + label.nav-label.error-label { color: @color-emphasized; box-shadow: @box-shadow-inset-medium-vertical @color-destructive; } .skin-chameleon .content-no-highlight { border-radius: 0px; margin: 1em 0px; } .smw-table { margin-top:10px; } .schema-summary .smw-table-cell, .smw-table-head { border: 1px solid #999; border: 0px; display: table-cell; /* padding: 3px 10px; */ border-bottom: 1px solid #ddd; } .schema-summary .smw-table-row:last-child .smw-table-cell { border-bottom: 0px; } .schema-summary .smw-table-row .smwpropname, .smw-table-row .smwpropname, .smw-table-row .smwspecname { width: 20%; }