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
Tag: Manual revert
 
(77 intermediate revisions by the same user not shown)
Line 1: Line 1:
.home-header {
.home-header {
position: relative;
position: relative;
padding-top: 3.5rem;
padding-top: 3.2rem;
padding-bottom: 3.5rem;
padding-bottom: 3.2rem;
line-height: 1.1;
line-height: 1.1;
text-align: center;
text-align: center;
Line 8: Line 8:


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


.home-header__title {
.home-header__title {
margin: 0;
margin: 0;
font-size: 3.5rem;
font-size: 4.5rem;
text-transform: uppercase;
text-transform: uppercase;
line-height: 0.9;
line-height: 0.9;
Line 23: Line 23:


.home-header__subtitle {
.home-header__subtitle {
margin-top: 0.25rem;
margin-top: -0.6rem;
color: #888;
color: #888;
font-size: 0.9em;
font-size: 0.9em;
Line 31: Line 31:
/*
/*
  * 1. STYLES FOR THE BUTTON ITSELF
  * 1. STYLES FOR THE BUTTON ITSELF
  * (Based on .home-header__search, replacing variables)
  * (Now with Flexbox for icon alignment)
  */
  */
.citizen-search-trigger {
/* This is the PARENT container */
  /* --- Core Setup --- */
.gradient-border {
   /* We must use position: relative to contain the animated glow */
   /* CRITICAL: This "contains" the child element */
  position: relative;
  position: relative;  
   /* z-index ensures the text stays on top of the glow */
 
  z-index: 1;
   /* This padding defines the *overall size and shape* of the button */
   /* A span needs to be 'block' to have margins and width */
   /* DO NOT REMOVE THIS */
  display: block;  
  padding: 25px 25px;
   /* Prevents the glow from leaking out when not hovered */
 
  overflow: hidden;  
   /* These are good for centering the button on the page */
  max-width: 600px;
  margin: 32px auto;


  /* --- Layout (Replaced --space vars) --- */
  background: #1c1f2b; /* Fallback color */
  /* padding: var(--space-md); */
  border-radius: 9999px; /* Changed to pill shape */
  padding: 12px 24px;
  z-index: 0;
  /* margin-top: var(--space-xl); */
 
  margin-top: 32px;  
  /* margin-left/right: auto; */
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;


   /* --- Appearance (Replaced --color and --border vars) --- */
   /* NOTE: You still need your ::before pseudo-element */
  /* background-color: var(--color-surface-1); */
   /* (like .gradient-border::before) to create the gradient! */
  background-color: #2a2a2a; /* A dark background */
   /* This class only holds the content. */
  color: #eee; /* Light text */
   /* border: var(--border-base); */
  border: 1px solid #555;
  /* border-radius: var(--border-radius-pill); */
   border-radius: 9999px; /* This creates the "pill" shape */
 
  /* --- Text (Replaced --font vars) --- */
  /* font-size: var(--font-size-small); */
  font-size: 14px;
  /* font-weight: var(--font-weight-medium); */
  font-weight: 500;
  text-align: center;
 
  /* --- Other --- */
  cursor: pointer;
  /* Smooth transition for the background color change on hover */
  transition: background-color 0.3s ease;
}
}


/*
/* This is the CHILD (the button face) */
* 2. THE ANIMATED GLOW (::before pseudo-element)
.search-box {
*/
  /* Use absolute positioning to fill the parent */
.citizen-search-trigger::before {
  position: absolute;
  content: '';
  top: 0;
  position: absolute;
  left: 0;
  /* Place it behind the button's content */
  width: 100%;
  z-index: -1;  
  height: 100%;
 
 
  /* Make it slightly larger than the button to create the "glow" border */
 
  top: -4px;
  /* These center the text/icon *inside* this element */
  left: -4px;
  display: flex;
  width: calc(100% + 8px);
  align-items: center;
  height: calc(100% + 8px);
  justify-content: center;
  gap: 6px;
  /* Styling for the button face */
  border-radius: 9999px;
  background-color: #121011;
  color: #eee;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  /* Sits on top of the parent */
  z-index: 1;
}
.gradient-border::before {
  border-radius: 9999px;
  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


  /* --- Use the gradients from your example --- */
  background: linear-gradient(90deg,
    #87bfdb, #77abC8, #6797b5, #577f9d, #476684, #43668a,
    #3e668f, #304a66, #212e3d, #304a66, #3e668f, #43668a,
    #476684, #577f9d, #6797b5, #77abC8, #87bfdb
   );
   );
  /* Make the background large so the animation is smooth */
  background-size: 400% 400%;


  /* --- Use the blur from your example --- */
  background-size: 400% 400%;
  /* filter: blur(var(--gradient-blur)); */
  filter: blur(4px);
  filter: blur(4px);
 
  /* --- The Animation --- */
  animation: moveGradient 10s linear infinite;
  animation: moveGradient 10s linear infinite;
 
  transition: all 0.5s ease;
  /* Smoothly transition the filter and gradient */
 
  transition: all 0.5s ease;
  opacity: 0.5;
 
}
}


/*
 
* 3. HOVER EFFECTS
.gradient-border:hover {
*/
 
.citizen-search-trigger:hover {
  background-color: #1a1a1a;
  /* background: var(--color-surface-0); */
 
  background-color: #1a1a1a; /* Darken the button on hover */
}
}


.citizen-search-trigger:hover::before {
 
  /* --- Change to the HOVER gradient from your example --- */
 
.gradient-border:hover::before {
width: calc(100% + 8px);
height: calc(100% + 8px);
 
   background: linear-gradient(90deg,  
   background: linear-gradient(90deg,  
     #120d0e, #321d13, #512d19, #713d1e, #90571d, #b0701b,  
     #120d0e, #321d13, #512d19, #713d1e, #90571d, #b0701b,  
     #cf8a1a, #de9822, #eeA529, #fdb331, #eeA529, #de9822,  
     #cf8a1a, #de9822, #eeA529, #fdb331, #eeA529, #de9822,  
     #cf8a1a, #b0701b, #90571d, #713d1e, #512d19, #321d13, #120d0e
     #cf8a1a, #b0701b, #90571d, #713d1e, #512d19, #321d13, #120d0e
   );
   );
  background-size: 400% 400%;
 
 
  background-size: 400% 400%;
  /* --- Change to the HOVER blur from your example --- */
  /* --gradient-blur: 8px; */
  filter: blur(8px);
  filter: blur(8px);
 
  animation: moveGradient 10s linear infinite;
  /* Speed up the animation on hover for a nice effect */
  animation: moveGradient 5s linear infinite;
  transition: all 0.5s ease;
 
  opacity: 0.5;
 
}
}


/*
/*
  * 4. THE KEYFRAMES FOR THE ANIMATION
 
  * (Moves the background-position of the gradient)
  * 5. THE KEYFRAMES FOR THE ANIMATION
 
  * (This is unchanged from before)
 
  */
  */
@keyframes moveGradient {
@keyframes moveGradient {
   0% { background-position: 0% 50%; }
   0% { background-position: 0% 50%; }
   50% { background-position: 100% 50%; }
   50% { background-position: 100% 50%; }
   100% { background-position: 0% 50%; }
   100% { background-position: 0% 50%; }
}
.event {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.event-bar {
display: flex;
align-items: center;      /* vertical alignment */
justify-content: space-between; /* left vs right spacing */
padding: 10px 20px;
background-color: #121011;
color: #fff;
}
.menu-right {
display: flex;
gap: 20px;
}
}

Latest revision as of 23:41, 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: 25px 25px;
  
  /* 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-box {
	  /* 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;
	  background-color: #121011;
	  color: #eee;
	  font-size: 14px;
	  font-weight: 500;
	  cursor: pointer;
	
	  /* Sits on top of the parent */
	  z-index: 1; 
}
 
 .gradient-border::before {
	 	
	  border-radius: 9999px;
	
	  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;
	  
	  opacity: 0.5;

}


.gradient-border:hover {

	  background-color: #1a1a1a;

}



.gradient-border:hover::before {
	
	width: calc(100% + 8px);
	
	height: calc(100% + 8px);

  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 10s linear infinite;
	
	  transition: all 0.5s ease;
	  
	  opacity: 0.5;

}



/*

 * 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%; }

}

.event {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.event-bar {
	display: flex;
	align-items: center;      /* vertical alignment */
	justify-content: space-between; /* left vs right spacing */
	padding: 10px 20px;
	background-color: #121011;
	color: #fff;
}

.menu-right {
	display: flex;
	gap: 20px;
}