92 lines
2.0 KiB
CSS
92 lines
2.0 KiB
CSS
|
/* Copyright 2014 Mozilla Foundation
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*/
|
||
|
|
||
|
.textLayer {
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
overflow: hidden;
|
||
|
opacity: 0.2;
|
||
|
line-height: 1.0;
|
||
|
-webkit-user-select: text; /* Chrome, Opera, Safari */
|
||
|
-moz-user-select: text; /* Firefox 2+ */
|
||
|
-ms-user-select: text; /* IE 10+ */
|
||
|
user-select: text; /* Standard syntax */
|
||
|
}
|
||
|
|
||
|
.textLayer > div, .textLayer > div a {
|
||
|
color: transparent;
|
||
|
position: absolute;
|
||
|
white-space: pre;
|
||
|
cursor: text;
|
||
|
-webkit-transform-origin: 0% 0%;
|
||
|
-moz-transform-origin: 0% 0%;
|
||
|
-o-transform-origin: 0% 0%;
|
||
|
-ms-transform-origin: 0% 0%;
|
||
|
transform-origin: 0% 0%;
|
||
|
}
|
||
|
|
||
|
.textLayer > div a {
|
||
|
text-decoration: none;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.textLayer .highlight {
|
||
|
margin: -1px;
|
||
|
padding: 1px;
|
||
|
|
||
|
background-color: rgb(180, 0, 170);
|
||
|
border-radius: 4px;
|
||
|
}
|
||
|
|
||
|
.textLayer .highlight.begin {
|
||
|
border-radius: 4px 0px 0px 4px;
|
||
|
}
|
||
|
|
||
|
.textLayer .highlight.end {
|
||
|
border-radius: 0px 4px 4px 0px;
|
||
|
}
|
||
|
|
||
|
.textLayer .highlight.middle {
|
||
|
border-radius: 0px;
|
||
|
}
|
||
|
|
||
|
.textLayer .highlight.selected {
|
||
|
background-color: rgb(0, 100, 0);
|
||
|
}
|
||
|
|
||
|
.textLayer ::selection { background: rgb(0, 0, 255); }
|
||
|
|
||
|
.textLayer ::-moz-selection { background: rgb(0, 0, 255); }
|
||
|
|
||
|
.textLayer .endOfContent {
|
||
|
display: block;
|
||
|
position: absolute;
|
||
|
left: 0px;
|
||
|
top: 100%;
|
||
|
right: 0px;
|
||
|
bottom: 0px;
|
||
|
z-index: -1;
|
||
|
cursor: default;
|
||
|
-webkit-user-select: none;
|
||
|
-ms-user-select: none;
|
||
|
-moz-user-select: none;
|
||
|
}
|
||
|
|
||
|
.textLayer .endOfContent.active {
|
||
|
top: 0px;
|
||
|
}
|