This repository has been archived by the owner on May 17, 2019. It is now read-only.
forked from garysieling/jquery-highlighttextarea
-
Notifications
You must be signed in to change notification settings - Fork 1
/
jquery.highlighttextarea.css
86 lines (82 loc) · 1.69 KB
/
jquery.highlighttextarea.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*!
* jQuery highlightTextarea
* Copyright 2014-2015 Damien "Mistic" Sorel (http://www.strangeplanet.fr)
* Licensed under MIT (http://opensource.org/licenses/MIT)
*/
.highlightTextarea {
position:relative;
}
.highlightTextarea .highlightTextarea-container {
position:absolute;
margin:0;
overflow:hidden;
}
.highlightTextarea .highlightTextarea-highlighter {
position:relative;
border:none;
padding:0;
margin:0;
color:transparent;
cursor:text;
overflow:hidden;
white-space:pre-wrap;
word-wrap:break-word;
}
.highlightTextarea.debug .highlightTextarea-highlighter {
color:#f00;
border:1px solid #f00;
margin:-1px;
}
.highlightTextarea mark {
line-height:inherit;
margin:0;
padding: 1px 1px 1px 0; /*0;*/
opacity: 0;
/*transition: opacity 0.2s;*/
position: relative;
z-index: 1;
}
.highlightTextarea mark.fade {
line-height:inherit;
margin:0;
padding:0;
opacity: 1;
}
.highlightTextarea textarea,
.highlightTextarea input {
position:absolute;
left:0;
top:0;
resize:none;
white-space:pre-wrap;
word-wrap:break-word;
}
.highlightTextarea .ui-wrapper {
margin:0 !important;
}
.highlightTextarea .ui-resizable-se {
bottom:15px;
right:0px;
}
.text-highlight {
background-color: #ff0;
color: black;
}
.text-highlight-alt {
background-color: #adf0ff;
color: black;
}
.highlightTextarea-containerTop mark {
background-color: transparent !important;
}
.highlightTextarea-container:not(.highlightTextarea-containerTop) mark {
color: transparent !important;
}
.highlightTextarea-container:not(.highlightTextarea-containerTop) {
z-index: -1;
}
.highlightTextarea-containerTop {
z-index: 2;
background: transparent !important;
pointer-events: none;
}