Skip to content

Commit 4e56efb

Browse files
committed
Replace Less variables with base pf Less variables
1 parent 2de6d47 commit 4e56efb

File tree

6 files changed

+36
-44
lines changed

6 files changed

+36
-44
lines changed

src/charts/charts.less

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ pf-c3-chart {
88
}
99
span {
1010
vertical-align: middle;
11-
width: @width6;
11+
width: @width100;
1212
}
1313
}
1414
.utilization-trend-chart-pf {
1515
.donut-chart-pf {
1616
float: left;
1717
padding-top: 15px;
18-
width: @width6;
18+
width: @width100;
1919
}
2020
h3 {
2121
font-weight: 400;
2222
}
2323
.current-values {
24-
border-bottom: 1px solid @color2;
24+
border-bottom: 1px solid @color-pf-black-300;
2525
float: left;
2626
padding: 0 5px 10px 0;
27-
width: @width6;
27+
width: @width100;
2828
}
2929
.available-count {
3030
margin: 3px 0;
@@ -41,13 +41,13 @@ pf-c3-chart {
4141
.radial-chart {
4242
float: left;
4343
padding-top: 10px;
44-
width: @width6;
44+
width: @width100;
4545
}
4646
.sparkline-chart {
4747
float: left;
4848
margin-left: -5px;
4949
margin-right: -5px;
50-
width: @width6;
50+
width: @width100;
5151
}
5252
.legend-text {
5353
color: inherit;
@@ -155,8 +155,8 @@ pf-c3-chart {
155155
}
156156
}
157157
.heatmap-pf-svg {
158-
height: @height2;
159-
width: @width6;
158+
height: @height100;
159+
width: @width100;
160160
}
161161
.heatmap-pf-legend-container {
162162
list-style-type: none;

src/filters/filters.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
}
1212
.filter-select {
1313
.btn-default {
14-
background-color: @color0;
14+
background-color: @color-pf-white;
1515
background-image: none;
16-
color: @color1;
16+
color: @color-pf-black-500;
1717
font-size: 12px;
1818
font-style: italic;
1919
font-weight: 400;
@@ -22,9 +22,9 @@
2222
.input-group {
2323
.input-group-btn {
2424
.dropdown-menu>.selected>a {
25-
background-color: @color5 !important;
25+
background-color: @color-pf-blue !important;
2626
border-color: #0076b7 !important;
27-
color: @color0 !important;
27+
color: @color-pf-white !important;
2828
}
2929
}
3030
}

src/sort/sort.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
margin-left: 10px;
77
padding: 4px 0;
88
&:hover {
9-
color: @color5;
9+
color: @color-pf-blue;
1010
}
1111
}
1212
}

src/views/views.less

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
padding-top: 20px;
55
.card {
66
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .175);
7-
background: @color0;
7+
background: @color-pf-white;
88
border-top: 2px solid transparent;
99
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.175);
1010
display: block;
@@ -27,7 +27,7 @@
2727
&:hover {
2828
-moz-box-shadow: 0px 3px 10px -2px rgba(0,0,0,0.24);
2929
-webkit-box-shadow: 0px 3px 10px -2px rgba(0,0,0,0.24);
30-
border: 1px solid @color2;
30+
border: 1px solid @color-pf-black-300;
3131
box-shadow: 0px 3px 10px -2px rgba(0,0,0,0.24);
3232
.card-check-box {
3333
visibility: visible;
@@ -36,15 +36,15 @@
3636
&:focus {
3737
-moz-box-shadow: 0px 3px 10px -2px rgba(0,0,0,0.24);
3838
-webkit-box-shadow: 0px 3px 10px -2px rgba(0,0,0,0.24);
39-
border: 1px solid @color2;
39+
border: 1px solid @color-pf-black-300;
4040
box-shadow: 0px 3px 10px -2px rgba(0,0,0,0.24);
4141
}
4242
}
4343
.card-content {
44-
height: @height2;
44+
height: @height100;
4545
margin: 2px 0 10px 0;
4646
overflow: auto;
47-
width: @width6;
47+
width: @width100;
4848
}
4949
.card-title {
5050
color: #1186C1;
@@ -54,21 +54,21 @@
5454
margin-top: 0px;
5555
}
5656
.card.active {
57-
border: solid 3px @color4;
57+
border: solid 3px @color-pf-blue-300;
5858
&:hover {
59-
border: solid 3px @color4;
59+
border: solid 3px @color-pf-blue-300;
6060
.pficon {
61-
color: @color0;
61+
color: @color-pf-white;
6262
}
6363
}
6464
&:focus {
65-
border: solid 3px @color4;
65+
border: solid 3px @color-pf-blue-300;
6666
.pficon {
67-
color: @color0;
67+
color: @color-pf-white;
6868
}
6969
}
7070
.pficon {
71-
color: @color0;
71+
color: @color-pf-white;
7272
}
7373
.card-check-box {
7474
visibility: visible;
@@ -77,33 +77,33 @@
7777
.card.disabled {
7878
-moz-box-shadow: none;
7979
-webkit-box-shadow: none;
80-
border: 1px solid @color3;
80+
border: 1px solid @color-pf-black-200;
8181
box-shadow: none;
82-
color: @color1;
82+
color: @color-pf-black-500;
8383
cursor: not-allowed;
8484
}
8585
}
8686
.card.disabled {
8787
&:hover {
8888
-moz-box-shadow: none;
8989
-webkit-box-shadow: none;
90-
border: 1px solid @color3;
90+
border: 1px solid @color-pf-black-200;
9191
box-shadow: none;
92-
color: @color1;
92+
color: @color-pf-black-500;
9393
cursor: not-allowed;
9494
}
9595
&:focus {
9696
-moz-box-shadow: none;
9797
-webkit-box-shadow: none;
98-
border: 1px solid @color3;
98+
border: 1px solid @color-pf-black-200;
9999
box-shadow: none;
100-
color: @color1;
100+
color: @color-pf-black-500;
101101
cursor: not-allowed;
102102
}
103103
}
104104
/* overriding pf base so that blank slate fills entire parent container */
105105
.blank-slate-pf {
106-
height:@height2;
106+
height:@height100;
107107
margin-bottom: 0px;
108108
button {
109109
margin-right: 4px;

styles/angular-patternfly.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@import "../node_modules/patternfly/dist/less/color-variables.less";
12
@import "variables.less";
23
@import "misc.less";
34
@import "../src/card/card.less";

styles/variables.less

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
// Color variables (appears count calculates by raw css)
2-
@color0: #ffffff; // Appears 6 times
3-
@color1: #999999; // Appears 4 times
4-
@color2: #d1d1d1; // Appears 3 times
5-
@color3: #eeeeee; // Appears 3 times
6-
@color4: #00a8e1; // Appears 3 times
7-
@color5: #0099d3; // Appears 2 times
8-
9-
// Width variables (appears count calculates by raw css)
10-
@width6: 100%; // Appears 7 times
11-
12-
// Height variables (appears count calculates by raw css)
13-
@height2: 100%; // Appears 3 times
1+
@width100: 100%;
2+
@width0: 0;
3+
@height100: 100%;
4+
@height0: 0;

0 commit comments

Comments
 (0)