1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/lhammer-You-need-to-know-css

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
extend-hit-area.md 3.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Отправлено 10.03.2025 04:31 b50c8d4

Расширение области клика

?> Обзор: :point_right: box-shadow, filter```markdown

<script v-pre type="text/x-template" id="extend-hit-area"> <style> main { width: 100%; padding: 60px 0; display: flex; align-items: center; flex-wrap: wrap; user-select: none; } main > div { display: flex; flex: 1; flex-direction: column; justify-content: space-between; align-items: center; } main > div:nth-of-type(4) { height: 81px; padding-top: 8px; } main > div > a.btn { display: flex; justify-content: center; align-items: center; width: 66px; height: 66px; color: #fff; font-weight: 600; border-radius: 50%; cursor: pointer; border: 8px solid transparent; background: #b4a078 padding-box; } main > div > a.btn:active { background: rgba(180, 160, 120, 0.8) padding-box; } main > div > span { display: flex; justify-content: center; font-size: 13px; color: #999; } main > div:nth-of-type(2) a.btn { color: #b4a078; background: #FFF; box-shadow: 0 0 0 1px #b4a078 inset; } main > div:nth-of-type(2) a.btn:active { background: rgba(180, 160, 120, 0.1) padding-box; } main > div:nth-of-type(3) a.btn { box-shadow: 0 0 0 1px #b4a078 inset; filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3)); } main > div:nth-of-type(4) a.btn { position: relative; width: 50px; height: 50px; border: 0; background-clip: border-box; box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); } main > div:nth-of-type(4) a.btn::before { content: ""; position: absolute; top: -8px; right: -8px; bottom: -8px; left: -8px; } main > div:nth-of-type(5) a.btn { color: #b4a078; background-color: #FFF; box-shadow: 0 0 0 1px #b4a078 inset; filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3)); } main > div:nth-of-type(5) a.btn:active { filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0)); } </style>
+обычный
+рамка
+фильтр тени
+тень ::before
+рамка с тенью
<script> ```</script> </script>
Создание хорошего пользовательского опыта должно стать привычкой
```### Поддержка браузеров

<iframe src="https://caniuse.bitsofco.de/embed/index.html?feat=css-filters&amp;periods=future_2,future_1,current,past_1,past_2,past_3&amp;accessible-colours=false" frameborder="0" width="100%" height="493px"></iframe>

<iframe src="https://caniuse.bitsofco.de/embed/index.html?feat=css-boxshadow&amp;periods=future_2,future_1,current,past_1,past_2,past_3&amp;accessible-colours=false" frameborder="0" width="100%" height="471px"></iframe>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/lhammer-You-need-to-know-css.git
git@api.gitlife.ru:oschina-mirror/lhammer-You-need-to-know-css.git
oschina-mirror
lhammer-You-need-to-know-css
lhammer-You-need-to-know-css
master