redo main/register page
No files matched your search
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
@@ -0,0 +1,32 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
// responsive nav
|
||||
var responsiveNav = $('#toggle-nav');
|
||||
var navBar = $('.nav-bar');
|
||||
|
||||
responsiveNav.on('click',function(e){
|
||||
e.preventDefault();
|
||||
console.log(navBar);
|
||||
navBar.toggleClass('active')
|
||||
});
|
||||
|
||||
// pseudo active
|
||||
if($('#docs').length){
|
||||
var sidenav = $('ul.side-nav').find('a');
|
||||
var url = window.location.pathname.split( '/' );
|
||||
var url = url[url.length-1];
|
||||
|
||||
sidenav.each(function(i,e){
|
||||
var active = $(e).attr('href');
|
||||
|
||||
if(active === url){
|
||||
$(e).parent('li').addClass('active');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
hljs.configure({tabReplace: ' '});
|
||||
hljs.initHighlightingOnLoad();
|
||||
@@ -0,0 +1,364 @@
|
||||
$owl-primary-color: #1ccacd;
|
||||
$owl-success-color: #ff3f4d;
|
||||
$owl-gray-color: #f7f7f7;
|
||||
|
||||
|
||||
$medium-down: "#{$screen} and (max-width:#{lower-bound($medium-range)})" !default;
|
||||
|
||||
/* Custom mixins */
|
||||
|
||||
@mixin owl-transition($p:all, $t:300ms) {
|
||||
-webkit-transition: $p $t ease-in-out;
|
||||
-moz-transition: $p $t ease-in-out;
|
||||
-ms-transition: $p $t ease-in-out;
|
||||
-o-transition: $p $t ease-in-out;
|
||||
transition: $p $t ease-in-out;
|
||||
}
|
||||
|
||||
@mixin owl-radius($r:3px) {
|
||||
-webkit-border-radius: $r;
|
||||
-moz-border-radius: $r;
|
||||
border-radius: $r;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
|
||||
.header{
|
||||
background: #1ccacd;
|
||||
|
||||
.brand {
|
||||
h3{
|
||||
font-weight: 300;
|
||||
font-style: italic;
|
||||
color: #FFF;
|
||||
margin: 1.35rem 0;
|
||||
line-height: 1;
|
||||
font-size: 1.5rem;
|
||||
a{
|
||||
color: #FFF;
|
||||
&:hover{
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Header */
|
||||
|
||||
.nav-bar{
|
||||
float:right;
|
||||
ul{
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
li{
|
||||
float:left;
|
||||
|
||||
&.active{
|
||||
a {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
a{
|
||||
opacity: 0.8;
|
||||
margin: 1.73rem 0 1.73rem 2rem;
|
||||
display: block;
|
||||
color: #fff;
|
||||
line-height: 1;
|
||||
@include owl-transition(opacity,200ms);
|
||||
|
||||
&:hover{
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.download{
|
||||
width:1rem;
|
||||
height: 1rem;
|
||||
background: $owl-success-color;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 0;
|
||||
border: 2px solid #FFF;
|
||||
background: url(../img/download.png) $owl-success-color no-repeat 50% 55%;
|
||||
@include owl-radius(100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#toggle-nav {
|
||||
width: 2rem;
|
||||
display: block;
|
||||
margin: 1.5rem 0 1.2rem 0rem;
|
||||
span {
|
||||
width: 100%;
|
||||
height: 0.25rem;
|
||||
margin-bottom: 0.3rem;
|
||||
background: #FFF;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$medium-up} {
|
||||
#toggle-nav{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@media #{$small-only} {
|
||||
.nav-bar {
|
||||
display: none;
|
||||
}
|
||||
.nav-bar.active {
|
||||
float:right;
|
||||
clear:both;
|
||||
display: block;
|
||||
a{
|
||||
margin: 1rem 0 1rem 1rem;
|
||||
}
|
||||
.download{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Home Panel */
|
||||
#hero{
|
||||
background: $owl-primary-color;
|
||||
padding: 5rem 0;
|
||||
|
||||
.owl-logo{
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
h1{
|
||||
color: #FFF;
|
||||
font-weight: 300;
|
||||
font-size: 3.375rem;
|
||||
margin: 0rem;
|
||||
}
|
||||
h4{
|
||||
color:#FFF;
|
||||
font-weight: 300;
|
||||
font-size: 1.500rem;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
.hero-button{
|
||||
display: inline-block;
|
||||
padding: 1rem 2rem;
|
||||
margin-right: 0.75rem;
|
||||
font-size: 1.250rem;
|
||||
font-weight: 400;
|
||||
background: #FFF;
|
||||
color: $owl-primary-color;
|
||||
border: 1px solid #FFF;
|
||||
@include owl-radius(2px);
|
||||
@include owl-transition(all,200ms);
|
||||
|
||||
&.outline{
|
||||
background: transparent;
|
||||
color: #FFF;
|
||||
}
|
||||
&:hover{
|
||||
background: $owl-success-color;
|
||||
border: 1px solid $owl-success-color;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
p{
|
||||
color: #FFF;
|
||||
margin: 0.5rem 0;
|
||||
opacity: 0.7;
|
||||
font-weight: 300;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px){
|
||||
#hero {
|
||||
padding: 2rem 0;
|
||||
h1{
|
||||
color: #FFF;
|
||||
font-weight: 300;
|
||||
font-size: 2rem;
|
||||
}
|
||||
h4{
|
||||
color:#FFF;
|
||||
font-weight: 300;
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media #{$small-only} {
|
||||
#hero{
|
||||
.owl-logo{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Home Demo */
|
||||
|
||||
.owl-carousel{
|
||||
.item{
|
||||
|
||||
}
|
||||
}
|
||||
.home-demo{
|
||||
padding: 2rem 0;
|
||||
.item{
|
||||
background: $owl-success-color;
|
||||
}
|
||||
h3{
|
||||
text-align: center;
|
||||
color: #808080;
|
||||
margin: 2rem;
|
||||
}
|
||||
h2{
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
padding: 5rem 0;
|
||||
margin:0;
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
}
|
||||
.owl-dot.active span{
|
||||
background: $owl-success-color;
|
||||
}
|
||||
}
|
||||
|
||||
/* Features */
|
||||
|
||||
#features{
|
||||
.feature{
|
||||
margin: 2rem 0 6rem;
|
||||
}
|
||||
h2{
|
||||
font-weight: 300;
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
img{
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
@media #{$small-only} {
|
||||
#features{
|
||||
.feature{
|
||||
margin: 1rem 0;
|
||||
}
|
||||
img{
|
||||
display: block;
|
||||
margin: 1rem auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Teaser Text */
|
||||
|
||||
#teaser-text{
|
||||
text-align: center;
|
||||
h3{
|
||||
font-weight: 300;
|
||||
color: #1ccacd;
|
||||
}
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
|
||||
.footer{
|
||||
margin-top: 5rem;
|
||||
background: #f7f7f7;
|
||||
h5{
|
||||
text-align: center;
|
||||
color: #8d8d8d;
|
||||
margin: 2rem 0 ;
|
||||
font-weight: normal;
|
||||
font-size: 1rem;
|
||||
a{
|
||||
font-weight: normal;
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
a#custom-tweet-button {
|
||||
padding: 6px 13px 6px 13px;
|
||||
margin-left: 0px;
|
||||
background: url('../img/twitter_25.png') 1px center no-repeat;
|
||||
}
|
||||
|
||||
blockquote p {
|
||||
color:#A0A0A0
|
||||
}
|
||||
|
||||
|
||||
/* Title */
|
||||
|
||||
.title{
|
||||
background: $owl-gray-color;
|
||||
margin-bottom: 2rem;
|
||||
h1{
|
||||
margin: 0;
|
||||
padding: 1.2rem 0;
|
||||
font-weight: 300;
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$small-only} {
|
||||
.title{
|
||||
margin-bottom: 0rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* demo blocks */
|
||||
|
||||
.demo-block{
|
||||
background: #eaeaea;
|
||||
height: 6rem;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
display: block;
|
||||
@include owl-transition(background,200ms);
|
||||
|
||||
&:hover{
|
||||
background: $owl-primary-color;
|
||||
h5{
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
h5{
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Type */
|
||||
|
||||
code {
|
||||
font-weight: bold;
|
||||
background: $owl-gray-color;
|
||||
font-size: 90%;
|
||||
font-weight: normal;
|
||||
padding: 1px 5px;
|
||||
@include owl-radius(2px)
|
||||
}
|
||||
|
||||
blockquote{
|
||||
padding: 1rem 1rem;
|
||||
border-left: 7px solid $owl-primary-color;
|
||||
}
|
||||
blockquote p{
|
||||
font-size: 1.1rem;
|
||||
margin:0;
|
||||
}
|
||||
p{
|
||||
color: #555555;
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
#demos{
|
||||
.owl-carousel{
|
||||
margin: 2rem 0;
|
||||
.item{
|
||||
height: 10rem;
|
||||
background: #4DC7A0;// $owl-success-color;
|
||||
padding: 1rem;
|
||||
h4{
|
||||
color: #FFF;
|
||||
font-weight: 400;
|
||||
margin-top: 0rem;
|
||||
}
|
||||
}
|
||||
.item-video{
|
||||
height: 300px;
|
||||
}
|
||||
}
|
||||
#setup{
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
||||
.demo-list{
|
||||
h5{
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media #{$small-up} {
|
||||
.demo-list{
|
||||
[class*="column"]+[class*="column"]:last-child {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.callbacks{
|
||||
div{
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
span.label{
|
||||
@include owl-transition();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
#docs{
|
||||
padding-top: 2rem;
|
||||
.docs-content{
|
||||
//padding-left: 2rem;
|
||||
h2:first-child {
|
||||
padding-top: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
h4{
|
||||
margin-top: 0.3rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
#docs{
|
||||
/* Side Nav */
|
||||
ul.side-nav{
|
||||
text-align: right;
|
||||
margin-bottom: 1rem;
|
||||
li{
|
||||
margin: 0;
|
||||
padding: .3rem 3rem .3rem 0;
|
||||
&:hover,
|
||||
&.active {
|
||||
background: $owl-gray-color;
|
||||
a{
|
||||
color: #000;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
li.side-nav-head{
|
||||
text-transform: uppercase;
|
||||
color: #000;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
padding: 0rem 3rem .3rem 0;
|
||||
&:hover {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$small-only} {
|
||||
#docs{
|
||||
padding-top: 1rem;
|
||||
ul.side-nav{
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
@import "settings";
|
||||
@import "normalize";
|
||||
@import "foundation";
|
||||
@import "custom";
|
||||
@import "demos";
|
||||
@import "docs";
|
||||
@import "highlight";
|
||||
@@ -0,0 +1,134 @@
|
||||
/*
|
||||
|
||||
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
||||
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow-y: hidden;
|
||||
margin-bottom: 2rem;
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
color: #333;
|
||||
background: #f8f8f8;
|
||||
padding: 2rem;
|
||||
line-height: 1.4;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-template_comment,
|
||||
.diff .hljs-header,
|
||||
.hljs-javadoc {
|
||||
color: #B9B9B9;
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.css .rule .hljs-keyword,
|
||||
.hljs-winutils,
|
||||
.javascript .hljs-title,
|
||||
.nginx .hljs-title,
|
||||
.hljs-subst,
|
||||
.hljs-request,
|
||||
.hljs-status {
|
||||
color: #333;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.hljs-number,
|
||||
.hljs-hexcolor,
|
||||
.ruby .hljs-constant {
|
||||
color: #099;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-tag .hljs-value,
|
||||
.hljs-phpdoc,
|
||||
.tex .hljs-formula {
|
||||
color: #bd240d
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-id,
|
||||
.coffeescript .hljs-params,
|
||||
.scss .hljs-preprocessor {
|
||||
color: #900;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.javascript .hljs-title,
|
||||
.lisp .hljs-title,
|
||||
.clojure .hljs-title,
|
||||
.hljs-subst {
|
||||
font-weight: normal
|
||||
}
|
||||
|
||||
.hljs-class .hljs-title,
|
||||
.haskell .hljs-type,
|
||||
.vhdl .hljs-literal,
|
||||
.tex .hljs-command {
|
||||
color: #458;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-tag .hljs-title,
|
||||
.hljs-rules .hljs-property,
|
||||
.django .hljs-tag .hljs-keyword {
|
||||
color: #000080;
|
||||
font-weight: normal
|
||||
}
|
||||
|
||||
.hljs-attribute,
|
||||
.hljs-variable,
|
||||
.lisp .hljs-body {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
.hljs-regexp {
|
||||
color: #009926
|
||||
}
|
||||
|
||||
.hljs-symbol,
|
||||
.ruby .hljs-symbol .hljs-string,
|
||||
.lisp .hljs-keyword,
|
||||
.tex .hljs-special,
|
||||
.hljs-prompt {
|
||||
color: #333333
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.lisp .hljs-title,
|
||||
.clojure .hljs-built_in {
|
||||
color: #0086b3
|
||||
}
|
||||
|
||||
.hljs-preprocessor,
|
||||
.hljs-pragma,
|
||||
.hljs-pi,
|
||||
.hljs-doctype,
|
||||
.hljs-shebang,
|
||||
.hljs-cdata {
|
||||
color: #999;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background: #fdd
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background: #dfd
|
||||
}
|
||||
|
||||
.diff .hljs-change {
|
||||
background: #0086b3
|
||||
}
|
||||
|
||||
.hljs-chunk {
|
||||
color: #aaa
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Version: 3.1.11
|
||||
*
|
||||
* Requires: jQuery 1.2.2+
|
||||
*/
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.11",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b)["offsetParent"in a.fn?"offsetParent":"parent"]();return c.length||(c=a("body")),parseInt(c.css("fontSize"),10)},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
|
||||