Skip to content

Commit

Permalink
visual tweaks: nicer shadows, improve datepickers layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mrliptontea committed Aug 9, 2015
1 parent 1253489 commit bc8bde7
Show file tree
Hide file tree
Showing 19 changed files with 87 additions and 24 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Latest (master):
* Use flexbox layout by default (can be changed by setting `$flexbox-layout` to `false`)
* Fixed animation issue when showing sidebar
* Slightly modified buttons' style
* Few visual tweaks: nicer shadows, improved datepickers layout

v1.6.0 (2015-06-10):

Expand Down
2 changes: 1 addition & 1 deletion plugins/redmine_backlogs/jquery/jquery-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/redmine_backlogs/jquery/jquery.multiselect.css

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

2 changes: 1 addition & 1 deletion plugins/redmine_backlogs/jquery/jquery.qtip.css

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

2 changes: 1 addition & 1 deletion plugins/redmine_backlogs/master_backlog.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/redmine_backlogs/taskboard.css

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

1 change: 1 addition & 0 deletions src/sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@

@import "mixins/issues";
@import "mixins/link-variant";
@import "mixins/shadows";
1 change: 1 addition & 0 deletions src/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ $panel-shadow: 0 1px 2px rgba(#000, .1),
//

$tooltip-bg: #fff !default;
$tooltip-border-width: 0 !default;
$tooltip-border: #ccc !default;
$tooltip-text: $gray-dark !default;
$tooltip-link: $link-color !default;
Expand Down
4 changes: 2 additions & 2 deletions src/sass/components/_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ p.subtitle {

&.ui-sortable-helper {
background: $body-bg;
box-shadow: $panel-shadow;
@include nice-shadow(4);
}
}

Expand Down Expand Up @@ -604,7 +604,7 @@ div#version-summary {
color: $highlight-text;
font-weight: $font-weight-bold;
text-align: center;
box-shadow: $panel-shadow;
@include nice-shadow(3);
opacity: .9;
z-index: 100;

Expand Down
4 changes: 2 additions & 2 deletions src/sass/components/_gantt.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@
left: 24px;
width: 270px;
padding: $padding-base-vertical;
border: 1px solid $tooltip-border;
border: $tooltip-border-width solid $tooltip-border;
background-color: $tooltip-bg;
color: $tooltip-text;
font-size: $font-size-small;
text-align: left;
box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
@include nice-shadow(3);
}

@if $sidebar-position == "left" {
Expand Down
7 changes: 7 additions & 0 deletions src/sass/components/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ $icon-danger-hover-color: darken($brand-danger, 10%);
* Context menu
*/
#context-menu {
> ul,
> ul > li > ul {
// scss-lint:disable ImportantRule
border: 0 none !important;
@include nice-shadow(2);
}

a {
@extend %fa-icon;

Expand Down
26 changes: 22 additions & 4 deletions src/sass/components/_jquery-ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@
text-decoration: none;
}

.ui-sortable-helper {
@include nice-shadow(4);
}


/**
* Menu (e.g. autocomplete)
Expand All @@ -137,7 +141,7 @@
.ui-menu {
padding: 3px;
border-radius: $panel-border-radius;
box-shadow: $panel-shadow;
@include nice-shadow(2);
}

.ui-menu-item {
Expand Down Expand Up @@ -167,7 +171,7 @@
&.ui-widget-content {
padding: 3px;
border: 0 none;
box-shadow: $panel-shadow;
@include nice-shadow(5);
}

.ui-dialog-content {
Expand Down Expand Up @@ -199,10 +203,12 @@ img.ui-datepicker-trigger {
}

.ui-datepicker {
padding: 3px;
box-shadow: $panel-shadow;
padding: .3em .6em .6em;
border: 0 none;
@include nice-shadow(3);

.ui-datepicker-header {
margin: 0 -.3em;
padding: .3em;
}

Expand Down Expand Up @@ -237,6 +243,7 @@ img.ui-datepicker-trigger {
}

.ui-datepicker-calendar {
margin: 0;
table-layout: fixed;

.ui-state-default {
Expand Down Expand Up @@ -285,4 +292,15 @@ img.ui-datepicker-trigger {
}
}
}

.ui-datepicker-buttonpane {
margin: .6em 0 0;
padding: .6em 0 0;
@include clearfix;

button {
margin: 0;
padding: $btn-padding-vertical $btn-padding-horizontal;
}
}
}
23 changes: 23 additions & 0 deletions src/sass/mixins/_shadows.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Some really nice looking shadows

@mixin nice-shadow($depth: 1) {
$shadow: none;
@if ($depth == 1) {
// $shadow: 0 3px 1px -2px rgba(#000, .14), 0 2px 2px 0 rgba(#000, .098), 0 1px 5px 0 rgba(#000, .082);
$shadow: 0 1px 3px rgba(#000, .12), 0 1px 2px rgba(#000, .24);
} @elseif ($depth == 2) {
// $shadow: 0 2px 4px -1px rgba(#000, .14), 0 4px 5px 0 rgba(#000, .098), 0 1px 10px 0 rgba(#000, .082)
$shadow: 0 3px 6px rgba(#000, .16), 0 3px 6px rgba(#000, .23);
} @elseif ($depth == 3) {
// $shadow: 0 3px 5px -1px rgba(#000, .14), 0 6px 10px 0 rgba(#000, .098), 0 1px 18px 0 rgba(#000, .082)
$shadow: 0 10px 18px rgba(#000, .19), 0 6px 8px rgba(#000, .23);
} @elseif ($depth == 4) {
// $shadow: 0 5px 5px -3px rgba(#000, .14), 0 8px 10px 1px rgba(#000, .098), 0 3px 14px 2px rgba(#000, .082)
$shadow: 0 14px 28px rgba(#000, .25), 0 10px 10px rgba(#000, .22);
} @elseif ($depth == 5) {
// $shadow: 0 8px 10px -5px rgba(#000, .14), 0 16px 24px 2px rgba(#000, .098), 0 6px 30px 5px rgba(#000, .082)
$shadow: 0 19px 38px rgba(#000, .30), 0 15px 12px rgba(#000, .22);
}

box-shadow: $shadow;
}
Loading

0 comments on commit bc8bde7

Please sign in to comment.