<div class="feature">
<div class="feature__color feature__color--first">
<mark class="feature__color-item feature__color-item--first"></mark>
<mark class="feature__color-item"></mark>
</div>
<div class="feature__color feature__color--first">
<mark class="feature__color-item feature__color-item--first"></mark>
<mark class="feature__color-item"></mark>
</div>
</div>
или :
<div class="feature">
<div class="feature__color feature__color_first">
<span class="feature__color-item feature__color-item_first"></span>
<span class="feature__color-item"></span>
</div>
</div>
или :
<div class="feature">
<div class="feature-color feature__color_first">
<span class="feature-color__item feature-color__item--first"></span>
<span class="feature-color__item"></span>
</div>
</div>
<div class="feature">
<div class=feature__color"">
<div class="feature-color-item ">
<h2>first text</h2>
<mark>second text</mark>
last text
</div>
<div class="feature-color-item feature-color-item--fietst ">
last text
</div>
</div>
<style>
.feature-color-item {
font-size: 20px;
h1 {
font-size: 30px;
}
span {
font-size: 10px;
}
}
</style>
</div>
<feature>
<atricle class="__color">
<div class="__item"><span>text</span></div>
<div class="__item"><span>text</span></div>
<div class="__item"><span>text</span></div>
</atricle>
</feature>
или :
<feature>
<atricle class="--first">
<feature-color-item >
<h2 class="__title">first text</h2>
<mark class="__mark">second text</mark>
last text
</feature-color-item>
<feature-color-item class="--first">
<h2 class="__title">first text</h2>
<mark class="__mark">second text</mark>
last text
</feature-color-item>
</atricle>
<style>
/* componet feature-color-item */
:host {
font-size: 20px;
.__title {
font-size: 30px;
}
.__mark {
font-size: 10px;
}
&.--first{
color: #red;
}
}
</style>
</feature>
.mobile-menu__list
.mobile-menu__item.mobile-menu__item--sub Хадж
ul
li
a(href='#') Расписание поездок
li
a(href='#') Документы
$mobMenu.find('.mobile-menu__item--sub').click(function () {
if ($(this).hasClass('mobile-menu__item--sub-open')) {
$(this).removeClass('mobile-menu__item--sub-open')
} else {
$(this).addClass('mobile-menu__item--sub-open')
}
Или
$(this).toggleClass('mobile-menu__item--sub-open')
});
const gulp = require('gulp'), // Подключаем Gulp
cleanCSS = require('gulp-clean-css'),
sass = require('gulp-sass'), // Подключаем Sass пакет
autoprefixer = require('gulp-autoprefixer'),
concat = require('gulp-concat'); // Подключаем библиотеку для объеденения файлов
let pathBuild = './dist/', pathSrc = './src/';
gulp.task('sass', function () {
return gulp.src(pathSrc + 'sass/**/*.+(sass|scss)')
.pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError))
.pipe(autoprefixer({browsers: ['ie >= 9', 'last 2 version'], cascade: false}))
.pipe(cleanCSS({compatibility: 'ie9'}))
.pipe(gulp.dest(pathBuild + 'css'));
});
$color: #00AFF3;
$corn: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2096%20100%22%3E%0A%3Cpath%20fill%3D%22%2300AFF3%22%20d%3D%22M96%2C100L40.7%2C50L4.1%2C13.9C-1.1%2C8.8%2C2.5%2C0%2C9.8%2C0H96V100z%22/%3E%0A%3C/svg%3E%0A');
.parrent {
display:flex;
width: 100%;
height:300px;
padding: 20px;
border: 1px solid green;
&__block{
position: relative;
width: 100px;
height: 100px;
background: $color;
&:before {
position: absolute;
top: 0;
width:10px;
height:10px;
content:'';
background-image: $corn;
background-size: 10px;
transform: translate(-98%,0);
}
}
}
.input
i.icon-search
input.input__field(type="text" placeholder="search")
.input:before {
content: url("../img/sprites/icon-search.svg");
}
.button {
&--sm {
height: $btn-size-sm;
padding: 0 rem(20);
font-size: $btn-size-sm-fn;
line-height: $btn-size-sm - rem(2);
}
&--xs {
height: $btn-size-xs;
padding: 0 rem(20);
font-size: $btn-size-xs-fn;
line-height: $btn-size-xs - rem(2);
}
&--full {
width: 100% !important;
}
&--s150 {
min-width: rem(150) !important;
}
&--s220 {
width: rem(220) !important;
}
html {
font-family: $font-family-primary;
font-size: 16px;
font-weight: normal;
text-align: left;
line-height: normal;
letter-spacing: normal;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
@media (max-width: 992px) {
font-size: 15px;
}
@media (max-width: 760px) {
font-size: 14px;
}
@media (max-width: 380px) {
font-size: 13px;
}
}