Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix side panel top and bottom empty space #2795

Merged
merged 2 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 21 additions & 10 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ span {
--menu-highlight-background-color: #cfdeef;

--settings-background-color: #fafafa;

--container-bg-color: #ffffff;
--container-border-color: #a0a0a0;
--btn-bg-color: #F0F0F0;
--header-bg-color: #F0F0F0;
--header-border-color: #909090;
Expand Down Expand Up @@ -317,14 +318,24 @@ a {color: #686868; text-decoration: none;}
#maincont {height: calc(100dvh - 36px - 5px - 25px - 5px);}
.offcanvas-header .btn-close {background-color: var(--btn-bg-color);}
#offcanvas-sidepanel {
background-color: #FFFFFF;
border: 1px solid var(--container-border-color);
background-color: var(--container-bg-color) !important;
display: flex;
flex-direction: column;
align-items: stretch;
}
#side-panel {
border: 1px solid #A0A0A0;
.offcanvas-body {
display: flex;
flex-direction: column;
flex-grow: 1 !important;
overflow-y: auto !important;
}
#CatList {
flex: 1 1 auto;
}
#list-table {
border: 1px solid #A0A0A0;
background-color: #FFFFFF;
border: 1px solid var(--container-border-color);
background-color: var(--container-bg-color);
}

.stable-icon {background-image: url(../images/tstatus.png); background-repeat: no-repeat}
Expand All @@ -347,7 +358,7 @@ div#HDivider, div#VDivider {flex: 0 0 5px;}
#stg {
width: 95vw;
height: 95vh;
background-color: var(--settings-background-color);
background-color: var(--settings-background-color);
}
#stg_c {
display: flex;
Expand Down Expand Up @@ -457,9 +468,9 @@ div#tdetails {
background-color: #F5F5F5;
}
div#tdetails a.h {margin: 0}
div#tdcont {
background: #FFFFFF;
border: 1px solid #D0D0D0;
#tdcont {
background: var(--container-bg-color);
border: 1px solid var(--container-border-color);
}
div.tab {
height:100%;
Expand Down
76 changes: 37 additions & 39 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,45 +137,43 @@
<h4 class="offcanvas-title" id="offcanvas-sidepanel-label"></h4>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#offcanvas-sidepanel" aria-label="Close"></button>
</div>
<div class="p-1 p-md-0 mh-100 offcanvas-body overflow-x-hidden flex-grow-1 flex-shrink-1">
<div id="side-panel" class="w-100 overflow-x-hidden overflow-y-auto">
<template id="panel-label-template">
<link href="./css/panel-label.css?v=51B4" rel="stylesheet" type="text/css" />
<div part="prefix" hidden></div>
<div part="icon"></div>
<div part="text"></div>
<div part="count">0</div>
<div part="size" style="display: none;"></div>
</template>
<template id="category-panel-template">
<link href="./css/category-panel.css?v=51B4" rel="stylesheet" type="text/css" />
<div part="heading">
<span class="text"></span><slot name="decorator" class="decorator"></slot>
</div>
<slot name="content"></slot>
</template>
<category-list id="CatList">
<category-panel id="pview" uilangtext="pnlViews">
<input slot="decorator" class="Button" type="button" value="+" uilangtitle="SaveCurrentView" id="pview_save_view_button" />
<panel-label id="pview_all" icon="all" uilangtext="All" selected></panel-label>
</category-panel>
<category-panel id="pstate" uilangtext="pnlState">
<panel-label id="pstate_all" icon="all" uilangtext="All" selected></panel-label>
<panel-label id="-_-_-dls-_-_-" icon="down" uilangtext="Downloading"></panel-label>
<panel-label id="-_-_-com-_-_-" icon="completed" uilangtext="Finished"></panel-label>
<panel-label id="-_-_-act-_-_-" icon="up-down" uilangtext="Active"></panel-label>
<panel-label id="-_-_-iac-_-_-" icon="inactive" uilangtext="Inactive"></panel-label>
<panel-label id="-_-_-err-_-_-" icon="error" uilangtext="Error"></panel-label>
</category-panel>
<category-panel id="plabel" uilangtext="Labels">
<panel-label id="plabel_all" icon="all" uilangtext="All" selected></panel-label>
<panel-label id="-_-_-nlb-_-_-" icon="no-label" uilangtext="No_label"></panel-label>
</category-panel>
<category-panel id="psearch" uilangtext="mnu_search">
<panel-label id="psearch_all" icon="all" uilangtext="All" selected></panel-label>
</category-panel>
</category-list>
</div>
<div class="p-1 p-md-0 offcanvas-body">
<template id="panel-label-template">
<link href="./css/panel-label.css?v=51B4" rel="stylesheet" type="text/css" />
<div part="prefix" hidden></div>
<div part="icon"></div>
<div part="text"></div>
<div part="count">0</div>
<div part="size" style="display: none;"></div>
</template>
<template id="category-panel-template">
<link href="./css/category-panel.css?v=51B4" rel="stylesheet" type="text/css" />
<div part="heading">
<span class="text"></span><slot name="decorator" class="decorator"></slot>
</div>
<slot name="content"></slot>
</template>
<category-list id="CatList">
<category-panel id="pview" uilangtext="pnlViews">
<input slot="decorator" class="Button" type="button" value="+" uilangtitle="SaveCurrentView" id="pview_save_view_button" />
<panel-label id="pview_all" icon="all" uilangtext="All" selected></panel-label>
</category-panel>
<category-panel id="pstate" uilangtext="pnlState">
<panel-label id="pstate_all" icon="all" uilangtext="All" selected></panel-label>
<panel-label id="-_-_-dls-_-_-" icon="down" uilangtext="Downloading"></panel-label>
<panel-label id="-_-_-com-_-_-" icon="completed" uilangtext="Finished"></panel-label>
<panel-label id="-_-_-act-_-_-" icon="up-down" uilangtext="Active"></panel-label>
<panel-label id="-_-_-iac-_-_-" icon="inactive" uilangtext="Inactive"></panel-label>
<panel-label id="-_-_-err-_-_-" icon="error" uilangtext="Error"></panel-label>
</category-panel>
<category-panel id="plabel" uilangtext="Labels">
<panel-label id="plabel_all" icon="all" uilangtext="All" selected></panel-label>
<panel-label id="-_-_-nlb-_-_-" icon="no-label" uilangtext="No_label"></panel-label>
</category-panel>
<category-panel id="psearch" uilangtext="mnu_search">
<panel-label id="psearch_all" icon="all" uilangtext="All" selected></panel-label>
</category-panel>
</category-list>
Comment on lines +140 to +176
Copy link
Contributor Author

@jevenski jevenski Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than reducing one tab indent because of the removal of the redundant level of <div>, these lines are unchanged. Also some verbose bootstrap utility class names were removed from the .offcanvas-body element.

</div>
</div>
<div id="HDivider" class="p-0 m-0"></div>
Expand Down
6 changes: 3 additions & 3 deletions plugins/theme/themes/Acid/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ html, body { background-color: #1e2124; color: #BDDBDB }
--menu-highlight-background-color: #BDDBDB;

--settings-background-color: #272E36;

--container-bg-color: #272E36;
--container-border-color: #a0a0a0;
--btn-bg-color: #D7D7D7;
--header-bg-color: #1E2124;
--header-border-color: #909090;
Expand Down Expand Up @@ -100,7 +101,7 @@ div#t div#setting {background: transparent url(./images/toolbar.png) no-repeat -
div#t div#help {background: transparent url(./images/quest.gif) no-repeat 0px center}
div#t div#go {background: transparent url(./images/go.gif) no-repeat 0px center; }

#offcanvas-sidepanel { background-color: #272E36; color: #BDDBDB;}
#offcanvas-sidepanel { color: #BDDBDB;}
div#side-panel ul li { border: 1px solid #272E36; font-weight: bold; }
div#side-panel ul li.sel {background-color: #BDDBDB; border-color: #BDDBDB; color: #272E36;}

Expand Down Expand Up @@ -133,7 +134,6 @@ legend {color: #00FF00; font-weight: bold}
a { color: #00ff00; font-weight: bold;}

div#tdetails {background-color: #1E2124}
div#tdcont {background: #272E36; }
div.tab { background: #272E36; }
div#lcont { background: #272E36; font-weight: bold; color: #BDDBDB;}

Expand Down
8 changes: 3 additions & 5 deletions plugins/theme/themes/Blue/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ html, body { background-color: #DFE8F6 }
--menu-highlight-background-color: #D9E8FB;

--settings-background-color: #DFE8F6;

--container-bg-color: #ffffff;
--container-border-color: #99bbe8;
--btn-bg-color: #F0F0F0;
--header-bg-color: #D9E8FB;
--header-border-color: transparent;
Expand All @@ -24,7 +25,7 @@ category-panel {
--heading-background-color: #d9e8fb;
--heading-border-color: #8db2e3;
}
#side-panel, category-list {
category-list {
border-color: #99BBE8;
}

Expand Down Expand Up @@ -85,9 +86,6 @@ button, input.Button { background-image: url(./images/btn-sprite.gif); backgroun
input[type="text"], input[type="password"], input[type="file"], select, textarea { background: #FFFFFF url(./images/text-bg.gif) repeat-x 0 0; border:1px solid #B5B8C8; }
input[type="text"][disabled],input[type="password"][disabled],input[type="file"][disabled], select[disabled], textarea[disabled] { border: 1px solid #C0C0C0; background: #F0F0F0; color: #C0C0C0}


div#tdcont { background: #FFFFFF; border: 1px solid #99BBE8; }

#StatusBar { border-color: #99BBE8; background-color: #FFFFFF; color: #000000; }
.statuscell { border-color: #99BBE8;}
.sthdr { color: #15428B; }
Expand Down
8 changes: 3 additions & 5 deletions plugins/theme/themes/Dark/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ html, body {background-color: #181818; color: #999999; }
--menu-highlight-background-color: #888888;

--settings-background-color: #181818;

--container-bg-color: #181818;
--container-border-color: #333333;
--btn-bg-color: #999999;
--header-bg-color: #181818;
--header-border-color: #333333;
Expand Down Expand Up @@ -40,9 +41,8 @@ button:not([disabled]):hover:active, input.Button:not([disabled]):hover:active {

#offcanvas-sidepanel {
color: #686868;
background-color: #181818;
}
#side-panel, category-list {
category-list {
background-color: #181818;
border: 1px solid #333333;
}
Expand Down Expand Up @@ -125,7 +125,6 @@ div#List {border: 1px solid #333333;}

div#modalbg {background-color: #181818;}

div#list-table {border: 1px solid #333333; background-color: #181818}
div#FileList, div#TrackerList, div#PeerList, div#Speed {background-color: #181818}

#stg { background-color: #181818; color: #888888; border: 1px solid #333333}
Expand All @@ -152,7 +151,6 @@ legend {color: #888888}
select.cols {border: 1px solid #333333}
div#dragmask {border: 1px dotted #333333}
div#tdetails {background-color: #181818}
div#tdcont {background: #181818; border: 1px solid #333333}

.tabbar li.nav-item a.nav-link {
border: 1px solid #333333;
Expand Down
8 changes: 3 additions & 5 deletions plugins/theme/themes/DarkBetter/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ html, body {background-color: #181818; color: #999999; }
--menu-highlight-background-color: #888888;

--settings-background-color: #181818;

--container-bg-color: #181818;
--container-border-color: #333333;
--btn-bg-color: #D6D6D6;
--header-bg-color: #181818;
--header-border-color: #333333;
Expand Down Expand Up @@ -67,9 +68,8 @@ button:hover:active, input.Button:not([disabled]):hover:active {
select, input[type=file], input[type=text], input[type=number], input[type=password] {border: 1px solid #333333;}
#offcanvas-sidepanel {
color: #686868;
background-color: #181818;
}
#side-panel, category-list {
category-list {
border: 1px solid #333333;
background-color: #181818;
}
Expand Down Expand Up @@ -282,7 +282,6 @@ div#List {border: 1px solid #333333}

div#modalbg {background-color: #181818}

div#list-table {border: 1px solid #333333; background-color: #181818}
div#FileList, div#TrackerList, div#PeerList, div#Speed {background-color: #181818}

#stg {background-color: #181818; color: #888888; border: 1px solid #333333}
Expand All @@ -309,7 +308,6 @@ legend {color: #888888}
select.cols {border: 1px solid #333333}
div#dragmask {border: 1px dotted #333333}
div#tdetails {background-color: #181818}
div#tdcont {background: #181818; border: 1px solid #333333}

div#tadd {background-color: #181818; border: 1px solid #333333}
.tabbar li.nav-item a.nav-link {
Expand Down
11 changes: 6 additions & 5 deletions plugins/theme/themes/Excel/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ html, body { background-color: #DFE8F6; scrollbar-arrow-color: #586585; scrollba
--menu-highlight-background-color: #ffeec2;

--settings-background-color: #FFFFFF;

--container-bg-color: #d2e0f0;
--container-border-color: #9eb6ce;
--btn-bg-color: #f1f1ec;
--header-bg-color: #D9E8FB;
--header-border-color: #FFFFFF;
Expand All @@ -24,7 +25,7 @@ category-panel {
--heading-background-color: linear-gradient(0deg, rgba(158,182,206,1) 0%, rgba(230,235,243,1) 100%);
--heading-border-color: transparent;
}
#side-panel, category-list {
category-list {
border-top-style: none;
border-color: #9EB6CE;
background-color: #FFFFFF;
Expand All @@ -42,7 +43,7 @@ panel-label[selected] {
--badge-background-color: #FFFFFF;
}

div#StatusBar { background: transparent url(./images/statbg.png) repeat-x 0 0; border-top: none; color: #034084 }
#StatusBar { background: transparent url(./images/statbg.png) repeat-x 0 0; border-top: none; color: #034084 }
.statuscell { border-color: #9EB6CE }

#t {background: none; border: none;}
Expand All @@ -57,10 +58,10 @@ div#StatusBar { background: transparent url(./images/statbg.png) repeat-x 0 0; b
input[type="text"], input[type="password"], input[type="file"], select, textarea { background-color: #FFFFFF; border:1px solid #B5B8C8; }
input[type="text"][disabled],input[type="password"][disabled],input[type="file"][disabled], select[disabled], textarea[disabled] { border: 1px solid #C0C0C0; color: #C0C0C0}

div#tdcont, div.tab, div#lcont { background-color: #d2e0f0; color: #034084 }
div.tab, div#lcont { background-color: #d2e0f0; color: #034084 }
div.graph_tab { background-color: #d2e0f0; color: #034084; border-color: #ffffff }
div#gcont div.row.Header {background-color: #e4edf6;}
div#tdcont { border-color: #9EB6CE }
#tdcont { color: #034084 }
div#tdetails { background-color: transparent }

.stg_con { background-color: #FFFFFF }
Expand Down
17 changes: 3 additions & 14 deletions plugins/theme/themes/MaterialDesign/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ html,body
--menu-highlight-background-color: #121212;

--settings-background-color: #222;

--container-bg-color: #181818;
--container-border-color: #1b1b1b;
--btn-bg-color: #3498DB;
--header-bg-color: #273238;
--header-border-color: transparent;
Expand All @@ -223,9 +224,8 @@ category-panel {

#offcanvas-sidepanel {
color: #EEE;
background-color: #1A2329;
}
#side-panel, category-list
category-list
{
border:none;
background-color:#1A2329;
Expand Down Expand Up @@ -701,11 +701,6 @@ div#modalbg {
background-color:#181818
}

#list-table {
border: none;
background-color:#181818
}

div#FileList,div#TrackerList,div#PeerList,div#Speed
{
background-color:#181818
Expand Down Expand Up @@ -829,12 +824,6 @@ div#tdetails {
border-top-left-radius:6px
}

div#tdcont {
background:#181818;
border:none;
padding:0
}

table#maincont td.uicell {
overflow: hidden;
padding: 0;
Expand Down
8 changes: 3 additions & 5 deletions plugins/theme/themes/Oblivion/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ html, body {font-family: "Lucida Sans Unicode", "Lucida Grande", Tahoma, Arial,
--menu-highlight-background-color: #121212;

--settings-background-color: #181818;

--container-bg-color: #181818;
--container-border-color: #333333;
--btn-bg-color: #515151;
--header-bg-color: #222222;
--header-border-color: #333333;
Expand Down Expand Up @@ -44,9 +45,8 @@ button:not([disabled]):hover:active, input.Button:not([disabled]):hover:active {

#offcanvas-sidepanel {
color: #626262;
background-color: #212121;
}
#side-panel, category-list {
category-list {
border:none;
background-color: #212121;
border-right: 1px solid #1b1b1b;
Expand Down Expand Up @@ -218,7 +218,6 @@ div.graph_tab {color:#FFF; background-color: #181818}

div#modalbg {background-color: #181818;}

#list-table {margin-right:6px;border-top: 1px solid #333; border-right: 1px solid #070707; border-left: 1px solid #1b1b1b; border-bottom: 1px solid #000000; background-color: #181818;}
div#FileList, div#TrackerList, div#PeerList, div#Speed {background-color: #181818}

.lm li div > div {
Expand All @@ -241,7 +240,6 @@ legend {color: #888888}
select.cols {border: 1px solid #333333}
div#dragmask {border: 1px dotted #333333}
div#tdetails {padding:0px;margin:0px;background-color: #181818;color:#888888;-moz-border-radius-topleft:5px; -webkit-border-top-left-radius:5px;-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;border-top-right-radius:5px;border-top-left-radius:5px;}
div#tdcont {background: #181818; border-top: none; border-right: 1px solid #070707; border-left: 1px solid #1b1b1b; border-bottom: 1px solid #000000;}

/*TABBED MENU */
.tabbar {
Expand Down