diff --git a/index.css b/index.css index 3762daf..734ae83 100644 --- a/index.css +++ b/index.css @@ -1,71 +1,136 @@ +@font-face { + font-family: orbitron-bold; + src: url(assets/Orbitron-Bold.ttf); +} +@font-face { + font-family: montserrat; + src: url(assets/Montserrat-Regular.ttf); +} + +* { box-sizing: border-box; } + body { background: #000; color: #FFF; font-family: sans-serif; } +/* === FAHRPLAN === */ +#schedule { + position: fixed; + left: 5%; + right: 5%; + top: 10%; + bottom: 10%; + + font-family: orbitron-bold; + font-size: 30px; +} + +#schedule .header { + margin-bottom: 40px; +} + +#schedule .list .item { + margin-bottom: 10px; +} + +#schedule .list .item .title { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +#schedule .list .item .sub { + color: #7b7b7b; + font-size: 24px; + + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +#schedule-here-container { + position: absolute; + right: 52%; + left: 0; +} + +#schedule-main-container { + position: absolute; + right: 52%; + left: 0; + top: 50%; +} + +#schedule-other-container { + position: absolute; + left: 52%; + right: 0; +} + +#schedule-here-container .header { + color: #b145fb; +} +#schedule-main-container .header { + color: #6820e4; +} +#schedule-other-container .header { + color: #45b5e3; +} + + +/* === TICKER === */ #bottom-bar { position: fixed; bottom: 0; - /*left: 0;*/ margin-bottom: 20px; font-size: 14px; + width: 100%; overflow: hidden; - /*padding-left: 100%; - box-sizing: content-box;*/ -} - -* { box-sizing: border-box; } - -/* OUTER CONTAINER */ -#bottom-bar { - width: 100%; - overflow: hidden; /* Hide scroll bar */ } -/* MIDDLE CONTAINER */ #ticker-wrap { - width: 100%; - padding-left: 100%; /* Push contents to right side of screen */ + width: 100%; + padding-left: 100%; /* Push contents to right side of screen */ } -/* INNER CONTAINER */ @keyframes ticker { - 0% { transform: translate3d(-20%, 0, 0); } - 100% { transform: translate3d(-100%, 0, 0); } + 0% { transform: translate3d(-20%, 0, 0); } + 100% { transform: translate3d(-100%, 0, 0); } } + #ticker { - /* Basically move items from right side of screen to left in infinite loop */ - display: inline-block; - white-space: nowrap; - padding-right: 100%; - animation-iteration-count: infinite; - animation-timing-function: linear; - animation-name: ticker; - animation-duration: 120s; + /* Basically move items from right side of screen to left in infinite loop */ + display: inline-block; + white-space: nowrap; + padding-right: 100%; + animation-iteration-count: infinite; + animation-timing-function: linear; + animation-name: ticker; + animation-duration: 120s; } -/* ITEMS */ -.item{ - display: inline-block; /* Lay items in a horizontal line */ - padding: 10px 36px; - - font-size: 22px; +#ticker > .item{ + display: inline-block; /* Lay items in a horizontal line */ + padding: 10px 36px; + + font-size: 22px; } -.item > img { +#ticker > .item > img { height: 32px; vertical-align: middle; } -.item > span.user { +#ticker > .item > span.user { color: #fff; margin: 0 20px; vertical-align: middle; } -.item > span.content { +#ticker > .item > span.content { color: #fff; vertical-align: middle; } diff --git a/index.html b/index.html index 5a48ea6..40f6e04 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,29 @@