|
|
|
@ -1,6 +1,10 @@
|
|
|
|
|
$device-s-width: 640px;
|
|
|
|
|
$device-m-width: 1200px;
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
--accent: #7b3a99;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Normalize
|
|
|
|
|
|
|
|
|
|
*,
|
|
|
|
@ -58,6 +62,51 @@ input[type='text'] {
|
|
|
|
|
color: #555;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.input-select {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-family: 'Lato';
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
color: #555;
|
|
|
|
|
|
|
|
|
|
border: 1px solid #c8c8c8;
|
|
|
|
|
padding: 0 0.5rem;
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
box-shadow: -2px 2px 16px 0 #00000010;
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
|
|
|
|
|
background: linear-gradient(180deg, #f0f0f0, #e8e8e8 20%, #e0e0e0 90%, #cdcdcd);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
border: 1px solid #c4c4c4;
|
|
|
|
|
box-shadow: -2px 2px 20px 0 #00000010;
|
|
|
|
|
background: linear-gradient(180deg, #fff, #ededed 20%, #e8e8e8 90%, #c0c0c0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
select {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
|
|
appearance: none;
|
|
|
|
|
|
|
|
|
|
padding: 0.5rem 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
border: none;
|
|
|
|
|
outline: none;
|
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
|
|
font-family: 'Lato';
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
color: #555;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
@ -88,7 +137,7 @@ a,
|
|
|
|
|
a:visited {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
color: #3a9999;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@ -96,7 +145,13 @@ a:visited {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Typography
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
.math-inline {
|
|
|
|
|
font-size: 95%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
margin: 0;
|
|
|
|
@ -176,21 +231,12 @@ main {
|
|
|
|
|
|
|
|
|
|
gap: 2rem;
|
|
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
|
// font-size: 42px;
|
|
|
|
|
// font-family: 'EB Garamond';
|
|
|
|
|
// font-weight: 600;
|
|
|
|
|
font-size: 38px;
|
|
|
|
|
font-family: 'Lato';
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subtitle {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
main.home {
|
|
|
|
|
main.page-home {
|
|
|
|
|
.board {
|
|
|
|
|
width: 100%;
|
|
|
|
|
// min-width: 0;
|
|
|
|
@ -200,171 +246,208 @@ main.home {
|
|
|
|
|
gap: 2rem;
|
|
|
|
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
|
|
.fill-row {
|
|
|
|
|
grid-column: 1 / -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.board-controls {
|
|
|
|
|
justify-self: start;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
main.problem {
|
|
|
|
|
main.page-problem {
|
|
|
|
|
summary {
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.solution-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Components
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
main {
|
|
|
|
|
.problem {
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
.solution-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
max-width: 80ch;
|
|
|
|
|
header {
|
|
|
|
|
display: grid;
|
|
|
|
|
place-content: center;
|
|
|
|
|
|
|
|
|
|
box-shadow: -2px 4px 8px 1px #00000020, -1px 1px 1px 0px #00000010;
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
width: 100%;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-rows: auto 1fr;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
.logo {
|
|
|
|
|
font-size: 42px;
|
|
|
|
|
font-family: 'Lato';
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
|
|
|
|
|
.problem-header {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: auto;
|
|
|
|
|
gap: 0.25rem;
|
|
|
|
|
a:hover {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
border-bottom: 3px solid var(--accent);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.problem-title {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
nav {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
|
|
|
|
.problem-author {
|
|
|
|
|
grid-row: 2;
|
|
|
|
|
.nav-item {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #000000dd;
|
|
|
|
|
// font-weight: 400;
|
|
|
|
|
a.active {
|
|
|
|
|
border-bottom: 1px solid var(--accent);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.problem-content {
|
|
|
|
|
@extend .text-body;
|
|
|
|
|
a:hover {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
border-bottom: 2px solid var(--accent);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.solution {
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
.problem {
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
|
|
max-width: 80ch;
|
|
|
|
|
max-width: 80ch;
|
|
|
|
|
|
|
|
|
|
box-shadow: -2px 4px 8px 1px #00000020, -1px 1px 1px 0px #00000010;
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
box-shadow: -2px 4px 8px 1px #00000020, -1px 1px 1px 0px #00000010;
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-rows: auto 1fr;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
|
|
|
|
|
.problem-header {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-rows: auto 1fr;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
grid-template-columns: auto;
|
|
|
|
|
gap: 0.25rem;
|
|
|
|
|
|
|
|
|
|
.solution-header {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: auto;
|
|
|
|
|
gap: 0.25rem;
|
|
|
|
|
.problem-title {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.solution-content {
|
|
|
|
|
@extend .text-body;
|
|
|
|
|
}
|
|
|
|
|
.problem-content {
|
|
|
|
|
@extend .text-body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.solution-editor {
|
|
|
|
|
display: grid;
|
|
|
|
|
width: 100%;
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
.solution {
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
max-width: 80ch;
|
|
|
|
|
|
|
|
|
|
.editor,
|
|
|
|
|
.preview {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 70ch;
|
|
|
|
|
box-shadow: -2px 4px 8px 1px #00000020, -1px 1px 1px 0px #00000010;
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-rows: auto 1fr;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
}
|
|
|
|
|
.solution-header {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: auto;
|
|
|
|
|
gap: 0.25rem;
|
|
|
|
|
|
|
|
|
|
.editor {
|
|
|
|
|
justify-self: end;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
|
font-family: 'DM Mono', monospace;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
.solution-content {
|
|
|
|
|
@extend .text-body;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resize: none;
|
|
|
|
|
overflow-y: hidden;
|
|
|
|
|
.form {
|
|
|
|
|
min-width: 50ch;
|
|
|
|
|
|
|
|
|
|
min-height: 8rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
background: #e0e0e0;
|
|
|
|
|
|
|
|
|
|
.preview {
|
|
|
|
|
justify-self: start;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: auto 1fr;
|
|
|
|
|
|
|
|
|
|
.placeholder {
|
|
|
|
|
color: #444;
|
|
|
|
|
}
|
|
|
|
|
border: 1px solid #c0c0c0;
|
|
|
|
|
border-radius: 1rem;
|
|
|
|
|
|
|
|
|
|
.preview-content {
|
|
|
|
|
@extend .text-body;
|
|
|
|
|
// box-shadow: -2px 4px 16px 4px #00000018, -2px 4px 4px 1px #00000018;
|
|
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 1.5rem 2rem 1rem;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
box-shadow: -2px 4px 8px 1px #00000020, -1px 1px 1px 0px #00000010;
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.fill {
|
|
|
|
|
grid-column: span 2;
|
|
|
|
|
justify-self: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form {
|
|
|
|
|
min-width: 50ch;
|
|
|
|
|
|
|
|
|
|
background: #e0e0e0;
|
|
|
|
|
.markdown-editor {
|
|
|
|
|
display: grid;
|
|
|
|
|
width: 100%;
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: auto 1fr;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
|
|
|
|
border: 1px solid #c0c0c0;
|
|
|
|
|
border-radius: 1rem;
|
|
|
|
|
.editor,
|
|
|
|
|
.preview {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 70ch;
|
|
|
|
|
|
|
|
|
|
// box-shadow: -2px 4px 16px 4px #00000018, -2px 4px 4px 1px #00000018;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
padding: 1.5rem 2rem 1rem;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
.editor {
|
|
|
|
|
justify-self: end;
|
|
|
|
|
|
|
|
|
|
.fill {
|
|
|
|
|
grid-column: span 2;
|
|
|
|
|
justify-self: center;
|
|
|
|
|
textarea {
|
|
|
|
|
font-family: 'DM Mono', monospace;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
|
|
|
|
resize: none;
|
|
|
|
|
overflow-y: hidden;
|
|
|
|
|
|
|
|
|
|
min-height: 8rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.math-inline {
|
|
|
|
|
font-size: 95%;
|
|
|
|
|
.preview {
|
|
|
|
|
justify-self: start;
|
|
|
|
|
|
|
|
|
|
.placeholder {
|
|
|
|
|
color: #666;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-content {
|
|
|
|
|
@extend .text-body;
|
|
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
|
|
box-shadow: -2px 4px 8px 1px #00000020, -1px 1px 1px 0px #00000010;
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
@ -379,23 +462,69 @@ main {
|
|
|
|
|
// On mobile
|
|
|
|
|
@media screen and (max-width: $device-s-width), (pointer: coarse) {
|
|
|
|
|
main {
|
|
|
|
|
.solution-editor {
|
|
|
|
|
grid-template-columns: auto;
|
|
|
|
|
grid-template-rows: auto auto;
|
|
|
|
|
padding: 1rem 1rem 6rem;
|
|
|
|
|
|
|
|
|
|
&.page-home {
|
|
|
|
|
.board {
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
header {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
gap: 2rem;
|
|
|
|
|
|
|
|
|
|
nav {
|
|
|
|
|
position: relative;
|
|
|
|
|
right: unset;
|
|
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.problem {
|
|
|
|
|
padding: 0.75rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.markdown-editor {
|
|
|
|
|
grid-template-columns: auto;
|
|
|
|
|
grid-template-rows: auto auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
|
|
min-width: unset;
|
|
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
align-self: start;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
textarea,
|
|
|
|
|
.markdown-editor .preview .preview-content {
|
|
|
|
|
padding: 0.75rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen and (max-width: $device-m-width), (pointer: coarse) {
|
|
|
|
|
main {
|
|
|
|
|
.solution-editor {
|
|
|
|
|
grid-template-columns: auto;
|
|
|
|
|
grid-template-rows: auto auto;
|
|
|
|
|
.markdown-editor {
|
|
|
|
|
grid-template-columns: auto;
|
|
|
|
|
grid-template-rows: auto auto;
|
|
|
|
|
|
|
|
|
|
.preview,
|
|
|
|
|
.editor {
|
|
|
|
|
justify-self: center;
|
|
|
|
|
}
|
|
|
|
|
.preview,
|
|
|
|
|
.editor {
|
|
|
|
|
justify-self: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|