Skip to content

Commit cf32007

Browse files
committed
Fix the CSS linter
1 parent 80a8dcf commit cf32007

File tree

6 files changed

+17
-12
lines changed

6 files changed

+17
-12
lines changed

assets/css/easyadmin-theme/autocomplete.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/easyadmin-theme/base.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ body:not(.ea-content-width-full) .content-wrapper {
181181
block-size: 100%;
182182
min-block-size: 100vh;
183183
inset-inline-start: calc(0px - 2 * 20px - var(--sidebar-max-width));
184-
overflow-x: hidden;
185-
overflow-y: auto;
184+
overflow-inline: hidden;
185+
overflow-block: auto;
186186
padding: 15px 20px;
187187
position: fixed;
188188
inset-block-start: 0;
@@ -870,16 +870,16 @@ a.user-menu-wrapper .user-details:hover {
870870
}
871871
.alert {
872872
border-width: 0 0 var(--border-width);
873-
margin-bottom: 0;
873+
margin-block-end: 0;
874874
}
875875
.alert .btn-close,
876876
.alert .btn-close:focus {
877877
box-shadow: none;
878878
outline: none;
879879
background-size: .75em;
880880
padding: .5em;
881-
top: .75em;
882-
right: .5em;
881+
inset-block-start: .75em;
882+
inset-inline-end: .5em;
883883
}
884884
.alert .btn-close:focus,
885885
.alert .btn-close:hover {

assets/css/easyadmin-theme/datagrids.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ table.datagrid {
1010
}
1111
table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td.actions,
1212
table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td.actions.actions-as-dropdown {
13-
min-width: 50px;
13+
min-inline-size: 50px;
1414
}
1515
@media (max-width: 767px) {
1616
table.datagrid:not(.datagrid-empty) tbody,
@@ -269,7 +269,12 @@ table.datagrid:not(.datagrid-empty) tr:not(.empty-row) td.actions.actions-as-dro
269269
padding: 0 10px;
270270
}
271271
.datagrid .empty-row td:nth-child(1) { inline-size: 20%; }
272-
.datagrid .empty-row td:nth-child(2) { display: none; @media (min-width: 992px) { inline-size: 5%; } }
272+
.datagrid .empty-row td:nth-child(2) { display: none; }
273+
@media (min-width: 992px) {
274+
.datagrid .empty-row td:nth-child(2) {
275+
inline-size: 5%;
276+
}
277+
}
273278
.datagrid .empty-row td:nth-child(3) { inline-size: 10%; }
274279
.datagrid .empty-row td:nth-child(4) { inline-size: 25%; }
275280
.datagrid .empty-row td:nth-child(5) { inline-size: 10%; }

assets/css/easyadmin-theme/detail-page.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
.ea-detail .field-group.field-text_editor .field-value {
5757
max-block-size: 350px;
5858
max-inline-size: 80ch;
59-
overflow-y: auto;
59+
overflow-block: auto;
6060
}
6161

6262
/* for boolean fields, flip the label <-> value order because the label is

assets/css/easyadmin-theme/fields.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
}
4444
.field-code_editor dt {
4545
max-block-size: 480px;
46-
overflow-y: auto;
46+
overflow-block: auto;
4747
}
4848

4949
/* Collection field */
@@ -224,5 +224,5 @@
224224
/* Text editor field */
225225
.field-text_editor dt {
226226
max-block-size: 480px;
227-
overflow-y: auto;
227+
overflow-block: auto;
228228
}

src/Resources/bin/logical-css-properties-linter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
$directory = __DIR__.'/../../../assets';
5454

55-
return lintCssFiles($directory, $logicalCssProperties);
55+
exit(lintCssFiles($directory, $logicalCssProperties));
5656

5757
function lintCssFiles($directory, $logicalCssProperties): int
5858
{

0 commit comments

Comments
 (0)