Cleanup LESS

This commit is contained in:
Jake Howard 2015-12-22 08:20:02 +00:00
parent 3e7e68d33a
commit 776a5c9f0e
3 changed files with 54 additions and 14 deletions

9
src/js/utils.js Normal file
View file

@ -0,0 +1,9 @@
jQuery.fn.rotate = function(degrees) {
$(this).css({
'-webkit-transform' : 'rotate('+ degrees +'deg)',
'-moz-transform' : 'rotate('+ degrees +'deg)',
'-ms-transform' : 'rotate('+ degrees +'deg)',
'transform' : 'rotate('+ degrees +'deg)'
});
return $(this);
};

11
src/less/mobile.less Normal file
View file

@ -0,0 +1,11 @@
/* Mobile specific styles, mostly suggested by Cordova */
* {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
body {
-webkit-touch-callout: none;
-webkit-text-size-adjust: none;
-webkit-user-select: none;
}

View file

@ -5,14 +5,9 @@
// @import url(https://fonts.googleapis.com/css?family=Roboto:400,300,400italic,700); // @import url(https://fonts.googleapis.com/css?family=Roboto:400,300,400italic,700);
@import (inline) "node_modules/animate.css/animate.css"; @import (inline) "node_modules/animate.css/animate.css";
* { @import 'mobile';
-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}
body { body {
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
background-color:#E4E4E4; background-color:#E4E4E4;
font-family: 'Roboto' sans-serif; font-family: 'Roboto' sans-serif;
font-size:12px; font-size:12px;
@ -22,6 +17,31 @@ body {
padding:7px; padding:7px;
width:100%; width:100%;
} }
/* @group Overrides*/
p {
a {
.transition(color 0.4s);
}
}
ol , ul{
font-size: inherit;
& > li {
font-size: inherit
}
}
/* @end Overrides*/
/* @group Functional Classes*/
a.no-color-change {
color: inherit;
&:hover {
color: inherit;
}
}
/* @end Functional Classes*/
#main { #main {
height: 100vh; height: 100vh;