You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/client/src/css/level.css

347 lines
5.8 KiB
CSS

.level-mobile {
height: 100%;
flex: 1;
min-height: 0;
/* display: flex; */
}
.hidden {
display: none;
}
.gutter {
background-color: #eee;
background-repeat: no-repeat;
background-position: 50%;
}
.gutter.gutter-vertical {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
}
.gutter.gutter-horizontal {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
}
.inventory-panel, .exercise-panel, .doc-panel, .introduction-panel {
height: 100%;
width: 100%;
overflow: auto;
position: relative;
}
.infoview {
padding-top: 1em;
padding-bottom: 0;
}
.infoview, .exercise-statement {
padding-left: .5em;
padding-right: .5em;
}
.exercise-statement {
padding-top: 1em;
padding-bottom: 1em;
}
.exercise-statement p {
margin: 0;
}
.exercise-statement .lean-code {
color: rgba(0, 32, 90, 0.87);
font-size: 12px; /* TODO: is the monaco font-size hardcoded? */
}
.conclusion {
padding: 1em;
}
.infoview {
padding-top: 0em;
}
.exercise {
flex: 1 1 auto;
display: flex;
flex-flow: column;
}
.codeview {
flex: 1 1 auto;
min-height: 192px;
}
.exercise h4 {
margin-top: 0;
margin-bottom: 0;
}
.input-mode-switch {
margin: 0;
display: flex;
flex-direction: row;
justify-content: flex-end;
gap: 1em;
}
.doc-panel {
background: #fafafa;
}
.doc-panel li {
border-bottom: 1px solid rgba(0, 0, 0, 0.12); /* This should be teh same colour as `divider` in Inventory.tsx */
}
.doc-panel li:first-of-type {
border-top: 1px solid rgb(0, 0, 0, 0.12); /* This should be teh same colour as `divider` in Inventory.tsx */
}
/* fix as Mui seems to set this to `nowrap`. */
.MuiAccordionDetails-root {
white-space: normal;
}
/* TODO: Adjust Mathjax styling. 1em vertical is excessive. */
mjx-container[jax="CHTML"][display="true"] {
margin: 0.2em 0 !important;
}
/* Styling tables for Markdown */
.chat-panel table, .chat-panel th, .chat-panel td {
/* border: 1px solid rgb(0, 0, 0, 0.12); */
border-collapse: collapse;
}
.chat-panel th, .chat-panel td {
padding-left: .5em;
padding-right: .5em;
}
span.katex-display {
margin: 0;
}
p, table {
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
}
/* Prevent white spaces break inside a table. */
td code {
white-space:nowrap;
}
/* Styling in the editor while typing abbreviations such as "\alpha" */
.abbreviation {
text-decoration: underline;
}
/* Styling in the left margin of the editor when processing */
.processing {
background: linear-gradient(
to right,
rgba(255, 165, 0, 1) 0%,
rgba(255, 165, 0, 1) 30%,
transparent 30%,
transparent 100%
);
}
/* Styling in the left margin of the editor on error */
.glyph-margin-error {
background: rgba(255, 0, 0, 1);
}
/***************************************/
/* TODO: For development purposes only */
/***************************************/
/* .doc-panel {
border: 1px solid red;
}
.main-panel {
border: 1px solid rgb(41, 112, 0);
}
.info-panel {
border: 1px solid rgb(230, 122, 0);
}
.chat-panel {
border: 1px solid rgb(192, 18, 178);
}
.exercise {
border: 1px solid rgb(102, 243, 67);
}
.codeview {
border: 1px solid rgb(98, 148, 255);
}
.main-grid {
border: 1px solid rgb(255, 0, 0);
margin: 1px;
} */
.exercise {
height: 100%;
}
.chat {
flex: 1;
overflow-y: scroll;
margin-left: .5em;
margin-right: .5em;
}
.chat-panel {
padding-top: 0;
padding-bottom: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
.chat-panel .button-row {
/* width:100%; */
margin-left: .5em;
margin-right: .5em;
min-height: 2.5em;
border-top: 0.1em solid #aaa;
}
.chat-panel .btn {
margin-top: 1rem;
margin-bottom: 1rem;
margin-left: .5rem;
margin-right: .5rem;
}
/* .exercise-panel {
display: flex;
flex-flow: column;
height: 100%;
} */
.typewriter-interface {
display: flex;
flex-flow: column;
height: 100%;
}
.typewriter {
flex: 0 1 auto;
}
.typewriter-interface .content {
flex: 1 1 auto;
overflow-y: scroll;
padding: 0;
}
.exercise .step {
/* background-color: #e6f0f4; */
margin-top: .5rem;
margin-bottom: .5rem;
border-radius: 0.5rem;
padding: 0.5rem;
/* border: 3px dotted rgb(88, 131, 24); */
}
/* TODO: Is this still used anywhere? */
.exercise .step .btn-help {
margin-top: 10px;
}
.chat .message {
margin-left: .5em;
margin-right: .5em;
}
.chat .recent {
box-shadow: .0em .0em .4em .1em #8cbbe9;
}
.exercise .step.selected .goal-tabs, .chat .selected {
/* border: 3px solid #5191d1; */
box-shadow: .0em .0em .4em .1em var(--clr-primary);
}
.introduction-panel {
max-width: 900px;
width: 80%;
margin-left: auto;
margin-right: auto;
}
.impressum {
background-color: #fff;
width: 100%;
height: 100%;
position: absolute;
top: 0;
z-index: 1;
padding: .5rem;
}
.menu.dropdown {
position: absolute;
display: flex;
flex-direction: column;
right: 0;
top: 100%;
background-color: #fff;
z-index: 1;
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: -.1rem .3rem .3rem 0 rgba(0, 0, 0, 0.1);
}
.menu.dropdown.hidden {
display: none;
}
#menu-btn {
padding: 0;
font-size: 1.3rem;
margin-left: .5em;
margin-right: 0;
}
#home-btn {
margin-right: .5em;
margin-left: 0;
}
.menu.dropdown .svg-inline--fa {
width: 1.8rem;
}
.tmp-pusher {
align-items: center;
display: flex;
justify-content: center;
}
.typewriter-interface .content, .world-image-container.empty {
background-color: #eee;
}
.typewriter-interface .proof {
background-color: #fff;
}
.toggle-width {
min-width: 40px;
text-align: center;
}