Reduce less files (space) tab size 4 -> 2

main
Raymond Wanyoike 2014-10-28 21:47:14 +03:00
parent 288e6464bd
commit 8d9827b78a
2 changed files with 220 additions and 220 deletions

View File

@ -9,93 +9,93 @@
// version: v3.0.1 (2014-05-27) // version: v3.0.1 (2014-05-27)
// TABLE OF MIXINS: // TABLE OF MIXINS:
// align-content // align-content
// align-items // align-items
// align-self // align-self
// animation // animation
// animation-delay // animation-delay
// animation-direction // animation-direction
// animation-duration // animation-duration
// animation-fill-mode // animation-fill-mode
// animation-iteration-count // animation-iteration-count
// animation-name // animation-name
// animation-play-state // animation-play-state
// animation-timing-function // animation-timing-function
// appearance // appearance
// backface-visibility // backface-visibility
// background-clip // background-clip
// background-image // background-image
// background-origin // background-origin
// background-size // background-size
// blur // blur
// border-bottom-left-radius // border-bottom-left-radius
// border-bottom-right-radius // border-bottom-right-radius
// border-image // border-image
// border-radius // border-radius
// border-top-left-radius // border-top-left-radius
// border-top-right-radius // border-top-right-radius
// box-shadow // box-shadow
// box-sizing // box-sizing
// brightness // brightness
// calc // calc
// column-count // column-count
// column-gap // column-gap
// column-rule // column-rule
// column-width // column-width
// columns // columns
// contrast // contrast
// display // display
// drop-shadow // drop-shadow
// filter // filter
// flex // flex
// flex-basis // flex-basis
// flex-direction // flex-direction
// flex-grow // flex-grow
// flex-shrink // flex-shrink
// flex-wrap // flex-wrap
// font-face // font-face
// grayscale // grayscale
// hue-rotate // hue-rotate
// hyphens // hyphens
// invert // invert
// justify-content // justify-content
// keyframes // keyframes
// opacity // opacity
// order // order
// perspective // perspective
// perspective-origin // perspective-origin
// placeholder // placeholder
// rotate // rotate
// rotate3d // rotate3d
// rotateX // rotateX
// rotateY // rotateY
// rotateZ // rotateZ
// saturate // saturate
// scale // scale
// scale3d // scale3d
// scaleX // scaleX
// scaleY // scaleY
// scaleZ // scaleZ
// selection // selection
// sepia // sepia
// size // size
// skew // skew
// skewX // skewX
// skewY // skewY
// transform // transform
// transform-origin // transform-origin
// transform-style // transform-style
// transition // transition
// transition-delay // transition-delay
// transition-duration // transition-duration
// transition-property // transition-property
// transition-timing-function // transition-timing-function
// translate // translate
// translate3d // translate3d
// translateX // translateX
// translateY // translateY
// translateZ // translateZ
// user-select // user-select
.align-content(...) { .align-content(...) {
@process: ~`(function(r){return r=r||"stretch"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; @process: ~`(function(r){return r=r||"stretch"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`;
@ -257,16 +257,16 @@
.border-bottom-left-radius(...) { .border-bottom-left-radius(...) {
@process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`;
-webkit-border-bottom-left-radius: @process; -webkit-background-clip: padding-box; -webkit-border-bottom-left-radius: @process; -webkit-background-clip: padding-box;
-moz-border-radius-bottomleft: @process; -moz-background-clip: padding; -moz-border-radius-bottomleft: @process; -moz-background-clip: padding;
border-bottom-left-radius: @process; background-clip: padding-box; border-bottom-left-radius: @process; background-clip: padding-box;
} }
.border-bottom-right-radius(...) { .border-bottom-right-radius(...) {
@process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`;
-webkit-border-bottom-right-radius: @process; -webkit-background-clip: padding-box; -webkit-border-bottom-right-radius: @process; -webkit-background-clip: padding-box;
-moz-border-radius-bottomright: @process; -moz-background-clip: padding; -moz-border-radius-bottomright: @process; -moz-background-clip: padding;
border-bottom-right-radius: @process; background-clip: padding-box; border-bottom-right-radius: @process; background-clip: padding-box;
} }
.border-image(...) { .border-image(...) {
@ -279,23 +279,23 @@
.border-radius(...) { .border-radius(...) {
@process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`;
-webkit-border-radius: @process; -webkit-background-clip: padding-box; -webkit-border-radius: @process; -webkit-background-clip: padding-box;
-moz-border-radius: @process; -moz-background-clip: padding; -moz-border-radius: @process; -moz-background-clip: padding;
border-radius: @process; background-clip: padding-box; border-radius: @process; background-clip: padding-box;
} }
.border-top-left-radius(...) { .border-top-left-radius(...) {
@process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`;
-webkit-border-top-left-radius: @process; -webkit-background-clip: padding-box; -webkit-border-top-left-radius: @process; -webkit-background-clip: padding-box;
-moz-border-radius-topleft: @process; -moz-background-clip: padding; -moz-border-radius-topleft: @process; -moz-background-clip: padding;
border-top-left-radius: @process; background-clip: padding-box; border-top-left-radius: @process; background-clip: padding-box;
} }
.border-top-right-radius(...) { .border-top-right-radius(...) {
@process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`;
-webkit-border-top-right-radius: @process; -webkit-background-clip: padding-box; -webkit-border-top-right-radius: @process; -webkit-background-clip: padding-box;
-moz-border-radius-topright: @process; -moz-background-clip: padding; -moz-border-radius-topright: @process; -moz-background-clip: padding;
border-top-right-radius: @process; background-clip: padding-box; border-top-right-radius: @process; background-clip: padding-box;
} }
.box-shadow(...) { .box-shadow(...) {
@ -453,9 +453,9 @@
font-family: "@{fontname}"; font-family: "@{fontname}";
src: url("@{fontfile}.eot"); src: url("@{fontfile}.eot");
src: url("@{fontfile}.eot?#iefix") format("embedded-opentype"), src: url("@{fontfile}.eot?#iefix") format("embedded-opentype"),
url("@{fontfile}.woff") format("woff"), url("@{fontfile}.woff") format("woff"),
url("@{fontfile}.ttf") format("truetype"), url("@{fontfile}.ttf") format("truetype"),
url("@{fontfile}.svg#@{fontname}") format("svg"); url("@{fontfile}.svg#@{fontname}") format("svg");
font-weight: @fontweight; font-weight: @fontweight;
font-style: @fontstyle; font-style: @fontstyle;
} }
@ -546,32 +546,32 @@
.placeholder(@color:#aaa, @element: 08121991) { .placeholder(@color:#aaa, @element: 08121991) {
.inception (@arguments) when not (@element = 08121991) { .inception (@arguments) when not (@element = 08121991) {
@{element}::-webkit-input-placeholder { @{element}::-webkit-input-placeholder {
color: @color; color: @color;
} }
@{element}:-moz-placeholder { @{element}:-moz-placeholder {
color: @color; color: @color;
} }
@{element}::-moz-placeholder { @{element}::-moz-placeholder {
color: @color; color: @color;
} }
@{element}:-ms-input-placeholder { @{element}:-ms-input-placeholder {
color: @color; color: @color;
} }
} }
.inception (@arguments) when (@element = 08121991) { .inception (@arguments) when (@element = 08121991) {
&::-webkit-input-placeholder { &::-webkit-input-placeholder {
color: @color; color: @color;
} }
&:-moz-placeholder { &:-moz-placeholder {
color: @color; color: @color;
} }
&::-moz-placeholder { &::-moz-placeholder {
color: @color; color: @color;
} }
&:-ms-input-placeholder { &:-ms-input-placeholder {
color: @color; color: @color;
} }
} }
.inception(@arguments); .inception(@arguments);
} }
@ -691,13 +691,13 @@
.size(@square) { .size(@square) {
@unit: 'px'; @unit: 'px';
.process(@square) when (ispixel(@square)), (isem(@square)), (ispercentage(@square)), (iskeyword(@square)) { .process(@square) when (ispixel(@square)), (isem(@square)), (ispercentage(@square)), (iskeyword(@square)) {
width: @square; width: @square;
height: @square; height: @square;
} }
.process(@square) when not (ispixel(@square)) and not (isem(@square)) and not (ispercentage(@square)) and not (isstring(@square)) and not (iskeyword(@square)) { .process(@square) when not (ispixel(@square)) and not (isem(@square)) and not (ispercentage(@square)) and not (isstring(@square)) and not (iskeyword(@square)) {
width: ~`@{square} + @{unit}`; width: ~`@{square} + @{unit}`;
height: ~`@{square} + @{unit}`; height: ~`@{square} + @{unit}`;
} }
.process(@square); .process(@square);
@ -707,29 +707,29 @@
.size(@width, @height) { .size(@width, @height) {
@unit: 'px'; @unit: 'px';
.process(@width, @height) when (ispixel(@width)), (isem(@width)), (ispercentage(@width)), (iskeyword(@width)) { .process(@width, @height) when (ispixel(@width)), (isem(@width)), (ispercentage(@width)), (iskeyword(@width)) {
.kittens(@height) when (ispixel(@height)), (isem(@height)), (ispercentage(@height)), (iskeyword(@height)) { .kittens(@height) when (ispixel(@height)), (isem(@height)), (ispercentage(@height)), (iskeyword(@height)) {
width: @width; width: @width;
height: @height; height: @height;
} }
.kittens(@height) when not (ispixel(@height)) and not (isem(@height)) and not (ispercentage(@height)) and not (iskeyword(@height)) { .kittens(@height) when not (ispixel(@height)) and not (isem(@height)) and not (ispercentage(@height)) and not (iskeyword(@height)) {
width: @width; width: @width;
height: ~`@{height} + @{unit}`; height: ~`@{height} + @{unit}`;
} }
.kittens(@height); .kittens(@height);
} }
.process(@width, @height) when (ispixel(@height)), (isem(@height)), (ispercentage(@height)), (iskeyword(@height)) { .process(@width, @height) when (ispixel(@height)), (isem(@height)), (ispercentage(@height)), (iskeyword(@height)) {
.kittens(@width) when (ispixel(@width)), (isem(@width)), (ispercentage(@width)), (iskeyword(@width)) {} .kittens(@width) when (ispixel(@width)), (isem(@width)), (ispercentage(@width)), (iskeyword(@width)) {}
.kittens(@width) when not (ispixel(@width)) and not (isem(@width)) and not (ispercentage(@width)) and not (iskeyword(@width)) { .kittens(@width) when not (ispixel(@width)) and not (isem(@width)) and not (ispercentage(@width)) and not (iskeyword(@width)) {
width: ~`@{width} + @{unit}`; width: ~`@{width} + @{unit}`;
height: @height; height: @height;
} }
.kittens(@width); .kittens(@width);
} }
.process(@width, @height) when not (ispixel(@width)) and not (isem(@width)) and not (ispercentage(@width)) and not (iskeyword(@width)) and not (ispixel(@height)) and not (isem(@height)) and not (ispercentage(@height)) and not (iskeyword(@height)) { .process(@width, @height) when not (ispixel(@width)) and not (isem(@width)) and not (ispercentage(@width)) and not (iskeyword(@width)) and not (ispixel(@height)) and not (isem(@height)) and not (ispercentage(@height)) and not (iskeyword(@height)) {
width: ~`@{width} + @{unit}`; width: ~`@{width} + @{unit}`;
height: ~`@{height} + @{unit}`; height: ~`@{height} + @{unit}`;
} }
.process(@width, @height); .process(@width, @height);

View File

@ -9,8 +9,8 @@
@monospace: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace; @monospace: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
body { body {
background-color: #fafafa; background-color: #fafafa;
font-family: @serif; font-family: @serif;
} }
h1, h1,
@ -19,7 +19,7 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
font-family: @sans-serif; font-family: @sans-serif;
} }
code, code,
@ -30,83 +30,83 @@ samp {
} }
a { a {
.transition(color 0.2s ease-in-out); .transition(color 0.2s ease-in-out);
color: #2e2e2e; color: #2e2e2e;
&:hover { &:hover {
color: orange; color: orange;
} }
&.nodec { &.nodec {
text-decoration: none; text-decoration: none;
} }
} }
.header { .header {
background-color: #efefef; background-color: #efefef;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
border-top: 5px solid #333; border-top: 5px solid #333;
margin-bottom: 30px; margin-bottom: 30px;
padding: 30px 0; padding: 30px 0;
.header-image { .header-image {
margin-right: 30px; margin-right: 30px;
width: 200px; width: 200px;
} }
.header-name { .header-name {
font-size: 82px; font-size: 82px;
margin-top: 0; margin-top: 0;
} }
.header-text { .header-text {
color: #000; color: #000;
font-size: 22px; font-size: 22px;
margin-bottom: 51px; margin-bottom: 51px;
margin-top: 0; margin-top: 0;
} }
.header-menu { .header-menu {
font-size: 18px; font-size: 18px;
margin-bottom: 0; margin-bottom: 0;
li { li {
&:first-child { &:first-child {
padding-left: 0; padding-left: 0;
} }
&:last-child { &:last-child {
padding-right: 0; padding-right: 0;
} }
}
} }
}
} }
.footer { .footer {
background-color: #efefef; background-color: #efefef;
color: grey; color: grey;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
font-size: 12px; font-size: 12px;
margin-top: 30px; margin-top: 30px;
padding: 30px 0; padding: 30px 0;
} }
.post { .post {
font-size: 16px; font-size: 16px;
&.mini-post { &.mini-post {
padding: 30px 0; padding: 30px 0;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
}
.post-title {
font-size: 18px;
line-height: 1.42857143; // Bootstrap rule
margin-bottom: 10px;
margin-top: 0;
}
.post-date {
font-family: @sans-serif;
font-size: 18px;
}
} }
&.full-post { .post-title {
* img { font-size: 18px;
max-width: 940px; line-height: 1.42857143; // Bootstrap rule
} margin-bottom: 10px;
margin-top: 0;
} }
.post-date {
font-family: @sans-serif;
font-size: 18px;
}
}
&.full-post {
* img {
max-width: 940px;
}
}
} }
// .highlight { // .highlight {
@ -119,6 +119,6 @@ a {
// } // }
.separator { .separator {
margin-top: 30px; margin-top: 30px;
margin-bottom: 30px; margin-bottom: 30px;
} }