Szablon:potencjalnie/styles.css: Różnice pomiędzy wersjami
[wersja przejrzana] | [wersja przejrzana] |
Usunięta treść Dodana treść
@media print (wg MediaWiki:Print.css) |
specjalny "dymek" dla urzadzen mobilnych (Specjalna:Diff/7685536) |
||
Linia 13: | Linia 13: | ||
font-style: italic; |
font-style: italic; |
||
opacity: inherit; |
opacity: inherit; |
||
} |
|||
} |
|||
/* https://stackoverflow.com/a/60660207/10404307 */ |
|||
@media (pointer: coarse), (hover: none) { |
|||
.potential-form { |
|||
position: relative; |
|||
display: inline-flex; |
|||
} |
|||
.potential-form:focus { |
|||
opacity: inherit; |
|||
} |
|||
.potential-form:focus::after { |
|||
content: attr(title); |
|||
position: absolute; |
|||
top: 90%; |
|||
background-color: #fff; |
|||
border: 1px solid #aaa; |
|||
width: max-content; |
|||
padding: 3px; |
|||
} |
} |
||
} |
} |
Wersja z 15:51, 13 maj 2021
.potential-form {
opacity: 0.4;
font-weight: normal;
cursor: help;
}
.potential-form:hover {
opacity: inherit;
}
@media print {
.potential-form {
font-style: italic;
opacity: inherit;
}
}
/* https://stackoverflow.com/a/60660207/10404307 */
@media (pointer: coarse), (hover: none) {
.potential-form {
position: relative;
display: inline-flex;
}
.potential-form:focus {
opacity: inherit;
}
.potential-form:focus::after {
content: attr(title);
position: absolute;
top: 90%;
background-color: #fff;
border: 1px solid #aaa;
width: max-content;
padding: 3px;
}
}