summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.less
blob: 37461ba1c5c9681e57b3a2b1557285fa8173be60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
@import "./../../../../../assets/styles/override";

:host(composition-palette) {
  display:flex;
  flex: 0 0 244px;
}

sdc-loader.inactive {
  display:none;
}

:host ::ng-deep .sdc-filter-bar .sdc-input {
  margin-bottom:0px;
}
:host ::ng-deep .sdc-loader-wrapper {
  position:static; 
}

.composition-palette-component {
  background-color: @sdcui_color_white;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position:relative;
  width: 244px;
  box-shadow: 7px -3px 6px -8px @sdcui_color_gray;

  .palette-elements-count {
    background-color: @sdcui_color_gray;
    line-height: 40px;
    padding: 0 17px;
    color: @sdcui_color_white;
    .palette-elements-count-value {
      float: right;
    }
  }

  .palette-elements-list {

    .no-elements-found {
      padding-left: 40px;
    }
    /deep/ .palette-category {
      display: flex;
      margin: 0px;
      .sdc-accordion-header {
        background-color: @sdcui_color_silver;
        margin: 0px;
        line-height: 40px;
        padding: 0px 10px;
      }
      .sdc-accordion-body {
        padding: 0px;
      }
    }
    .palette-subcategory {
      padding: 0 10px;
      background-color: @sdcui_color_lighter-silver;
      line-height: 35px;
    }
  }
}

#draggable_element {
  display: inline-block;
  border-radius: 50%;
  background: transparent;
  position: absolute;
  top: -9999px;
  left: 0;
  z-index: 100;
}

.invalid-drag {
  border: 7px solid @red-shadow;
}

.valid-drag {
  border: 7px solid @green-shadow;
}

@green-shadow: rgba(29, 154, 149, 0.3);
@red-shadow: rgba(218, 31, 61, 0.3);