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,9 +14,8 @@
} }
} }
} }
}
#main #admin-index > #admin-menu { #admin-index > & {
ul { ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
@@ -32,6 +31,7 @@
background-position: 0 center; background-position: 0 center;
} }
} }
}
//== Groups //== Groups

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,6 +81,7 @@
} }
ul { ul {
&:nth-child(n) {
margin: 0 0 ($line-height-computed / 2); margin: 0 0 ($line-height-computed / 2);
padding: 0; padding: 0;
@@ -76,7 +90,9 @@
} @else { } @else {
margin-left: -($sidebar-padding-horizontal); margin-left: -($sidebar-padding-horizontal);
} }
}
&:not(.watchers) {
li { li {
margin: 0; margin: 0;
padding: 0; padding: 0;
@@ -123,16 +139,15 @@
} }
} }
#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