MediaWiki:Wikia.css/Usernames.css

/*

Original Version of this Script: clashofclans.fandom.com/wiki/MediaWiki:Wikia.css/Usernames.css

ORDER OF THIS LIST: Founders, Bureaucrats, Administrators, Moderators

The Script Avatars.js is neccasary for all css to work properly. Avatars.js allows masthead avatars to be effected. "Write a Reply" avatars are effected as well.

NOTE: Do not substitute underscores for spaces in avatar alts.

NOTE: For usernames with spaces, their user page link needs to be duplicated, but the second line should have %20 instead of an underscore.

NOTE: For usernames with spaces, spaces in the link BEFORE THE AVATAR must be replaced with "%20".

/*Leave Global Navigation Untouched*/ .wds-dropdown__toggle .wds-avatar .wds-avatar__image { -webkit-animation-name: pulsate-avatar-cancel-pulsate; animation-name: pulsate-avatar-cancel-pulsate; } .wds-global-navigation__user-menu .wds-dropdown__content .wds-list.wds-is-linked>li>a:not(.wds-button) { color: #39424d !important; font-weight: normal !important; font-family: inherit; }

/*Square avatars- Optional, but the animation works better on square avatars */ .wds-dropdown__toggle .wds-avatar__image, .wds-notifications__notification-list .wds-avatar__image { border-radius:50% !important } .wds-avatar__image, .user-identity-avatar__image, .blog-listing__user-avatar__image { border-radius:0 !important; }

/********************************/ /*         Founder: 1          */ /********************************/ /*Links*/ a[href$="User:Nenrif"]:not(.extiw):not(.external), a[href$="Message_Wall:Nenrif"]:not(.extiw):not(.external), a[href$="User_blog:Nenrif"]:not(.extiw):not(.external), a[href$="/Nenrif"]:not(.extiw):not(.external), a[href*="/Nenrif?"]:not(.extiw):not(.external), a[href$="=Nenrif"]:not(.extiw):not(.external), a[href$="=User%3ANenrif"]:not(.extiw):not(.external) {	color: yellow !important; font-weight: bold !important; }

/*Bio*/ .user-identity-bio[alt="Nenrif's bio"] { color: yellow; transition:color .1s; }

/* Avatar borders */ .user-identity-avatar__image[alt="Nenrif"] { -webkit-animation-name: pulsate-avatar-large-founder; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: alternate; -webkit-animation-play-state: running; animation-name: pulsate-avatar-large-founder; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; transition:box-shadow .5s; }

a[href="/wiki/User:Nenrif"] .wds-avatar__image, .blog-listing__user-avatar__image[alt='Nenrif'], .wds-avatar__image[alt='Nenrif'] { -webkit-animation-name: pulsate-avatar-small-founder; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: alternate; -webkit-animation-play-state: running; animation-name: pulsate-avatar-small-founder; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; }

@-webkit-keyframes pulsate-avatar-large-founder { from { -webkit-box-shadow: 0 0 1px 2px yellow; -moz-box-shadow: 0 0 1px 2px yellow; box-shadow: 0 0 1px 2px yellow; }	to { -webkit-box-shadow: 0 0 12px 9px yellow; -moz-box-shadow: 0 0 12px 9px yellow; box-shadow: 0 0 12px 9px yellow; } } @keyframes pulsate-avatar-large-founder { from { -webkit-box-shadow: 0 0 1px 2px yellow; -moz-box-shadow: 0 0 1px 2px yellow; box-shadow: 0 0 1px 2px yellow; }	to { -webkit-box-shadow: 0 0 12px 9px yellow; -moz-box-shadow: 0 0 12px 9px yellow; box-shadow: 0 0 12px 9px yellow; } } @-webkit-keyframes pulsate-avatar-small-founder { from { -webkit-box-shadow: 0 0 1px 2px yellow; -moz-box-shadow: 0 0 1px 2px yellow; box-shadow: 0 0 1px 2px yellow; }	to { -webkit-box-shadow: 0 0 6px 5px yellow; -moz-box-shadow: 0 0 6px 5px yellow; box-shadow: 0 0 6px 5px yellow; } } @keyframes pulsate-avatar-small-founder { from { -webkit-box-shadow: 0 0 1px 2px yellow; -moz-box-shadow: 0 0 1px 2px yellow; box-shadow: 0 0 1px 2px yellow; }

to { -webkit-box-shadow: 0 0 6px 5px yellow; -moz-box-shadow: 0 0 6px 5px yellow; box-shadow: 0 0 6px 5px yellow; } }

/********************************/ /*       Bureaucrats: 1        */ /********************************/ /*Links*/ a[href$="User:M"]:not(.extiw):not(.external), a[href$="Message_Wall:M"]:not(.extiw):not(.external), a[href$="User_blog:M"]:not(.extiw):not(.external), a[href$="/M"]:not(.extiw):not(.external), a[href*="/M?"]:not(.extiw):not(.external), a[href$="=M"]:not(.extiw):not(.external), a[href$="=User%3AM"]:not(.extiw):not(.external) {	color: blue !important; font-weight: bold !important; }

/* Avatar borders */ .user-identity-avatar__image[alt="M"] { -webkit-animation-name: pulsate-avatar-large-bureaucrat; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: alternate; -webkit-animation-play-state: running; animation-name: pulsate-avatar-large-bureaucrat; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; }

a[href="/wiki/User:M"] .wds-avatar__image, .blog-listing__user-avatar__image[alt='M'], .wds-avatar__image[alt='M'] { -webkit-animation-name: pulsate-avatar-small-bureaucrat; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: alternate; -webkit-animation-play-state: running; animation-name: pulsate-avatar-small-bureaucrat; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; }

@-webkit-keyframes pulsate-avatar-large-bureaucrat { from { -webkit-box-shadow: 0 0 1px 2px blue; -moz-box-shadow: 0 0 1px 2px blue; box-shadow: 0 0 1px 2px blue; }	to { -webkit-box-shadow: 0 0 12px 9px blue; -moz-box-shadow: 0 0 12px 9px blue; box-shadow: 0 0 12px 9px blue; } } @keyframes pulsate-avatar-large-bureaucrat { from { -webkit-box-shadow: 0 0 1px 2px blue; -moz-box-shadow: 0 0 1px 2px blue; box-shadow: 0 0 1px 2px blue; }	to { -webkit-box-shadow: 0 0 12px 9px blue; -moz-box-shadow: 0 0 12px 9px blue; box-shadow: 0 0 12px 9px blue; } } @-webkit-keyframes pulsate-avatar-small-bureaucrat { from { -webkit-box-shadow: 0 0 1px 2px blue; -moz-box-shadow: 0 0 1px 2px blue; box-shadow: 0 0 1px 2px blue; }	to { -webkit-box-shadow: 0 0 6px 5px blue; -moz-box-shadow: 0 0 6px 5px blue; box-shadow: 0 0 6px 5px blue; } } @keyframes pulsate-avatar-small-bureaucrat { from { -webkit-box-shadow: 0 0 1px 2px blue; -moz-box-shadow: 0 0 1px 2px blue; box-shadow: 0 0 1px 2px blue; }

to { -webkit-box-shadow: 0 0 6px 5px blue; -moz-box-shadow: 0 0 6px 5px blue; box-shadow: 0 0 6px 5px blue; } }

/****************************/ /*    Administrators: 0    */ /****************************/ /*Links*/ a[href$="User:ADMINNAME"]:not(.extiw):not(.external), a[href$="Message_Wall:ADMINNAME"]:not(.extiw):not(.external), a[href$="User_blog:ADMINNAME"]:not(.extiw):not(.external), a[href$="/ADMINNAME"]:not(.extiw):not(.external), a[href*="/ADMINNAME?"]:not(.extiw):not(.external), a[href$="=ADMINNAME"]:not(.extiw):not(.external)	{ color: orange !important; font-weight: bold !important; }

/* Avatar borders */ .user-identity-avatar__image[alt="ADMINNAME"]{ -webkit-animation-name: pulsate-avatar-large-administrator; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: alternate; -webkit-animation-play-state: running; animation-name: pulsate-avatar-large-administrator; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; }

a[href="/wiki/User:ADMINNAME"] .wds-avatar__image, .blog-listing__user-avatar__image[alt='ADMINNAME'], .wds-avatar__image[alt='ADMINNAME']{ -webkit-animation-name: pulsate-avatar-small-administrator; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: alternate; -webkit-animation-play-state: running; animation-name: pulsate-avatar-small-administrator; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; }

@-webkit-keyframes pulsate-avatar-large-administrator { from { -webkit-box-shadow: 0 0 1px 2px orange; -moz-box-shadow: 0 0 1px 2px orange; box-shadow: 0 0 1px 2px orange; }	to { -webkit-box-shadow: 0 0 12px 9px orange; -moz-box-shadow: 0 0 12px 9px orange; box-shadow: 0 0 12px 9px orange; } } @keyframes pulsate-avatar-large-administrator { from { -webkit-box-shadow: 0 0 1px 2px orange; -moz-box-shadow: 0 0 1px 2px orange; box-shadow: 0 0 1px 2px orange; }	to { -webkit-box-shadow: 0 0 12px 9px orange; -moz-box-shadow: 0 0 12px 9px orange; box-shadow: 0 0 12px 9px orange; } } @-webkit-keyframes pulsate-avatar-small-administrator { from { -webkit-box-shadow: 0 0 1px 2px orange; -moz-box-shadow: 0 0 1px 2px orange; box-shadow: 0 0 1px 2px orange; }	to { -webkit-box-shadow: 0 0 6px 5px orange; -moz-box-shadow: 0 0 6px 5px orange; box-shadow: 0 0 6px 5px orange; } } @keyframes pulsate-avatar-small-administrator { from { -webkit-box-shadow: 0 0 1px 2px orange; -moz-box-shadow: 0 0 1px 2px orange; box-shadow: 0 0 1px 2px orange; }

to { -webkit-box-shadow: 0 0 6px 5px orange; -moz-box-shadow: 0 0 6px 5px orange; box-shadow: 0 0 6px 5px orange; } }

/************************/ /*    Moderators: 1    */ /************************/ /*Links*/ a[href$="User:MODNAME"]:not(.extiw):not(.external), a[href$="Message_Wall:MODNAME"]:not(.extiw):not(.external), a[href$="User_blog:MODNAME"]:not(.extiw):not(.external), a[href$="/MODNAME"]:not(.extiw):not(.external), a[href*="/MODNAME?"]:not(.extiw):not(.external), a[href$="=MODNAME"]:not(.extiw):not(.external), a[href$="=User%3AMODNAME"]:not(.extiw):not(.external) { color: white !important; font-weight: bold !important; }

/* Avatar borders */ .user-identity-avatar__image[alt="MODNAME"] { -webkit-animation-name: pulsate-avatar-large-moderator; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: alternate; -webkit-animation-play-state: running; animation-name: pulsate-avatar-large-moderator; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; }

a[href="/wiki/User:MODNAME"] .wds-avatar__image, .blog-listing__user-avatar__image[alt='MODNAME'], .wds-avatar__image[alt='MODNAME'] { -webkit-animation-name: pulsate-avatar-small-moderator; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: alternate; -webkit-animation-play-state: running; animation-name: pulsate-avatar-small-moderator; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; }

@-webkit-keyframes pulsate-avatar-large-moderator { from { -webkit-box-shadow: 0 0 1px 2px white; -moz-box-shadow: 0 0 1px 2px white; box-shadow: 0 0 1px 2px white; }	to { -webkit-box-shadow: 0 0 12px 9px white; -moz-box-shadow: 0 0 12px 9px white; box-shadow: 0 0 12px 9px white; } } @keyframes pulsate-avatar-large-moderator { from { -webkit-box-shadow: 0 0 1px 2px white; -moz-box-shadow: 0 0 1px 2px white; box-shadow: 0 0 1px 2px white; }	to { -webkit-box-shadow: 0 0 12px 9px white; -moz-box-shadow: 0 0 12px 9px white; box-shadow: 0 0 12px 9px white; } } @-webkit-keyframes pulsate-avatar-small-moderator { from { -webkit-box-shadow: 0 0 1px 2px white; -moz-box-shadow: 0 0 1px 2px white; box-shadow: 0 0 1px 2px white; }	to { -webkit-box-shadow: 0 0 6px 5px white; -moz-box-shadow: 0 0 6px 5px white; box-shadow: 0 0 6px 5px white; } } @keyframes pulsate-avatar-small-moderator { from { -webkit-box-shadow: 0 0 1px 2px white; -moz-box-shadow: 0 0 1px 2px white; box-shadow: 0 0 1px 2px white; }

to { -webkit-box-shadow: 0 0 6px 5px white; -moz-box-shadow: 0 0 6px 5px white; box-shadow: 0 0 6px 5px white; } }