Шаблон:Tooltip/styles.css: различия между версиями
Rirma4ch (обсуждение | вклад) Новая страница: «.tooltip { position: relative; cursor: pointer; } .tooltiptext { position: absolute; display: block; z-index: 2; width: 250px; padding: 10px; visibility: hidden; opacity: 0; white-space: normal; text-align: left; transition: all 0.2s; border: 1px solid #aaa; background-color: #005069; border-radius: 8px; transition-delay: 0.2s; color: #fcfcfc; } .tooltip:hover > .tooltiptext{ visibility: visible; opacity: 1; transiti...» |
Rirma4ch (обсуждение | вклад) Нет описания правки |
||
| (не показана 1 промежуточная версия этого же участника) | |||
| Строка 16: | Строка 16: | ||
transition: all 0.2s; | transition: all 0.2s; | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
background-color: # | background-color: #6d885d; /* цвет фона */ | ||
border-radius: 8px; | border-radius: 8px; | ||
transition-delay: 0.2s; | transition-delay: 0.2s; | ||
color: #fcfcfc; | color: #fcfcfc;/* цвет текста */ | ||
} | } | ||
Текущая версия от 11:56, 16 ноября 2025
.tooltip {
position: relative;
cursor: pointer;
}
.tooltiptext {
position: absolute;
display: block;
z-index: 2;
width: 250px;
padding: 10px;
visibility: hidden;
opacity: 0;
white-space: normal;
text-align: left;
transition: all 0.2s;
border: 1px solid #aaa;
background-color: #6d885d; /* цвет фона */
border-radius: 8px;
transition-delay: 0.2s;
color: #fcfcfc;/* цвет текста */
}
.tooltip:hover > .tooltiptext{
visibility: visible;
opacity: 1;
transition-delay: 0.1s;
}