patternfly-sass 2.9.0 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -1
  3. data/Rakefile +17 -11
  4. data/assets/fonts/patternfly/PatternFlyIcons-webfont.eot +0 -0
  5. data/assets/fonts/patternfly/PatternFlyIcons-webfont.svg +17 -2
  6. data/assets/fonts/patternfly/PatternFlyIcons-webfont.ttf +0 -0
  7. data/assets/fonts/patternfly/PatternFlyIcons-webfont.woff +0 -0
  8. data/assets/images/patternfly/apple-touch-icon-precomposed-114.png +0 -0
  9. data/assets/images/patternfly/apple-touch-icon-precomposed-144.png +0 -0
  10. data/assets/images/patternfly/apple-touch-icon-precomposed-152.png +0 -0
  11. data/assets/images/patternfly/apple-touch-icon-precomposed-180.png +0 -0
  12. data/assets/images/patternfly/apple-touch-icon-precomposed-57.png +0 -0
  13. data/assets/images/patternfly/apple-touch-icon-precomposed-72.png +0 -0
  14. data/assets/images/patternfly/apple-touch-icon-precomposed-76.png +0 -0
  15. data/assets/images/patternfly/bg-navbar-pf-alt.svg +9 -0
  16. data/assets/images/patternfly/brand-alt.svg +88 -0
  17. data/assets/images/patternfly/favicon.ico +0 -0
  18. data/assets/images/patternfly/logo-alt.svg +18 -0
  19. data/assets/images/patternfly/logo.svg +22 -22
  20. data/assets/images/patternfly/spinner-inverse-lg.gif +0 -0
  21. data/assets/images/patternfly/spinner-inverse-sm.gif +0 -0
  22. data/assets/images/patternfly/spinner-inverse-xs.gif +0 -0
  23. data/assets/images/patternfly/spinner-inverse.gif +0 -0
  24. data/assets/javascripts/patternfly.js +70 -0
  25. data/assets/javascripts/patternfly.min.js +1 -1
  26. data/assets/stylesheets/_patternfly.scss +9 -30
  27. data/assets/stylesheets/patternfly/_dropdowns.scss +62 -0
  28. data/assets/stylesheets/patternfly/_icons.scss +45 -0
  29. data/assets/stylesheets/patternfly/_list-group.scss +1 -1
  30. data/assets/stylesheets/patternfly/_list-view.scss +230 -0
  31. data/assets/stylesheets/patternfly/_mixins.scss +6 -4
  32. data/assets/stylesheets/patternfly/_toast.scss +2 -40
  33. data/assets/stylesheets/patternfly/_variables.scss +23 -4
  34. data/assets/stylesheets/patternfly/{_ext-bootstrap-switch.scss → sass-contrib/bootstrap-switch.scss} +0 -0
  35. data/bower.json +1 -1
  36. data/lib/patternfly-sass/version.rb +2 -2
  37. data/package.json +1 -1
  38. data/patternfly-sass.gemspec +1 -0
  39. data/spec/html/accordions.html +161 -34
  40. data/spec/html/charts.html +41 -0
  41. data/spec/html/dist/css/patternfly-additions.css +300 -38
  42. data/spec/html/dist/css/patternfly-additions.css.map +1 -1
  43. data/spec/html/dist/css/patternfly-additions.min.css +1 -1
  44. data/spec/html/dist/css/patternfly-additions.min.css.map +1 -1
  45. data/spec/html/dist/css/patternfly.css +59 -1
  46. data/spec/html/dist/css/patternfly.css.map +1 -1
  47. data/spec/html/dist/css/patternfly.min.css +1 -1
  48. data/spec/html/dist/css/patternfly.min.css.map +1 -1
  49. data/spec/html/dropdowns.html +50 -0
  50. data/spec/html/icons.html +80 -0
  51. data/spec/html/index.html +3 -0
  52. data/spec/html/list-view.html +546 -0
  53. data/spec/html/toast.html +12 -20
  54. data/spec/html/toolbar.html +12 -10
  55. data/tasks/converter.rb +253 -399
  56. metadata +35 -18
  57. data/assets/images/patternfly/apple-touch-icon-114-precomposed.png +0 -0
  58. data/assets/images/patternfly/apple-touch-icon-144-precomposed.png +0 -0
  59. data/assets/images/patternfly/apple-touch-icon-57-precomposed.png +0 -0
  60. data/assets/images/patternfly/apple-touch-icon-72-precomposed.png +0 -0
  61. data/assets/images/patternfly/brand-lg.png +0 -0
  62. data/assets/images/patternfly/brand.png +0 -0
  63. data/assets/images/patternfly/logo.png +0 -0
  64. data/spec/html/dist/css/styles-additions.css +0 -1
  65. data/spec/html/dist/css/styles-additions.min.css +0 -1
  66. data/spec/html/dist/css/styles.css +0 -1
  67. data/spec/html/dist/css/styles.min.css +0 -1
@@ -146,3 +146,65 @@
146
146
  display: block;
147
147
  }
148
148
  }
149
+
150
+ // Kebab dropmenu
151
+ .dropdown-kebab-pf {
152
+ .btn-link {
153
+ color: $gray-darker;
154
+ font-size: ($font-size-base + 4);
155
+ line-height: 1;
156
+ padding: 4px 0;
157
+ &:active,
158
+ &:focus,
159
+ &:hover {
160
+ color: $link-color;
161
+ }
162
+ }
163
+ .dropdown-menu {
164
+ left: -15px;
165
+ margin-top: 11px;
166
+ &.dropdown-menu-right {
167
+ left: auto;
168
+ right: -15px;
169
+ &:after,
170
+ &:before {
171
+ left: auto;
172
+ right: 6px;
173
+ }
174
+ }
175
+ &:after,
176
+ &:before {
177
+ border-bottom-color: $dropdown-border;
178
+ border-bottom-style: solid;
179
+ border-bottom-width: 10px;
180
+ border-left: 10px solid transparent;
181
+ border-right: 10px solid transparent;
182
+ content: "";
183
+ display: inline-block;
184
+ left: 6px;
185
+ position: absolute;
186
+ top: -11px;
187
+ }
188
+ &:after {
189
+ border-bottom-color: $dropdown-bg;
190
+ top: -10px;
191
+ }
192
+ }
193
+ &.dropup .dropdown-menu {
194
+ margin-bottom: 11px;
195
+ margin-top: 0;
196
+ &:after,
197
+ &:before {
198
+ border-bottom: none;
199
+ border-top-color: $dropdown-border;
200
+ border-top-style: solid;
201
+ border-top-width: 10px;
202
+ bottom: -11px;
203
+ top: auto;
204
+ }
205
+ &:after {
206
+ border-top-color: $dropdown-bg;
207
+ bottom: -10px;
208
+ }
209
+ }
210
+ }
@@ -41,18 +41,30 @@
41
41
  .#{$icon-prefix}-close:before {
42
42
  content: $pficon-var-close;
43
43
  }
44
+ .#{$icon-prefix}-cloud-security:before {
45
+ content: $pficon-var-cloud-security;
46
+ }
47
+ .#{$icon-prefix}-cloud-tenant:before {
48
+ content: $pficon-var-cloud-tenant;
49
+ }
44
50
  .#{$icon-prefix}-cluster:before {
45
51
  content: $pficon-var-cluster;
46
52
  }
47
53
  .#{$icon-prefix}-container-node:before {
48
54
  content: $pficon-var-container-node;
49
55
  }
56
+ .#{$icon-prefix}-cpu:before {
57
+ content: $pficon-var-cpu;
58
+ }
50
59
  .#{$icon-prefix}-delete:before {
51
60
  content: $pficon-var-delete;
52
61
  }
53
62
  .#{$icon-prefix}-edit:before {
54
63
  content: $pficon-var-edit;
55
64
  }
65
+ .#{$icon-prefix}-enterprise:before {
66
+ content: $pficon-var-enterprise;
67
+ }
56
68
  .#{$icon-prefix}-error-circle-o:before {
57
69
  color: $brand-danger;
58
70
  content: $pficon-var-error-circle-o;
@@ -64,6 +76,9 @@
64
76
  .#{$icon-prefix}-messages:before { // class name deprecated
65
77
  content: $pficon-var-flag;
66
78
  }
79
+ .#{$icon-prefix}-flavor:before {
80
+ content: $pficon-var-flavor;
81
+ }
67
82
  .#{$icon-prefix}-folder-close:before {
68
83
  content: $pficon-var-folder-close;
69
84
  }
@@ -91,6 +106,12 @@
91
106
  .#{$icon-prefix}-kubernetes:before {
92
107
  content: $pficon-var-kubernetes;
93
108
  }
109
+ .#{$icon-prefix}-memory:before {
110
+ content: $pficon-var-memory;
111
+ }
112
+ .#{$icon-prefix}-network:before {
113
+ content: $pficon-var-network;
114
+ }
94
115
  .#{$icon-prefix}-ok:before {
95
116
  color: $brand-success;
96
117
  content: $pficon-var-ok;
@@ -108,12 +129,21 @@
108
129
  .#{$icon-prefix}-restart:before {
109
130
  content: $pficon-var-restart;
110
131
  }
132
+ .#{$icon-prefix}-regions:before {
133
+ content: $pficon-var-regions;
134
+ }
111
135
  .#{$icon-prefix}-registry:before {
112
136
  content: $pficon-var-registry;
113
137
  }
114
138
  .#{$icon-prefix}-replicator:before {
115
139
  content: $pficon-var-replicator;
116
140
  }
141
+ .#{$icon-prefix}-repository:before {
142
+ content: $pficon-var-repository;
143
+ }
144
+ .#{$icon-prefix}-resource-pool:before {
145
+ content: $pficon-var-resource-pool;
146
+ }
117
147
  .#{$icon-prefix}-route:before {
118
148
  content: $pficon-var-route;
119
149
  }
@@ -126,12 +156,18 @@
126
156
  .#{$icon-prefix}-screen:before {
127
157
  content: $pficon-var-screen;
128
158
  }
159
+ .#{$icon-prefix}-server:before {
160
+ content: $pficon-var-server;
161
+ }
129
162
  .#{$icon-prefix}-service:before {
130
163
  content: $pficon-var-service;
131
164
  }
132
165
  .#{$icon-prefix}-settings:before {
133
166
  content: $pficon-var-settings;
134
167
  }
168
+ .#{$icon-prefix}-storage-domain:before {
169
+ content: $pficon-var-storage-domain;
170
+ }
135
171
  .#{$icon-prefix}-thumb-tack-o:before {
136
172
  content: $pficon-var-thumb-tack-o;
137
173
  }
@@ -150,7 +186,16 @@
150
186
  .#{$icon-prefix}-users:before {
151
187
  content: $pficon-var-users;
152
188
  }
189
+ .#{$icon-prefix}-virtual-machine:before {
190
+ content: $pficon-var-virtual-machine;
191
+ }
192
+ .#{$icon-prefix}-volume:before {
193
+ content: $pficon-var-volume;
194
+ }
153
195
  .#{$icon-prefix}-warning-triangle-o:before {
154
196
  color: $brand-warning;
155
197
  content: $pficon-var-warning-triangle-o;
156
198
  }
199
+ .#{$icon-prefix}-zone:before {
200
+ content: $pficon-var-zone;
201
+ }
@@ -14,5 +14,5 @@
14
14
  }
15
15
 
16
16
  .list-group-item-heading {
17
- font-weight: 700;
17
+ font-weight: 600;
18
18
  }
@@ -0,0 +1,230 @@
1
+ //
2
+ // List View
3
+ // --------------------------------------------------
4
+
5
+
6
+ .list-view-pf {
7
+ .list-group-item {
8
+ align-items: flex-start;
9
+ @include clearfix; //IE9 fallback
10
+ display: -ms-flexbox;// IE10 fallback
11
+ display: flex;
12
+ padding-bottom: 0;
13
+ padding-top: 0;
14
+ &.active {
15
+ color: $list-group-link-color;
16
+ background-color: $list-view-active-bg;
17
+ }
18
+ &:hover {
19
+ background-color: $list-view-hover-bg;
20
+ }
21
+ @media (min-width: $screen-md-min) {
22
+ align-items: center;
23
+ }
24
+ }
25
+ .list-group-item-heading {
26
+ font-size: $font-size-h3;
27
+ small {
28
+ display: block;
29
+ font-size: ($font-size-base * 0.8);
30
+ font-weight: 400;
31
+ }
32
+ @media (min-width: $screen-md-min) {
33
+ -ms-flex: 1 0 calc(25% - 20px); // IE10 fallback
34
+ flex: 1 0 calc(25% - 20px);
35
+ float: left; // IE9 fallback
36
+ font-size: $font-size-base;
37
+ margin: 0 ($grid-gutter-width/2) 0 0;
38
+ overflow: hidden;
39
+ text-overflow: ellipsis;
40
+ white-space: nowrap;
41
+ width: calc(25% - 20px); // IE9 fallback
42
+ }
43
+ }
44
+ .list-group-item-text {
45
+ color: currentColor !important; // to overwrite color change when active.
46
+ margin-bottom: 10px;
47
+ @media (min-width: $screen-md-min) {
48
+ -ms-flex: 1 0 auto; // IE10 prefix
49
+ flex: 1 0 auto; // it covers whats left from the title
50
+ float: left; // IE9 fallback
51
+ margin: 0 $grid-gutter-width 0 0;
52
+ width: calc(75% - 40px); // IE9 fallback
53
+ }
54
+ }
55
+ }
56
+ .list-view-pf-actions {
57
+ float: right; // IE9 fallback
58
+ margin-bottom: ($grid-gutter-width/2);
59
+ margin-left: ($grid-gutter-width/2);
60
+ margin-top: ($grid-gutter-width/2);
61
+ -ms-flex-order: 2;
62
+ order: 2;
63
+ button, > a {
64
+ margin-left: ($grid-gutter-width/4);
65
+ }
66
+ .list-view-pf-top-align & {
67
+ align-self: flex-start;
68
+ }
69
+ }
70
+ .list-view-pf-additional-info {
71
+ align-items: center;
72
+ display: flex;
73
+ flex-wrap: wrap;
74
+ @media (min-width: $screen-md-min) {
75
+ flex: 1 0 auto; // it covers whats left from summary
76
+ float: left; // IE9 fallback
77
+ width: 50%; // IE9 fallback
78
+ }
79
+ }
80
+ .list-view-pf-additional-info-item {
81
+ align-items: center;
82
+ display: inline-block;
83
+ display: flex;
84
+ margin-right: ($grid-gutter-width/2);
85
+ max-width:100%;
86
+ text-align: center;
87
+ &.list-view-pf-additional-info-item-stacked {
88
+ text-align: center;
89
+ flex-direction: column;
90
+ strong {
91
+ font-size: $font-size-h5;
92
+ line-height: 1em;
93
+ }
94
+ }
95
+ .pficon, .fa {
96
+ font-size: $font-size-h3;
97
+ margin-right: ($grid-gutter-width/4);
98
+ }
99
+ strong {
100
+ font-size: $font-size-h3;
101
+ font-weight: 600;
102
+ margin-right: 5px;
103
+ }
104
+ &:last-child {
105
+ margin-right: 0;
106
+ }
107
+ }
108
+ .list-view-pf-additional-info-item-donut-chart { width: 60px; }
109
+ .list-view-pf-body {
110
+ align-items: center;
111
+ display: table-cell; //IE9 fallback
112
+ -ms-flex: 1; // IE10 prefix
113
+ flex: 1;
114
+ vertical-align: top; //IE9 fallback
115
+ width: 100%; // IE9 fallback, it extends the cell to size of the container
116
+ @media (min-width: $screen-md-min) {
117
+ align-items: center;
118
+ display: -ms-flexbox;// IE10 fallback
119
+ display: flex;
120
+ flex-direction: row;
121
+ }
122
+ }
123
+ .list-view-pf-checkbox {
124
+ border-right: 1px solid $list-view-divider;
125
+ float: left; //IE9 fallback
126
+ margin-bottom: ($grid-gutter-width/2);
127
+ margin-right: 15px;
128
+ margin-top: ($grid-gutter-width/2);
129
+ padding: 3px ($grid-gutter-width/4) 3px 0;
130
+ .list-view-pf-top-align & {
131
+ align-self: flex-start;
132
+ }
133
+ }
134
+ .list-view-pf-description {
135
+ -ms-flex: 1 0 50%; // IE10 prefix
136
+ flex: 1 0 50%;
137
+ .list-view-pf-stacked & {
138
+ display: block;
139
+ }
140
+ @media (min-width: $screen-md-min) {
141
+ align-items: center;
142
+ display: flex;
143
+ float: left; //IE9 fallback
144
+ width: 50%; //IE9 fallback
145
+ }
146
+ }
147
+ .list-view-pf-left {
148
+ display: table-cell; //IE9 fallback
149
+ padding-right: ($grid-gutter-width/2);
150
+ text-align: center;
151
+ vertical-align: top; //IE9 fallback
152
+ .list-view-pf-calendar {
153
+ font-size: $font-size-small;
154
+ line-height: 1em;
155
+ strong {
156
+ display: block;
157
+ font-size: ($font-size-h2 * 2);
158
+ font-weight: 300;
159
+ line-height: 1em;
160
+ }
161
+ }
162
+ .pficon, .fa {
163
+ border-radius: 50%;
164
+ font-size: 2em;
165
+ // -md is out of alpha order to get correct bg on -danger
166
+ &.list-view-pf-icon-md {
167
+ background-color: $alert-info-bg;
168
+ height: 50px;
169
+ line-height: 50px;
170
+ width: 50px;
171
+ }
172
+ &.list-view-pf-icon-danger {
173
+ background-color: $alert-danger-bg;
174
+ color: $alert-danger-border;
175
+ }
176
+ &.list-view-pf-icon-info {
177
+ color: $alert-info-border;
178
+ }
179
+ &.list-view-pf-icon-lg {
180
+ background-color: $alert-info-bg;
181
+ height: 60px;
182
+ line-height: 60px;
183
+ width: 60px;
184
+ }
185
+ &.list-view-pf-icon-sm {
186
+ border: 2px solid $list-view-accented-border;
187
+ font-size: 1.4em;
188
+ height: 30px;
189
+ line-height: 30px;
190
+ width: 30px;
191
+ }
192
+ &.list-view-pf-icon-success {
193
+ background-color: $alert-success-bg;
194
+ color: $alert-success-border;
195
+ }
196
+ &.list-view-pf-icon-warning {
197
+ background-color: $alert-warning-bg;
198
+ color: $alert-warning-border;
199
+ }
200
+ }
201
+ }
202
+ .list-view-pf-main-info {
203
+ align-items: flex-start;
204
+ display: -ms-flexbox; // IE10 fallback
205
+ display: flex;
206
+ -ms-flex: 1; // IE10 prefix
207
+ flex: 1;
208
+ padding-bottom: ($grid-gutter-width/2);
209
+ padding-top: ($grid-gutter-width/2);
210
+ @media (min-width: $screen-md-min) {
211
+ align-items: center;
212
+ .list-view-pf-top-align & {
213
+ align-items: flex-start;
214
+ }
215
+ }
216
+ }
217
+ .list-view-pf-stacked {
218
+ .list-group-item-heading {
219
+ float: none; // IE9 fallback
220
+ font-size: $font-size-h3;
221
+ line-height: 1.2em;
222
+ margin-bottom: 5px;
223
+ margin-right: $grid-gutter-width;
224
+ width: auto; // IE9 fallback
225
+ }
226
+ .list-group-item-text {
227
+ float: none;
228
+ width: auto;
229
+ }
230
+ }
@@ -71,10 +71,12 @@
71
71
  }
72
72
  }
73
73
 
74
-
75
- @mixin gradient-striped($color: rgba(0,0,0,.15), $angle: -45deg) {
76
- background-image: -webkit-linear-gradient($angle, $color 25%, $color 26%, transparent 27%, transparent 49%, $color 50%, $color 51%, transparent 52%, transparent 74%, $color 75%, $color 76%, transparent 77%);
77
- background-image: linear-gradient($angle, $color 25%, $color 26%, transparent 27%, transparent 49%, $color 50%, $color 51%, transparent 52%, transparent 74%, $color 75%, $color 76%, transparent 77%);
74
+ // Gradients
75
+ #gradient {
76
+ @mixin striped($color: rgba(0,0,0,.15), $angle: -45deg) {
77
+ background-image: -webkit-linear-gradient($angle, $color 25%, $color 26%, transparent 27%, transparent 49%, $color 50%, $color 51%, transparent 52%, transparent 74%, $color 75%, $color 76%, transparent 77%);
78
+ background-image: linear-gradient($angle, $color 25%, $color 26%, transparent 27%, transparent 49%, $color 50%, $color 51%, transparent 52%, transparent 74%, $color 75%, $color 76%, transparent 77%);
79
+ }
78
80
  }
79
81
 
80
82
  // Horizontal dividers
@@ -11,45 +11,7 @@
11
11
  &.alert-info > .pficon { background-color: $alert-info-border; }
12
12
  &.alert-success > .pficon { background-color: $alert-success-border; }
13
13
  &.alert-warning > .pficon { background-color: $alert-warning-border; }
14
- .dropdown {
15
- float: right;
16
- margin: -11px 0px -12px 12px;
17
- .btn-link {
18
- color: $gray-darker;
19
- font-size: ($font-size-base + 4);
20
- line-height: 1;
21
- padding: 13px 5px 13px 5px;
22
- &:active,
23
- &:focus,
24
- &:hover {
25
- color: $link-color;
26
- }
27
- }
28
- .dropdown-menu {
29
- right: -15px;
30
- &:before {
31
- border-right: 11px solid transparent;
32
- border-bottom: 11px solid #ccc;
33
- border-left: 11px solid transparent;
34
- border-bottom-color: rgba(0, 0, 0, 0.2);
35
- content: '';
36
- display: inline-block;
37
- position: absolute;
38
- right: 11px;
39
- top: -11px;
40
- }
41
- &:after {
42
- border-right: 10px solid transparent;
43
- border-bottom: 10px solid #ffffff;
44
- border-left: 10px solid transparent;
45
- content: '';
46
- display: inline-block;
47
- position: absolute;
48
- right: 12px;
49
- top: -10px;
50
- }
51
- }
52
- }
14
+ .dropdown-kebab-pf { margin-left: 10px; }
53
15
  > .pficon {
54
16
  background-color: $gray-pf;
55
17
  bottom: -1px;
@@ -69,7 +31,7 @@
69
31
  display: inline-block;
70
32
  }
71
33
  }
72
- // To set max width on toast notifications
34
+ // Sets max width on toast notifications
73
35
  .toast-pf-max-width {
74
36
  @media (min-width: $screen-md-min) {
75
37
  max-width: 31.1% ; // sets the size to 4 cols;