This file contains 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
diff --git a/lib/decls.json b/lib/decls.json | |
index e21a575..914fa3d 100644 | |
--- a/lib/decls.json | |
+++ b/lib/decls.json | |
@@ -40,7 +40,7 @@ | |
{"prop": "border-width", "initial": "medium"}, | |
{"prop": "border-color", "initial": "currentColor"}, | |
{"prop": "border-bottom", "initial": "0"}, | |
- {"prop": "border-bottom-color", "initial": "inherit"}, | |
+ {"prop": "border-bottom-color", "initial": "currentColor"}, |
This file contains 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
"use strict" | |
const glob = require('glob'); | |
const path = require('path'); | |
const fs = require('fs'); | |
glob('app/scripts/view/**/*.coffee', function (err, files) { | |
files = files | |
.filter(f=> f.match(/\/(\w+)\/\1/i)) | |
.map(path.parse) | |
.forEach(f=>{ |
This file contains 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
.b-toy | |
//- структурно верно, но скорее всего гораздо гибче использовать универсальный блок title с модификатором | |
//- только b- не обязательно | |
.b-toy--title.b-toy-title | |
.b-toy-title--text.toy-title(data-js-toy-title) | |
//- не думаю что рекомендованный возраст должен быть частью тайтла, но это спорный вопрос | |
.b-toy-title--recommended_age | |
span(data-js-toy-recommended_age) | |
|+ | |
//- норм |
This file contains 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
//- .b-video-upload | |
//- общее ощущение: с синтаксисом и структурированием разобрался, но ведь | |
//- есть еще и идеология повторного использования | |
//- Самая важная идея БЭМ - то что верстка это такое же программирование и здесь должны соблюдаться те же | |
//- принципы. Уж повторное использование наработок точно. | |
//- блок .video_page | |
.video_page | |
//- по идее это тоже може быть блоком так как это необязательная част страницы | |
.video_page--promo | |
.video_page--promo-img(data-js-promo-img) |
This file contains 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
ul{ | |
list-style-position: inside; | |
} | |
ol { | |
counter-reset: section; | |
list-style-type: none; | |
} | |
li{ | |
padding-left: 20px; | |
position: relative; |
This file contains 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
#!/bin/bash | |
checkExisting(){ | |
echo "Checking if already existing device on file..." | |
while read fileLine; do | |
if [ "$line" = "$fileLine" ]; then | |
echo "[WARNING] Device already initialized on this system. Nothing to do here" |
This file contains 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 express = require('express'); | |
var app = express(); | |
var port = process.env.PORT || 5000 | |
app.use(express.static(__dirname + "/dist")) | |
var server = app.listen(port, function () { | |
var host = server.address().address; | |
var port = server.address().port; | |
console.log('Example app listening at http://%s:%s', host, port); |
This file contains 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
=effect-blink($width, $height) | |
$bl-w: 25px | |
overflow: hidden | |
.no-touch & | |
&:before | |
content: "" | |
bottom: -10px | |
opacity: 0.2 | |
z-index: 10 | |
left: -$bl-w |
This file contains 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
=inline-stretch | |
text-align: justify | |
&:after | |
content: "" | |
display: inline-block | |
width: 90% |
This file contains 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
=media-sizer($prop, $maxvalue, $minvalue, $maxh, $minh, $prefix:"", $postfix:"") | |
$curh: $maxh | |
$steph: ($maxh - $minh)/4 | |
$stepvalue: ($maxvalue - $minvalue)/4 | |
$value: $maxvalue | |
#{$prop}: #{$prefix} $value #{$postfix} | |
@while $curh >= $minh | |
@media(max-height: #{$curh}) | |
#{$prop}: #{$prefix} $value #{$postfix} |
NewerOlder