helpers.less
108 lines
| 1.9 KiB
| text/x-less
|
LessCssLexer
r1 | //--- RESETS ---// | |||
:focus { outline: none; } | ||||
a { cursor: pointer; } | ||||
//--- clearfix --// | ||||
.clearfix { | ||||
&:before, | ||||
&:after { | ||||
content:""; | ||||
width: 100%; | ||||
clear: both; | ||||
float: left; | ||||
} | ||||
} | ||||
r1138 | .clearinner:after { /* clears all floating divs inside a block */ | |||
content: ""; | ||||
display: table; | ||||
clear: both; | ||||
} | ||||
r1143 | .js-template { /* mark a template for javascript use */ | |||
display: none; | ||||
} | ||||
r1138 | ||||
r1 | .linebreak { | |||
display: block; | ||||
} | ||||
r4046 | .clear-both { | |||
clear: both; | ||||
} | ||||
r4485 | .display-none { | |||
display: none; | ||||
} | ||||
r1 | .pull-right { | |||
float: right !important; | ||||
} | ||||
.pull-left { | ||||
float: left !important; | ||||
} | ||||
.block-left { | ||||
float: left; | ||||
} | ||||
.block-right { | ||||
float: right; | ||||
clear: right; | ||||
r3248 | li { | |||
list-style-type: none; | ||||
} | ||||
r1 | } | |||
r4140 | .noselect { | |||
-webkit-touch-callout: none; /* iOS Safari */ | ||||
-webkit-user-select: none; /* Safari */ | ||||
-khtml-user-select: none; /* Konqueror HTML */ | ||||
-moz-user-select: none; /* Firefox */ | ||||
-ms-user-select: none; /* Internet Explorer/Edge */ | ||||
user-select: none; /* Non-prefixed version, currently | ||||
supported by Chrome and Opera */ | ||||
} | ||||
r1 | //--- DEVICE-SPECIFIC CLASSES ---------------// | |||
//regular tablet and up | ||||
@media (min-width:768px) { | ||||
.no-mobile { | ||||
display: block; | ||||
} | ||||
.mobile-only { | ||||
display: none; | ||||
} | ||||
} | ||||
//small tablet and phone | ||||
@media (max-width:767px) { | ||||
.mobile-only { | ||||
display: block; | ||||
} | ||||
.no-mobile { | ||||
display: none; | ||||
} | ||||
} | ||||
//--- STICKY FOOTER ---// | ||||
html, body { | ||||
height: 100%; | ||||
margin: 0; | ||||
} | ||||
.outerwrapper { | ||||
height: 100%; | ||||
min-height: 100%; | ||||
margin: 0; | ||||
padding-bottom: 3em; /* must be equal to footer height */ | ||||
} | ||||
.outerwrapper:after{ | ||||
content:" "; | ||||
} | ||||
#footer { | ||||
clear: both; | ||||
position: relative; | ||||
height: 3em; /* footer height */ | ||||
margin: -3em 0 0; /* must be equal to footer height */ | ||||
} | ||||