Compare commits

...

3 Commits
v2.0 ... v2.0.1

Author SHA1 Message Date
Grzegorz Rajchman
d429f35dfc Merge pull request #91 from mrliptontea/issue-90-misaligned-delete-icon-in-watchers-list
Resolve regression in sidebar layouts
2019-03-18 22:20:05 +00:00
mrliptontea
8dab6dc92b Remove reduntant abbr style 2019-03-18 22:13:37 +00:00
mrliptontea
25ba736e7d Resolve regression in sidebar layouts
Fixes #90
2019-03-17 22:40:26 +00:00
6 changed files with 94 additions and 74 deletions

View File

@@ -56,6 +56,11 @@ If you need to customize styles for [Redmine Backlogs][redmine_backlogs] remembe
## Changelog ## Changelog
v2.0.1 (2019-03-17):
* Fixed #90: regression in some sidebar layouts
* Removed reduntant `abbr[title]` styles
v2.0 (2019-03-13): v2.0 (2019-03-13):
* Refreshed, modernized look & feel * Refreshed, modernized look & feel

View File

@@ -2,8 +2,8 @@
// Admin // Admin
// -------------------------------------------------- // --------------------------------------------------
#main #admin-menu { #admin-menu {
ul { ul:nth-child(n) {
li { li {
list-style-type: none; list-style-type: none;
@@ -14,22 +14,22 @@
} }
} }
} }
}
#main #admin-index > #admin-menu { #admin-index > & {
ul { ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
li { li {
padding: ($sidebar-padding-vertical + 1px) ($sidebar-padding-horizontal + 3px); padding: ($sidebar-padding-vertical + 1px) ($sidebar-padding-horizontal + 3px);
} }
a { a {
display: inline-block; display: inline-block;
padding-left: 5px + 20px; padding-left: 5px + 20px;
background-position: 0 center; background-position: 0 center;
}
} }
} }

View File

@@ -149,11 +149,6 @@ hr {
border-top: 1px solid $hr-border; border-top: 1px solid $hr-border;
} }
abbr[title] {
border-bottom: 1px dotted $abbr-border-color;
cursor: help;
}
blockquote { blockquote {
margin: 0 0 $line-height-computed; margin: 0 0 $line-height-computed;
padding: floor($line-height-computed / 4) $padding-large-horizontal; padding: floor($line-height-computed / 4) $padding-large-horizontal;

View File

@@ -28,7 +28,7 @@
// Sidebar // Sidebar
// -------------------------------------------------- // --------------------------------------------------
#main #sidebar { #sidebar {
padding: $padding-side $sidebar-padding-horizontal; padding: $padding-side $sidebar-padding-horizontal;
@if $flexbox-layout { @if $flexbox-layout {
@@ -58,6 +58,19 @@
} }
} }
.nosidebar & {
margin: 0;
padding: 0;
border: 0 none;
@if $flexbox-layout {
flex: 0 0 auto;
} @else {
width: 0;
float: none;
}
}
h3 { h3 {
margin-top: $line-height-computed * 1.5; margin-top: $line-height-computed * 1.5;
} }
@@ -68,71 +81,73 @@
} }
ul { ul {
margin: 0 0 ($line-height-computed / 2); &:nth-child(n) {
padding: 0; margin: 0 0 ($line-height-computed / 2);
padding: 0;
@if $sidebar-position == "left" { @if $sidebar-position == "left" {
margin-right: -($sidebar-padding-horizontal); margin-right: -($sidebar-padding-horizontal);
} @else { } @else {
margin-left: -($sidebar-padding-horizontal); margin-left: -($sidebar-padding-horizontal);
}
} }
li { &:not(.watchers) {
margin: 0; li {
padding: 0; margin: 0;
list-style-type: none; padding: 0;
list-style-type: none;
> a:not(.icon-only) { > a:not(.icon-only) {
display: block; display: block;
padding: $sidebar-padding-vertical $sidebar-padding-horizontal; padding: $sidebar-padding-vertical $sidebar-padding-horizontal;
border: 1px solid transparent; border: 1px solid transparent;
@if $sidebar-position == "left" {
border-left-width: 3px;
border-radius: $border-radius-large 0 0 $border-radius-large;
} @else {
border-right-width: 3px;
border-radius: 0 $border-radius-large $border-radius-large 0;
}
&:hover {
background-color: $sidebar-link-hover-bg;
color: $sidebar-link-hover-text;
text-decoration: none;
}
&.selected {
border-color: $sidebar-link-active-border;
background-color: $sidebar-link-active-bg;
color: $sidebar-link-active-text;
@if $sidebar-position == "left" { @if $sidebar-position == "left" {
margin-right: -1px; border-left-width: 3px;
border-right-color: $body-bg; border-radius: $border-radius-large 0 0 $border-radius-large;
border-left-color: $sidebar-link-active-side;
box-shadow: -3px 1px 2px rgba(0, 0, 0, .1);
} @else { } @else {
margin-left: -1px; border-right-width: 3px;
border-right-color: $sidebar-link-active-side; border-radius: 0 $border-radius-large $border-radius-large 0;
border-left-color: $body-bg; }
box-shadow: 3px 1px 2px rgba(0, 0, 0, .1);
&:hover {
background-color: $sidebar-link-hover-bg;
color: $sidebar-link-hover-text;
text-decoration: none;
}
&.selected {
border-color: $sidebar-link-active-border;
background-color: $sidebar-link-active-bg;
color: $sidebar-link-active-text;
@if $sidebar-position == "left" {
margin-right: -1px;
border-right-color: $body-bg;
border-left-color: $sidebar-link-active-side;
box-shadow: -3px 1px 2px rgba(0, 0, 0, .1);
} @else {
margin-left: -1px;
border-right-color: $sidebar-link-active-side;
border-left-color: $body-bg;
box-shadow: 3px 1px 2px rgba(0, 0, 0, .1);
}
} }
} }
} }
} }
} }
}
#main.nosidebar #sidebar { // Special treatment for anchor tags directly under sidebar tag
margin: 0; > a {
padding: 0; padding: $sidebar-padding-vertical $sidebar-padding-horizontal;
border: 0 none;
@if $flexbox-layout { @if $sidebar-position == "left" {
flex: 0 0 auto; padding-left: $sidebar-padding-horizontal + 3px;
} @else { } @else {
width: 0; padding-right: $sidebar-padding-horizontal + 3px;
float: none; }
} }
} }

View File

@@ -201,10 +201,15 @@ a.collapsible.collapsed,
background: transparent; background: transparent;
} }
> .icon-only {
&::before {
line-height: inherit;
}
}
> .delete { > .delete {
float: right; float: right;
opacity: $icon-opacity; opacity: $icon-opacity;
vertical-align: middle;
&:hover { &:hover {
opacity: $icon-hover-opacity; opacity: $icon-hover-opacity;

File diff suppressed because one or more lines are too long