height cat+txt

This commit is contained in:
2018-08-27 12:10:05 +02:00
parent e5b6624bb5
commit 6fb89c5eb1
9 changed files with 46 additions and 13 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+22 -2
View File
@@ -1,4 +1,4 @@
function hover() {
function hovercat() {
var $work = $('.navbar > ul > li:nth-child(1)');
var $workafter = $('.navbar > ul > li:nth-child(1)::after');
var $cat = $('.navbar > ul.tags');
@@ -32,7 +32,27 @@ function active() {
});
}
function catprojets() {
$(window).load(function () {
var $content = $('.content');
var $txt = $('#items .content .txt');
var $cat = $('#items .content .taxonomy');
var $Hcontent = $content.outerHeight();
var $Hcat = $cat.outerHeight();
var $Htxt = $Hcontent - $Hcat;
$txt.css({
"height" : $Htxt + "px"
});
});
}
jQuery(document).ready(function($) {
active();
hover();
hovercat();
catprojets();
});
+10 -1
View File
@@ -20,7 +20,6 @@ header{
position: relative;
z-index: 0;
&::after{
width: 0%;
content: " ";
position: absolute;
background: rgb(0, 255, 0);
@@ -28,11 +27,18 @@ header{
margin: auto;
z-index: -1;
transition: width 0.5s;
width: 0%;
}
}
&:hover{
li{
&::after{
content: " ";
position: absolute;
background: rgb(0, 255, 0);
height: 10px;
margin: auto;
z-index: -1;
width: 100%;
transition: width 0.5s;
}
@@ -77,6 +83,9 @@ header{
margin-right: 50px;
align-items: center;
display: flex;
&:last-child{
margin-right: 0px!important;
}
}
}
ul.tags{
@@ -42,12 +42,14 @@
.content-item{
.e-content{
display: flex;
height: 100%;
}
.media{
width: calc((100% / 3) * 2);
}
.content{
width: calc(100% / 3);
height: calc(100vh - 40px);
.txt{
position: fixed;
right: 0;