modif order

This commit is contained in:
2019-10-09 21:07:23 +02:00
parent 130ebff543
commit c5b29bfdbe
276 changed files with 4413 additions and 1918 deletions
+153 -225
View File
@@ -1,235 +1,163 @@
// home
body {
.blog {
margin: 0 10px;
header {
height:100vh;
width: calc(100% - 22px);
display: inline-flex;
flex-direction: column;
align-content: space-around;
& > div{
position: fixed;
&.head{
z-index: 999;
padding-top: 25px;
width: inherit;
.svg-container {
display: inline-block;
position: relative;
width: calc( ( 100% / 3 ) * 2 - 22px ) ;
padding-bottom: 9%;
vertical-align: middle;
overflow: hidden;
.svg-content {
display: inline-block;
position: absolute;
top: 0;
left: 0;
}
}
h2 {
margin-left: -4px;
position: absolute;
left: 0;
}
&::after {
display: block;
content: " ";
width: 0%;
height: 1px;
background: black;
}
}
&.works-mea {
display: inline-flex;
align-self: flex-end;
height: calc(100% - 25px);
align-items: flex-end;
width: inherit;
.card{
&:nth-child(2){
margin:0 10px;
}
&:not(:nth-child(2)){
margin: 0;
}
}
}
&.scroll{
bottom: 0;
text-align: center;
width: inherit;
}
}
}
&.down{
header{
.head{
.svg-container {
width: 250px;
transition: all 1s 0.9s ease;
padding-bottom: calc(70px - 7px);
.svg-content {
path{
transition: all 1s 0.9s ease;
fill: black!important;
stroke-width:0!important;
}
}
}
&::after{
-webkit-animation: showborder 2.5s 1.5s ease forwards;
animation: showborder 2.5s 1.5s ease forwards;
}
h2{
opacity: 0;
left: -40%;
transition: left 3s linear, opacity 0.3s 0.1s ease;
}
}
.card{
&:nth-child(1){
-webkit-animation: translateY 1s ease forwards;
animation: translateY 1s ease forwards;
}
&:nth-child(2){
-webkit-animation: translateY 1.3s ease forwards;
animation: translateY 1.3s ease forwards;
}
&:nth-child(3){
-webkit-animation: translateY 1.6s ease forwards;
animation: translateY 1.6s ease forwards;
}
}
.scroll{
opacity: 0;
transition: all 1s ease;
}
}
}
}
}
.contact{
width: 90px;
height: auto;
z-index: 999;
position: fixed;
top: 0px;
right: 0px;
transition: width 0.5s ease;
cursor: pointer;
&:hover{
width: 80px;
transition: width 0.5s ease;
}
svg{
cursor: pointer;
-webkit-animation: rotation 6s infinite linear;
animation: rotation 6s infinite linear;
}
h3{
color: white;
-webkit-transform: rotate(35deg);
transform: rotate(35deg);
header{
position: relative;
margin-right: 10px;
height: 100vh;
&:after{
position: absolute;
top: 35px;
left: 19px;
width: 0%;
bottom: 0;
content: "";
}
.txt{
position: fixed;
right: -200px;
}
&.open{
-webkit-transform: scale(15);
transform: scale(15);
height: auto;
transition: -webkit-transform 0.5s ease;
transition: transform 0.5s ease;
transition: transform 0.5s ease, -webkit-transform 0.5s ease;
h3{
color: transparent;
left: 500px;
transition: visibility 0.5 ease left 1s ease;
}
svg{
-webkit-animation: rotation 12s infinite linear;
animation: rotation 12s infinite linear;
}
.txt{
position: fixed;
color: white;
-webkit-transform: scale(0.1);
transform: scale(0.1);
top: -10px;
right: -20px;
text-align: center;
line-height: 1.5rem;
z-index: 9999;
.head{
width:100%;
padding-top: 22px;
nav{
width: calc((100% / 3) * 2);
position: relative;
h2{
position: absolute;
}
}
}
&.close{
-webkit-transform: scale(1);
transform: scale(1);
transition: -webkit-transform 0.5s 0.1s ease;
transition: transform 0.5s 0.1s ease;
transition: transform 0.5s 0.1s ease, -webkit-transform 0.5s 0.1s ease;
& + .txt{
top: 190px;
text-align: center;
line-height: 1.5rem;
z-index: 9999;
-webkit-animation: translateleft 1s ease forwards;
animation: translateleft 1s ease forwards;
}
h3{
transition: color 0.5s 0.5s ease, left 0.5s ease;
}
&:hover{
transition: -webkit-transform 0.5s ease!important;
transition: transform 0.5s ease!important;
transition: transform 0.5s ease, -webkit-transform 0.5s ease!important;
-webkit-transform: scale(0.9)!important;
transform: scale(0.9)!important;
}
}
}
// page
body {
#page-wrapper.item {
header {
z-index: 999;
padding-top: 25px;
width: inherit;
border-bottom: 1px solid black;
position: fixed;
height: 5rem;
background: white;
top: 0;
left: 10px;
right: 10px;
z-index: 999;
.head{
.svg-container {
width: 250px;
transition: all 1s 0.9s ease;
.svg-content {
path{
transition: all 1s 0.9s ease;
fill: black!important;
stroke-width:0!important;
}
}
.works-mea{
position: absolute;
bottom: 20px;
width: calc((100%) + (10px) );
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
height: 50%;
.card{
height: calc(100% - 30px);
.card-image{
overflow: hidden;
height: 100%;
width: 100%;
a{
display: block;
height: 100%;
img{
object-fit: cover;
width: 100%;
}
}
h1 {
// color: black;
// line-height: 5rem;
}
h2, .scroll {
display: none;
&:first-child{
margin-right: 10px;
}
&:last-child{
margin-left: 10px;
}
}
}
.scroll{
position: absolute;
width: 100%;
bottom: 0;
height: 20px;
p{
svg{
display: block;
margin: auto;
}
}
}
}
.item{
#start{
margin-top: 115px;
.cat-list{
display: none;
}
}
}
.down, .item{
header{
background: white;
z-index: 999;
width: calc(100% - 20px);
height: 90px;
position: fixed;
top: 0;
&:after{
width: 100%;
height: 1px;
background: black;
}
.head{
nav{
width: calc((100% / 6));
min-width: 300px;
path{
fill:black!important;
}
h2{
-webkit-transform: translateX(-150%);
transform: translateX(-150%);
-webkit-transition: 2s -webkit-transform ease;
transition: 2s -webkit-transform ease;
transition: 2s transform ease;
transition: 2s transform ease, 2s -webkit-transform ease;
}
}
}
.works-mea{
bottom: 65px;
-webkit-transition: 0s 1s bottom;
transition: 0s 1s bottom;
.card{
opacity: 0;
margin-top: -20px;
}
}
}
.scroll{
opacity: 0;
margin-bottom: -20px;
-webkit-transition: 1s all ease;
transition: 1s all ease;
}
}
.down{
header{
-webkit-transition: 1s 1s height ease;
transition: 1s 1s height ease;
&:after{
-webkit-transition: 1.5s 2s width ease;
transition: 1.5s 2s width ease;
}
.head{
nav{
-webkit-transition:1s 1s width ease;
transition:1s 1s width ease;
path{
-webkit-transition:1s 1s fill ease;
transition:1s 1s fill ease;
}
}
}
.works-mea{
bottom: 65px;
-webkit-transition: 0s 1s bottom;
transition: 0s 1s bottom;
.card{
opacity: 0;
margin-top: -20px;
&:nth-child(1){
-webkit-transition: 0.5s 0.3s all ease;
transition: 0.5s 0.3s all ease;
}
&:nth-child(2){
-webkit-transition: 0.5s 0.5s all ease;
transition: 0.5s 0.5s all ease;
}
&:nth-child(3){
-webkit-transition: 0.5s 0.7s all ease;
transition: 0.5s 0.7s all ease;
}
}
}
}