Имеем выражение: (100vh - 656px) / 2 - 330px
Раскроем скобки: (100vh - 656px) / 2 - 330px =
100vh / 2 - 656y / 2 - 330px =
50vh - 328px - 330px
Сложим коэффициенты: 328px - 330px = 2px
собираем воедино: 50vh + 2px
use Google\Client;
use Google\Service\Drive;
function searchFiles()
{
try {
$client = new Client();
$client->useApplicationDefaultCredentials();
$client->addScope(Drive::DRIVE);
$driveService = new Drive($client);
$files = array();
$pageToken = null;
do {
$response = $driveService->files->listFiles(array(
'q' => "mimeType='image/jpeg'",
'spaces' => 'drive',
'pageToken' => $pageToken,
'fields' => 'nextPageToken, files(id, name)',
));
foreach ($response->files as $file) {
printf("Found file: %s (%s)\n", $file->name, $file->id);
}
array_push($files, $response->files);
$pageToken = $response->pageToken;
} while ($pageToken != null);
return $files;
} catch(Exception $e) {
echo "Error Message: ".$e;
}
}
кликнуть по кнопке, не теряя фокуса с поля
mask-image: url(/svg/#{$item}.svg);
<!-- лэйаут -->
<div @class(['about-content' => request()->is('About')])>
@yield('content')
</div>
<!--Дочерний-->
<div class="pb-5 management-content">
<div class="container">
<h2>MANAGEMENT PHILOSOPHY</h2>
...
</div>
</div>
<div class="my-grid">
<div class="my-cell"></div>
<div class="my-cell"></div>
<div class="my-cell"></div>
<div class="my-cell"></div>
<div class="my-cell"></div>
</div>
.my-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
height: 100vh;
}
.my-cell:first-child {
grid-row: span 2;
}
<tr id="kids_284_apelsin_3_0_m"><td>
<a href="#kids_284_apelsin_3_0_m">Кидс 284 апельсин 3,0м</a>
</td><tr>
tr:target {
background: red;
}