ELOS-License-Builder/site/styles.scss

295 lines
4.4 KiB
SCSS

html {
--color-bg: #170423;
--color-hi: #ce027c;
--color-lo: #4a056d;
--color-ck: #21b0c6;
scrollbar-color: var(--color-lo) var(--color-bg);
touch-action: manipulation;
}
body {
background-color: var(--color-bg);
color: white;
font-family: Lack, sansserif;
font-size: 1.5em;
line-height: 1.4em;
}
a {
color: #c053e8;
&:not(:hover) {
text-decoration: none;
}
}
header {
font-family: Resistance, sansserif;
font-variant-alternates: styleset(normal-is);
font-size: 3.2rem;
padding: 0px 49px;
max-width: 600px;
margin: 0 auto;
p {
display: flex;
white-space: nowrap;
line-height: 1em;
margin: 20px 0;
.hr {
width: 100%;
height: 0.5em;
border-bottom: 1px solid white;
margin: 0 50px;
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
margin-left: 40px;
}
}
}
}
#intro, #elm-unpossessed {
& > * {
margin-left: auto;
margin-right: auto;
max-width: 700px;
list-style-type: circle;
}
.emphasis-paragraph {
max-width: 850px;
font-family: Resistance;
font-size: 3.5rem;
line-height: initial;
text-align: center;
}
}
#picker:target + #intro {
display: none;
}
#picker:not(:target) ~ #elm-area {
display: none;
}
.cool-button {
--bevel: var(--color-hi);
--bevel-size: 20px;
color: var(--color-bg);
width: fit-content;
display: block;
font-family: Resistance;
font-size: 2.5rem;
margin-left: auto;
margin-right: auto;
cursor: pointer;
background: none;
border: none;
padding: 0;
text-decoration: none;
& > div:nth-child(2) {
padding: 0 30px;
}
}
.bevel {
border: var(--bevel-size) solid var(--bevel);
&.tl, &.tr {
border-top: 0;
& ~ :not(.bevel) {
background-color: var(--bevel);
:first-child {
margin-top: 0;
}
:last-child {
margin-bottom: 0;
}
}
}
&.bl, &.br {
border-bottom: 0;
}
&.tr, &.br {
border-right-color: transparent;
}
&.tl, &.bl {
border-left-color: transparent;
}
}
#license-chooser {
max-width: 800px;
margin: 0 auto;
padding: 0 50px;
#selected-license {
border: 60px solid;
border-image: url("/assets/cool-border.svg") 60;
border-radius: 20px;
white-space: pre-wrap;
@media (min-width: 1000px) {
padding: 30px;
}
h2 {
margin-top: 0;
line-height: 120%;
}
p {
margin-bottom: 0;
font-size: 1.3rem;
line-height: 130%;
}
}
#available-licenses {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-top: 20px;
.selectable-license {
background: none;
border: 3px solid var(--color-hi);
height: 50px;
color: white;
font-family: Lack, sansserif;
font-size: 1.2rem;
transform: skew(-15deg);
cursor: pointer;
span {
transform: skew(15deg);
display: block;
}
&:hover {
background-color: #1f0430;
}
&.active {
background-color: var(--color-hi);
color: var(--color-bg);
}
}
}
}
#modules {
display: grid;
gap: 50px;
max-width: 1070px;
margin: 0 auto;
margin-bottom: 50px;
padding: 0 50px;
@media (min-width: 968px) {
grid-template-columns: 1fr 1fr;
}
@media (max-width: 968px) {
padding: 0 100px;
}
.module-button > div {
box-sizing: border-box;
display: grid;
grid-template-columns: 0fr 1fr;
grid-template-rows: 0fr 1fr;
gap: 20px;
height: 100%;
padding: 29px;
border: 3px solid var(--color-hi);
& > :last-child {
grid-area: 2/1/3/3;
}
h3 {
margin: 0;
align-self: center;
}
p {
margin: 0;
}
}
.module-button.active > div {
border: 12px double var(--color-hi);
padding: 20px;
}
}
#downloads {
display: grid;
grid-template-columns: auto auto auto;
max-width: 800px;
margin: 0 auto;
justify-content: center;
}
.divider {
display: grid;
grid-template-columns: 1fr 0fr 1fr;
align-items: center;
margin: 0 auto;
max-width: min(900px, 90vw);
gap: 50px;
font-family: Resistance;
color: #e1c0ed;
margin-top: 110px;
margin-bottom: 30px;
h2 {
white-space: nowrap;
}
div {
border-bottom: 1px solid #bf8cd1;
}
}
.cooler-checkbox {
height: 40px;
width: 40px;
border: 3px solid var(--color-ck);
position: relative;
cursor: pointer;
input {
display: none;
}
label.active &:after {
content: "";
position: absolute;
left: 12px;
top: 0px;
width: 11px;
height: 24px;
border: solid var(--color-ck);
border-width: 0 6px 6px 0;
transform: rotate(39deg);
}
}
footer {
font-size: 1rem;
margin-top: 70px;
line-height: 100%;
text-align: right;
}