MediaWiki:Common.css: Difference between revisions

From Ages of Conflict
Content added Content deleted
No edit summary
No edit summary
Line 132: Line 132:
margin: 3px;
margin: 3px;
}
}
/* Define the title rectangle */
.title-rectangle {
background-color: #BCA17D;
border: 2px solid #57514A;
padding: 10px;
width: 300px;
text-align: center;
transition: background-color 0.5s ease;
}

.title-rectangle:hover {
background-color: #57514A;
animation: bounce 0.5s;
}

/* Define the title rectangle */
/* Define the title rectangle */
.title-rectangle {
.title-rectangle {
Line 160: Line 175:
.text-box:hover {
.text-box:hover {
background-color: #57514A;
background-color: #57514A;
animation: bounce 0.5s;
}
}



Revision as of 18:02, 19 November 2023

@import "/load.php?mode=articles&articles=u:dev:MediaWiki:BalancedSearch.css&only=styles";
/* CSS */
@import "/load.php?mode=articles&articles=u:dev:MediaWiki:UpgradedToolbar.css&only=styles";
/* CSS */
@import "/load.php?mode=articles&articles=u:dev:MediaWiki:LocalNavExploreIcons.css&only=styles";
/* CSS */
@import "/load.php?mode=articles&articles=u:dev:MediaWiki:BalancedProfile.css&only=styles";
/* CSS */
@import "/load.php?mode=articles&articles=u:dev:MediaWiki:OldEuropa.css&only=styles";
/* CSS */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200&display=swap');
.main-container h1,.main-container h2, .main-container h3, .main-container h4, .main-container h5 { 
    font-family: "Nunito Sans", sans-serif;
}

.resizable-container { 
    font-family: "Nunito Sans", sans-serif; 
    font-weight: 400;
}



div.page:before {
  /* first we initialise the pseudo element */
  content: '';
  display: block;
  position: absolute; /* remove the element from the normal document flow so it doesn't shift anything unwanted */

  /* fill the entire container */
  width: 100%;
  height: 100%;

  /* now we have our code */
  background: url('https://static.wikia.nocookie.net/ages-of-conflict-world-war-simulator/images/f/fb/Camo.png/revision/latest/scale-to-width-down/600');
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
  opacity: 0.2;
}
.page__main {
background-color: rgba(var(--theme-page-background-color--rgb),
    0.7);
}

/*COMMUNITY HEADER drop shadow*/
.theme-fandomdesktop-light .fandom-community-header {
    filter: drop-shadow(0px 0px 6px #FF6A00) drop-shadow(0px 0px 2px #FF6A00);
    z-index: 200;
}
.theme-fandomdesktop-dark .fandom-community-header {
    filter: drop-shadow(0px 0px 6px #FF6A00) drop-shadow(0px 0px 2px #FF6A00);
    z-index: 200;
}

a[href="/wiki/User:Cosmoj0sh"]  {color:violet; font-weight:bold; filter:drop-shadow(0px 0px 2px #B200FF);}

#navbar a:hover {
    background-color: #ddd;
    color: black;
}

.MPElement {
  padding: 20px;
  background-color: #D2B48C;
  color: #3D3D3D;
  border: 1px solid #888;
  margin-bottom: 10px;
  transition: all 0.3s ease; /* Shorter transition for a more subtle effect */
}

.MPElement:hover {
  background-color: #C19A6B; /* Subtle change in background color on hover */
}

.MPElement h2 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #888;
}

.MPElement p.small {
  font-size: 0.8em;
  margin-top: 10px;
  border-top: 1px solid #888;
}

.MPElement a {
  color: #008B8B; /* Link color that stands out against both light and dark backgrounds */
}

.MPElement a:hover {
  color: #00FFFF; /* Link color on hover */
}

.container {
  display: flex; /* Aligns the boxes horizontally */
}

.MPElement {
  flex: 1; /* Each box will take up an equal amount of space */
  padding: 20px;
  background-color: #D2B48C;
  color: #3D3D3D;
  border: 1px solid #888;
  margin: 10px; /* Space around each box */
  transition: all 0.3s ease;
}

.MPElement:hover {
  background-color: #776650;
}

.MPElement h2 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #888;
}

.MPElement p.small {
  font-size: 0.8em;
  margin-top: 10px;
  border-top: 1px solid #888;
}
.fandom-community-header .wds-button.wds-is-secondary {
    border-radius: 20px;
    border-width: 2px;
    margin: 3px
}
.fandom-community-header .wds-button-group > .wds-dropdown:not(:first-child) .wds-button {
    border-radius: 10px;
    margin: 3px;
}
/* Define the title rectangle */
.title-rectangle {
    background-color: #BCA17D;
    border: 2px solid #57514A;
    padding: 10px;
    width: 300px;
    text-align: center;
    transition: background-color 0.5s ease;
}

.title-rectangle:hover {
    background-color: #57514A;
    animation: bounce 0.5s;
}

/* Define the title rectangle */
.title-rectangle {
    background-color: #BCA17D;
    border: 2px solid #57514A;
    padding: 10px;
    width: 300px;
    text-align: center;
    transition: background-color 0.5s ease;
}

.title-rectangle:hover {
    background-color: #57514A;
    animation: bounce 0.5s;
}

/* Define the text box */
.text-box {
    background-color: #BCA17D;
    border: 2px solid #57514A;
    padding: 20px;
    width: 300px;
    height: 300px;
    margin-top: 10px;
    transition: background-color 0.5s ease;
}

.text-box:hover {
    background-color: #57514A;
    animation: bounce 0.5s;
}

/* Define the bounce animation */
@keyframes bounce {
    0%   {transform: scale(1,1)      translateY(0);}
    10%  {transform: scale(1.1,.9)   translateY(0);}
    30%  {transform: scale(.9,1.1)   translateY(-20px);}
    50%  {transform: scale(1.05,.95) translateY(0);}
    57%  {transform: scale(1,1)      translateY(-7px);}
    64%  {transform: scale(1,1)      translateY(0);}
    100% {transform: scale(1,1)      translateY(0);}
}