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.
58 lines
932 B
Vue
58 lines
932 B
Vue
<template>
|
|
<console class="console"></console>
|
|
</template>
|
|
|
|
<script>
|
|
import console from "@/components/console"
|
|
|
|
export default {
|
|
name: "App",
|
|
components: {
|
|
console
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
body,html{
|
|
margin: 0;
|
|
}
|
|
*{
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #444 #2220;
|
|
}
|
|
*::-webkit-scrollbar {
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
}
|
|
*::-webkit-scrollbar-track {
|
|
background: none;
|
|
}
|
|
*::-webkit-scrollbar-thumb {
|
|
background-color: #444;
|
|
border-radius: 0.25rem;
|
|
}
|
|
#app {
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
position: absolute;
|
|
background-color: #222;
|
|
min-height: 100%;
|
|
width: 100%;
|
|
}
|
|
.console{
|
|
position: absolute;
|
|
width: 36rem;
|
|
height: calc(100% - 2rem);
|
|
overflow-y: auto;
|
|
left: calc(50% - 19rem);
|
|
padding: 1rem;
|
|
}
|
|
@media (max-width: 45rem){
|
|
.console{
|
|
width: calc(100% - 2rem);
|
|
height: calc(100% - 2rem);
|
|
overflow-y: auto;
|
|
left: 0;
|
|
}
|
|
}
|
|
</style> |