8,960
edits
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 116: | Line 116: | ||
text-decoration: none; | text-decoration: none; | ||
border-radius: 5px; | border-radius: 5px; | ||
background-color: #007bff; /* | background-color: #007bff; /* Цвет по умолчанию */ | ||
transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; | transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; | ||
margin-right: 5px; | margin-right: 5px; | ||
| Line 123: | Line 123: | ||
transform-origin: left; /* Масштабирование относительно левой стороны */ | transform-origin: left; /* Масштабирование относительно левой стороны */ | ||
color: inherit; /* Сохраняет цвет текста */ | color: inherit; /* Сохраняет цвет текста */ | ||
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1); | box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1); | ||
position: relative; /* Нужно для псевдоэлементов */ | position: relative; /* Нужно для псевдоэлементов */ | ||
| Line 129: | Line 128: | ||
} | } | ||
.newcombutton::before | .newcombutton::before { | ||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
| Line 145: | Line 143: | ||
} | } | ||
.newcombutton:hover::before | .newcombutton:hover::before { | ||
transform: translate(-50%, -50%) scale(1); | transform: translate(-50%, -50%) scale(1); | ||
} | } | ||
.newcombutton:hover { | .newcombutton:hover { | ||
transform: scale(1.05); /* | transform: scale(1.05); /* Слегка увеличиваем размер */ | ||
opacity: 1.1; | opacity: 1.1; | ||
} | } | ||