2

I using jquery datepicker inline.

I need to change .ui-widget-header class

Now it like this

<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all"></div>

And ui-widget-header has this style

ui-widget-header {
  border: 1px solid #dddddd/*{borderColorHeader}*/;
  background: #e9e9e9/*{bgColorHeader}*/ /*{bgImgUrlHeader}*/ /*{bgHeaderXPos}*/ /*{bgHeaderYPos}*/ /*{bgHeaderRepeat}*/;
  color: #333333/*{fcHeader}*/;
  font-weight: bold;
}

I tried to change it in my scss

    .ui-datepicker-inline{
    background: #fff;
  .ui-datepicker-header{
    background: #fff;
    .ui-widget-header{
        border-bottom: 1px solid #efefef;
    }
  }
}

But border is still not only at bottom.

Where is my problem?

GreyRoofPigeon
  • 17,833
  • 4
  • 36
  • 59
Balance
  • 551
  • 2
  • 10
  • 23

1 Answers1

0

You probably want to set the border-color property:

.ui-datepicker-header.ui-widget-header{
    border-color: transparent transparent #efefef;
}

Alternatively, it's possible that you could also set the border-width property, but that might shift the layout somewhat:

.ui-datepicker-header.ui-widget-header{
    border-width: 0 0 1px;
}

In pure CSS it would look like this:

.ui-widget-header {
  border: 1px solid #dddddd;
  background: #e9e9e9;
  color: #333333;
  font-weight: bold;
}

.ui-datepicker-header.ui-widget-header {
    background: #fff;
    border-color: transparent transparent #efefef;
}
<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all"></div>
Robby Cornelissen
  • 91,784
  • 22
  • 134
  • 156