div.cssWidgetContainer {
  position: absolute;
  z-index: 20;
  display: inline-block;
  &.jsMouseActive {
  }
  &.jsSettingsActive {
    z-index:30 !important;
    div.cssWidgetContent {
      opacity:1 !important;
    }
  }
  div.cssWidgetContent {
    float: left;
    width: 100%;
    height: 100%;
    div.cssWidgetMask {
      display: block;
      float: left;
      position: absolute;
      z-index: 30;
      width: 100%;
      height: 100%;
      background-color: transparent;
    }
    div.ros-widget {
      width: 100%;
      height: 100%;
    }
  }
  div.cssWidgetConfiguration {
    display: block;
    position: absolute;
    z-index: 40;
    bottom: 0;
    width: 100%;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    a, span {
      float: left;
      margin: 4px;
      $squareSize: 24px;
      width: $squareSize;
      height: $squareSize;
      background-repeat: no-repeat;
      background-position: 0px;
      &.shadow {
        filter: drop-shadow(1px 1px 1px #333);
        -webkit-filter: drop-shadow(1px 1px 1px #333);
        &:hover {
          background-position: -1px -1px;
          filter: drop-shadow(2px 2px 1px #333);
          -webkit-filter: drop-shadow(2px 2px 1px #333);
        }
        &:active {
          background-position: 1px 1px;
          filter: drop-shadow(1px 1px 1px #333);
          -webkit-filter: drop-shadow(1px 1px 1px #333);
        }
      }
      &.cssWidgetConfirm {
        background-image: url(img/confirm.png);
      }
      &.cssWidgetDelete {
        background-image: url(img/delete.png);
      }
      &.cssWidgetSettings {
        background-image: url(img/settings.png);
      }
      &.cssWidgetResize {
        float: right;
        margin: 8px 0 0 8px;
        width: $squareSize;
        height: $squareSize;
        background-image: url(img/resize.png);
        cursor: se-resize;
      }
    }
  }
  &[data-widget-conf="0"] {
    div.cssWidgetContent {
      div.cssWidgetMask {
        display: none;
      }
    }
    div.cssWidgetConfiguration {
      display: none;
    }
  }
  &[data-widget-conf="1"] {
    border: 1px solid #999;
    border-style: dashed;
    box-shadow: 2px 2px 3px 1px rgba(0, 0, 0, 0.7);
    cursor: -webkit-grab;
    cursor: grab;
    &:active {
      cursor: -webkit-grabbing;
      cursor: grabbing;
    }
    div.cssWidgetContent {
      opacity: 0.5;
    }
  }
}