From 88cefd185b1d058674136afebb78114918ddf46a Mon Sep 17 00:00:00 2001 From: Vadim Costin Date: Thu, 26 Mar 2015 15:09:48 +0200 Subject: [PATCH] remove placeholders set parameters inline, remove set-round-corners mixin --- .../stylesheets/content/_datepicker.sass | 28 ++++++------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/app/assets/stylesheets/content/_datepicker.sass b/app/assets/stylesheets/content/_datepicker.sass index bd0c82e0ac..b94899c038 100644 --- a/app/assets/stylesheets/content/_datepicker.sass +++ b/app/assets/stylesheets/content/_datepicker.sass @@ -58,39 +58,29 @@ $dp-table-width: 100% $dp-month-year-width: 40% $dp-month-year-margin: 0 4.5% -%noselect - @include user-select(none) - -%shadow-box - $shadow-box-shadow: 1px 1px 5px 0px rgba(204,204,204,1) - box-shadow: $shadow-box-shadow - -%shadow-box-none - box-shadow: none +$dp-shadow-box: 1px 1px 5px 0 +$dp-shadow-box-opacity: 1 @mixin set-table-cells-width($table-width, $columns-number) width: $table-width/$columns-number table-layout: fixed -@mixin set-round-corners($radius) - border-radius: $radius - .ui-datepicker border: $dp-border padding: 0 background-color: $dp-theme-lines-color2 - @extend %shadow-box + box-shadow: $dp-shadow-box rgba($dp-theme-color, $dp-shadow-box-opacity) &.ui-datepicker-inline - @extend %shadow-box-none + box-shadow: none &.ui-corner-all - @include set-round-corners($dp-round-corners-radius) + border-radius: $dp-round-corners-radius //[class^="ui-corner"] this selector is not working... //a list is used $corner-types: tl tr lf br top bottom right left all @each $corner-type in $corner-types .ui-corner-#{$corner-type} - @include set-round-corners($dp-round-corners-radius) + border-radius: $dp-round-corners-radius .ui-datepicker-header padding: $dp-header-padding @@ -99,11 +89,11 @@ $dp-month-year-margin: 0 4.5% .ui-icon.ui-icon-circle-triangle-w background-position: -96px -16px - @extend %noselect + @include user-select(none) .ui-icon.ui-icon-circle-triangle-e background-position: -32px -16px - @extend %noselect + @include user-select(none) .ui-state-hover border-width: 0 !important @@ -163,7 +153,7 @@ $dp-month-year-margin: 0 4.5% &:hover margin: $dp-day-margin-hover border: $dp-border - @include set-round-corners($dp-cell-corner-radius) + border-radius: $dp-cell-corner-radius .ui-datepicker-week-col color: $dp-week-text-color