1
Fork 0
bauke-xyz/source/scss/components/_page-main.scss

64 lines
1.2 KiB
SCSS
Raw Normal View History

@use 'mixins';
2021-08-26 15:52:13 +00:00
.page-main {
@include mixins.responsive-container;
2022-03-28 12:42:34 +00:00
margin-bottom: 2rem;
2021-08-26 15:52:13 +00:00
.contact-links {
display: grid;
2022-03-28 12:42:34 +00:00
gap: 2rem;
grid-template-columns: repeat(2, 1fr);
@media (max-width: mixins.$medium-breakpoint) {
grid-template-columns: repeat(1, 1fr);
}
2021-08-26 15:52:13 +00:00
a {
2022-03-28 12:46:44 +00:00
@include mixins.patterned-shadow(0.5rem);
background-color: var(--background-1);
2022-03-28 12:37:26 +00:00
border: 2px solid var(--foreground-1);
2021-08-26 15:52:13 +00:00
padding: 1rem;
2022-03-28 13:25:21 +00:00
position: relative;
2022-03-28 13:16:41 +00:00
&:hover {
background-color: var(--foreground-1);
}
2022-03-28 13:25:21 +00:00
&::before {
content: attr(data-label);
font-size: 50%;
position: absolute;
right: 4px;
top: 4px;
}
2021-08-26 15:52:13 +00:00
}
}
}
2022-03-28 13:53:30 +00:00
.driftingnebula {
background: url('/assets/driftingnebula 2022-03-07.jpeg');
background-repeat: no-repeat;
background-position: center center;
display: block;
font-size: 3rem;
2022-03-28 16:01:18 +00:00
height: 10rem;
padding: 1rem;
2022-03-28 13:53:30 +00:00
position: relative;
text-align: center;
text-decoration: none;
text-shadow: 0 0 4px var(--background-1);
&:hover {
color: var(--foreground-1);
filter: hue-rotate(180deg);
outline: 2px dotted var(--foreground-1);
outline-offset: 4px;
}
2022-03-28 16:01:18 +00:00
img {
height: 100%;
}
2022-03-28 13:53:30 +00:00
}