pub.solar/_includes/styles/page.scss

145 lines
2.5 KiB
SCSS
Raw Normal View History

2022-10-03 00:02:47 +00:00
.ps-page {
display: flex;
width: 100vw;
flex-direction: column;
align-items: flex-start;
2022-10-03 00:02:47 +00:00
justify-content: flex-start;
padding: 1rem;
pointer-events: none;
2022-10-03 00:02:47 +00:00
@media screen and (min-width: 1200px) {
padding: 2rem;
2022-10-03 00:02:47 +00:00
flex-direction: row;
flex-wrap: wrap;
}
@media screen and (min-width: 1600px) {
padding: 4rem;
2022-10-03 00:02:47 +00:00
}
&_home {
flex-direction: column;
flex-wrap: nowrap;
}
&_home &--contents {
font-size: 1.25rem;
2022-10-03 00:02:47 +00:00
}
&--contents {
2022-10-03 00:02:47 +00:00
border: 12px solid black;
margin-top: 20rem;
margin-bottom: 20rem;
width: 100%;
max-width: 800px;
2022-10-03 00:02:47 +00:00
flex-basis: 100%;
flex-shrink: 1;
pointer-events: all;
color: var(--foreground);
background: white;
word-break: break-word;
display: flex;
flex-direction: column;
margin: 0;
font-weight: 500;
line-height: 1.75;
padding: 1.5rem;
2022-10-03 00:02:47 +00:00
@media screen and (min-width: 1200px) {
padding: 3rem;
2022-10-03 00:26:43 +00:00
}
2022-10-03 00:02:47 +00:00
a {
color: var(--accent);
border-bottom: 1px solid white;
transition: border-bottom 0.1s ease;
text-decoration: none;
&:hover {
border-bottom: 4px solid var(--accent);
}
}
img {
width: 230px;
margin-top: 1rem;
}
2022-10-03 00:30:20 +00:00
2022-10-03 00:10:53 +00:00
pre,
code {
background-color: var(--background-alt);
border-radius: 4px;
padding: 4px;
}
2022-10-03 00:17:10 +00:00
pre {
display: flex;
flex-direction: row;
}
code {
overflow: scroll;
}
2022-10-03 00:17:10 +00:00
> * {
margin-bottom: 0;
margin-top: 1.5rem;
2022-10-03 00:17:10 +00:00
}
> h1,
> h2 {
2022-10-03 00:17:10 +00:00
line-height: 1.5;
}
2022-10-03 00:10:53 +00:00
}
&--links {
margin-top: 1rem;
display: flex;
flex-direction: row;
flex-wrap: wrap;
@media screen and (min-width: 700px) {
margin-top: 1.5rem;
}
@media screen and (min-width: 1000px) {
margin-top: 2rem;
}
}
2022-10-03 00:02:47 +00:00
&--link {
pointer-events: all;
color: var(--foreground);
background: white;
text-decoration: none;
text-align: center;
font-weight: 900;
font-size: 2rem;
2022-10-03 00:02:47 +00:00
line-height: 1em;
padding: 0.4rem;
margin: 0;
margin-right: 1rem;
margin-bottom: 1rem;
text-shadow: 0.01em 0px 0px white;
2022-10-03 00:02:47 +00:00
transition: text-shadow 0.1s ease;
border: 0.75rem solid black;
2022-10-03 00:02:47 +00:00
&:hover {
text-shadow: 0.1em 0px 0px var(--accent);
2022-10-03 00:02:47 +00:00
}
@media screen and (min-width: 700px) {
font-size: 3rem;
margin-right: 1.5rem;
margin-bottom: 1.5rem;
2022-10-03 00:02:47 +00:00
}
@media screen and (min-width: 1000px) {
font-size: 4rem;
margin-right: 2rem;
margin-bottom: 2rem;
2022-10-03 00:02:47 +00:00
}
}
}