1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-12 11:04:01 +02:00

Reorganize style.css, delete unnecessary stuff, add some styles.

* rows a bit more narrow
* navbar a bit more narrow
* table header without top border
* sort icons grey, or black when sorted

Signed-off-by: Marco Dickert <marco@misterunknown.de>
This commit is contained in:
Marco Dickert
2020-06-08 11:53:44 +02:00
parent bd955f6bcd
commit 09836355f3

View File

@@ -2,10 +2,47 @@ body {
padding-top: 70px; padding-top: 70px;
overflow-y: scroll !important; overflow-y: scroll !important;
} }
a { cursor: pointer !important; }
a.ifmitem:focus { outline: 0 }
img.imgpreview { max-width: 100%; }
div#content { width: 100%; height: 350px; } /* is for the ACE editor */
label {
display: inline-block;
margin-bottom: .5rem;
font-weight: 700;
}
/* Make tables more compact (overwrites bootstrap default of 0.75rem) */
.table td, .table th {
padding: 0.25rem;
}
/* narrow navbar */
.navbar {
padding: 0.3rem;
}
/*
* Icon size
*/
.icon { .icon {
font-size: 14pt; font-size: 14pt;
} }
@media (max-width: 768px) {
.icon { font-size: 12pt; }
#filetable tr th.buttons { min-width: 85px !important; }
}
/*
* Filetable related settings
*/
#filetable th {
border-top: 0;
}
#filetable td:nth-child(5), #filetable th:nth-child(5) { #filetable td:nth-child(5), #filetable th:nth-child(5) {
text-align: center; text-align: center;
} }
@@ -18,15 +55,12 @@ body {
#filetable td:last-child a:hover { #filetable td:last-child a:hover {
text-decoration: none; text-decoration: none;
} }
.td-permissions { width: 1px; }
a { cursor: pointer !important; } input[name=newpermissions] {
a.ifmitem:focus { outline: 0 } padding: 6px 8px;
width: 6.5rem;
img.imgpreview { max-width: 100%; } }
div#content { width: 100%; height: 350px; }
input[name=newpermissions] { padding: 6px 8px; }
#filetable tr th.buttons { min-width: 95px; } #filetable tr th.buttons { min-width: 95px; }
#filetable tbody tr.highlightedItem { box-shadow: 0px 0px 10px 2px #337ab7; } #filetable tbody tr.highlightedItem { box-shadow: 0px 0px 10px 2px #337ab7; }
@@ -35,16 +69,12 @@ input[name=newpermissions] { padding: 6px 8px; }
#filetable tbody tr.selectedItem * a { color: #FFF; } #filetable tbody tr.selectedItem * a { color: #FFF; }
#filetable tbody tr td { vertical-align: inherit; } #filetable tbody tr td { vertical-align: inherit; }
#navbar { max-width: 100%; }
div.ifminfo { color: #adadad; font-size: 10pt; } div.ifminfo { color: #adadad; font-size: 10pt; }
div.ifminfo div.panel div.panel-body { padding: 0px !important; text-align: center; } div.ifminfo div.panel div.panel-body { padding: 0px !important; text-align: center; }
@media (max-width: 768px) { /*
.icon { font-size: 12pt; } * Footer / Task-Queue settings
#filetable tr th.buttons { min-width: 85px !important; } */
}
footer { footer {
position: fixed; position: fixed;
padding-top: 1em; padding-top: 1em;
@@ -53,11 +83,11 @@ footer {
bottom: 0; bottom: 0;
width: 100%; width: 100%;
max-height: 6em; max-height: 6em;
overflow:hidden; overflow: hidden;
} }
#waitqueue .progress { #waitqueue .progress {
position:relative; position: relative;
margin-bottom: 0; margin-bottom: 0;
} }
#waitqueue .progbarlabel { #waitqueue .progbarlabel {
@@ -67,6 +97,9 @@ footer {
font-weight: bold; font-weight: bold;
} }
/*
* File drop overlay
*/
#filedropoverlay { #filedropoverlay {
display: none; display: none;
position: fixed; position: fixed;
@@ -92,28 +125,40 @@ footer {
pointer-events: none; pointer-events: none;
} }
.td-permissions { width: 1px; }
/* datatables */ /*
* Datatables related settings
*/
table.dataTable thead th { table.dataTable thead th {
position: relative; position: relative;
background-image: none !important; background-image: none !important;
} }
/* remove original sort icons */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc_disabled:before {
right: 0 !important;
content: "" !important;
}
/* custom sort icons */
table.dataTable thead th.sorting:after, table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after, table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after { table.dataTable thead th.sorting_desc:after {
position: absolute; position: absolute;
top: 12px; top: 6px;
right: 8px; right: 8px;
display: block; display: block;
font-family: fontello; font-family: fontello;
font-size: 0.8em;
opacity: 1;
color: #000;
} }
table.dataTable thead th.sorting:after { table.dataTable thead th.sorting:after {
content: "\F0DC"; content: "\F0DC";
font-size: 0.8em; color: #ddd;
padding-top: 0.12em;
} }
table.dataTable thead th.sorting_asc:after { table.dataTable thead th.sorting_asc:after {
content: "\f0de"; content: "\f0de";
@@ -122,6 +167,9 @@ table.dataTable thead th.sorting_desc:after {
content: "\f0dd"; content: "\f0dd";
} }
/*
* Modal related settings
*/
#copyMoveTree { #copyMoveTree {
max-height: 80vh; max-height: 80vh;
overflow: auto; overflow: auto;
@@ -139,9 +187,3 @@ table.dataTable thead th.sorting_desc:after {
max-width: 800px; max-width: 800px;
} }
} }
label {
display: inline-block;
margin-bottom: .5rem;
font-weight: 700;
}