forked from MiguelCastillo/Brackets-InteractiveLinter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.less
120 lines (97 loc) · 2.79 KB
/
style.less
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
.CodeMirror *[class*="interactive-linter"] {
z-index: 5;
}
.CodeMirror *[class*="interactive-linter-W015"] {
border-bottom: 2px dotted #3a87ad;
}
.CodeMirror *[class*="interactive-linter-w"] {
border-bottom: 2px dotted #f89406;
z-index: 6;
}
.CodeMirror *[class*="interactive-linter-e"] {
border-bottom: 2px dotted #bd362f;
z-index: 7;
}
.CodeMirror .interactive-linter-gutter {
width: 1.5em;
}
/*icon image from http://findicons.com/icon/184668/light_bulb*/
.CodeMirror .interactive-linter-gutter-messages {
background-image: url(img/light_bulb.png);
background-repeat: no-repeat;
background-size: 1em;
width: 1em;
height: 1em;
margin-left: 0.5em;
margin-top: 0.15em;
cursor: pointer;
}
.CodeMirror .interactive-linter-gutter-errors {
background-color: red;
border-color: #f2dede;
border-radius: 1em;
}
.CodeMirror .interactive-linter-line-widget {
margin-top: 10px;
margin-left: 50px;
cursor: auto; // Allow cursor to display area as text
// Enable text selection
-webkit-user-select: text;
user-select: text;
.interactive-linter-line-error, .interactive-linter-line-warning {
background-position: left;
background-size: 1em;
background-repeat: no-repeat;
padding: 0 1.5em;
}
.interactive-linter-line-error {
background-image: url(img/topcoat-error-15.svg);
}
.interactive-linter-line-warning {
background-image: url(img/topcoat-warning-15.svg);
}
}
@-webkit-keyframes interactive-linter-pulse {
0% {
background-color: transparent;
}
50% {
background-color: #ffb0cd;
}
}
#interactive-linter-lint-indicator {
display: none; /* Hide lint indicator by default, so as not to show before show/hide code is run */
width: 13px; /* Same width as default indicator */
background-position: center;
background-size: 15px;
background-repeat: no-repeat;
&[status="error"] {
-webkit-animation: interactive-linter-pulse 2s linear;
-webkit-animation-iteration-count: 3;
background-image: url(img/topcoat-error-15.svg);
}
&[status="warning"] {
background-image: url(img/topcoat-warning-15.svg);
}
&[status="okay"] {
background-image: url(img/topcoat-okay-15.svg);
}
&[status=inactive] {
background-image: url(img/topcoat-inactive-15.svg);
}
}
#interactive-linter-problems-panel {
-webkit-user-select: text; /* allow selecting error messages for easy web searching */
.line {
text-align: right; /* make line number line up with editor line numbers */
}
.line-text {
white-space: nowrap;
width: auto;
}
.line-snippet {
white-space: nowrap;
width: 100%;
padding-left: 10px;
}
}