Skip to content

Commit

Permalink
Update to ver 1.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
greyaz committed Mar 13, 2023
1 parent 2af78fb commit de7f879
Show file tree
Hide file tree
Showing 41 changed files with 475 additions and 284 deletions.
9 changes: 9 additions & 0 deletions Asset/dev/css/activity-and-comment.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
}
#modal-content > .activity-event, #task-view .activity-event{
background: var(--color-greyscale-4);
border-radius: 0;
}
#modal-content>.page-header + .activity-event, #task-view .page-header + .activity-event {
border-top-left-radius: var(--size-radius-def);
border-top-right-radius: var(--size-radius-def);
}
#modal-content>.page-header ~ .activity-event:last-child, #task-view .page-header ~ .activity-event:last-child {
border-bottom-left-radius: var(--size-radius-def);
border-bottom-right-radius: var(--size-radius-def);
}
.comments .comment:hover, .activity-event:hover,
.comments .comment:nth-child(even):not(.comment-highlighted):hover,
Expand Down
2 changes: 1 addition & 1 deletion Asset/dev/css/basics.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--size-font-min: max(12px, 0.875rem);
--size-width-def: unset;
--size-width-comp: 220px;
--size-radius-def: 2px;
--size-radius-def: 4px;

--style-fontfamily: "SF Pro Display", Calibri, Helvetica, Verdana, Arial, sans-serif;
--style-fontfamily-code: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
Expand Down
13 changes: 5 additions & 8 deletions Asset/dev/css/board-task-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,8 @@
}
.task-board-expanded .task-board-header>a i.fa{
color: var(--color-greyscale-1);
opacity: 0.08;
opacity: .08;
}
/*.task-board-header > a {
font-weight: bold;
line-height: 1.667rem;
}*/
.task-board-header > .dropdown {
margin-bottom: 1rem;
min-width: 3.3rem;
Expand Down Expand Up @@ -231,9 +227,10 @@ body.TR .task-board-category span.tooltip i.fa, body.TR .table-list-category spa
text-align: left;
line-height: 0;
margin-top: calc(1rem - 9px);
opacity: 0.08;
display: inline-block;
width: 100%;
transition: opacity .15s;
transition-timing-function: ease-in-out;
}
.task-board-icons .task-board-icons-row {
line-height: 0;
Expand All @@ -243,8 +240,8 @@ body.TR .task-board-category span.tooltip i.fa, body.TR .table-list-category spa
.task-board-icons .task-board-icons-row br {
display: none;
}
.task-board:hover .task-board-icons, .task-board:hover .task-board-header>a i.fa, .table-list-row:hover > .task-list-icons {
opacity: 1;
.task-board:hover .task-board-icons, .task-board:hover .task-board-header>a i.fa, .table-list-row:hover .task-list-icons {
opacity: 1;
}
.task-board-icons .task-board-icons-row *, .task-list-icons *{
margin: 0 .1rem 0 0 !important;
Expand Down
4 changes: 4 additions & 0 deletions Asset/dev/css/form-components.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ input::placeholder, textarea::placeholder{
}
.text-editor .text-editor-toolbar{
border-color: var(--color-greyscale-5);
border-radius: var(--size-radius-def) var(--size-radius-def) 0 0;
}
.text-editor textarea{
border-radius: 0 0 var(--size-radius-def) var(--size-radius-def);
}
.text-editor-write-mode{
line-height: 0;
Expand Down
11 changes: 11 additions & 0 deletions Asset/dev/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ header {
#main .sidebar-content, #main > .accordion-section, .page > .table-list{
box-shadow: var(--style-shadow-heavy);
}
#main>.accordion-section{
border-radius: 0;
}
#main>.accordion-section:first-of-type{
border-top-left-radius: var(--size-radius-def);
border-top-right-radius: var(--size-radius-def);
}
#main>.accordion-section:last-of-type{
border-bottom-left-radius: var(--size-radius-def);
border-bottom-right-radius: var(--size-radius-def);
}
#main .sidebar-content{
padding: 2rem;
}
Expand Down
18 changes: 13 additions & 5 deletions Asset/dev/css/plugins.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.TR .fc-toolbar.fc-header-toolbar, .TR .page > #main > .menu-inline {
background: var(--color-greyscale-6);
border: none;
border-radius: var(--size-radius-def);
border-radius: var(--size-radius-def) var(--size-radius-def) 0 0;
border-bottom: var(--style-border);
padding: 1.5rem;
margin: 0;
Expand Down Expand Up @@ -37,6 +37,7 @@
line-height: 1rem;
padding: .5rem 1rem;
height: auto;
border-radius: 0;
}
.TR .fc-button-group .fc-button:not(.fc-state-active){
font-weight: normal !important;
Expand Down Expand Up @@ -134,9 +135,11 @@
.TR .page > #main > #gantt-chart{
margin: 0 0 1rem;
box-shadow: var(--style-shadow-heavy);
border-radius: 0 0 var(--size-radius-def) var(--size-radius-def);
}
.TR .page > #main > section > #gantt-chart{
padding-top: 1.5rem;
border-radius: var(--size-radius-def);
}
.TR div.ganttview{
border: none;
Expand Down Expand Up @@ -218,10 +221,6 @@
color: var(--color-greyscale-6) !important;
font-size: var(--size-font-min);
vertical-align: middle;
/*max-width: 1.6rem;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;*/
}
.TR #task-summary .assigned-group{
margin-right: 0;
Expand Down Expand Up @@ -264,3 +263,12 @@
white-space: initial;
overflow: initial;
}

/* embed anything*/
.TR #main #embed-anything{
border-radius: var(--size-radius-def);
}
.TR #main #embed-anything > iframe {
border-radius: var(--size-radius-def);
box-shadow: inset 0 0 1px 0 var(--color-greyscale-1);
}
2 changes: 1 addition & 1 deletion Asset/dev/css/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
.sidebar .sidebar-title{
padding: 1rem 1.25rem;
border-radius: var(--size-radius-def) var(--size-radius-def) 0 0;
border-radius: 0;
border-bottom: var(--style-border);
}
.sidebar .sidebar-title h2{
Expand Down
22 changes: 14 additions & 8 deletions Asset/dev/css/switcher-action-filter.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@
.views-switcher-component .views{
margin: 0 1rem 0 0;
font-size: 1rem;
border-radius: 0 var(--size-radius-def) var(--size-radius-def) 0;
}
.project-header > .dropdown-component {
padding: 0 0 0 1rem;
margin-right: 0;
border-radius: var(--size-radius-def) 0 0 var(--size-radius-def);
}

.views-switcher-component .views li, .page-header li, .menu-inline li, .filter-box .input-addon .input-addon-item, .filter-box .input-addon input[type=text] {
Expand Down Expand Up @@ -72,17 +74,11 @@
text-align: center;
box-sizing: border-box;
}
.filter-box .input-addon input[type=text] {
font-size: 1rem;
height: 1rem;
box-shadow: none;
border-radius: var(--size-radius-def), 0, 0, var(--size-radius-def);
box-sizing: content-box;
}
.views-switcher-component .views li:first-child {
border-top-left-radius: var(--size-radius-def);
border-bottom-left-radius: var(--size-radius-def);
border-left: 1px solid var(--color-greyscale-6);
border-radius: 0;
}
.views-switcher-component .views li:last-child {
border-top-right-radius: var(--size-radius-def);
Expand All @@ -94,7 +90,6 @@
background: linear-gradient(to top, var(--color-greyscale-1) 2px, var(--color-greyscale-6) 2px);
}


.page-header ul a, .menu-inline ul a{
padding: .75rem 1.5rem;
display: inline-block;
Expand All @@ -108,6 +103,17 @@
color: var(--color-greyscale-1);
font-weight: normal;
}
.project-header .filter-box-component .input-addon {
border-radius: var(--size-radius-def);
}
.filter-box .input-addon input[type=text] {
font-size: 1rem;
height: 1rem;
box-shadow: none;
border-radius: var(--size-radius-def), 0, 0, var(--size-radius-def);
box-sizing: content-box;
background: none;
}
.filter-box .input-addon .input-addon-item:last-child {
border-radius: 0 var(--size-radius-def) var(--size-radius-def) 0;
}
Expand Down
19 changes: 11 additions & 8 deletions Asset/dev/css/table-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
padding: 1rem;
border: none;
border-bottom: var(--style-border) !important;
border-radius: var(--size-radius-def);
border-radius: 0;
position: relative;
margin: 0;
/*margin: 0 1rem 1rem 0;
/*box-shadow: var(--style-shadow-light);
min-width: 21.17%;
max-width: 97.5%;
display: inline-grid;*/
}
.table-list-header + .table-list-row{
border-top-left-radius: var(--size-radius-def);
border-top-right-radius: var(--size-radius-def);
}
.table-list-header ~ .table-list-row:last-child, .table-list-row:last-child{
border-bottom-left-radius: var(--size-radius-def);
border-bottom-right-radius: var(--size-radius-def);
}
.table-list-row:nth-child(even){
background: var(--color-greyscale-6) !important;
Expand All @@ -29,9 +32,9 @@
border-right: 0;
border-bottom: var(--style-border);
}
.table-list-row:last-child{
/*.table-list-row:last-child{
border-radius: inherit;
}
}*/
.table-list-row.table-border-left > div:first-child{
margin-right: 1rem;
}
Expand Down
8 changes: 4 additions & 4 deletions Asset/dev/css/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ table tr th:first-child, table tr td:first-child{
border-left: none;
}
table tr:first-child th:first-child {
border-radius: var(--size-radius-def) 0 0 0;
border-top-left-radius: var(--size-radius-def);
}
table tr:first-child th:last-child {
border-radius: 0 var(--size-radius-def) 0 0;
border-top-right-radius: var(--size-radius-def);
}
table tr:last-child td:first-child {
border-radius: 0 0 0 var(--size-radius-def);
border-bottom-left-radius: var(--size-radius-def);
}
table tr:last-child td:last-child {
border-radius: 0 0 var(--size-radius-def) 0;
border-bottom-right-radius: var(--size-radius-def);
}
table tr th:last-child, table tr td:last-child{
border-right: none;
Expand Down
2 changes: 1 addition & 1 deletion Asset/dev/css/task-detail.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}
#task-summary h2{
padding: 2.5rem 0 1rem;
border-radius: var(--size-radius-def);
border-radius: 0;
margin: 0 auto 1rem;
border-bottom: 2px solid var(--color-greyscale-1) !important;
font-size: 2rem !important;
Expand Down
38 changes: 17 additions & 21 deletions Asset/dev/js/main.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
(function(window, document, KB, $, hljs){
// Add Class
document.querySelector("body").classList.add("TR");

// Get Favicon
var favicon = "/assets/img/favicon.png";
if (document.querySelector("head link[rel='icon']")){
favicon = document.querySelector("head link[rel='icon']").getAttribute("href");
// Adding logo through js if php templates have been overridden by other plugins
if (!document.body.classList.contains("TR")){
// Add Class
document.body.classList.add("TR");
}

// Login
if (document.querySelector("body > .form-login")){
var html = document.querySelector("body > .form-login").innerHTML;
html = '<div class="page-header"></div><img class="logo" src="' + favicon + '">' + html;
document.querySelector("body > .form-login").innerHTML = html;
}

// Replace Logo
if (document.querySelector("header .logo > a")){
document.querySelector("header .logo > a").innerHTML = '<img src="' + favicon + '" />';
if (document.querySelector("header .logo > a") && !document.querySelector("header .logo > a > img")){
// Replace Logo
document.querySelector("header .logo > a").innerHTML = '<img src="' + getFavicon() + '" />';
}

// Init page Menu
Expand Down Expand Up @@ -74,6 +63,8 @@
});
}

/* ---------- functions ---------- */

// check list size
function checkListSize($dropList){
if ($dropList && $dropList.children(":not(.no-hover)").length > 25){
Expand All @@ -88,7 +79,6 @@
keyword = $(this).val();
search($searchList, keyword, $(this));
}

// search function
function search($searchList, keyword, $input){
$searchList.each(function(){
Expand All @@ -108,7 +98,6 @@
search($searchList, curentInputVal, $input);
}
}

// Menu Init Function
function initMenu(menuQS){
var menu = document.querySelector(menuQS);
Expand Down Expand Up @@ -137,5 +126,12 @@
}
}
}
}
}
//Get Favicon
function getFavicon(){
if (document.querySelector("head link[rel='icon']")){
return document.querySelector("head link[rel='icon']").getAttribute("href");
}
return "/assets/img/favicon.png";
}
})(window, document, typeof KB == "undefined" ? null : KB, typeof jQuery == "undefined" ? null: jQuery, typeof hljs == "undefined" ? null: hljs); // compatible with public visit page
15 changes: 0 additions & 15 deletions Asset/dev/js/settings.js

This file was deleted.

2 changes: 1 addition & 1 deletion Asset/main.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Asset/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Asset/material-symbols/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-family: "Material Symbols Sharp";
font-style: normal;
font-weight: 600 900;
font-display: block;
font-display: swap;
src: url("./material-symbols-sharp.woff2") format("woff2");
}

Expand Down
Loading

0 comments on commit de7f879

Please sign in to comment.