##// END OF EJS Templates
style: vertically align comment bubble icon...
Thomas De Schampheleire -
r7305:618f2158 default
parent child Browse files
Show More
@@ -1,215 +1,216
1 /* bootstrap progress bar has margin-bottom we don't want that in files list */
1 /* bootstrap progress bar has margin-bottom we don't want that in files list */
2 .cs_files .progress {
2 .cs_files .progress {
3 margin-bottom: 0;
3 margin-bottom: 0;
4 }
4 }
5 /* progress bars should be aligned right */
5 /* progress bars should be aligned right */
6 .cs_files .changes {
6 .cs_files .changes {
7 float: right;
7 float: right;
8 color: @kallithea-theme-main-color;
8 color: @kallithea-theme-main-color;
9 }
9 }
10
10
11 /* colors for deleted/changed/added, both for 3 labels in top right corner with total count, and for per file "diffstat" (rendered as Bootstrap progress-bar) */
11 /* colors for deleted/changed/added, both for 3 labels in top right corner with total count, and for per file "diffstat" (rendered as Bootstrap progress-bar) */
12 .changes .added {
12 .changes .added {
13 color: inherit;
13 color: inherit;
14 background-color: @add-bg-color;
14 background-color: @add-bg-color;
15 }
15 }
16 .changes .changed {
16 .changes .changed {
17 background: @change-bg-color;
17 background: @change-bg-color;
18 }
18 }
19 .changes .deleted {
19 .changes .deleted {
20 background-color: @delete-bg-color;
20 background-color: @delete-bg-color;
21 }
21 }
22 /* binary
22 /* binary
23 NEW_FILENODE = 1
23 NEW_FILENODE = 1
24 DEL_FILENODE = 2
24 DEL_FILENODE = 2
25 MOD_FILENODE = 3
25 MOD_FILENODE = 3
26 RENAMED_FILENODE = 4
26 RENAMED_FILENODE = 4
27 CHMOD_FILENODE = 5
27 CHMOD_FILENODE = 5
28 BIN_FILENODE = 6
28 BIN_FILENODE = 6
29 */
29 */
30 .changes .bin {
30 .changes .bin {
31 background-color: @add-bg-color;
31 background-color: @add-bg-color;
32 }
32 }
33 /* added binary */
33 /* added binary */
34 .changes .bin.bin1 {
34 .changes .bin.bin1 {
35 background-color: @add-bg-color;
35 background-color: @add-bg-color;
36 }
36 }
37 /* deleted binary*/
37 /* deleted binary*/
38 .changes .bin.bin2 {
38 .changes .bin.bin2 {
39 background-color: @delete-bg-color;
39 background-color: @delete-bg-color;
40 }
40 }
41 /* mod binary*/
41 /* mod binary*/
42 .changes .bin.bin3 {
42 .changes .bin.bin3 {
43 background-color: @change-bg-color;
43 background-color: @change-bg-color;
44 }
44 }
45 /* rename file*/
45 /* rename file*/
46 .changes .bin.bin4 {
46 .changes .bin.bin4 {
47 background-color: #6D99FF;
47 background-color: #6D99FF;
48 }
48 }
49 /* chmod file*/
49 /* chmod file*/
50 .changes .bin.bin5 {
50 .changes .bin.bin5 {
51 background-color: #6D99FF;
51 background-color: #6D99FF;
52 }
52 }
53
53
54 /* center collapse button */
54 /* center collapse button */
55 .diff-collapse {
55 .diff-collapse {
56 text-align: center;
56 text-align: center;
57 margin-bottom: 15px;
57 margin-bottom: 15px;
58 }
58 }
59
59
60 .code-difftable {
60 .code-difftable {
61 /* the whole line should be colored */
61 /* the whole line should be colored */
62 border-collapse: collapse;
62 border-collapse: collapse;
63 border-radius: 0px !important;
63 border-radius: 0px !important;
64 width: 100%;
64 width: 100%;
65
65
66 /* line coloring */
66 /* line coloring */
67 .context {
67 .context {
68 background: none repeat scroll 0 0 @highlight-line-color;
68 background: none repeat scroll 0 0 @highlight-line-color;
69 color: #999;
69 color: #999;
70 }
70 }
71 .add {
71 .add {
72 background: none repeat scroll 0 0 #DDFFDD;
72 background: none repeat scroll 0 0 #DDFFDD;
73 }
73 }
74 .add ins {
74 .add ins {
75 background: none repeat scroll 0 0 #AAFFAA;
75 background: none repeat scroll 0 0 #AAFFAA;
76 text-decoration: none;
76 text-decoration: none;
77 }
77 }
78 .del {
78 .del {
79 background: none repeat scroll 0 0 #FFDDDD;
79 background: none repeat scroll 0 0 #FFDDDD;
80 }
80 }
81 .del del {
81 .del del {
82 background: none repeat scroll 0 0 #FFAAAA;
82 background: none repeat scroll 0 0 #FFAAAA;
83 text-decoration: none;
83 text-decoration: none;
84 }
84 }
85
85
86 /* tabs */
86 /* tabs */
87 td.code pre u:before {
87 td.code pre u:before {
88 content: "\21a6";
88 content: "\21a6";
89 display: inline-block;
89 display: inline-block;
90 width: 0;
90 width: 0;
91 }
91 }
92 /* CR */
92 /* CR */
93 td.code pre u.cr:before {
93 td.code pre u.cr:before {
94 content: "\21a4";
94 content: "\21a4";
95 display: inline-block;
95 display: inline-block;
96 }
96 }
97 /* whitespace characters */
97 /* whitespace characters */
98 td.code pre u {
98 td.code pre u {
99 color: rgba(0, 0, 0, 0.3);
99 color: rgba(0, 0, 0, 0.3);
100 }
100 }
101 /* trailing spaces */
101 /* trailing spaces */
102 td.code pre i {
102 td.code pre i {
103 border-style: solid;
103 border-style: solid;
104 border-width: 0 0 0 1px;
104 border-width: 0 0 0 1px;
105 border-color: rgba(0, 0, 0, 0.3);
105 border-color: rgba(0, 0, 0, 0.3);
106 }
106 }
107
107
108 /* line numbers */
108 /* line numbers */
109 .lineno {
109 .lineno {
110 padding-left: 2px;
110 padding-left: 2px;
111 padding-right: 2px !important;
111 padding-right: 2px !important;
112 width: 30px;
112 width: 30px;
113 border-right: 1px solid @panel-default-border !important;
113 border-right: 1px solid @panel-default-border !important;
114 vertical-align: middle !important;
114 vertical-align: middle !important;
115 text-align: center;
115 text-align: center;
116 }
116 }
117 .lineno.new {
117 .lineno.new {
118 text-align: right;
118 text-align: right;
119 }
119 }
120 .lineno.old {
120 .lineno.old {
121 text-align: right;
121 text-align: right;
122 }
122 }
123 .lineno a {
123 .lineno a {
124 color: #aaa !important;
124 color: #aaa !important;
125 font-size: 11px;
125 font-size: 11px;
126 font-family: @font-family-monospace;
126 font-family: @font-family-monospace;
127 line-height: normal;
127 line-height: normal;
128 padding-left: 6px;
128 padding-left: 6px;
129 padding-right: 6px;
129 padding-right: 6px;
130 display: block;
130 display: block;
131 }
131 }
132 .line:hover .lineno a {
132 .line:hover .lineno a {
133 color: #333 !important;
133 color: #333 !important;
134 }
134 }
135 /** CODE **/
135 /** CODE **/
136 .code {
136 .code {
137 display: block;
137 display: block;
138 }
138 }
139 .code pre {
139 .code pre {
140 border: 0;
140 border: 0;
141 padding: 0;
141 padding: 0;
142 margin: 0;
142 margin: 0;
143 background: none;
143 background: none;
144 min-height: 17px;
144 min-height: 17px;
145 line-height: 17px;
145 line-height: 17px;
146 white-space: pre-wrap;
146 white-space: pre-wrap;
147 word-break: break-all;
147 word-break: break-all;
148 }
148 }
149
149
150 /* leading +/- on changed lines */
150 /* leading +/- on changed lines */
151 .del .code pre:before {
151 .del .code pre:before {
152 content: "-";
152 content: "-";
153 color: #800;
153 color: #800;
154 }
154 }
155 .add .code pre:before {
155 .add .code pre:before {
156 content: "+";
156 content: "+";
157 color: #080;
157 color: #080;
158 }
158 }
159 .code pre:before {
159 .code pre:before {
160 content: " ";
160 content: " ";
161 margin: 0 2px;
161 margin: 0 2px;
162 }
162 }
163 }
163 }
164
164
165 /* comment bubble */
165 /* comment bubble */
166 .add-bubble {
166 .add-bubble {
167 position: relative;
167 position: relative;
168 display: none;
168 display: none;
169 float: left;
169 float: left;
170 width: 0px;
170 width: 0px;
171 height: 0px;
171 height: 0px;
172 left: -8px;
172 left: -8px;
173 box-sizing: border-box;
173 box-sizing: border-box;
174 }
174 }
175 /* comment bubble, only visible when in a commentable diff */
175 /* comment bubble, only visible when in a commentable diff */
176 .commentable-diff tr.line.add:hover td .add-bubble,
176 .commentable-diff tr.line.add:hover td .add-bubble,
177 .commentable-diff tr.line.del:hover td .add-bubble,
177 .commentable-diff tr.line.del:hover td .add-bubble,
178 .commentable-diff tr.line.unmod:hover td .add-bubble {
178 .commentable-diff tr.line.unmod:hover td .add-bubble {
179 display: block;
179 display: block;
180 z-index: 1;
180 z-index: 1;
181 }
181 }
182 .add-bubble div {
182 .add-bubble div {
183 background: @kallithea-theme-main-color;
183 background: @kallithea-theme-main-color;
184 width: 16px;
184 width: 16px;
185 height: 16px;
185 height: 16px;
186 line-height: 14px;
186 cursor: pointer;
187 cursor: pointer;
187 padding: 0 2px 2px 0.5px;
188 padding: 0 2px 2px 0.5px;
188 border: 1px solid @kallithea-theme-main-color;
189 border: 1px solid @kallithea-theme-main-color;
189 border-radius: 3px;
190 border-radius: 3px;
190 box-sizing: border-box;
191 box-sizing: border-box;
191 overflow: hidden;
192 overflow: hidden;
192 }
193 }
193 .add-bubble div:before {
194 .add-bubble div:before {
194 font-size: 14px;
195 font-size: 14px;
195 color: #ffffff;
196 color: #ffffff;
196 font-family: "kallithea";
197 font-family: "kallithea";
197 content: '\1f5ea';
198 content: '\1f5ea';
198 }
199 }
199 .add-bubble div:hover {
200 .add-bubble div:hover {
200 transform: scale(1.2, 1.2);
201 transform: scale(1.2, 1.2);
201 }
202 }
202
203
203 /* file diff icons */
204 /* file diff icons */
204 .icon-diff-modified:before {
205 .icon-diff-modified:before {
205 color: #d0b44c;
206 color: #d0b44c;
206 }
207 }
207 .icon-diff-removed:before {
208 .icon-diff-removed:before {
208 color: #bd2c00;
209 color: #bd2c00;
209 }
210 }
210 .icon-diff-added:before {
211 .icon-diff-added:before {
211 color: #6cc644;
212 color: #6cc644;
212 }
213 }
213 .icon-diff-renamed:before {
214 .icon-diff-renamed:before {
214 color: #677a85;
215 color: #677a85;
215 }
216 }
General Comments 0
You need to be logged in to leave comments. Login now