Skip to content

Commit c7d16ee

Browse files
committed
🚧
1 parent 1f28a03 commit c7d16ee

File tree

116 files changed

+1503
-2138
lines changed

Some content is hidden

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

116 files changed

+1503
-2138
lines changed

‎.qlty/configs/.stylelintrc.yaml‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
extends: stylelint-config-standard-scss
22

33
rules:
4-
scss/at-extend-no-missing-placeholder: false
5-
scss/dollar-variable-pattern: false
6-
scss/at-function-pattern: false # TODO: we should standardize function names
4+
# scss/at-extend-no-missing-placeholder: false
5+
# scss/dollar-variable-pattern: false
6+
# scss/at-function-pattern: false # TODO: we should standardize function names
77

88
alpha-value-notation: number # TODO: Sass is too old, this should be percentage
99

10-
color-function-alias-notation: false # TODO: make it 'without-alpha'
10+
# color-function-alias-notation: false # TODO: make it 'without-alpha'
1111
color-function-notation: legacy # TODO: make it 'modern'
1212

1313
custom-property-pattern:
@@ -25,12 +25,14 @@ rules:
2525
- always-multi-line
2626
- except:
2727
- first-nested
28-
- after-first-line-comment
28+
- after-single-line-comment
2929
- ignore:
3030
- after-comment
3131

32-
selector-class-pattern: false # TODO: we should standardize class names
32+
selector-class-pattern: null # TODO: we should standardize class names
3333

34-
selector-id-pattern: false # TODO: we should standardize id names
34+
# selector-id-pattern: false # TODO: we should standardize id names
3535

36-
value-keyword-case: lower
36+
value-keyword-case:
37+
- lower
38+
- camelCaseSvgKeywords: true

‎.qlty/qlty.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,5 @@ package_filters = ["eslint"]
100100

101101
[[plugin]]
102102
name = "stylelint"
103+
version = "15.11.0"
103104
extra_packages = ["stylelint-config-standard-scss@latest"]

‎.stylelintignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app/assets/stylesheets/vendor/**/*.scss

‎app/assets/stylesheets/error.scss‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
@use 'provider/colors' as *;
2-
@use 'provider/logo';
3-
@use 'provider/typography' as *;
1+
@use "provider/typography" as *;
42

53
$width: line-height-times(24);
64
$wrapper-padding: line-height-times(1);
5+
$border-color: #d2d2d2;
76

87
html {
98
@include typography-base;
@@ -51,7 +50,7 @@ body {
5150
/* stylelint-disable-next-line no-descending-specificity -- FIXME */
5251
a {
5352
text-decoration: none;
54-
color: $label-color;
53+
color: #8A8D90;
5554
}
5655
}
5756

‎app/assets/stylesheets/provider/_buttons.scss‎

Lines changed: 15 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,53 @@
11
@use "provider/colors" as *;
22
@use "provider/typography" as *;
3-
@use 'sass:math';
3+
@use "sass:math";
44

5-
@mixin internal-potato-button($color, $bgcolor, $border-color) {
6-
font-size: $font-size-base;
7-
background-color: $bgcolor;
8-
border-radius: $border-radius-sm;
9-
display: inline-block;
10-
vertical-align: top;
11-
margin: 0;
12-
padding: line-height-times(math.div(1,3)) line-height-times(.5) !important;
13-
border: $border-width solid $border-color;
14-
color: $color;
15-
text-decoration: none;
16-
width: auto !important;
17-
min-width: line-height-times(3);
18-
cursor: pointer;
19-
white-space: nowrap;
20-
text-align: center !important;
21-
height: line-height-times(1.5);
22-
line-height: $line-height-sm;
23-
appearance: none;
24-
25-
&.big {
26-
font-size: $font-size-lg;
27-
}
28-
29-
&:hover {
30-
color: $bgcolor;
31-
background-color: transparent;
32-
}
33-
34-
}
35-
36-
table [type='submit']:not(.action, .pf-c-button, .pf-c-dropdown__menu-item) {
37-
float: right;
38-
39-
@include internal-potato-button($important-button-color, $important-button-bg-color, $important-button-border-color);
40-
}
41-
42-
table .disabled-button,
43-
/* stylelint-disable-next-line no-descending-specificity -- FIXME */
44-
.disabled-button {
45-
@include internal-potato-button($disabled-button-color, $disabled-button-bg-color, $disabled-button-border-color);
46-
47-
cursor: default;
48-
}
49-
50-
.button.next,
51-
a.next {
52-
float: right;
53-
}
54-
55-
.confirm-or-cancel {
56-
.button.next,
57-
a.next {
58-
clear: none;
59-
}
60-
61-
.button.cancel,
62-
a.cancel {
63-
float: left;
64-
margin-top: line-height-times(2);
5+
.button,
6+
a {
7+
&.next {
8+
float: right;
659
}
66-
67-
}
68-
69-
form.formtastic .button-bar fieldset {
70-
margin: 0;
7110
}
7211

73-
// Lame but functional, improvements welcomed.
74-
form.formtastic .button-bar,
75-
/* stylelint-disable-next-line no-descending-specificity -- FIXME */
12+
// TODO: remove this class
7613
.button-bar {
7714
position: relative;
7815

16+
fieldset {
17+
margin: 0;
18+
}
19+
7920
& > fieldset {
80-
/* stylelint-disable-next-line no-descending-specificity -- FIXME */
21+
& > ol > li {
22+
display: inline-block;
23+
}
24+
8125
&.actions:first-child {
8226
float: left;
8327
margin: line-height-times(.5) 0 0;
8428
padding: 0;
8529
text-align: left !important;
8630

87-
/* stylelint-disable-next-line no-descending-specificity -- FIXME */
8831
& > ol > li {
8932
margin-right: var(--pf-global--spacer--sm);
9033
}
9134
}
9235

93-
/* stylelint-disable-next-line no-descending-specificity -- FIXME */
9436
&.actions:last-child:not(:first-child) {
9537
float: right;
9638
margin: line-height-times(.5) 0 0;
9739
padding: 0;
9840

99-
/* stylelint-disable-next-line no-descending-specificity -- FIXME */
10041
& > ol > li {
10142
margin-left: var(--pf-global--spacer--sm);
10243
}
103-
104-
}
105-
106-
/* stylelint-disable-next-line no-descending-specificity -- FIXME */
107-
& > ol > li {
108-
display: inline-block;
10944
}
11045
}
111-
}
11246

113-
/* stylelint-disable-next-line no-descending-specificity -- FIXME */
114-
.formtastic .button-bar {
11547
display: flow-root;
11648
}
11749

50+
// TODO: remove outline-button
11851
@mixin outline-button($color: $font-color, $border-color: $border-color) {
11952
color: $color;
12053
display: inline-block;

‎app/assets/stylesheets/provider/_call_to_action.scss‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎app/assets/stylesheets/provider/_colorbox.scss‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@use 'provider/links' as *;
44
@use 'sass:math';
55

6+
/* stylelint-disable selector-id-pattern */
67
#colorbox,
78
#cboxOverlay,
89
#cboxWrapper {
@@ -17,11 +18,16 @@
1718

1819
#cboxWrapper {
1920
max-width: none;
21+
22+
h2 {
23+
font-weight: $font-weight-bold;
24+
font-size: $secondary-title-font-size;
25+
}
2026
}
2127

2228
#colorbox {
23-
box-shadow: 0 0 line-height-times(.5) $box-shadow-color;
24-
background: rgba($body-background, .99);
29+
box-shadow: var(--pf-global--BoxShadow--lg);
30+
background: white;
2531
border: $border-width solid $border-color;
2632
text-align: left;
2733
border-radius: $border-radius;
@@ -59,7 +65,7 @@
5965
position: fixed;
6066
width: 100%;
6167
height: 100%;
62-
background: rgba($content-background, .8);
68+
background: var(--pf-global--BackgroundColor--dark-transparent-100);
6369
}
6470

6571
#cboxMiddleLeft,
@@ -129,3 +135,4 @@
129135
}
130136
}
131137
}
138+
/* stylelint-enable selector-id-pattern */

0 commit comments

Comments
 (0)