mediawiki-extensions-Discus.../modules/highlighter.less
Ed Sanders ece8ff69ff Change dt- class prefix to ext-discussiontools-
Longer, but follows the style guide and less likely to conflict.

We need to account for init classes in the cache being around for
a while.

Change-Id: I738bc93393850db320fdbda2b003ca8ac40556da
2021-03-13 14:42:39 +00:00

78 lines
1.3 KiB
Plaintext

/* stylelint-disable color-named */
.ext-discussiontools-highlighter-timestamp {
border: 2px solid forestgreen;
border-radius: 6px;
margin: -2px;
&:hover:after {
content: ' ' attr( title );
}
}
.ext-discussiontools-highlighter-signature {
border: 2px solid blue;
border-bottom-left-radius: 6px;
border-top-left-radius: 6px;
border-right: 0;
margin: -2px;
margin-right: 0;
& + .ext-discussiontools-highlighter-timestamp {
border-left: 0;
padding-left: 0;
margin-left: 0;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
}
.ext-discussiontools-highlighter-comment {
position: absolute;
opacity: 0.2;
pointer-events: none;
&:nth-of-type( 2n ) {
background: lightpink;
}
&:nth-of-type( 2n + 1 ) {
background: skyblue;
}
&-ruler {
position: absolute;
box-sizing: border-box;
border-left: 2px solid #ccc;
border-bottom: 2px solid #ccc;
border-bottom-left-radius: 3px;
}
&-warnings {
position: absolute;
color: transparent;
font-size: 0;
height: 1em;
width: 1em;
pointer-events: none;
&:hover {
background: white;
color: red;
font-size: inherit;
pointer-events: all;
}
&:before {
content: '⚠';
color: #000;
background: #fff;
font-size: 1rem;
pointer-events: all;
margin-left: -1em;
position: absolute;
z-index: 1;
}
}
}