<input class="check-input" type="checkbox" name="checkbox" id='checkbox' checked required>
<span>кастомный код</span>
<label class="check-label" for="checkbox" >Даю согласие на обработку данных</label>
<input class="check-input" type="checkbox" name="checkbox" id='checkbox2' required>
<span>кастомный код</span>
<label class="check-label" for="checkbox2" >Даю согласие на обработку данных</label>
.check-input:checked + span + .check-label::before {
content: '';
background: url("../img/checkIcon.svg") center no-repeat;
background-size: 70%;
}
Задает стилевой идентификатор — уникальное имя элемента, которое используется для изменения его стиля и обращения к нему через скрипты. Идентификатор в коде документа должен быть в единственном экземпляре, иными словами, встречаться только один раз.
<div class="item">Item1</div>
<div class="item">Item2</div>
<div class="item">Item3</div>
.class {
color: red;
}
var els = document.querySelectorAll('.item');
[].forEach.call(els, function(el, i, els) {
el.classList.add("class");
});
<input type="file" class="custom-file-input">
.custom-file-input {
color: transparent;
}
.custom-file-input::-webkit-file-upload-button {
visibility: hidden;
}
.custom-file-input::before {
content: 'Файл не выбран';
color: black;
display: inline-block;
background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3);
border: 1px solid #999;
border-radius: 3px;
padding: 5px 8px;
outline: none;
white-space: nowrap;
-webkit-user-select: none;
cursor: pointer;
text-shadow: 1px 1px #fff;
font-weight: 700;
font-size: 10pt;
}
.custom-file-input:hover::before {
border-color: black;
}
.custom-file-input:active {
outline: 0;
}
.custom-file-input:active::before {
background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}
.numbergleba {
position: absolute;
left: VALUE;
top: VALUE;
right: VALUE;
bottom: VALUE;
}