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 34: Line 34:
  */
  */
.citizen-search-trigger {
.citizen-search-trigger {
  /* --- Core Setup --- */
   position: relative;
   position: relative;
  z-index: 1;
  /* CHANGED: Use flex to align icon and text */
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   gap: 6px;
   gap: 6px;
  /* ----------------- */
 
  overflow: hidden;
   padding: 12px 24px;
   padding: 12px 24px;
   margin-top: 32px;
   border-radius: 9999px;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
 
  /* --- Appearance --- */
   background-color: #2a2a2a;
   background-color: #2a2a2a;
   color: #eee;
   color: #eee;
  border: 1px solid #555;
  border-radius: 9999px;
 
  /* --- Text --- */
   font-size: 14px;
   font-size: 14px;
   font-weight: 500;
   font-weight: 500;
  /* text-align is no longer needed */
 
  /* --- Other --- */
   cursor: pointer;
   cursor: pointer;
   transition: background-color 0.3s ease;
 
   /* Make space for the border overlay */
  z-index: 0;
  overflow: hidden;
}
}


.gradient-border {
/* Gradient border as pseudo-element */
  background: #1D1F20;
.citizen-search-trigger::before {
  position: relative;
  border-radius: 3px;
}
.gradient-border:after {
   content: '';
   content: '';
   position: absolute;
   position: absolute;
   top: calc(-1 * 3px);
   top: -2px;  /* border thickness */
   left: calc(-1 * 3px);
   left: -2px;
   height: calc(100% + 3px * 2);
   width: calc(100% + 4px);
   width: calc(100% + 3px * 2);
   height: calc(100% + 4px);
  border-radius: 9999px;  /* match button */
   background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
   background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
   border-radius: calc(2 * 3px);
   background-size: 300% 300%;
   z-index: -1;
   z-index: -1;
   animation: animatedgradient 3s ease alternate infinite;
   animation: animatedgradient 3s ease alternate infinite;
  background-size: 300% 300%;
}
}


 
/* Keyframes for moving gradient */
@keyframes animatedgradient {
@keyframes animatedgradient {
0% {
  0% { background-position: 0% 50%; }
background-position: 0% 50%;
  50% { background-position: 100% 50%; }
}
  100% { background-position: 0% 50%; }
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
}

Revision as of 20:11, 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)
 */
.citizen-search-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 12px 24px;
  border-radius: 9999px;
  background-color: #2a2a2a;
  color: #eee;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;

  /* Make space for the border overlay */
  z-index: 0;
  overflow: hidden;
}

/* Gradient border as pseudo-element */
.citizen-search-trigger::before {
  content: '';
  position: absolute;
  top: -2px;  /* border thickness */
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 9999px;  /* match button */
  background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
  background-size: 300% 300%;
  z-index: -1;
  animation: animatedgradient 3s ease alternate infinite;
}

/* Keyframes for moving gradient */
@keyframes animatedgradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}