MediaWiki:Ommoncay.cssay
Aus MediaWiki
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ .page-Hauptseite #firstHeading { display: none; } /* Fancy "read more" links on article teasers */ .article-more-link a { color: #f00; padding: 13px 20px 0 20px; font-size:22px; position: relative; z-index: 0; width: 200px; height: 50px; border-radius: 10px; overflow: hidden; &::before { content: ''; position: absolute; z-index: -2; left: -50%; top: -160%; width: 200%; height: 400%; opacity: 0.3; background-color: #f00; background-repeat: no-repeat; background-size: 50% 50%, 50% 50%; } &::after { content: ''; position: absolute; z-index: -1; left: 6px; top: 6px; width: calc(100% - 12px); height: calc(100% - 12px); background: white; border-radius: 5px; } } .article-more-link a:hover { &::before { opacity: 1; background-position: 0 0, 100% 0, 100% 100%, 0 100%; background-image: linear-gradient(#399953, #399953), linear-gradient(#fbb300, #fbb300), linear-gradient(#d53e33, #d53e33), linear-gradient(#377af5, #377af5); animation: rotate 4s linear infinite; } &::after { animation: opacityChange 3s infinite alternate; } } @keyframes rotate { 100% { transform: rotate(1turn); } } @keyframes opacityChange { 50% { opacity: .4; } 100% { opacity: .8; } }