Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main page/header/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 33: Line 33:
  * (Now with Flexbox for icon alignment)
  * (Now with Flexbox for icon alignment)
  */
  */
/* This is the PARENT container */
.gradient-border {
  /* CRITICAL: This "contains" the child element */
  position: relative;
 
  /* This padding defines the *overall size and shape* of the button */
  /* DO NOT REMOVE THIS */
  padding: 12px 24px;
 
  /* These are good for centering the button on the page */
  max-width: 600px;
  margin: 32px auto;
  background: #1c1f2b; /* Fallback color */
  border-radius: 9999px; /* Changed to pill shape */
  z-index: 0;
  /* NOTE: You still need your ::before pseudo-element */
  /* (like .gradient-border::before) to create the gradient! */
  /* This class only holds the content. */
}
/* This is the CHILD (the button face) */
.search-trigger {
.search-trigger {
   position: relative;
  /* Use absolute positioning to fill the parent */
   position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
  /* These center the text/icon *inside* this element */
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   gap: 6px;
   gap: 6px;
  width: 100%;
  height: 100%;


   border-radius: 9999px;
  /* Styling for the button face */
   background-color: #2a2a2a;
   border-radius: 9999px; /* Match the parent's pill shape */
   background-color: #2a2a2a; /* I changed your red to the dark color */
   color: #eee;
   color: #eee;
   font-size: 14px;
   font-size: 14px;
Line 49: Line 78:
   cursor: pointer;
   cursor: pointer;


   /* Make space for the border overlay */
   /* Sits on top of the parent */
   z-index: 1;
   z-index: 1;  
  overflow: hidden;
}
}
/* 3. THE ANIMATED GLOW (::before pseudo-element)
* (This is unchanged from before)
*/
.gradient-border {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1c1f2b;
  text-align: center;
  border-radius: 10px;
  z-index: 0;
}
   
   
  .gradient-border::before {
  .gradient-border::before {

Revision as of 20:57, 8 November 2025

.home-header {
	position: relative;
	padding-top: 3.2rem;
	padding-bottom: 3.2rem;
	line-height: 1.1;
	text-align: center;
}

.home-header__pretitle {
	color: #888;
	font-size: 0.9em;
	letter-spacing: 0.05em;
	margin: -0.8rem;
}

.home-header__title {
	margin: 0;
	font-size: 4.5rem;
	text-transform: uppercase;
	line-height: 0.9;
	font-weight: 600;
}

.home-header__subtitle {
	margin-top: -0.6rem;
	color: #888;
	font-size: 0.9em;
}


/*
 * 1. STYLES FOR THE BUTTON ITSELF
 * (Now with Flexbox for icon alignment)
 */
/* This is the PARENT container */
.gradient-border {
  /* CRITICAL: This "contains" the child element */
  position: relative; 
  
  /* This padding defines the *overall size and shape* of the button */
  /* DO NOT REMOVE THIS */
  padding: 12px 24px;
  
  /* These are good for centering the button on the page */
  max-width: 600px;
  margin: 32px auto;

  background: #1c1f2b; /* Fallback color */
  border-radius: 9999px; /* Changed to pill shape */
  z-index: 0;

  /* NOTE: You still need your ::before pseudo-element */
  /* (like .gradient-border::before) to create the gradient! */
  /* This class only holds the content. */
}

/* This is the CHILD (the button face) */
.search-trigger {
  /* Use absolute positioning to fill the parent */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* These center the text/icon *inside* this element */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  /* Styling for the button face */
  border-radius: 9999px; /* Match the parent's pill shape */
  background-color: #2a2a2a; /* I changed your red to the dark color */
  color: #eee;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;

  /* Sits on top of the parent */
  z-index: 1; 
}
 
 .gradient-border::before {

  content: '';

  position: absolute;

  z-index: -1;

  top: -4px;

  left: -4px;

  width: calc(100% + 8px);

  height: calc(100% + 8px);

  background: linear-gradient(90deg, 

    #87bfdb, #77abC8, #6797b5, #577f9d, #476684, #43668a, 

    #3e668f, #304a66, #212d3d, #304a66, #3e668f, #43668a, 

    #476684, #577f9d, #6797b5, #77abC8, #87bfdb

  );

  background-size: 400% 400%;

  filter: blur(4px);

  animation: moveGradient 10s linear infinite;

  transition: all 0.5s ease;

}



/*

 * 4. HOVER EFFECTS

 * (This is unchanged from before)

 */

.gradient-border:hover {

  background-color: #1a1a1a;

}



.gradient-border:hover::before {

  background: linear-gradient(90deg, 

    #120d0e, #321d13, #512d19, #713d1e, #90571d, #b0701b, 

    #cf8a1a, #de9822, #eeA529, #fdb331, #eeA529, #de9822, 

    #cf8a1a, #b0701b, #90571d, #713d1e, #512d19, #321d13, #120d0e

  );

  background-size: 400% 400%;

  filter: blur(8px);

  animation: moveGradient 5s linear infinite;

}



/*

 * 5. THE KEYFRAMES FOR THE ANIMATION

 * (This is unchanged from before)

 */

@keyframes moveGradient {

  0% { background-position: 0% 50%; }

  50% { background-position: 100% 50%; }

  100% { background-position: 0% 50%; }

}