|
1 | 1 | ::ng-deep { |
2 | | - .container.plumX.alert.metric-container, |
3 | | - .container.altmetric.alert.metric-container, |
4 | | - .container.dimensions.alert.metric-container { |
5 | | - // .plumX & .altmetric & dimensions-> metricType dimensions |
6 | | - display: contents; |
7 | | - } |
| 2 | + .metric-container.alert { |
8 | 3 |
|
9 | | - .container.alert.metric-container { |
10 | 4 | max-height: inherit; |
11 | 5 | min-height: 7.1em; |
12 | 6 | height: 100%; |
13 | 7 |
|
| 8 | + margin: 0; |
| 9 | + |
| 10 | + width: 250px; |
| 11 | + |
14 | 12 | .btn-overlap-container { |
15 | 13 | display: none !important; |
16 | 14 | z-index: 1; |
|
20 | 18 | color: inherit; |
21 | 19 | text-decoration: auto; |
22 | 20 | } |
23 | | - } |
24 | 21 |
|
25 | | - .container.alert.metric-container:hover { |
| 22 | + &:hover { |
26 | 23 | opacity: 0.7; |
27 | 24 |
|
28 | | - .btn-overlap-container { |
29 | | - margin-top: 0.5em; |
30 | | - display: inline-flex !important; |
31 | | - z-index: 3; |
32 | | - position: absolute; |
33 | | - top: 50%; |
34 | | - left: 50%; |
35 | | - transform: translate(-50%, -50%); |
36 | | - color: white; |
37 | | - -webkit-box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%), |
| 25 | + .btn-overlap-container { |
| 26 | + margin-top: 0.5em; |
| 27 | + display: inline-flex !important; |
| 28 | + z-index: 3; |
| 29 | + position: absolute; |
| 30 | + top: 50%; |
| 31 | + left: 50%; |
| 32 | + transform: translate(-50%, -50%); |
| 33 | + color: white; |
| 34 | + -webkit-box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%), |
38 | 35 | 0 1px 1px rgb(0 0 0 / 8%); |
39 | | - box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%), |
| 36 | + box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%), |
40 | 37 | 0 1px 1px rgb(0 0 0 / 8%); |
| 38 | + } |
41 | 39 | } |
42 | | - } |
43 | 40 |
|
44 | | - .alert.metric-container.alert-info { |
45 | | - .btn-overlap-container { |
46 | | - background-color: #113d4f; |
47 | | - border-color: #113d4f; |
| 41 | + .plumX, .altmetric, .dimensions { |
| 42 | + // .plumX & .altmetric & dimensions-> metricType dimensions |
| 43 | + display: contents; |
48 | 44 | } |
49 | | - } |
50 | 45 |
|
51 | | - .alert.metric-container.alert-success { |
52 | | - .btn-overlap-container { |
53 | | - background-color: #4c6722; |
54 | | - border-color: #4c6722; |
| 46 | + &.alert-info { |
| 47 | + .btn-overlap-container { |
| 48 | + background-color: #113d4f; |
| 49 | + border-color: #113d4f; |
| 50 | + } |
55 | 51 | } |
56 | | - } |
57 | 52 |
|
58 | | - .alert.metric-container.alert-danger { |
59 | | - .btn-overlap-container { |
60 | | - background-color: #6c2323; |
61 | | - border-color: #6c2323; |
| 53 | + &.alert-success { |
| 54 | + .btn-overlap-container { |
| 55 | + background-color: #4c6722; |
| 56 | + border-color: #4c6722; |
| 57 | + } |
62 | 58 | } |
63 | | - } |
64 | 59 |
|
65 | | - .alert.metric-container.alert-primary { |
66 | | - .btn-overlap-container { |
67 | | - background-color: #004085; |
68 | | - border-color: #004085; |
| 60 | + &.alert-danger { |
| 61 | + .btn-overlap-container { |
| 62 | + background-color: #6c2323; |
| 63 | + border-color: #6c2323; |
| 64 | + } |
69 | 65 | } |
70 | | - } |
71 | 66 |
|
72 | | - .alert.metric-container.alert-secondary { |
73 | | - .btn-overlap-container { |
74 | | - background-color: #383d41; |
75 | | - border-color: #383d41; |
| 67 | + &.alert-primary { |
| 68 | + .btn-overlap-container { |
| 69 | + background-color: #004085; |
| 70 | + border-color: #004085; |
| 71 | + } |
76 | 72 | } |
77 | | - } |
78 | 73 |
|
79 | | - .alert.metric-container.alert-warning { |
80 | | - .btn-overlap-container { |
81 | | - background-color: #7b4d1b; |
82 | | - border-color: #7b4d1b; |
| 74 | + &.alert-secondary { |
| 75 | + .btn-overlap-container { |
| 76 | + background-color: #383d41; |
| 77 | + border-color: #383d41; |
| 78 | + } |
83 | 79 | } |
84 | | - } |
85 | 80 |
|
86 | | - .alert.metric-container.alert-dark { |
87 | | - .btn-overlap-container { |
88 | | - background-color: #1b1e21; |
89 | | - border-color: #1b1e21; |
| 81 | + &.alert-warning { |
| 82 | + .btn-overlap-container { |
| 83 | + background-color: #7b4d1b; |
| 84 | + border-color: #7b4d1b; |
| 85 | + } |
90 | 86 | } |
91 | | - } |
92 | 87 |
|
93 | | - .alert.metric-container.alert-light { |
94 | | - .btn-overlap-container { |
95 | | - background-color: #818182; |
96 | | - border-color: #818182; |
97 | | - color: black !important; |
| 88 | + &.alert-dark { |
| 89 | + .btn-overlap-container { |
| 90 | + background-color: #1b1e21; |
| 91 | + border-color: #1b1e21; |
| 92 | + } |
98 | 93 | } |
| 94 | + |
| 95 | + &.alert-light { |
| 96 | + .btn-overlap-container { |
| 97 | + background-color: #818182; |
| 98 | + border-color: #818182; |
| 99 | + color: black !important; |
| 100 | + } |
| 101 | + } |
| 102 | + |
99 | 103 | } |
100 | 104 | } |
0 commit comments