То есть как, прописать для одного тега шрифт regular 400, а для другого тега bold 700 italic, а один вообще поставить в шрифт Open sea?
p.one {
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
}
p.two {
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 700;
font-style: italic;
}
p.three {
font-family: 'Open Sea', sans-serif;
}
пришла идея сделать 3 разные фотки, под мобилку, планшет, пк и менять их. Нормально ли так сделать?
class User {
public function roles(): BelongsToMany {
return $this->belongsToMany(Role::class);
}
}
class Role {
public function users(): BelongsToMany {
return $this->belongsToMany(User::class);
}
}
$user = User::create([...]);
$user->roles()->attach(Role::whereSlug('user')->firstOrFail());
$user->profiles()->create([
]);
body.onclick = function(){
body.style.backgroundColor = 'black'
setTimeout(() => {
body.style.backgroundColor = ''; // Пустое значение установит то, что прописано изначально в css
}, 2000);
}
button.onclick = function(){
const saved = button.value; // Запомним, что было
button.value = 'НАЖИМАЙ!'
setTimeout(() => {
button.value = saved;
}, 2000);
}