This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<ImageView | |
android:id="@+id/alert_icon_image" | |
android:layout_width="24dp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function interval(func, wait, times){ | |
var interv = function(w, t){ | |
return function(){ | |
if(typeof t === "undefined" || t-- > 0){ | |
setTimeout(interv, w); | |
try{ | |
func.call(null); | |
} | |
catch(e){ | |
t = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Icon list (corresponds to icon font characters) | |
// Note associative arrays will be easier in Sass version 3.3: https://github.com/nex3/sass/issues/642 | |
$icons: ( | |
'facebook' '\e000', | |
'googleplus' '\e001', | |
'linkedin' '\e002', | |
'twitter' '\e003', | |
'youtube' '\e004', | |
'email' '\e005' | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To simulate associative arrays | |
// Source: http://hugogiraudel.com/2013/08/12/sass-functions/#mapping | |
@function match($haystack, $needle) { | |
@each $item in $haystack { | |
$index: index($item, $needle); | |
@if $index { | |
$return: if($index == 1, 2, $index); | |
@return nth($item, $return); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Tabs = { | |
el: { | |
nav: $(".nav"), | |
tabs: $(".nav > li > a"), | |
panels: $(".nav > li > section") | |
}, | |
init: function() { | |
Tabs.bindUIActions(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="wrapper"> | |
<div class="logo chrome"> | |
<div class="part-1"></div> | |
<div class="part-2"></div> | |
<div class="part-3"></div> | |
<div class="circle"></div> | |
<div class="center"></div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////HTML///////////////////////// | |
<label for="email">Email</label> | |
<input id="email" name="email" type="email" placeholder="[email protected]"> | |
//////////CSS///////////////////////// | |
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro); | |
body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Usage | |
//<input type="checkbox"> | |
/* Face Toggle --------------------------------- */ | |
input[type="checkbox"] { | |
appearance: none; | |
outline: none; | |
position: relative; | |
margin: auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIXINS: | |
========================================================= | |
//CSS3 Animation Delay and Duration with vendor-prefixes | |
@mixin animate-props ($delay: 1s, $duration: 1s, $mode: both) { | |
-webkit-animation-delay : $delay; | |
-webkit-animation-duration : $duration; | |
-webkit-animation-fill-mode: $mode; | |
-ms-animation-delay : $delay; | |
-ms-animation-duration : $duration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Custom Grid System | |
$grid_width : 960px; | |
$grid_col : 12; | |
$grid_gut : 20px; | |
body { min-width: $grid_width; } | |
.container_#{$grid_col} { margin-left: auto; margin-right: auto; width: $grid_width; | |
@for $i from 1 through $grid_col { | |
.grid_#{$i} { display: inline; float: left; margin-left: $grid_gut / 2; margin-right: $grid_gut / 2; } | |
.push_#{$i}, .pull_#{$i} { position: relative; } | |
.grid_#{$i} { width: ( ($grid_width / $grid_col - $grid_gut) * $i ) + (($i - 1) * $grid_gut); } |
NewerOlder