patternfly-sass 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/assets/stylesheets/_patternfly.scss +6 -0
- data/assets/stylesheets/patternfly/_alerts.scss +4 -1
- data/assets/stylesheets/patternfly/_bootstrap-switch.scss +21 -0
- data/assets/stylesheets/patternfly/_bootstrap-touchspin.scss +31 -0
- data/assets/stylesheets/patternfly/_dropdowns.scss +1 -1
- data/assets/stylesheets/patternfly/_ext-bootstrap-switch.scss +193 -0
- data/assets/stylesheets/patternfly/_ext-bootstrap-touchspin.scss +45 -0
- data/assets/stylesheets/patternfly/_toolbar.scss +70 -23
- data/assets/stylesheets/patternfly/_variables.scss +5 -1
- data/bower.json +3 -1
- data/lib/patternfly-sass/version.rb +2 -2
- data/package.json +32 -0
- data/patternfly-sass.gemspec +2 -0
- data/spec/html/alerts.html +6 -0
- data/spec/html/bootstrap-switch.html +265 -0
- data/spec/html/bootstrap-switch.js +61 -0
- data/spec/html/bootstrap-touchspin.html +207 -0
- data/spec/html/buttons.html +29 -0
- data/spec/html/dist/css/patternfly-additions.css +325 -18
- data/spec/html/dist/css/patternfly-additions.css.map +1 -1
- data/spec/html/dist/css/patternfly-additions.min.css +1 -1
- data/spec/html/dist/css/patternfly-additions.min.css.map +1 -1
- data/spec/html/dist/css/patternfly.css +4 -0
- data/spec/html/dist/css/patternfly.css.map +1 -1
- data/spec/html/dist/css/patternfly.min.css +1 -1
- data/spec/html/dist/css/patternfly.min.css.map +1 -1
- data/spec/html/dropdowns.html +26 -8
- data/spec/html/index.html +6 -0
- data/spec/html/toolbar.html +44 -14
- data/tasks/converter.rb +6 -4
- metadata +41 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54163c28267d3ec34d9452553bbd6ec202478ce0
|
4
|
+
data.tar.gz: 3515f70b4407e627bccdeb5e22026b29b212b2f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c04bedbcdd8ebda1062aee69e9fdd83ca3e36c77446ab06cccdffef4f33275e772cc1da6cece13eb6fbe742719c736a26f5cc7d75395435e375a23a3d73008ce
|
7
|
+
data.tar.gz: e1ce210241067c5de9d8f71e8b91c1a9f9d228dd6c7286d7b2218709e0242008a40350cb07973bcdcb847cf9039acea0acf6ab688eb28f72b7f4922807ef85a3
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ Please see the appropriate guide for your environment of choice:
|
|
19
19
|
In your Gemfile you need to add the `patternfly-sass` gem, and ensure that the `sass-rails` gem is present - it is added to new Rails applications by default.
|
20
20
|
|
21
21
|
```ruby
|
22
|
-
gem 'patternfly-sass', '~> 2.
|
22
|
+
gem 'patternfly-sass', '~> 2.3.0'
|
23
23
|
gem 'sass-rails', '>= 3.2'
|
24
24
|
```
|
25
25
|
|
@@ -84,12 +84,18 @@
|
|
84
84
|
@import "patternfly/ext-bootstrap-datepicker";
|
85
85
|
// Bootstrap-Select
|
86
86
|
@import "patternfly/ext-bootstrap-select";
|
87
|
+
// Bootstrap Switch
|
88
|
+
@import "patternfly/ext-bootstrap-switch";
|
89
|
+
// Bootstrap Touchspin
|
90
|
+
@import "patternfly/ext-bootstrap-touchspin";
|
87
91
|
// C3 charts
|
88
92
|
@import "patternfly/ext-c3";
|
89
93
|
@import "patternfly/blank-slate";
|
90
94
|
@import "patternfly/bootstrap-combobox";
|
91
95
|
@import "patternfly/bootstrap-datepicker";
|
92
96
|
@import "patternfly/bootstrap-select";
|
97
|
+
@import "patternfly/bootstrap-switch";
|
98
|
+
@import "patternfly/bootstrap-touchspin";
|
93
99
|
@import "patternfly/bootstrap-treeview";
|
94
100
|
@import "patternfly/cards";
|
95
101
|
@import "patternfly/charts";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
//
|
2
|
+
// Bootstrap Switch
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
$bootstrap-switch-base: bootstrap-switch;
|
6
|
+
|
7
|
+
.#{$bootstrap-switch-base} {
|
8
|
+
.#{$bootstrap-switch-base}-handle-off,
|
9
|
+
.#{$bootstrap-switch-base}-handle-on {
|
10
|
+
&.#{$bootstrap-switch-base}-default {
|
11
|
+
background: $bootstrap-switch-handle-default-bg-color;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
.#{$bootstrap-switch-base}-label {
|
15
|
+
background: $bootstrap-switch-bg-color;
|
16
|
+
box-shadow: 0 0 2px rgba(0,0,0,.4);
|
17
|
+
@include gradient-vertical($bootstrap-switch-bg-color-start, $bootstrap-switch-bg-color-stop);
|
18
|
+
position: relative;
|
19
|
+
z-index: 9;
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
//
|
2
|
+
// Bootstrap Touchspin
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.bootstrap-touchspin .input-group-btn-vertical {
|
6
|
+
> .btn {
|
7
|
+
padding-bottom: 6px;
|
8
|
+
padding-top: 6px;
|
9
|
+
}
|
10
|
+
.bootstrap-touchspin-down {
|
11
|
+
border-bottom-right-radius: $border-radius-base;
|
12
|
+
}
|
13
|
+
.bootstrap-touchspin-up {
|
14
|
+
border-top-right-radius: $border-radius-base;
|
15
|
+
}
|
16
|
+
i {
|
17
|
+
font-size: ($font-size-base - 4);
|
18
|
+
left: 6px;
|
19
|
+
top: 2px;
|
20
|
+
&.fa-angle-down,
|
21
|
+
&.fa-angle-up {
|
22
|
+
font-size: $font-size-base;
|
23
|
+
line-height: $font-size-base;
|
24
|
+
top: 0;
|
25
|
+
}
|
26
|
+
&.fa-angle-down,
|
27
|
+
&.fa-angle-up {
|
28
|
+
left: 7px;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,193 @@
|
|
1
|
+
$bootstrap-switch-base: bootstrap-switch;
|
2
|
+
|
3
|
+
.#{$bootstrap-switch-base} {
|
4
|
+
display: inline-block;
|
5
|
+
direction: ltr;
|
6
|
+
cursor: pointer;
|
7
|
+
border-radius: $border-radius-base;
|
8
|
+
border: 1px solid;
|
9
|
+
border-color: $btn-default-border;
|
10
|
+
position: relative;
|
11
|
+
text-align: left;
|
12
|
+
overflow: hidden;
|
13
|
+
line-height: 8px;
|
14
|
+
z-index: 0;
|
15
|
+
@include user-select(none);
|
16
|
+
vertical-align: middle;
|
17
|
+
@include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
|
18
|
+
|
19
|
+
.#{$bootstrap-switch-base}-container {
|
20
|
+
display: inline-block;
|
21
|
+
top: 0;
|
22
|
+
border-radius: $border-radius-base;
|
23
|
+
@include translate3d(0, 0, 0);
|
24
|
+
}
|
25
|
+
|
26
|
+
.#{$bootstrap-switch-base}-handle-on,
|
27
|
+
.#{$bootstrap-switch-base}-handle-off,
|
28
|
+
.#{$bootstrap-switch-base}-label {
|
29
|
+
@include box-sizing(border-box);
|
30
|
+
cursor: pointer;
|
31
|
+
display: inline-block !important;
|
32
|
+
height: 100%;
|
33
|
+
padding: $padding-base-vertical $padding-base-horizontal;
|
34
|
+
font-size: $font-size-base;
|
35
|
+
line-height: $line-height-computed;
|
36
|
+
}
|
37
|
+
|
38
|
+
.#{$bootstrap-switch-base}-handle-on,
|
39
|
+
.#{$bootstrap-switch-base}-handle-off {
|
40
|
+
text-align: center;
|
41
|
+
z-index: 1;
|
42
|
+
|
43
|
+
&.#{$bootstrap-switch-base}-primary {
|
44
|
+
color: #fff;
|
45
|
+
background: $btn-primary-bg;
|
46
|
+
}
|
47
|
+
|
48
|
+
&.#{$bootstrap-switch-base}-info {
|
49
|
+
color: #fff;
|
50
|
+
background: $btn-info-bg;
|
51
|
+
}
|
52
|
+
|
53
|
+
&.#{$bootstrap-switch-base}-success {
|
54
|
+
color: #fff;
|
55
|
+
background: $btn-success-bg;
|
56
|
+
}
|
57
|
+
|
58
|
+
&.#{$bootstrap-switch-base}-warning {
|
59
|
+
background: $btn-warning-bg;
|
60
|
+
color: #fff;
|
61
|
+
}
|
62
|
+
|
63
|
+
&.#{$bootstrap-switch-base}-danger {
|
64
|
+
color: #fff;
|
65
|
+
background: $btn-danger-bg;
|
66
|
+
}
|
67
|
+
|
68
|
+
&.#{$bootstrap-switch-base}-default {
|
69
|
+
color: #000;
|
70
|
+
background: $gray-lighter;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.#{$bootstrap-switch-base}-label {
|
75
|
+
text-align: center;
|
76
|
+
margin-top: -1px;
|
77
|
+
margin-bottom: -1px;
|
78
|
+
z-index: 100;
|
79
|
+
color: $btn-default-color;
|
80
|
+
background: $btn-default-bg;
|
81
|
+
}
|
82
|
+
|
83
|
+
.#{$bootstrap-switch-base}-handle-on {
|
84
|
+
@include border-left-radius($border-radius-base - 1);
|
85
|
+
}
|
86
|
+
|
87
|
+
.#{$bootstrap-switch-base}-handle-off {
|
88
|
+
@include border-right-radius($border-radius-base - 1);
|
89
|
+
}
|
90
|
+
|
91
|
+
input[type='radio'],
|
92
|
+
input[type='checkbox'] {
|
93
|
+
position: absolute !important;
|
94
|
+
top: 0;
|
95
|
+
left: 0;
|
96
|
+
@include opacity(0);
|
97
|
+
z-index: -1;
|
98
|
+
|
99
|
+
&.form-control {
|
100
|
+
height: auto;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
&.#{$bootstrap-switch-base}-mini {
|
105
|
+
|
106
|
+
.#{$bootstrap-switch-base}-handle-on,
|
107
|
+
.#{$bootstrap-switch-base}-handle-off,
|
108
|
+
.#{$bootstrap-switch-base}-label {
|
109
|
+
padding: $padding-xs-vertical $padding-xs-horizontal;
|
110
|
+
font-size: $font-size-small;
|
111
|
+
line-height: $line-height-small;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
&.#{$bootstrap-switch-base}-small {
|
116
|
+
|
117
|
+
.#{$bootstrap-switch-base}-handle-on,
|
118
|
+
.#{$bootstrap-switch-base}-handle-off,
|
119
|
+
.#{$bootstrap-switch-base}-label {
|
120
|
+
padding: $padding-small-vertical $padding-small-horizontal;
|
121
|
+
font-size: $font-size-small;
|
122
|
+
line-height: $line-height-small;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
&.#{$bootstrap-switch-base}-large {
|
127
|
+
|
128
|
+
.#{$bootstrap-switch-base}-handle-on,
|
129
|
+
.#{$bootstrap-switch-base}-handle-off,
|
130
|
+
.#{$bootstrap-switch-base}-label {
|
131
|
+
padding: $padding-base-vertical $padding-large-horizontal;
|
132
|
+
font-size: $font-size-large;
|
133
|
+
line-height: $line-height-large;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
&.#{$bootstrap-switch-base}-disabled,
|
138
|
+
&.#{$bootstrap-switch-base}-readonly,
|
139
|
+
&.#{$bootstrap-switch-base}-indeterminate {
|
140
|
+
cursor: default !important;
|
141
|
+
|
142
|
+
.#{$bootstrap-switch-base}-handle-on,
|
143
|
+
.#{$bootstrap-switch-base}-handle-off,
|
144
|
+
.#{$bootstrap-switch-base}-label {
|
145
|
+
@include opacity(.5);
|
146
|
+
cursor: default !important;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
&.#{$bootstrap-switch-base}-animate {
|
151
|
+
|
152
|
+
.#{$bootstrap-switch-base}-container {
|
153
|
+
@include transition(margin-left .5s);
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
&.#{$bootstrap-switch-base}-inverse {
|
158
|
+
|
159
|
+
.#{$bootstrap-switch-base}-handle-on {
|
160
|
+
@include border-left-radius(0);
|
161
|
+
@include border-right-radius($border-radius-base - 1);
|
162
|
+
}
|
163
|
+
|
164
|
+
.#{$bootstrap-switch-base}-handle-off {
|
165
|
+
@include border-right-radius(0);
|
166
|
+
@include border-left-radius($border-radius-base - 1);
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
&.#{$bootstrap-switch-base}-focused {
|
171
|
+
$color-rgba: rgba(red($input-border-focus), green($input-border-focus), blue($input-border-focus), .6);
|
172
|
+
border-color: $input-border-focus;
|
173
|
+
outline: 0;
|
174
|
+
@include box-shadow(#{inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px #{$color-rgba}});
|
175
|
+
}
|
176
|
+
|
177
|
+
&.#{$bootstrap-switch-base}-on,
|
178
|
+
&.#{$bootstrap-switch-base}-inverse.#{$bootstrap-switch-base}-off {
|
179
|
+
|
180
|
+
.#{$bootstrap-switch-base}-label {
|
181
|
+
@include border-right-radius($border-radius-base - 1);
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
&.#{$bootstrap-switch-base}-off,
|
186
|
+
&.#{$bootstrap-switch-base}-inverse.#{$bootstrap-switch-base}-on {
|
187
|
+
|
188
|
+
|
189
|
+
.#{$bootstrap-switch-base}-label {
|
190
|
+
@include border-left-radius($border-radius-base - 1);
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*
|
2
|
+
* Bootstrap TouchSpin - v3.0.1
|
3
|
+
* A mobile and touch friendly input spinner component for Bootstrap 3.
|
4
|
+
* http://www.virtuosoft.eu/code/bootstrap-touchspin/
|
5
|
+
*
|
6
|
+
* Made by István Ujj-Mészáros
|
7
|
+
* Under Apache License v2.0 License
|
8
|
+
*/
|
9
|
+
|
10
|
+
.bootstrap-touchspin .input-group-btn-vertical {
|
11
|
+
position: relative;
|
12
|
+
white-space: nowrap;
|
13
|
+
width: 1%;
|
14
|
+
vertical-align: middle;
|
15
|
+
display: table-cell;
|
16
|
+
}
|
17
|
+
|
18
|
+
.bootstrap-touchspin .input-group-btn-vertical > .btn {
|
19
|
+
display: block;
|
20
|
+
float: none;
|
21
|
+
width: 100%;
|
22
|
+
max-width: 100%;
|
23
|
+
padding: 8px 10px;
|
24
|
+
margin-left: -1px;
|
25
|
+
position: relative;
|
26
|
+
}
|
27
|
+
|
28
|
+
.bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-up {
|
29
|
+
border-radius: 0;
|
30
|
+
border-top-right-radius: 4px;
|
31
|
+
}
|
32
|
+
|
33
|
+
.bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
|
34
|
+
margin-top: -2px;
|
35
|
+
border-radius: 0;
|
36
|
+
border-bottom-right-radius: 4px;
|
37
|
+
}
|
38
|
+
|
39
|
+
.bootstrap-touchspin .input-group-btn-vertical i {
|
40
|
+
position: absolute;
|
41
|
+
top: 3px;
|
42
|
+
left: 5px;
|
43
|
+
font-size: 9px;
|
44
|
+
font-weight: normal;
|
45
|
+
}
|
@@ -6,22 +6,82 @@
|
|
6
6
|
background: #fff;
|
7
7
|
border-bottom: 1px solid $sidebar-pf-border-color;
|
8
8
|
box-shadow: 0 1px 0px rgba(0,0,0,0.045);
|
9
|
-
padding-top: $grid-gutter-width/4;
|
9
|
+
padding-top: ($grid-gutter-width/4);
|
10
10
|
.form-group {
|
11
|
-
margin-bottom:
|
12
|
-
width:
|
13
|
-
|
14
|
-
|
11
|
+
margin-bottom: ($grid-gutter-width/4);
|
12
|
+
@media (min-width: $grid-float-breakpoint){
|
13
|
+
border-right: 1px solid $sidebar-pf-border-color;
|
14
|
+
display: table-cell;
|
15
|
+
float: left;
|
16
|
+
margin-bottom: 0;
|
17
|
+
padding-left: ($grid-gutter-width/2);
|
18
|
+
padding-right: ($grid-gutter-width/2);
|
19
|
+
}
|
20
|
+
&:last-child {
|
21
|
+
margin-bottom: 0;
|
22
|
+
}
|
23
|
+
.btn,
|
24
|
+
.btn-group {
|
25
|
+
+ .btn,
|
26
|
+
+ .btn-group {
|
27
|
+
margin-left: 5px;
|
28
|
+
}
|
29
|
+
+ .btn-link,
|
30
|
+
+ .dropdown {
|
31
|
+
margin-left: 10px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
.btn-link {
|
35
|
+
color: $gray-darker;
|
36
|
+
font-size: ($font-size-base + 4);
|
37
|
+
line-height: 1;
|
38
|
+
padding: 4px 0;
|
39
|
+
&:active,
|
40
|
+
&:focus,
|
41
|
+
&:hover {
|
42
|
+
color: $link-color;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
.toolbar-pf-actions {
|
48
|
+
display: table;
|
49
|
+
width: 100%;
|
50
|
+
@media (min-width: $grid-float-breakpoint) {
|
51
|
+
.toolbar-pf-filter {
|
52
|
+
padding-left: 0;
|
53
|
+
width: 25%;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
.toolbar-pf-view-selector {
|
57
|
+
font-size: ($font-size-base + 4);
|
58
|
+
@media (min-width: $grid-float-breakpoint) {
|
59
|
+
border-right: 0;
|
60
|
+
float: right;
|
61
|
+
padding-right: 0;
|
62
|
+
}
|
63
|
+
.active a {
|
64
|
+
color: $link-color;
|
65
|
+
cursor: default;
|
66
|
+
}
|
67
|
+
a {
|
68
|
+
color: $gray-darker;
|
69
|
+
&:hover{
|
70
|
+
color: $link-color;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
.list-inline {
|
74
|
+
margin-bottom: 0;
|
15
75
|
}
|
16
76
|
}
|
17
77
|
}
|
18
78
|
.toolbar-pf-results {
|
19
79
|
border-top: 1px solid $sidebar-pf-border-color;
|
20
|
-
margin-top: $grid-gutter-width/4;
|
80
|
+
margin-top: ($grid-gutter-width/4);
|
21
81
|
h5, p, ul {
|
22
82
|
display: inline-block;
|
23
|
-
line-height: $grid-gutter-width/1.5;
|
24
|
-
margin-bottom: 0;
|
83
|
+
line-height: ($grid-gutter-width/1.5);
|
84
|
+
margin-bottom: 0;
|
25
85
|
margin-top: 0;
|
26
86
|
@media (min-width: $screen-sm-min){
|
27
87
|
line-height: $grid-gutter-width;
|
@@ -32,7 +92,7 @@
|
|
32
92
|
margin-right: 20px;
|
33
93
|
}
|
34
94
|
.label {
|
35
|
-
font-size: $font-size-base - 1;
|
95
|
+
font-size: ($font-size-base - 1);
|
36
96
|
a {
|
37
97
|
color: #fff;
|
38
98
|
display: inline-block;
|
@@ -43,20 +103,7 @@
|
|
43
103
|
margin: 0 10px 0 5px;
|
44
104
|
li {
|
45
105
|
padding-left: 0;
|
46
|
-
padding-right: 0;
|
106
|
+
padding-right: 0;
|
47
107
|
}
|
48
108
|
}
|
49
109
|
}
|
50
|
-
.toolbar-pf-view-selector {
|
51
|
-
font-size: $font-size-base + 4;
|
52
|
-
.active a {
|
53
|
-
color: $link-color;
|
54
|
-
cursor: default;
|
55
|
-
}
|
56
|
-
a {
|
57
|
-
color: $gray-darker;
|
58
|
-
&:hover{
|
59
|
-
color: $link-color;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|