Skip to content

Commit 9e4920a

Browse files
committed
chore: reviews considered
1 parent a4f1700 commit 9e4920a

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

examples/react/css/src/common.css

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ input[class^='ais-']:focus-visible {
1919
border-radius: var(--ais-radius-xs);
2020
font-size: 0.9em;
2121
font-weight: var(--ais-font-weight-medium);
22-
color: rgba(var(--ais-button-text-color-rgb), var(--ais-button-text-color-alpha));
23-
padding: calc(var(--ais-spacing) * 0.375)
24-
calc(var(--ais-spacing) * 0.625);
22+
color: rgba(
23+
var(--ais-button-text-color-rgb),
24+
var(--ais-button-text-color-alpha)
25+
);
26+
padding: calc(var(--ais-spacing) * 0.375) calc(var(--ais-spacing) * 0.625);
2527
background-color: rgba(
2628
var(--ais-primary-color-rgb),
2729
var(--ais-primary-color-alpha)
@@ -33,9 +35,7 @@ input[class^='ais-']:focus-visible {
3335
}
3436

3537
@media (hover: hover) {
36-
[class^='ais-'][class*='-showMore']:not(
37-
[class^='ais-'][disabled]
38-
):hover {
38+
[class^='ais-'][class*='-showMore']:not([class^='ais-'][disabled]):hover {
3939
background-color: rgba(var(--ais-primary-color-rgb), 0.85);
4040
}
4141
}
@@ -49,8 +49,7 @@ input[class^='ais-']:focus-visible {
4949
margin-left: auto;
5050
color: rgba(var(--ais-text-color-rgb), 0.7);
5151
border-radius: calc(infinity * 1px);
52-
padding: calc(var(--ais-spacing) * 0.125)
53-
calc(var(--ais-spacing) * 0.625);
52+
padding: calc(var(--ais-spacing) * 0.125) calc(var(--ais-spacing) * 0.625);
5453
border: 1px solid rgba(var(--ais-muted-color-rgb), 0.3);
5554
background-color: rgba(
5655
var(--ais-background-color-rgb),
@@ -61,9 +60,9 @@ input[class^='ais-']:focus-visible {
6160
}
6261

6362
input[class^='ais-'][type='checkbox']:checked {
64-
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2016%2012%22%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%223%22%20d%3D%22M1%205.917%205.724%2010.5%2015%201.5%22%2F%3E%3C%2Fsvg%3E");
63+
background-image: var(--ais-check-icon);
6564
background-repeat: no-repeat;
66-
background-size: var(--ais-spacing-half);
65+
background-size: calc(var(--ais-spacing) * 0.625);
6766
background-position: 50%;
6867
background-color: rgba(
6968
var(--ais-primary-color-rgb),

examples/react/css/src/refinement-list.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* RefinementList */
21
.ais-RefinementList-item {
32
margin-bottom: calc(var(--ais-spacing));
43
color: rgba(var(--ais-text-color-rgb), 0.9);
@@ -41,5 +40,5 @@
4140
height: var(--ais-spacing);
4241
transition: background-color var(--ais-transition-duration)
4342
var(--ais-transition-timing-function);
44-
margin-right: calc(var(--ais-spacing-half) * 1.25);
43+
margin-right: calc(var(--ais-spacing) * 0.625);
4544
}

examples/react/css/src/variables.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@
4747

4848
/* SVG Icons */
4949
/* Use --ais-text-color-rgb: 38, 38, 38; and stroke-width: 1.6; */
50-
--ais-light-chevron-icon: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23262626%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E);
50+
--ais-light-chevron-icon: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23262626%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
5151
/* Use --ais-text-color-rgb: 235, 235, 235; and stroke-width: 1.6; */
52-
--ais-dark-chevron-icon: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ebebeb%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E);
52+
--ais-dark-chevron-icon: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ebebeb%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
5353
/* Use --ais-primary-color-rgb: 31, 111, 242; and stroke-width: 1.6; */
54-
--ais-selected-chevron-icon: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231f6ff2%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E);
54+
--ais-selected-chevron-icon: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231f6ff2%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
55+
/* Use --ais-button-text-color-rgb: 255, 255, 255; and stroke-width: 1.6; */
56+
--ais-check-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2016%2012%22%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.6%22%20d%3D%22M1%205.917%205.724%2010.5%2015%201.5%22%2F%3E%3C%2Fsvg%3E');
5557
}
5658

5759
/* Dark Mode */

0 commit comments

Comments
 (0)