aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/app/scripts/directives/graphs-v2/palette/palette.less
blob: 85657a43a52d49a26ec0a9c29b5caf5b32e6799f (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
85
86
87
88
89
90
91
92
.drag-icon-border{
  border: 7px solid red;
  border-radius: 500px;
  -webkit-border-radius: 500px;
  -moz-border-radius: 500px;
  width: 53px;
  height: 53px;
}

.drag-icon-circle{
  width: 60px;
  height: 60px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  position: relative;

}


@green-shadow: rgba(29, 154, 149, 0.3);
@red-shadow: rgba(218, 31, 61, 0.3);
.drag-icon-circle .sprite-resource-icons {
  position: absolute;
  top: 10px;
  left: 10px;
}

.drag-icon-circle.red {
  background: @red-shadow;
}

.drag-icon-circle.green {
  background: @green-shadow;
}


.node-substitute {
  display: none;
  position: absolute;
  z-index: 9999;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  text-align: center;

  span {
    display: inline-block;
    vertical-align: middle;
    height: 100%;
  }

  img {
    height: 40px;
    width: 40px;
    box-shadow: 0 0 0 10px @green-shadow;
    border-radius: 50%;

    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
  }
  &.red img {
    box-shadow: 0 0 0 10px @red-shadow;
  }
  &.bounce img {
    -moz-animation:bounceOut 0.3s linear;
    -webkit-animation:bounceOut 0.3s linear;
    animation:bounceOut 0.3s linear;
  }
}

@keyframes bounceOut {
  0%{ box-shadow: 0 0 0 10px @green-shadow; width: 40px; height: 40px; }
  60%{ box-shadow: 0 0 0 0px @green-shadow; width: 60px; height: 60px; }
  85%{ box-shadow: 0 0 0 0px @green-shadow; width: 75px; height: 75px; }
  100%{ box-shadow: 0 0 0 0px @green-shadow; width: 60px; height: 60px; }
}

@-moz-keyframes bounceOut {
  0%{ box-shadow: 0 0 0 10px @green-shadow; width: 40px; height: 40px; }
  60%{ box-shadow: 0 0 0 0px @green-shadow; width: 60px; height: 60px; }
  85%{ box-shadow: 0 0 0 0px @green-shadow; width: 75px; height: 75px; }
  100%{ box-shadow: 0 0 0 0px @green-shadow; width: 60px; height: 60px; }
}

@-webkit-keyframes bounceOut {
  0%{ box-shadow: 0 0 0 10px @green-shadow; width: 40px; height: 40px; }
  60%{ box-shadow: 0 0 0 0px @green-shadow; width: 60px; height: 60px; }
  85%{ box-shadow: 0 0 0 0px @green-shadow; width: 75px; height: 75px; }
  100%{ box-shadow: 0 0 0 0px @green-shadow; width: 60px; height: 60px; }
}