Template:Main page/header/styles.css: Difference between revisions
Template page
More actions
Created page with ".home-header { position: relative; padding-top: 3.5rem; padding-bottom: 3.5rem; line-height: 1.1; text-align: center; } .home-header__pretitle { margin-bottom: 0.25rem; color: #888; font-size: 0.9em; letter-spacing: 0.05em; } .home-header__title { margin: 0; font-size: 3.5rem; text-transform: uppercase; line-height: 0.9; font-weight: 600; } .home-header__subtitle { margin-top: 0.25rem; color: #888; font-size: 0.9em; } .home-header__search { padding:..." |
No edit summary |
||
| Line 43: | Line 43: | ||
} | } | ||
. | /* Style your new span "button" */ | ||
.citizen-search-trigger { | |||
display: inline-block; /* Makes the span respect padding/margins */ | |||
padding: 10px 15px; | |||
font-size: 16px; | |||
color: white; | |||
background-color: #007bff; | |||
border: none; | |||
border-radius: 5px; | |||
cursor: pointer; /* Makes the mouse cursor change to a pointer */ | |||
user-select: none; /* Prevents text from being selected on click */ | |||
transition: background-color 0.2s; | |||
} | } | ||
. | .citizen-search-trigger:hover { | ||
background-color: #0056b3; | |||
} | } | ||
Revision as of 15:50, 8 November 2025
.home-header {
position: relative;
padding-top: 3.5rem;
padding-bottom: 3.5rem;
line-height: 1.1;
text-align: center;
}
.home-header__pretitle {
margin-bottom: 0.25rem;
color: #888;
font-size: 0.9em;
letter-spacing: 0.05em;
}
.home-header__title {
margin: 0;
font-size: 3.5rem;
text-transform: uppercase;
line-height: 0.9;
font-weight: 600;
}
.home-header__subtitle {
margin-top: 0.25rem;
color: #888;
font-size: 0.9em;
}
.home-header__search {
padding: 1rem;
margin-top: 2rem;
margin-left: auto;
margin-right: auto;
max-width: 600px;
border: 1px solid #ccc;
border-radius: 999px;
background-color: #f8f8f8;
cursor: pointer;
font-size: 0.9em;
font-weight: 500;
text-align: center;
}
/* Style your new span "button" */
.citizen-search-trigger {
display: inline-block; /* Makes the span respect padding/margins */
padding: 10px 15px;
font-size: 16px;
color: white;
background-color: #007bff;
border: none;
border-radius: 5px;
cursor: pointer; /* Makes the mouse cursor change to a pointer */
user-select: none; /* Prevents text from being selected on click */
transition: background-color 0.2s;
}
.citizen-search-trigger:hover {
background-color: #0056b3;
}