ELOS-License-Builder/site/styles.scss

295 lines
4.4 KiB
SCSS
Raw Normal View History

2022-02-06 00:03:45 +00:00
html {
2022-02-02 19:31:07 +00:00
--color-bg: #170423;
--color-hi: #ce027c;
2022-02-06 00:03:45 +00:00
--color-lo: #4a056d;
2022-02-06 22:39:13 +00:00
--color-ck: #21b0c6;
2022-02-06 00:03:45 +00:00
scrollbar-color: var(--color-lo) var(--color-bg);
touch-action: manipulation;
2022-02-06 00:03:45 +00:00
}
body {
2022-02-02 19:31:07 +00:00
background-color: var(--color-bg);
color: white;
font-family: Lack, sansserif;
font-size: 1.5em;
line-height: 1.4em;
}
2022-02-06 14:36:14 +00:00
a {
color: #c053e8;
&:not(:hover) {
text-decoration: none;
}
}
2022-02-02 19:31:07 +00:00
header {
font-family: Resistance, sansserif;
font-variant-alternates: styleset(normal-is);
font-size: 3.2rem;
padding: 0px 49px;
2022-02-06 17:14:56 +00:00
max-width: 600px;
2022-02-06 02:51:18 +00:00
margin: 0 auto;
2022-02-02 19:31:07 +00:00
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;
}
}
}
}
2022-02-06 03:09:11 +00:00
#intro, #elm-unpossessed {
2022-02-06 02:51:18 +00:00
& > * {
margin-left: auto;
margin-right: auto;
max-width: 700px;
2022-02-06 03:09:11 +00:00
list-style-type: circle;
2022-02-06 02:51:18 +00:00
}
2022-02-02 19:31:07 +00:00
2022-02-06 02:51:18 +00:00
.emphasis-paragraph {
max-width: 850px;
font-family: Resistance;
font-size: 3.5rem;
line-height: initial;
text-align: center;
}
2022-02-02 19:31:07 +00:00
}
#picker:target + #intro {
2022-02-02 19:31:07 +00:00
display: none;
}
#picker:not(:target) ~ #elm-area {
2022-02-02 19:31:07 +00:00
display: none;
}
.cool-button {
--bevel: var(--color-hi);
--bevel-size: 20px;
color: var(--color-bg);
width: fit-content;
display: block;
2022-02-02 19:31:07 +00:00
font-family: Resistance;
font-size: 2.5rem;
margin-left: auto;
margin-right: auto;
cursor: pointer;
2022-02-05 23:56:00 +00:00
background: none;
border: none;
padding: 0;
text-decoration: none;
2022-02-02 19:31:07 +00:00
& > div:nth-child(2) {
2022-02-05 23:56:00 +00:00
padding: 0 30px;
2022-02-02 19:31:07 +00:00
}
}
.bevel {
border: var(--bevel-size) solid var(--bevel);
&.tl, &.tr {
border-top: 0;
& ~ :not(.bevel) {
background-color: var(--bevel);
2022-02-05 23:55:21 +00:00
:first-child {
margin-top: 0;
}
:last-child {
margin-bottom: 0;
}
2022-02-02 19:31:07 +00:00
}
}
&.bl, &.br {
border-bottom: 0;
}
&.tr, &.br {
border-right-color: transparent;
}
&.tl, &.bl {
border-left-color: transparent;
}
}
2022-02-02 23:27:11 +00:00
2022-02-05 23:55:21 +00:00
#license-chooser {
2022-02-06 02:51:18 +00:00
max-width: 800px;
margin: 0 auto;
2022-02-06 17:14:56 +00:00
padding: 0 50px;
2022-02-06 02:51:18 +00:00
2022-02-05 23:55:21 +00:00
#selected-license {
border: 60px solid;
border-image: url("/assets/cool-border.svg") 60;
border-radius: 20px;
white-space: pre-wrap;
2022-02-06 17:14:56 +00:00
@media (min-width: 1000px) {
padding: 30px;
}
2022-02-05 23:55:21 +00:00
h2 {
margin-top: 0;
2022-02-06 17:14:56 +00:00
line-height: 120%;
2022-02-05 23:55:21 +00:00
}
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);
}
}
}
}
2022-02-03 00:51:31 +00:00
#modules {
2022-02-02 23:27:11 +00:00
display: grid;
gap: 50px;
2022-02-06 02:51:18 +00:00
max-width: 1070px;
margin: 0 auto;
2022-02-03 00:51:31 +00:00
margin-bottom: 50px;
2022-02-06 17:14:56 +00:00
padding: 0 50px;
@media (min-width: 968px) {
grid-template-columns: 1fr 1fr;
}
@media (max-width: 968px) {
padding: 0 100px;
}
2022-02-02 23:27:11 +00:00
.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;
}
}
2022-02-03 00:51:31 +00:00
#downloads {
display: grid;
grid-template-columns: auto auto auto;
2022-02-06 02:51:18 +00:00
max-width: 800px;
margin: 0 auto;
2022-02-06 15:58:13 +00:00
justify-content: center;
2022-02-03 00:51:31 +00:00
}
2022-02-06 00:20:09 +00:00
.divider {
display: grid;
grid-template-columns: 1fr 0fr 1fr;
align-items: center;
2022-02-06 02:51:18 +00:00
margin: 0 auto;
2022-02-06 17:14:56 +00:00
max-width: min(900px, 90vw);
2022-02-06 00:20:09 +00:00
gap: 50px;
font-family: Resistance;
color: #e1c0ed;
margin-top: 110px;
margin-bottom: 30px;
h2 {
white-space: nowrap;
}
div {
border-bottom: 1px solid #bf8cd1;
}
}
2022-02-02 23:27:11 +00:00
.cooler-checkbox {
height: 40px;
width: 40px;
2022-02-06 14:36:14 +00:00
border: 3px solid var(--color-ck);
2022-02-02 23:27:11 +00:00
position: relative;
cursor: pointer;
2022-02-02 23:27:11 +00:00
input {
display: none;
}
label.active &:after {
content: "";
position: absolute;
left: 12px;
top: 0px;
width: 11px;
height: 24px;
2022-02-06 14:36:14 +00:00
border: solid var(--color-ck);
2022-02-02 23:27:11 +00:00
border-width: 0 6px 6px 0;
transform: rotate(39deg);
}
}
2022-02-06 17:31:05 +00:00
footer {
2022-02-06 19:15:37 +00:00
font-size: 1rem;
2022-02-06 17:31:05 +00:00
margin-top: 70px;
line-height: 100%;
text-align: right;
}