mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 19:13:51 +00:00
hopefully deployment is better than dev
This commit is contained in:
108
css/assignments.less
Normal file
108
css/assignments.less
Normal file
@@ -0,0 +1,108 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
|
||||
@prim: #333333;
|
||||
|
||||
*{
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
body{
|
||||
font-family: '', sans-serif;
|
||||
color: white;
|
||||
font-weight: 300;
|
||||
|
||||
::-webkit-input-placeholder { /* WebKit browsers */
|
||||
font-family: 'Source Sans Pro', sans-serif;
|
||||
color: white;
|
||||
font-weight: 300;
|
||||
}
|
||||
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
|
||||
font-family: 'Source Sans Pro', sans-serif;
|
||||
color: white;
|
||||
opacity: 1;
|
||||
font-weight: 300;
|
||||
}
|
||||
::-moz-placeholder { /* Mozilla Firefox 19+ */
|
||||
font-family: 'Source Sans Pro', sans-serif;
|
||||
color: white;
|
||||
opacity: 1;
|
||||
font-weight: 300;
|
||||
}
|
||||
:-ms-input-placeholder { /* Internet Explorer 10+ */
|
||||
font-family: 'Source Sans Pro', sans-serif;
|
||||
color: white;
|
||||
font-weight: 300;
|
||||
}
|
||||
}
|
||||
|
||||
.wrapper{
|
||||
background: #333333;
|
||||
background: -webkit-linear-gradient(top left, #333333 0%, #333333 100%);
|
||||
background: -moz-linear-gradient(top left, #333333 0%, #333333 100%);
|
||||
background: -o-linear-gradient(top left, #333333 0%, #333333 100%);
|
||||
background: linear-gradient(to bottom right, #333333 0%, #333333 100%);
|
||||
position: relative;
|
||||
height: 100vh;
|
||||
// top: 50%;
|
||||
// left: 0;
|
||||
// width: 100%;
|
||||
// height: 400px;
|
||||
// margin-top: -200px;
|
||||
overflow: hidden;
|
||||
|
||||
&.form-success{
|
||||
.container{
|
||||
h1{
|
||||
transform: translateY(85px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.container{
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 80px 0;
|
||||
height: 400px;
|
||||
text-align: center;
|
||||
|
||||
h1{
|
||||
font-size: 40px;
|
||||
transition-duration: 1s;
|
||||
transition-timing-function: ease-in-put;
|
||||
font-weight: 200;
|
||||
}
|
||||
}
|
||||
|
||||
.assignment{
|
||||
padding: 20px 0;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
|
||||
button{
|
||||
appearance: none;
|
||||
outline: 0;
|
||||
// make backgournd color a gradient
|
||||
background: #50a3a2;
|
||||
background: -webkit-linear-gradient(top left, #50a3a2 0%, #53e3a6 100%);
|
||||
background: -moz-linear-gradient(top left, #50a3a2 0%, #53e3a6 100%);
|
||||
background: -o-linear-gradient(top left, #50a3a2 0%, #53e3a6 100%);
|
||||
background: linear-gradient(to bottom right, #50a3a2 0%, #53e3a6 100%);
|
||||
|
||||
border: 0;
|
||||
padding: 10px 15px;
|
||||
color: @prim;
|
||||
border-radius: 3px;
|
||||
width: 600px;
|
||||
cursor: pointer;
|
||||
font-size: 18px;
|
||||
transition-duration: 0.25s;
|
||||
|
||||
&:hover{
|
||||
background-color: rgb(245, 247, 249);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,6 +61,30 @@ background: linear-gradient(to bottom right, #333333 0%, #333333 100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// add shake
|
||||
&.form-error{
|
||||
// add animation to container
|
||||
.container{
|
||||
h1{
|
||||
animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
|
||||
@keyframes shake {
|
||||
10%, 90% {
|
||||
transform: translate3d(-1px, 0, 0);
|
||||
}
|
||||
20%, 80% {
|
||||
transform: translate3d(2px, 0, 0);
|
||||
}
|
||||
30%, 50%, 70% {
|
||||
transform: translate3d(-4px, 0, 0);
|
||||
}
|
||||
40%, 60% {
|
||||
transform: translate3d(4px, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.container{
|
||||
@@ -134,6 +158,23 @@ form{
|
||||
}
|
||||
}
|
||||
|
||||
// // fade the form on success
|
||||
// .form-success{
|
||||
// .container{
|
||||
// h1{
|
||||
// transform: translateY(0px);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// // form error shake animation
|
||||
// .form-error{
|
||||
// .container{
|
||||
// h1{
|
||||
// animation: formError 0.5s;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
.bg-bubbles{
|
||||
position: absolute;
|
||||
@@ -254,12 +295,15 @@ form{
|
||||
90% { transform: translateY(-1100px) rotate(600deg); }
|
||||
}
|
||||
|
||||
// animation for square to fade out
|
||||
// @-webkit-keyframes fade {
|
||||
// 0% { opacity: 1; }
|
||||
// 100% { opacity: 0; }
|
||||
// }
|
||||
// @keyframes fade {
|
||||
// 0% { opacity: 1; }
|
||||
// 100% { opacity: 0; }
|
||||
// }
|
||||
// form error shake animation
|
||||
@-webkit-keyframes formError {
|
||||
0% { transform: translateY(0); }
|
||||
100% { transform: translateY(-10px) rotate(5deg); }
|
||||
100% { transform: translateY(0) rotate(-5deg); }
|
||||
}
|
||||
@keyframes formError {
|
||||
0% { transform: translateY(0); }
|
||||
100% { transform: translateY(-10px) rotate(5deg); }
|
||||
100% { transform: translateY(0) rotate(-5deg); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user