Skip to content

Commit aeb9fe4

Browse files
authored
Merge pull request #128 from Vauhtijuoksu/develop
Tune timetable to better suit generic theme
2 parents e37dd03 + deb4afd commit aeb9fe4

File tree

13 files changed

+54
-11
lines changed

13 files changed

+54
-11
lines changed

static/css/_timetable.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
width: 100%;
3030
img.char {
3131
position: absolute;
32-
right: 5%;
33-
top: 50%;
34-
z-index: -10;
35-
position: absolute;
36-
transform: translate(-50%, -50%) scale(2);
32+
left: 45%;
33+
top: 45%;
34+
max-width: 110%;
35+
max-height: 120px;
36+
transform: translate(-50%, -50%);
37+
3738
}
3839
}
3940
}
@@ -44,8 +45,8 @@
4445
width: $timetable-right-width;
4546
margin-bottom: $timetable-row-margin-bottom;
4647
.playgame {
47-
font-size: 2.2rem;
48-
line-height: 2rem;
48+
font-size: 1.8em;
49+
line-height: 1.1;
4950
}
5051
}
5152
}

static/css/_variables.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ $twitch-icon-sm-width: $twitch-icon-width !default;
144144
$twitch-link-color: $link-color !default;
145145
$twitch-link-hover-color: $link-hover-color !default;
146146

147-
$timetable-date-font-size: 3rem !default;
148-
$timetable-row-margin-bottom: 1.5rem !default;
147+
148+
$timetable-date-font-size: 3em !default;
149+
$timetable-row-margin-bottom: 1.5em !default;
149150
$timetable-left-width: 30% !default;
150151
$timetable-blob-width: 15% !default;
151152
$timetable-right-width: 55% !default;

static/genericSideViuhti/css/style.scss

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ footer {
251251
height: 2px;
252252
width: 90%;
253253
}
254+
.timetable{
255+
font-size: 0.9rem;
256+
}
254257

255258
@include media-breakpoint-down(lg) {
256259
.side-page-layout {
@@ -304,3 +307,41 @@ footer {
304307
padding: 0.3rem 0.2rem;
305308
}
306309
}
310+
311+
.playplayer{
312+
.twitch-link{
313+
color: unset;
314+
text-decoration: underline;
315+
text-decoration-color: $viuhti-darkextramegafade;
316+
transition: text-decoration-color 0.6s ease;
317+
max-width: 100%;
318+
display: inline-block;
319+
overflow-wrap: break-word;
320+
& > span {
321+
color: unset;
322+
text-decoration: underline;
323+
text-decoration-color: $viuhti-darkextramegafade;
324+
transition: text-decoration-color 0.6s ease;
325+
}
326+
& > .lt-any {
327+
max-width: calc(100% - 0.75em);
328+
}
329+
.twitch-icon{
330+
width: 0.75em;
331+
margin-top: 0;
332+
transform: rotate(0deg) translate(-10%, -40%);
333+
transition: transform 0.6s cubic-bezier(.5,-1.5,.5,2.5);
334+
transform-origin: 25% bottom;
335+
}
336+
&:hover{
337+
text-decoration-color: $viuhti-darkextrafade;
338+
& > span {
339+
text-decoration-color: $viuhti-darkextrafade;
340+
}
341+
.twitch-icon {
342+
margin-top: 0;
343+
transform: rotate(15deg) translate(-10%, -50%);
344+
}
345+
}
346+
}
347+
}
399 KB
Loading
406 KB
Loading
286 KB
Loading
292 KB
Loading
398 KB
Loading
399 KB
Loading
442 KB
Loading

0 commit comments

Comments
 (0)