Skip to content

Commit a6fc757

Browse files
authored
Merge pull request #11 from mindreeper2420/patternfly-upgrade
feat(upgrade): Replace PatternFly-Sass with PatternFly Core v3.37.0
2 parents b69b52b + fe6833d commit a6fc757

File tree

256 files changed

+13239
-5949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+13239
-5949
lines changed

_sass/base.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import "vendor/patternfly/font-awesome";
2-
@import "vendor/patternfly/variables.scss";
1+
@import "vendor/font-awesome.scss";
2+
@import "vendor/patternfly/_variables.scss";
33

44
body { font-size: $fa-font-size-base; }
55
.full-width { width: 100%; }

_sass/table-colors.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "vendor/patternfly/variables.scss";
1+
@import "vendor/patternfly/_variables.scss";
22

33
.green { background-color: $color-pf-green-200; }
44
.blue { background-color: $color-pf-blue-200; }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

_sass/vendor/_icons.scss

Lines changed: 789 additions & 0 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.

_sass/vendor/_mixins.scss

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Mixins
2+
// --------------------------
3+
4+
@mixin fa-icon() {
5+
display: inline-block;
6+
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
7+
font-size: inherit; // can't have font-size inherit on line above, so need to override
8+
text-rendering: auto; // optimizelegibility throws things off #1094
9+
-webkit-font-smoothing: antialiased;
10+
-moz-osx-font-smoothing: grayscale;
11+
12+
}
13+
14+
@mixin fa-icon-rotate($degrees, $rotation) {
15+
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
16+
-webkit-transform: rotate($degrees);
17+
-ms-transform: rotate($degrees);
18+
transform: rotate($degrees);
19+
}
20+
21+
@mixin fa-icon-flip($horiz, $vert, $rotation) {
22+
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
23+
-webkit-transform: scale($horiz, $vert);
24+
-ms-transform: scale($horiz, $vert);
25+
transform: scale($horiz, $vert);
26+
}
27+
28+
29+
// Only display content to screen readers. A la Bootstrap 4.
30+
//
31+
// See: http://a11yproject.com/posts/how-to-hide-content/
32+
33+
@mixin sr-only {
34+
position: absolute;
35+
width: 1px;
36+
height: 1px;
37+
padding: 0;
38+
margin: -1px;
39+
overflow: hidden;
40+
clip: rect(0,0,0,0);
41+
border: 0;
42+
}
43+
44+
// Use in conjunction with .sr-only to only display content when it's focused.
45+
//
46+
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
47+
//
48+
// Credit: HTML5 Boilerplate
49+
50+
@mixin sr-only-focusable {
51+
&:active,
52+
&:focus {
53+
position: static;
54+
width: auto;
55+
height: auto;
56+
margin: 0;
57+
overflow: visible;
58+
clip: auto;
59+
}
60+
}

0 commit comments

Comments
 (0)