Делаем подарки
This commit is contained in:
parent
63cc7ee533
commit
23dd65b366
@ -30,10 +30,12 @@ require_once 'functions.php';
|
|||||||
visibility: hidden; /* Makes input not-clickable */
|
visibility: hidden; /* Makes input not-clickable */
|
||||||
position: absolute; /* Remove input from document flow */
|
position: absolute; /* Remove input from document flow */
|
||||||
}
|
}
|
||||||
|
|
||||||
label.present > input + img { /* IMAGE STYLES */
|
label.present > input + img { /* IMAGE STYLES */
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
label.present > input:checked + img { /* (RADIO CHECKED) IMAGE STYLES */
|
label.present > input:checked + img { /* (RADIO CHECKED) IMAGE STYLES */
|
||||||
border: 2px solid #f00;
|
border: 2px solid #f00;
|
||||||
}
|
}
|
||||||
@ -75,7 +77,7 @@ if (!empty($_POST['present'])) {
|
|||||||
foreach ($images as $image): ?>
|
foreach ($images as $image): ?>
|
||||||
<label class="present">
|
<label class="present">
|
||||||
<input type="radio" name="present" value="<?= $image ?>">
|
<input type="radio" name="present" value="<?= $image ?>">
|
||||||
<img src="<?= $image ?>" alt=""><br />
|
<img src="<?= $image ?>" alt="">
|
||||||
</label>
|
</label>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user