1
Fork 0
hare-playground/frontend/style.css

143 lines
2.5 KiB
CSS

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
margin-top: 0;
}
h1 {
display: inline-block;
vertical-align: sub;
margin: 0 20px 10px 0;
}
pre {
background-color: transparent;
border: none;
}
.code-output pre {
margin: 0;
}
body > footer {
font-family: sans-serif;
max-width: unset;
width: 100%;
color: grey;
font-weight: 200;
margin: 0 0 40px;
}
a, a:visited {
border-bottom: 1px solid rgba(0, 139, 245, 0.2);
color: #008bf5;
}
button {
padding: 0;
border: none;
background: none;
line-height: 1.35;
color: #008bf5;
font-size: 16px;
cursor: pointer;
margin-right: 10px;
}
button[hx-post]::after {
content: " ▶";
}
button#share-button {
border-bottom: 1px solid rgba(0, 139, 245, 0.2);
}
.editor, div.code-output {
border-radius: 6px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
font-family: 'Source Code Pro', monospace;
font-size: 14px;
font-weight: 400;
min-height: 340px;
max-height: 500px;
letter-spacing: normal;
line-height: 20px;
padding: 10px;
resize: none !important;
tab-size: 8;
}
div.code-output {
position: relative;
display: block;
margin: 0;
}
.code-output a[href="#close"] {
position: absolute;
top: .25em;
right: .25em;
display: inline-block;
width: 1.5em;
height: 1.5em;
line-height: 1.5em;
text-align: center;
}
section.code {
display: flex;
flex-direction: row;
gap: 1em;
@media (max-width: 800px) {
flex-direction: column;
}
}
@media (min-width: 801px) {
div.editor, div.code-output {
width: 50vw;
}
}
div.editor, div.executor {
flex-grow: 1;
}
#htmx-indicator {
display:none;
}
.toolbar {
border-radius: 6px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
font-family: 'Source Code Pro', monospace;
font-size: 14px;
font-weight: 400;
letter-spacing: normal;
line-height: 20px;
padding: 10px;
resize: none !important;
tab-size: 4;
margin-bottom: 10px;
@media (max-width: 800px) {
margin-top: 10px;
}
}
.std-output {
color: #bbb;
text-align: center;
display: flex;
}
.std-output::before, .std-output::after {
flex: 1 1 auto;
margin: auto;
margin-right: auto;
border-top: 1px solid #bbb;
content: '';
box-sizing: border-box;
}
.std-output::before {
margin-right: 2%;
}
.std-output::after {
margin-left: 2%;
}