gplx/mediawiki/extensions/SemanticMediaWiki/res/smw/smw.indicators.css

318 lines
7.1 KiB
CSS

/*!
* This file is part of the Semantic MediaWiki Extension
* @see https://www.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
*
* @since 3.1
*
* @file
* @ingroup SMW
*
* @licence GNU GPL v2+
* @author mwjames
*/
.smw-icon-indicator-placeholder {
height: 22px;
width: 22px;
background-color: #eee;
border-radius: 50%;
display: inline-block;
margin-top:2px;
margin-right:3px;
vertical-align: middle;
line-height: 24px;
}
.smw-indicator-vertical-bar-loader,
.smw-indicator-vertical-bar-loader:before,
.smw-indicator-vertical-bar-loader:after {
background: #c0c0c0;
-webkit-animation: load1 1s infinite ease-in-out;
animation: load1 1s infinite ease-in-out;
width: 1em;
height: 4em;
}
.smw-indicator-vertical-bar-loader {
color: #c0c0c0;
text-indent: -9999em;
/* margin: 88px auto; */
position: relative;
font-size: 3px;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
margin-right: 10px;
margin-top: 10px;
}
.smw-indicator-vertical-bar-loader:before,
.smw-indicator-vertical-bar-loader:after {
position: absolute;
top: 0;
content: '';
}
.smw-indicator-vertical-bar-loader:before {
left: -2.2em;
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
.smw-indicator-vertical-bar-loader:after {
left: 2.2em;
}
@-webkit-keyframes load1 {
0%,
80%,
100% {
box-shadow: 0 0;
height: 4em;
}
40% {
box-shadow: 0 -2em;
height: 5em;
}
}
@keyframes load1 {
0%,
80%,
100% {
box-shadow: 0 0;
height: 4em;
}
40% {
box-shadow: 0 -2em;
height: 5em;
}
}
.smw-icon-indicator-replication-error {
background: url( assets/smw-icon-error-replication.svg ) center left no-repeat;
padding-left: 20px;
display: inline-block;
height: 20px;
margin-right: 5px;
vertical-align: middle;
line-height: 24px;
margin-top: 2px;
}
.smw-icon-indicator-constraint-error {
background: url( assets/smw-icon-error-constraint.svg ) center left no-repeat;
padding-left: 20px;
display: inline-block;
height: 20px;
margin-right: 5px;
vertical-align: middle;
line-height: 24px;
margin-top: 2px;
}
.smw-icon-constraint-violation {
background: url( assets/smw-icon-constraint-violation.svg ) no-repeat left center;
padding: 28px 0 0px 28px;
vertical-align: middle;
display: inline-block;
}
.smw-icon-es-engine {
background: url( assets/smw-icon-elasticsearch-engine.svg ) no-repeat left center;
padding: 28px 0 0px 28px;
vertical-align: middle;
display: inline-block;
}
.smw-icon-entity-examiner-panel-large {
background: url( assets/smw-icon-entity-examiner-panel-large.svg ) no-repeat left center;
margin-top: 5px;
padding: 20px 0 0px 30px;
vertical-align: middle;
display: inline-block;
}
.smw-icon-entity-examiner-panel {
background: url( assets/smw-icon-entity-examiner-panel.svg ) no-repeat left center;
padding: 20px 0 0px 25px;
display: inline-block;
top: 5px;
position: relative;
}
.smw-icon-entity-examiner-panel-error {
background: url( assets/smw-icon-entity-examiner-panel-error.svg )
no-repeat
left center;
padding: 20px 0 0px 25px;
display: inline-block;
top: 5px;
position: relative;
}
.smw-icon-entity-examiner-panel-warning {
background: url( assets/smw-icon-entity-examiner-panel.svg ) no-repeat left center;
padding: 20px 0 0px 25px;
display: inline-block;
top: 5px;
position: relative;
}
.smw-issue-label {
border-radius: 2px;
box-shadow: inset 0 -1px 0 rgba(27,31,35,.12);
font-size: 12px;
font-weight: 600;
height: 20px;
line-height: 15px;
padding: .15em 4px;
}
.smw-rule-constraint-violation ul.smw-list-rule {
margin: 0;
}
.smw-rule-constraint-violation ul.smw-list-rule li {
margin: 0;
margin-bottom: 0.2em;
}
.smw-list-rule {
list-style-image: none;
list-style-type: none;
margin: 0.2em 0 0 0.6em;
}
.smw-list-rule-title {
border-bottom: 0px solid #ddd;
border-collapse: collapse;
color: #000;
}
/* Accordion styles, https://codepen.io/raubaca/pen/PZzpVe */
.smw-indicator-accordion {
overflow: hidden;
}
.smw-indicator-accordion input {
position: absolute;
opacity: 0;
z-index: -1;
}
.smw-indicator-accordion-tab {
width: 100%;
color: white;
overflow: hidden;
}
.smw-indicator-accordion-tab ul {
margin-top: 0px !important;
}
.smw-indicator-accordion-tab-label {
display: flex;
justify-content: space-between;
padding: 0.5em 0.5em 0.5em 0.8em;
background: #eaecf0;
color: #222222;
/* font-weight: bold; */
cursor: pointer;
/* Icon */
border-bottom: 1px solid #fff;
margin-bottom: 0px;
}
.plain .smw-indicator-accordion-tab-label {
background: transparent;
/* border-bottom: 1px solid #eee; */
}
.smw-indicator-accordion-tab-label:hover {
background: #333;
color: #fff;
}
.smw-indicator-accordion-tab-label::after {
content: "\276F";
width: 20px;
height: 1em;
text-align: center;
transition: all 0.35s ease, color 0s ;
}
.smw-indicator-accordion-tab:last-child .smw-indicator-accordion-tab-label {
border-bottom: 0px solid #fff;
}
.smw-indicator-accordion-tab-content {
max-height: 0;
padding: 0 0.8em;
color: #2c3e50;
transition: all .35s;
}
.smw-indicator-accordion-tab-close {
display: flex;
justify-content: flex-end;
padding: 1em;
font-size: 0.75em;
background: #2c3e50;
cursor: pointer;
}
.smw-indicator-accordion-tab .smw-indicator-accordion-tab-label {
border-top: 1px solid #ebebeb;
border-bottom: 0px solid #fff;
}
.smw-indicator-accordion-tab-close:hover {
background: #333;
}
input:checked + .smw-indicator-accordion-tab-label {
background: #333;
color: #fff;
}
.plain input:checked + .smw-indicator-accordion-tab-label {
border-bottom: 0px;
}
input:checked + .smw-indicator-accordion-tab-label::after {
color: #fff;
width: 20px;
margin-top: 2px;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
input:checked ~ .smw-indicator-accordion-tab-content {
max-height: 100vh;
padding: 0.8em;
}
.plain input:checked ~ .smw-indicator-accordion-tab-content {
/* border-bottom: 1px solid #eee; */
}
.skin-chameleon .mw-indicator-smw-entity-examiner {
margin-top: 25px;
}
.skin-chameleon .smw-indicator-vertical-bar-loader {
margin-top: 40px;
}