event fontsize, default colors, big hover recalc

This commit is contained in:
infeeeee
2019-09-11 12:11:05 +02:00
parent 72895de2a1
commit b296bca869
5 changed files with 27 additions and 25 deletions

View File

@@ -13,5 +13,3 @@ Betöltéskor rejteni a dolgokat méretezés előtt, vagy betöltést optimaliz
# Megjegyzések
~ Adrinak írni, hogy küldjön tökéletesen négyzet logót - szerintem nem kell, megoldottam azt az 1px problémát
recalc felgördülő cucc desktopon

File diff suppressed because one or more lines are too long

View File

@@ -865,29 +865,29 @@
let cBevezeto = cBevezetoWrapper.children(".bevezeto")
// calculate default metadata height
if (!metadataHeights.collapsedHeight) {
metadataHeights.collapsedHeight = cMetadata[0].getBoundingClientRect().height
}
metadataHeights.collapsedHeight = cMetadata[0].getBoundingClientRect().height
//calculate opened metadata height
if (!metadataHeights.openedHeight) {
let h2H = 0
$(".home-big h2").each(function () {
if ($(this)[0].getBoundingClientRect().height > h2H) {
h2H = $(this)[0].getBoundingClientRect().height
}
})
let artH = cArticle[0].getBoundingClientRect().height
metadataHeights.openedHeight = artH - bottomScrollHeight - h2H
let h2H = 0
$(".home-big h2").each(function () {
if ($(this)[0].getBoundingClientRect().height > h2H) {
h2H = $(this)[0].getBoundingClientRect().height
}
})
console.log('h2h', h2H, artH)
let artH = cArticle[0].getBoundingClientRect().height
metadataHeights.openedHeight = artH - bottomScrollHeight - h2H
//add height to bevezetoWrapper
$('.bevezetoWrapper').css({ height: metadataHeights.openedHeight })
console.log('h2h', h2H, artH)
//add height to bevezetoWrapper
$('.bevezetoWrapper').css({ height: metadataHeights.openedHeight })
$('.alcimWrapper').css({ height: metadataHeights.openedHeight })
$('.alcimWrapper').css({ height: metadataHeights.openedHeight })
}
//add hovered class
cArticle.addClass("hovered")

View File

@@ -261,9 +261,13 @@
@media #{$bigdesktop} {
font-size: 3rem;
}
@media #{$bigdesktop-hidpi} {
font-size: 2.8rem;
}
@media #{$verybigdesktop} {
font-size: 4rem;
}
}
@mixin event-date {

View File

@@ -2051,7 +2051,7 @@ $padd: 2rem;
hr {
height: 1px;
background-color: #ff5f5f;
background-color: #00ffb8;
padding: 0;
margin: 0 auto;
@@ -2108,8 +2108,8 @@ $padd: 2rem;
@include single-quote();
margin: 2rem 0;
display: inline-block;
background: #ff5f5f;
@include box-shadow(10px 0 #ff5f5f, -5px 0 #ff5f5f);
background: #00ffb8;
@include box-shadow(10px 0 #00ffb8, -5px 0 #00ffb8);
}
h4 {
@@ -2128,11 +2128,11 @@ $padd: 2rem;
@include single-quote();
margin: 3rem 0;
p {
background: #ff5f5f;
background: #00ffb8;
display: inline;
padding: 5px 0 3px;
@include box-shadow(10px 0 #ff5f5f, -5px 0 #ff5f5f);
@include box-shadow(10px 0 #00ffb8, -5px 0 #00ffb8);
}
cite {
display: block;