/* https://coryrylan.com/blog/css-gap-space-with-flexbox */
.emulated-flex-gap {
--gap: 12px;
display: inline-flex;
flex-wrap: wrap;
margin: calc(-1 * var(--gap)) 0 0 calc(-1 * var(--gap));
width: calc(100% + var(--gap));
}
.emulated-flex-gap > * {
margin: var(--gap) 0 0 var(--gap);
}
{
"semi": false,
"singleQuote": true,
"useTabs": false,
"trailingComma": "none",
"printWidth": 120
}
<!-- DEMO: http://kod.djpw.cz/ilcd -->
<div class="row">
<div class="content">
obsah row <br>
</div>
<div class="overlay">
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
</div>
</div>
<div class="row">
<div class="content">
obsah row<br>
obsah row<br>
obsah row<br>
obsah row<br>
obsah row<br>
obsah row<br>
obsah row<br>
obsah row<br>
obsah row<br>
obsah row<br>
</div>
<div class="overlay">
<div>1</div>
</div>
</div>
const e = new Event('change')
const element = document.querySelector('#' + this.fakeFileId)
element.dispatchEvent(e)
<?php
// https://forum.nette.org/cs/34290-prihlaseni-admina-jako-uzivatel
// bez přepisování $user proměné
public function handleKlientLogin($hash)
{
overim hash a nactu data klienta
$user = $this->getUser();
$user->getStorage()->setNamespace('frontend');
$user->login(new Identity($user->id, $user->role, ['username' => $user->username]));
$this->redirect(....);
}
/* https://www.zachleat.com/web/fluid-images/ */
img {
max-width: 100%;
}
img[width] {
width: auto; /* Defer to max-width */
}
img[width][height] {
height: auto; /* Preserve aspect ratio */
}
/* Let SVG scale without boundaries */
img[src$=".svg"] {
width: 100%;
height: auto;
max-width: none;
}