Commit 119ebd79 authored by Petr Balga's avatar Petr Balga

Gulp edited so scss won't crash when errored; top-up template started.

parent 2d23654a
......@@ -20,7 +20,7 @@ gulp.task('sass', function () {
.on('change', function(path, stats) {
return gulp.src('./wp-content/themes/CreepyTheme/scss/*.scss')
.pipe(wait(50))
.pipe(sass())
.pipe(sass().on('error', sass.logError))
.pipe(autoprefixer({
cascade: false
}))
......
......@@ -194,10 +194,100 @@ footer {
/* Styly pro top-up šablonu */
.top-up {
background-color: #ffd300;
width: 100%;
height: calc( 100% - 80px);
box-shadow: 0 5px 0 rgba(202, 172, 0, 0.88), 0 2px 24px rgba(0, 0, 0, 0.5);
border-radius: 20px; }
width: calc(100% - 64px);
height: calc( 100% - 160px);
border-radius: 0 0 20px 20px;
padding: 71px 32px 0;
position: absolute;
z-index: 999;
box-shadow: 0px 120px 0px 0px rgba(0, 0, 0, 0.15);
/*
.test {
width: 100%;
border-radius: 5px;
background-color: $white;
display: flex;
span {
font-size: 50px;
border: none;
color: $black;
font-size: 36px;
font-weight: 600;
padding: 20px 0 20px 20px;
}
}
.money__dollar {
width: 100%;
font-size: 50px;
border: none;
color: $black;
font-size: 36px;
font-weight: 600;
&:focus {
outline: none;
}
}
*/ }
.top-up h2 {
margin: 0;
color: #231f20;
font-size: 24px;
font-weight: 800; }
.top-up h3 {
color: #231f20;
font-size: 21px;
font-weight: 700;
margin-bottom: 13px; }
.top-up .dollar {
width: calc(100% - 44px - 75px);
border-radius: 5px 0px 0px 5px;
border: none;
border-right: 1px solid #dedede;
background-color: #ffffff;
font-size: 36px;
font-weight: 600;
padding: 22px 20px;
float: left; }
.top-up .dollar__right {
float: left;
width: 74px;
height: 86px;
background-color: #ffffff;
border-radius: 0px 5px 5px 0px; }
.top-up .reveal {
color: #968000;
font-size: 12px;
font-weight: 500; }
.top-up .select__currency {
width: calc(100% - 44px);
background-color: transparent;
border-radius: 5px;
border: 1px solid #968000;
font-size: 36px;
font-weight: 600;
padding: 22px 20px; }
.top-up .payment__method {
background-color: #ffffff;
width: calc(100% - 34px);
border: none;
border-radius: 5px;
height: auto;
padding: 20px 17px;
color: #231f20;
font-size: 12px;
font-weight: 500; }
.top-up .submit {
width: 100%;
box-shadow: 0 4px 0 #110f0f;
border-radius: 5px;
background-color: #231f20;
text-align: center;
padding: 20px;
border: none;
color: white;
font-size: 18px;
font-weight: 700;
margin-top: 50px; }
body, html {
background-color: #ffffff;
......
......@@ -65,7 +65,10 @@
<div class='time'>9:12 PM</div>
</div>
</section>
<div id='end'><p>This is the end.</p></div>
<div id='end'><p>This is the end<br>
Hold your breath and count to ten<br>
Feel the earth move and then<br>
Hear my heart burst again</p></div>
</div>
</div>
<!-- div container closed in footer.php -->
......
......@@ -10,12 +10,42 @@
<?php get_header(); ?>
<!-- div container opened in header.php -->
<div class='top-up'>
<div class='top-up'>
<h2>Top Up</h2>
<h3>Amount to top up in USD</h3>
<form action=''>
<input type='text' data-type="currency" class='dollar' value='$1,000'>
<span class='dollar__right'>
</span>
<div class='clear'></div>
<p class='reveal'>See Calculations</p>
<h3>Amount to pay in BRL</h3>
<input type='text' data-type="currency" class='select__currency' value='R$245,42'>
<h3>Payment method</h3>
<input type='text' class='payment__method' value='Fast transfer – Send money with a TED Ba...'>
<input type='submit' class='submit' value='Top Up $1,000'>
</form>
</div>
<?php /*
<form action="">
<label class='test'>
<span>$</span>
<input type='number' class='money__dollar' value='1,000'>
</label>
</form>
*/ ?>
</div>
<!-- div container closed in footer.php -->
<?php get_footer(); ?>
\ No newline at end of file
/* Styly pro top-up šablonu */
.top-up {
background-color: $yellow;
width: 100%;
height: calc( 100% - 80px );
box-shadow: 0 5px 0 rgba(202, 172, 0, 0.88), 0 2px 24px rgba(0, 0, 0, 0.5);
border-radius: 20px;
}
\ No newline at end of file
width: calc(100% - 64px);
height: calc( 100% - 160px );
//box-shadow: 0 5px 0 rgba(202, 172, 0, 0.88), 0 2px 24px rgba(0, 0, 0, 0.5);
border-radius: 0 0 20px 20px;
padding: 71px 32px 0;
position: absolute;
z-index: 999;
box-shadow: 0px 120px 0px 0px rgba(0,0,0,0.15);
h2 {
margin: 0;
color: $darkgray;
font-size: 24px;
font-weight: 800;
}
h3 {
color: $darkgray;
font-size: 21px;
font-weight: 700;
margin-bottom: 13px;
}
.dollar {
width: calc(100% - 44px - 75px);
border-radius: 5px 0px 0px 5px;
border: none;
border-right: 1px solid $lightgray;
background-color: $white;
font-size: 36px;
font-weight: 600;
padding: 22px 20px;
float: left;
}
.dollar__right {
float: left;
width: 74px;
height: 86px;
background-color: $white;
border-radius: 0px 5px 5px 0px;
}
.reveal {
color: #968000;
font-size: 12px;
font-weight: 500;
}
.select__currency {
width: calc(100% - 44px) ;
background-color: transparent;
border-radius: 5px;
border: 1px solid #968000;
font-size: 36px;
font-weight: 600;
padding: 22px 20px;
}
.payment__method {
background-color: $white;
width: calc(100% - 34px);
border: none;
border-radius: 5px;
height: auto;
padding: 20px 17px;
color: $darkgray;
font-size: 12px;
font-weight: 500;
}
.submit {
width: 100%;
box-shadow: 0 4px 0 #110f0f;
border-radius: 5px;
background-color: #231f20;
text-align: center;
padding: 20px;
border: none;
color: white;
font-size: 18px;
font-weight: 700;
margin-top: 50px;
}
/*
.test {
width: 100%;
border-radius: 5px;
background-color: $white;
display: flex;
span {
font-size: 50px;
border: none;
color: $black;
font-size: 36px;
font-weight: 600;
padding: 20px 0 20px 20px;
}
}
.money__dollar {
width: 100%;
font-size: 50px;
border: none;
color: $black;
font-size: 36px;
font-weight: 600;
&:focus {
outline: none;
}
}
*/
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment