Skip to content

Commit 5b24583

Browse files
robashcompavel-blagodov
authored andcommitted
Chart-adder control - style revision
chart-adder widget reacts to height of preceding chart + other style improvements Change-Id: I83344416fa1de61e7760bb848b8457a2efdcf825 Reviewed-on: http://review.couchbase.org/106138 Reviewed-by: Pavel Blagodov <[email protected]> Tested-by: Pavel Blagodov <[email protected]>
1 parent 9935a23 commit 5b24583

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

priv/public/ui/app/css/cbui-components.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,3 +2334,35 @@ nav.nav-sidebar-hidden {
23342334
font-size: .8125rem!important;
23352335
text-align: center;
23362336
}
2337+
2338+
/* chart styles ------------------------------------------------------------- */
2339+
.chart-adder {
2340+
background-color: #f5f5f5;
2341+
border-radius: 5px;
2342+
font-family: FontAwesome;
2343+
color: #d1d1d1;
2344+
display: flex;
2345+
align-items: center;
2346+
justify-content: center;
2347+
font-size: 3rem;
2348+
cursor: pointer;
2349+
margin: 1rem;
2350+
}
2351+
.chart-adder:hover {
2352+
color: #a1a1a1;
2353+
}
2354+
.chart-adder:before {
2355+
content: "\f055";
2356+
}
2357+
.statistics-small + .chart-adder {
2358+
width: calc(25% - 2rem);
2359+
height: 180px;
2360+
}
2361+
.statistics-medium + .chart-adder {
2362+
width: calc(50% - 2rem);
2363+
height: 240px;
2364+
}
2365+
.statistics-large + .chart-adder {
2366+
width: calc(25% - 2rem);
2367+
height: 180px;
2368+
}

priv/public/ui/app/mn_admin/mn_statistics/mn_statistics.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@
9595
class="panel"
9696
rbac="rbac"
9797
config="config"></div>
98-
<div style="width:3rem;height:3rem;text-align:center;line-height:3rem;border:1px solid #000;cursor:pointer;"
98+
<div class="chart-adder"
9999
ng-click="statisticsNewCtl.openChartBuilderDialog(group)">
100-
+
101100
</div>
102101
</div>
103102
</div>

0 commit comments

Comments
 (0)