Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 942f31e

Browse files
committed
Tweaking the base style
1 parent 963280b commit 942f31e

3 files changed

Lines changed: 11 additions & 51 deletions

File tree

‎index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width,initial-scale=1.0">
66
<title>kaneda.net</title>
77
</head>
8-
<body>
8+
<body class="scanlines">
99
<div id="app"></div>
1010
<!-- built files will be auto injected -->
1111
</body>

‎src/App.vue‎

Lines changed: 7 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div id="app" class="scanlines">
2+
<div id="app">
33
<router-view/>
44
</div>
55
</template>
@@ -14,62 +14,24 @@ export default {
1414
@import "src/assets/scss/scanlines.scss"
1515
</style>
1616
17+
<style lang="scss">
18+
@import "src/assets/scss/console.scss"
19+
</style>
20+
1721
<style lang="css">
1822
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');
1923
html {
2024
height: 100%;
2125
}
2226
2327
body {
24-
background: black;
28+
background: #333;
2529
color: lightblue !important;
2630
font-family: "Source Code Pro", Hack, Monaco, "Lucida Console", monospace;
2731
font-size: 10pt;
2832
text-shadow: 0 0 10px lightblue;
2933
margin: 0;
34+
padding: 0;
3035
min-height: 100%;
3136
}
32-
33-
#app {
34-
// display: flex;
35-
}
36-
37-
#cursor {
38-
font-weight: normal;
39-
background-color: lightblue;
40-
-webkit-animation: 1s blink step-end infinite;
41-
-moz-animation: 1s blink step-end infinite;
42-
-ms-animation: 1s blink step-end infinite;
43-
-o-animation: 1s blink step-end infinite;
44-
animation: 1s blink step-end infinite;
45-
padding: 0 0.25rem;
46-
}
47-
48-
@keyframes blink {
49-
from, to {
50-
visibility: hidden;
51-
}
52-
50% {
53-
visibility: visible;
54-
}
55-
}
56-
57-
#console {
58-
margin: 0.5rem;
59-
}
60-
61-
.prompt {
62-
margin-right: 0.5rem;
63-
}
64-
65-
.vue-typer .custom.char {
66-
color: lightblue;
67-
background-color: transparent;
68-
}
69-
70-
.vue-typer .custom.caret {
71-
background-color: lightblue;
72-
margin-left: 0.25rem;
73-
width: 0.5rem;
74-
}
7537
</style>

‎src/assets/scss/scanlines.scss‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $scan-width: 2px;
55
$scan-crt: true;
66

77
// frames-per-second (should be > 1), only applies if $scan-crt: true;
8-
$scan-fps: 60;
8+
$scan-fps: 15;
99

1010
// scanline-color (rgba)
1111
$scan-color: rgba(black, .3);
@@ -17,7 +17,7 @@ $scan-z-index: 2147483648;
1717
/* MOVING SCANLINE SETTINGS */
1818

1919
// moving scanline (true, false)
20-
$scan-moving-line: true;
20+
$scan-moving-line: false;
2121

2222
// opacity of the moving scanline
2323
$scan-opacity: .75;
@@ -40,11 +40,9 @@ $scan-opacity: .75;
4040
@else { animation: none; }
4141
}
4242

43-
/* CSS .scanlines CLASS */
44-
4543
.scanlines {
4644
position: relative;
47-
overflow: hidden; // only to animate the unique scanline
45+
// overflow: hidden; // only to animate the unique scanline
4846

4947
&:before,
5048
&:after {

0 commit comments

Comments
 (0)