Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 36 additions & 19 deletions public/css/app.css
Original file line number Diff line number Diff line change
@@ -1,36 +1,53 @@
/* =BASE
====================================================== */
html, body { background: url(../img/blueprintbg.png); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); }
body { font-size: 18px; font-family: 'Terminal Dosis', sans-serif; padding: 0; margin: 0; }
a { color: rgba(255, 255, 255, 0.7); }
ul, ol, form { margin: 0; padding: 0; }
ul, ol { list-style-type: none; }
h1 { margin: 0; margin-bottom: 10px; padding: 0; }
html, body { background: url(../img/noisebg.png); }
body { font-size: 18px; font-family: 'Terminal Dosis', sans-serif; padding: 0; margin: 0; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); }
a { color: rgba(255, 255, 255, 0.7); }
ul, ol, form { margin: 0; padding: 0; }
ul, ol { list-style-type: none; }
h1 { margin: 0; padding: 0; }
h2 { margin: 0; margin-bottom: 10px; padding: 0; font-weight: normal; font-size: 30px; color: rgba(0, 0, 0, 0.4); text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5); }

/* =LAYOUT
====================================================== */
#content { width: 800px; margin: auto; padding: 100px; }
#footer { text-align: center; margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.5); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); }
.clr { overflow: hidden; }

.preview_and_configuration { float: left; width: 320px; }
#content { width: 800px; margin: auto; padding: 100px; padding-bottom: 60px;
/* white radial gradient background */
background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(255,255,255,0.5)), color-stop(70%,rgba(255,255,255,0)));
background: -webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%);
background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%);
background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%);
background: radial-gradient(center, ellipse cover, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80ffffff', endColorstr='#00ffffff',GradientType=1 );
}
#footer { text-align: center; padding-top: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.5); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
border-top: 1px solid rgba(0, 0, 0, 0.15);
box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}
.clr { overflow: hidden; }

.preview_and_configuration { float: left; width: 395px; }

/* =MODULES
====================================================== */
/* preview */
.arrow_box { padding: 40px; width: 280px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }

/* logo */
.logo { color: #ddf8c6; text-align: center; font-size: 54px; line-height: 54px; font-weight: bold; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

/* configuration */
.configuration { margin-top: 30px; }
.configuration ol li { margin-bottom: 5px; }
.configuration ol label { display: inline-block; width: 100px; }
.configuration { margin-top: 15px; }
.configuration .section { float: left; width: 195px; }
.configuration .section li { margin-bottom: 5px; }
.configuration .section label { display: inline-block; width: 100px; }

.configuration .size,
.configuration .border_width { width: 30px; }
.configuration .border_width { width: 30px; }

.configuration .color,
.configuration .border_color { width: 60px; }
.configuration .border_color { width: 60px; }

/* result_code */
.result_code { resize: none; border: 0; padding: 10px; float: right; width: 380px; height: 370px; font-size: 12px; font-family: 'Courier new'; font-weight: bold; background: rgba(0, 0, 0, 0.15); border-radius: 4px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); border: 1px solid rgba(0, 0, 0, 0.2); }
.result_code { resize: none; border: 0; padding: 10px; float: right; width: 380px; height: 370px; font-size: 12px; font-family: 'Courier new'; font-weight: bold; background: rgba(0, 0, 0, 0.15); border-radius: 4px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); border: 1px solid rgba(0, 0, 0, 0.2); }

/* preview */
.arrow_box { color: #fff; padding: 40px; width: 280px; text-align: center; font-size: 54px; line-height: 54px; font-weight: bold; text-transform: uppercase; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
Binary file modified public/img/noisebg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 33 additions & 29 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,42 @@
<div class='preview'>
<style class='preview_styles'></style>
<div class='arrow_box'>
css arrow please!
<h1 class='logo'>css arrow please!</h1>
</div>
</div>
<form class='configuration'>
<h1>Arrow configuration</h1>
<ol>
<li>
<label>Position</label>
<select class='position'>
<option value='top'>Top</option>
<option value='right'>Right</option>
<option value='bottom'>Bottom</option>
<option value='left'>Left</option>
</select>
</li>
<li>
<label>Size</label>
<input class='size' />
</li>
<li>
<label>Color</label>
<input class='color' />
</li>
<li>
<label>Border width</label>
<input class='border_width' />
</li>
<li>
<label>Border color</label>
<input class='border_color' />
</li>
</ol>
<h2>Arrow configuration</h2>
<div class='clr'>
<ol class='section'>
<li>
<label>Position</label>
<select class='position'>
<option value='top'>Top</option>
<option value='right'>Right</option>
<option value='bottom'>Bottom</option>
<option value='left'>Left</option>
</select>
</li>
<li>
<label>Size</label>
<input class='size' />
</li>
<li>
<label>Color</label>
<input class='color' />
</li>
</ol>
<ol class='section'>
<li>
<label>Border width</label>
<input class='border_width' />
</li>
<li>
<label>Border color</label>
<input class='border_color' />
</li>
</ol>
</div>
</form>
</div>
<textarea class='result_code' readonly='readonly'></textarea>
Expand Down
8 changes: 4 additions & 4 deletions public/js/lib/models/arrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ if (!('CSSArrowPlease' in window)) window.CSSArrowPlease = {};

Arrow.ATTRS = {
position: 'top',
size: 10,
color: '#8ebf37',
borderWidth: 1,
borderColor: '#4d710d'
size: 30,
color: '#88b7d5',
borderWidth: 4,
borderColor: '#c2e1f5'
};

// Expose
Expand Down