mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-25 00:38:33 +00:00
219339551c
It was useful when I was debugging those parts of the code, but now it's usually annoying. The warnings can still sometimes be useful for understanding how the tool parses some discussion, though. To keep that functionality, add displaying warnings for each comment in the debug mode. Change-Id: I2d218a8a394f179bcc0990ff988a0567c275ccf2
77 lines
1.3 KiB
CSS
77 lines
1.3 KiB
CSS
/* stylelint-disable color-named */
|
|
/* stylelint-disable unit-blacklist */
|
|
|
|
.detected-timestamp {
|
|
border: 2px solid forestgreen;
|
|
padding: 1px;
|
|
border-radius: 6px;
|
|
margin: -3px;
|
|
}
|
|
|
|
.detected-signature {
|
|
border: 3px solid blue;
|
|
border-bottom-left-radius: 6px;
|
|
border-top-left-radius: 6px;
|
|
border-right: 0;
|
|
margin: -3px;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.detected-signature + .detected-timestamp {
|
|
border-left: 0;
|
|
padding-left: 0;
|
|
margin-left: 0;
|
|
border-bottom-left-radius: 0;
|
|
border-top-left-radius: 0;
|
|
}
|
|
|
|
.detected-timestamp:hover:after {
|
|
content: ' ' attr( title );
|
|
}
|
|
|
|
.detected-comment {
|
|
position: absolute;
|
|
opacity: 0.2;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.detected-comment:nth-child( 2n ) {
|
|
background: lightpink;
|
|
}
|
|
|
|
.detected-comment:nth-child( 2n + 1 ) {
|
|
background: skyblue;
|
|
}
|
|
|
|
.detected-comment-ruler {
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
border-left: 3px solid red;
|
|
border-bottom: 3px solid red;
|
|
box-shadow: -5px 10px 6px 0 white;
|
|
border-bottom-left-radius: 8px;
|
|
}
|
|
|
|
.detected-comment-warnings {
|
|
position: absolute;
|
|
color: transparent;
|
|
font-size: 0;
|
|
height: 1em;
|
|
width: 1em;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.detected-comment-warnings:hover {
|
|
background: white;
|
|
color: red;
|
|
font-size: inherit;
|
|
pointer-events: all;
|
|
}
|
|
|
|
.detected-comment-warnings:before {
|
|
content: '⚠';
|
|
color: white;
|
|
font-size: 1rem;
|
|
pointer-events: all;
|
|
}
|