Skip to content

Commit

Permalink
Merge pull request #182 from akabekobeko/feat-support-redmine-v5.0.2
Browse files Browse the repository at this point in the history
feat: support Redmine v5.0.2
  • Loading branch information
akabekobeko committed Jul 9, 2022
2 parents a881715 + 289097a commit 39c8af5
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 58 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Change Log

## v1.9.0

### Features

- Support Redmine v5.0.2 [#179](https://github.com/akabekobeko/redmine-theme-minimalflat2/issues/179)

## v1.8.1

### Features
Expand Down
2 changes: 1 addition & 1 deletion README.ja.md
@@ -1,6 +1,6 @@
# minimalflat2

![Redmine](https://img.shields.io/badge/Redmine-4.2-brightgreen)
![Redmine](https://img.shields.io/badge/Redmine-5.0.2-brightgreen)

簡素でフラットな外観の Redmine テーマです。

Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# minimalflat2

![Redmine](https://img.shields.io/badge/Redmine-4.2-brightgreen)
![Redmine](https://img.shields.io/badge/Redmine-5.0.2-brightgreen)

Minimal and flat design theme for Redmine.

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "minimalflat2",
"description": "Minimal and flat design theme for Redmine.",
"version": "1.8.1",
"version": "1.9.0",
"author": "akabeko",
"license": "GPL-2.0",
"private": true,
Expand Down
104 changes: 67 additions & 37 deletions src/scss/App.scss
Expand Up @@ -44,13 +44,10 @@ li {
}

/***** Layout *****/
div#wrapper, div#wrapper2, div#wrapper3 {
min-height: inherit;
}
#wrapper {
min-height: inherit;
background: $color_page_back;
overflow: hidden;
}
#wrapper3 {
display: flex;
flex-direction: column;
}
Expand Down Expand Up @@ -399,18 +396,6 @@ div#wrapper, div#wrapper2, div#wrapper3 {
padding: .5em 1em;
overflow-x: auto;
}
* html #content {
width: 75%;
padding-left: 0;
margin-top: 0;
padding: 6px 10px 10px 10px;
}
html > body #content {
min-height: 600px;
}
* html body #content {
height: 600px; // IE
}

#main.nosidebar #sidebar {
display: none;
Expand Down Expand Up @@ -457,10 +442,6 @@ html > body #content {
float: right;
font-weight: normal;
}
#login-form input#openid_url {
background: $color_white url(../images/openid-bg.gif) no-repeat 4px 50%;
padding-left: 24px !important;
}
#login-form h3 {
text-align: center;
}
Expand Down Expand Up @@ -522,6 +503,11 @@ a.project.closed, a.project.closed:link, a.project.closed:visited {
a.user.locked, a.user.locked:link, a.user.locked:visited {
color: $color_gray;
}
a.user.user-mention {
background-color: #DDEEFF;
padding: 0.2rem;
border-radius: 0.2rem;
}

#sidebar a.selected {
line-height: 1.7em;
Expand All @@ -532,6 +518,9 @@ a.user.locked, a.user.locked:link, a.user.locked:visited {
#sidebar a.selected:hover {
text-decoration: none;
}
#sidebar .query.default {
font-weight: bold;
}
#admin-menu a {
line-height: 1.7em;

Expand All @@ -553,10 +542,6 @@ a.user.locked, a.user.locked:link, a.user.locked:visited {
padding: 0;
}
}
// #admin-menu a.selected {
// padding-left: 20px !important;
// background-position: 2px 40%;
// }

a.collapsible:before {
@include iconbase();
Expand Down Expand Up @@ -700,6 +685,7 @@ div + .drdn-items {
background-color: $color_blue_dark;
color: $color_white !important;
}

/***** Tables *****/
table.list, .table-list {
border: 1px solid $color_gray_light_a;
Expand All @@ -716,6 +702,9 @@ table.list th, .table-list-header {
white-space: nowrap;
font-weight: normal;
}
table.list th.whitespace-normal {
white-space: normal;
}
table.list td {
border: 1px solid $color_gray_light_a;
text-align: center;
Expand Down Expand Up @@ -1062,6 +1051,11 @@ table.files tr.file td.digest {
table.members td.roles, table.memberships td.roles {
width: 45%;
}
table.members td.buttons {
text-align: left;
width: 1px;
white-space: nowrap;
}

table.members {
td.name {
Expand Down Expand Up @@ -1487,6 +1481,10 @@ textarea:focus, textarea:active {
outline: none;
}

input:placeholder-shown {
text-overflow: ellipsis;
}

select[multiple=multiple] {
background: $color_white;
padding-right: initial;
Expand Down Expand Up @@ -1570,6 +1568,7 @@ p.footnote {

div.issue div.subject div div {
padding-left: 16px;
word-break: break-word;
}
div.issue div.subject p {
margin: 0;
Expand Down Expand Up @@ -1613,6 +1612,13 @@ div.issue .attribute .value {
overflow: auto;
text-overflow: ellipsis;
}
div.issue .attribute.string_cf .value .wiki p {
margin-top: 0;
margin-bottom: 0;
}
div.issue .attribute.text_cf .value .wiki p:first-of-type {
margin-top: 0;
}
div.issue.overdue .due-date .value {
color: $color_red;
}
Expand All @@ -1626,19 +1632,24 @@ body.controller-issues h2.inline-flex {
#issue_tree td.checkbox, #relations td.checkbox {
display: none;
}
#issue_tree td.subject, #relations td.subject {
width: 50%;
}
#issue_tree td.buttons, #relations td.buttons {
padding:0;
}
#issue_tree .issues-stat {
font-size: 80%;
#issue_tree .issues-stat, #relations .issues-stat {
font-size: 80%
}
#issue_tree .issues-stat .badge {
#issue_tree .issues-stat .badge, #relations .issues-stat .badge {
bottom: initial;
}

#issue_tree .issue > td, #relations .issue > td, #issue_tree .issue .user {
text-overflow: ellipsis; /* if text exceeds its space, add ... */
overflow: hidden;
}
#issue_tree .issue > td.subject, #relations .issue > td.subject {
width: 100%; /* let subject have one full width column */
word-break: break-word; /* break word if subject is too long */
padding-right: 25px; /* this is the spaces that .buttons uses next to subject */
}
#trackers_description {
display:none;
}
Expand Down Expand Up @@ -1883,6 +1894,10 @@ body.controller-versions.action-show div#roadmap .related-issues {
width: 70%;
}

div#roadmap .version-article {
padding-bottom: 12px;
}

div#version-summary {
float: right;
width: 28%;
Expand Down Expand Up @@ -2149,7 +2164,7 @@ ul.properties li span {
margin-bottom: 1.2em;
position: relative;
}
#user_login, #user_firstname, #user_lastname, #user_mail, #my_account_form select, #user_form select, #user_identity_url {
#user_login, #user_firstname, #user_lastname, #user_mail, #my_account_form select, #user_form select {
width: 90%;
}

Expand Down Expand Up @@ -2244,7 +2259,7 @@ span.pagination {
span.pagination > span {
white-space: nowrap;
}
.controller-attachments.action-show span.pagination {
.controller-attachments.action-show span.pagination, .controller-repositories.action-entry span.pagination {
display: block;
margin-top: 1.2em;
}
Expand Down Expand Up @@ -2889,6 +2904,12 @@ img.ui-datepicker-trigger {
margin-left: 4px;
}

/***** Documents *****/

#document-list .document-group {
margin-bottom: 1rem;
}

/***** Progress bar *****/
table.progress {
border-collapse: collapse;
Expand Down Expand Up @@ -3216,6 +3237,14 @@ div.wiki img {
max-width: 100%;
}

div.wiki .task-list {
list-style-type: none;
padding-left: 0px;
}
div.wiki .task-list input.task-list-item-checkbox {
height: initial;
}

.wiki {
padding: 0 .5em 1em;

Expand Down Expand Up @@ -3562,9 +3591,10 @@ td.gantt_selected_column .gantt_hdr,.gantt_selected_column_container {
.ui-tooltip {
background: $color_text;
color: $color_white;
border-radius: 3px;
border-radius: .2rem;
border: 0;
box-shadow: none
box-shadow: none;
white-space: pre-wrap;
}

/***** Icons *****/
Expand Down Expand Up @@ -3866,7 +3896,7 @@ code.syntaxhl { background-color: $color_syntax_back; color: $color_white; }
max-width: 100%;
}

.filecontent-container > .filecontent.wiki {
.filecontent.wiki {
position: relative;
padding: 1em;
border: 1px solid $color_gray_light_b;
Expand Down
6 changes: 3 additions & 3 deletions src/scss/Icons.scss
Expand Up @@ -283,7 +283,7 @@
@include icon($icon_updown, $color_green)
}

.icon-expended:before {
.icon-expanded:before {
@include icon($icon_chevron_down, $color_gray)
}

Expand Down Expand Up @@ -469,7 +469,7 @@
&.icon-shared,
&.icon_actions,
&.icon-sort-handle,
&.icon-expended,
&.icon-expanded,
&.icon-collapsed,
&.icon-bookmark,
&.icon-bookmark-off,
Expand Down Expand Up @@ -569,7 +569,7 @@
&.icon-shared,
&.icon-actions,
&.icon-sort-handle,
&.icon-expended,
&.icon-expanded,
&.icon-collapsed,
&.icon-bookmark,
&.icon-bookmark-off,
Expand Down
16 changes: 1 addition & 15 deletions src/scss/Responsive.scss
Expand Up @@ -79,9 +79,6 @@
position: relative;
overflow-x: hidden; // hide horizontal overflow
max-width: 100%;
}

#wrapper, #wrapper2 {
margin: 0;
}

Expand Down Expand Up @@ -679,7 +676,7 @@
content: '\00D7'; // close glyph
}

.flyout-is-active #wrapper2 {
.flyout-is-active #main {
// only relevant for devices with cursor when flyout it active, in order to show,
// that whole wrapper content is clickable and closes flyout menu
cursor: pointer;
Expand Down Expand Up @@ -933,17 +930,6 @@
padding-right: 5px;
}

#issue_tree .issue > td, #relations .issue > td, #issue_tree .issue .user {
text-overflow: ellipsis; // if text exceeds its space, add ...
overflow: hidden;
}

#issue_tree .issue > td.subject, #relations .issue > td.subject {
width: 100%; // let subject have one full width column
word-break: break-word; //break word if subject is too long
padding-right: 25px; // this is the spaces that .buttons uses next to subject
}

#issue_tree .issue > td:not(.subject), #relations .issue > td:not(.subject) {
width: 20%; // three columns for all cells that are not subject
}
Expand Down

0 comments on commit 39c8af5

Please sign in to comment.