deca.eco/_includes/css/page.css

187 lines
3.9 KiB
CSS
Raw Normal View History

2024-04-10 02:36:54 +00:00
.page-header {
margin-bottom: var(--row-gap-small);
2024-04-10 02:36:54 +00:00
& > p:first-child {
margin-top: 0;
}
}
.body-home {
padding: var(--row-gap-xsmall) 0;
max-width: min(100% - 15vw, 45em);
margin: 0 auto;
}
2024-04-10 02:36:54 +00:00
.page-title {
font: var(--font-display);
letter-spacing: var(--font-display-spacing);
margin: 0;
text-wrap: balance;
}
.page-title-landing {
font: var(--font-display);
letter-spacing: var(--font-display-spacing);
text-align: center;
margin: 0;
text-wrap: balance;
}
2024-04-10 02:36:54 +00:00
.page-navigation {
margin-bottom: var(--row-gap-medium);
& ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
gap: .5em;
}
& h2 { font: var(--font-body-bold);
2024-04-10 02:36:54 +00:00
letter-spacing: var(--font-body-spacing);
margin: .5em 0;
}
}
.page-pagination {
border-top: solid 1px var(--color-line);
margin-top: var(--row-gap-medium);
}
/* Create a section for the index component instead of the base */
.container {
text-align: center;
list-style: none;
padding: 0;
}
.main-button-group {
display: flex;
justify-content: center;
align-items: center;
gap: 20px; /* Space between the main button and the right button */
flex-wrap: wrap; /* Allow wrapping if screen space is limited */
padding: 10px; /* Some padding to avoid touching screen edges */
position: relative;
margin-bottom: 70px;
}
.main-button, .specification-button {
background-color: inherit;
color: inherit;
padding: 15px 30px;
border-radius: 50px;
font-size: 24px;
text-decoration: none;
border-style: double;
position: relative;
transition: all 0.3s ease;
box-shadow: 0 5px 15px var(--color-link-hover, rgba(0, 0, 0, 0.2));
}
.main-button:hover, .main-button:focus,
.specification-button:hover, .specification-button:focus {
color: var(--color-link-hover);
border-style: solid;
transform: translateY(-2px);
box-shadow: 0 8px 20px var(--color-link-hover, rgba(0, 0, 0, 0.4));
}
.hover-buttons {
display: none;
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
padding-top: 10px;
}
.main-button:hover .hover-buttons,
.main-button:focus .hover-buttons {
display: flex;
}
.specification-button {
margin: 5px 0;
}
.secondary-button {
display: block;
margin: 10px 5px;
padding: 10px 20px;
background-color: inherit;
color: inherit;
border-radius: 20px;
text-decoration: none;
transition: background-color 0.2s ease, transform 0.2s ease;
gap: 20px; /* Space between the main button and the right button */
flex-wrap: wrap; /* Allow wrapping if screen space is limited */
position: relative;
}
.secondary-button:hover, .secondary-button:focus {
border-style: solid;
transform: translateY(-2px);
box-shadow: 0 8px 20px var(--color-link-hover, rgba(0, 0, 0, 0.4));
}
/* Ensure this section gets called from footer.css instead */
.footer-container {
background: var(--color-background-1);
}
.footer {
font: var(--text-caption);
color: var(--color-foreground-1);
max-width: var(--max-width);
margin: auto;
text-align: center;
padding: 0 var(--margin);
}
.footer-copyright {
margin: 0;
padding: var(--row-gap-0) 0;
& a {
color: currentColor;
}
}
.footer-links {
margin: 0;
list-style: none;
padding: 10px 0;
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
border-bottom: solid 1px var(--color-background-3);
& svg {
display: block;
width: 50px;
height: 50px;
fill: currentColor;
}
& a {
text-decoration: none;
font: var(--text-caption-bold);
display: flex;
align-items: center;
column-gap: 10px;
padding: 10px;
border-radius: var(--border-radius-small);
color: currentColor;
white-space: nowrap;
&:hover {
color: var(--color-foreground);
background: var(--color-background-2);
}
}
}