Skip to content

Commit

Permalink
build(deps): bump scssphp/scssphp from 1.13.0 to 2.0.0 (#18627)
Browse files Browse the repository at this point in the history
* build(deps): bump scssphp/scssphp from 1.13.0 to 2.0.0

Bumps [scssphp/scssphp](https://github.com/scssphp/scssphp) from 1.13.0 to 2.0.0.
- [Release notes](https://github.com/scssphp/scssphp/releases)
- [Commits](scssphp/scssphp@v1.13.0...v2.0.0)

---
updated-dependencies:
- dependency-name: scssphp/scssphp
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix SCSS issues

* Reduce max allowed memory for SCSS compilation

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cédric Anne <[email protected]>
  • Loading branch information
dependabot[bot] and cedric-anne authored Jan 14, 2025
1 parent 2f13c37 commit 0fa6e4c
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 33 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"sabre/http": "^5.1",
"sabre/uri": "^2.3",
"sabre/vobject": "^4.5",
"scssphp/scssphp": "^1.13",
"scssphp/scssphp": "^2.0",
"sebastian/diff": "^6.0",
"simplepie/simplepie": "^1.8",
"symfony/cache": "^6.4",
Expand Down
88 changes: 74 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions css/includes/components/_racks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,18 @@ ul.indexes {
}

.grid-rack {
width: 217px;
background:
var(--tblr-body-bg) repeating-linear-gradient(
transparent,
transparent 21px,
var(--tblr-bg-surface-tertiary) 21px,
var(--tblr-bg-surface-tertiary) 42px
);
z-index: 1;
border: 1px solid var(--tblr-border-color);
float: left;

*,
::before,
::after {
Expand All @@ -441,18 +453,6 @@ ul.indexes {
width: 100%;
}
}

width: 217px;
background:
var(--tblr-body-bg) repeating-linear-gradient(
transparent,
transparent 21px,
var(--tblr-bg-surface-tertiary) 21px,
var(--tblr-bg-surface-tertiary) 42px
);
z-index: 1;
border: 1px solid var(--tblr-border-color);
float: left;
}

.virtual_pdu_space {
Expand Down
4 changes: 2 additions & 2 deletions css/includes/components/_select2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@
min-height: $input-height;

.form-select-sm + & {
@include font-size($input-font-size-sm * 0.875);
@include font-size(calc(#{$input-font-size-sm} * 0.875));

min-height: $input-height-sm;
}

.form-select-lg + & {
@include font-size($input-font-size-lg * 0.875);
@include font-size(calc(#{$input-font-size-lg} * 0.875));

min-height: $input-height-lg;
}
Expand Down
4 changes: 2 additions & 2 deletions css/legacy/includes/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@
}

&.disabled {
opacity: .3;

&:hover {
opacity: .3;
}

opacity: .3;
}
}

Expand Down
4 changes: 2 additions & 2 deletions front/css.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
use Glpi\Application\ErrorHandler;
use Glpi\UI\ThemeManager;

// Main CSS compilation requires about 140MB of memory on PHP 7.4 (110MB on PHP 8.2).
// Main CSS compilation requires about 70MB of memory.
// Ensure to have enough memory to not reach memory limit.
$max_memory = 192;
$max_memory = 96;
if (Toolbox::getMemoryLimit() < ($max_memory * 1024 * 1024)) {
ini_set('memory_limit', sprintf('%dM', $max_memory));
}
Expand Down

0 comments on commit 0fa6e4c

Please sign in to comment.