Skip to content

Commit ecae993

Browse files
committed
fix some css issues
1 parent 0310061 commit ecae993

File tree

4 files changed

+52
-8
lines changed

4 files changed

+52
-8
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ venv/
1111
**/*.db
1212
**/repo
1313
**/data
14+
**/data2
15+
**/data-indexing
16+
**/data-new-ctags
1417

1518
.git
1619
.gitignore

docker/Dockerfile

+10-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ ENV ELIXIR_VERSION=$ELIXIR_VERSION \
5959
PATH="/usr/local/elixir/utils:/usr/local/elixir/venv/bin:$PATH" \
6060
PYTHONUNBUFFERED=1
6161

62-
COPY . /usr/local/elixir/
62+
COPY ./elixir/ /usr/local/elixir
63+
COPY ./utils/ /usr/local/elixir
64+
COPY ./projects/ /usr/local/elixir
65+
COPY ./templates/ /usr/local/elixir
66+
COPY ./static/ /usr/local/elixir
67+
COPY ./utils/ /usr/local/elixir
68+
COPY ./t/ /usr/local/elixir
69+
COPY samples/ /usr/local/elixir
70+
COPY *.py /usr/local/elixir
71+
COPY *.sh /usr/local/elixir
6372

6473
ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]

static/style.css

+37-4
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,9 @@ h2 {
793793
display: block;
794794
padding: 0.15em 1.5em;
795795
}
796+
.lxrtree tr {
797+
opacity: 1;
798+
}
796799
.lxrtree tr:hover {
797800
background: #ddd;
798801
}
@@ -818,12 +821,37 @@ h2 {
818821
.tree-icon.icon-back:hover {
819822
opacity: 1;
820823
}
824+
821825
.size {
822-
opacity: 0.6;
826+
color: rgba(0, 0, 0, 0.6);
823827
min-height: 1.5em; /* line_height + 2 * padding = 1.2em + 2 * 0.15em */
824828
text-align: right;
825829
}
826830

831+
.file-added {
832+
background: #c2ffad;
833+
}
834+
835+
.lxrtree .file-added:hover {
836+
background: #c9e9c0;
837+
}
838+
839+
.file-removed {
840+
background: #fcc0c0;
841+
}
842+
843+
.lxrtree .file-removed:hover {
844+
background: #e7c8c8;
845+
}
846+
847+
.file-changed {
848+
background: #f8edc3;
849+
}
850+
851+
.lxrtree .file-changed:hover {
852+
background: #e5dfca;
853+
}
854+
827855

828856
/* source code */
829857

@@ -849,8 +877,9 @@ h2 {
849877
.lxrcode .version-banner {
850878
width: 100%;
851879
text-align: center;
852-
padding: 0.5em;
853-
border-bottom: 1px solid gray;
880+
padding: 0.3em;
881+
background-color: #e9e9e9;
882+
color: #555;
854883
}
855884

856885
.lxrcode,
@@ -860,6 +889,10 @@ h2 {
860889
height: 100%;
861890
}
862891

892+
#L1 {
893+
padding-top: 1em;
894+
}
895+
863896
.diff {
864897
display: grid;
865898
grid-template-columns: 50% 50%;
@@ -1653,7 +1686,7 @@ main {
16531686
}
16541687
.nav-links a:hover {
16551688
color: #fff;
1656-
}
1689+
)}
16571690

16581691
.social-icons {
16591692
position: absolute;

templates/tree.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@
2929
</tr>
3030
{% endif %}
3131
{% for type, name, path, url, size, cls in dir_entries %}
32-
<tr>
32+
<tr class="{{ "file-"+cls if cls is not none else '' -}}">
3333
<td>
34-
<a class="tree-icon icon-{{- type if type != 'symlink' else 'blob' }}
35-
line-{{- cls if cls is not none else '' -}}"
34+
<a class="tree-icon icon-{{- type if type != 'symlink' else 'blob' }}"
3635
href="{{ url }}">
3736
{% if type == 'symlink' %}
3837
{{ name }} -> {{ path }}

0 commit comments

Comments
 (0)