Merge branch 'main' of github.com:leanprover-community/lean4game
commit
75d1183d15
@ -0,0 +1,61 @@
|
|||||||
|
/* variables */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--clr-primary: #1976d2;
|
||||||
|
--clr-code: rgba(0, 32, 90, 0.87);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* General styling */
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: Roboto;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-family: Roboto Mono;
|
||||||
|
color: var(--clr-code);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Hide monaco editor notifications */
|
||||||
|
.monaco-workbench > .notifications-toasts.visible {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
margin: auto;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* App Bar */
|
||||||
|
|
||||||
|
.app {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-bar {
|
||||||
|
z-index: 1500;
|
||||||
|
flex: 0;
|
||||||
|
background: var(--clr-primary);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 1.1em;
|
||||||
|
filter: drop-shadow(0 0 5px rgba(0,0,0,0.5))
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-bar-title, .app-bar-subtitle {
|
||||||
|
color: white;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-content {
|
||||||
|
flex: 1;
|
||||||
|
min-height: 1fr;
|
||||||
|
}
|
@ -1,31 +0,0 @@
|
|||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: Roboto;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
font-family: Roboto Mono;
|
|
||||||
color: rgba(0, 32, 90, 0.87);
|
|
||||||
}
|
|
||||||
|
|
||||||
.App {
|
|
||||||
height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.AppBar {
|
|
||||||
flex: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hide monaco editor notifications */
|
|
||||||
.monaco-workbench > .notifications-toasts.visible {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO: Do this the correct way. */
|
|
||||||
.MuiButtonBase-root {
|
|
||||||
margin : 0 !important;
|
|
||||||
}
|
|
@ -0,0 +1,59 @@
|
|||||||
|
|
||||||
|
/* Reset, roughly following https://piccalil.li/blog/a-modern-css-reset/ */
|
||||||
|
|
||||||
|
/* Box sizing rules */
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove default margin */
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
|
||||||
|
ul[role='list'],
|
||||||
|
ol[role='list'] {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Set core body defaults */
|
||||||
|
body {
|
||||||
|
min-height: 100vh;
|
||||||
|
text-rendering: optimizeSpeed;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* A elements that don't have a class get default styles */
|
||||||
|
a:not([class]) {
|
||||||
|
text-decoration-skip-ink: auto;
|
||||||
|
text-decoration-style: dotted;
|
||||||
|
color: var(--clr-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Make images easier to work with */
|
||||||
|
img,
|
||||||
|
picture {
|
||||||
|
max-width: 100%;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
html:focus-within {
|
||||||
|
scroll-behavior: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
animation-duration: 0.01ms !important;
|
||||||
|
animation-iteration-count: 1 !important;
|
||||||
|
transition-duration: 0.01ms !important;
|
||||||
|
scroll-behavior: auto !important;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue