-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
72 lines (58 loc) · 1.49 KB
/
Copy pathstyles.css
File metadata and controls
72 lines (58 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@font-face {
font-family: proggy;
src: url(proggy.ttf);
}
:root {
--accent: #FFFFFF;
}
body {
font-family: "proggy", Arial, sans-serif;
background-color: #191919;
text-align: center;
color: white;
margin: 0;
}
a { color: var(--accent); }
a:hover { color: #C8C8C8; }
#title { cursor: pointer; }
#title:hover { color: #ababff; }
#about {
transform: translate(-50%, -50%);
position: absolute;
left: 50%;
top: 50%;
}
.accent { color: var(--accent); }
.box-content {
border: 2px solid #777;
padding: 20px;
}
.box-title {
transform: translateX(-50%);
background: #191919;
position: relative;
width: max-content;
padding-right: 5px;
padding-left: 5px;
top: 1.65em;
left: 50%;
}
/* This is the 'window' that hides the extra text */
.news-container {
width: 100%;
overflow: hidden; /* Stops the text from spilling out onto the page */
position: absolute; /* Or fixed, depending on where you want it */
top: 50;
}
#news {
display: flex;
width: max-content; /* Forces the div to be as wide as all stories combined */
white-space: nowrap; /* Forces text to stay on ONE line */
gap: 30em; /* Keeps your spacing */
/* The Animation */
animation: scroll-ticker 180s linear infinite;
}
@keyframes scroll-ticker {
0% { transform: translateX(100vw); } /* Start at right edge of screen */
100% { transform: translateX(-100%); } /* End once the whole line passes the left edge */
}