Skip to content

Instantly share code, notes, and snippets.

View madeas's full-sized avatar

Madeas Studio madeas

View GitHub Profile
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimal-ui">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,400,400italic,700,700italics">
@madeas
madeas / font-sizes-px.scss
Last active July 5, 2019 06:20
Sass mixin for the headings: file #1 REM, file #2 PX
$base-font-size: 16px;
$heading-scale: 6;
@for $i from 1 through 6 {
h#{$i} {
font-size: $base-font-size + $heading-scale * (6 - $i);
}
}
// sizes 46px, 40px, 34px, 28px, 22px, 16px
@madeas
madeas / gulpfile.js
Last active July 18, 2019 13:07
Gulp 4 tasks for PUG+SCSS+JS and imagemin
const
gulp = require('gulp'),
pug = require('gulp-pug'),
sourcemaps = require('gulp-sourcemaps'),
concat = require('gulp-concat'),
cleanCSS = require('gulp-clean-css'),
mmq = require('gulp-merge-media-queries'),
babel = require('gulp-babel'),
@madeas
madeas / functions.php
Created September 20, 2018 06:53
for Article! Navbar B-4
class bootstrap_4_walker_nav_menu extends Walker_Nav_menu {
function start_lvl( &$output, $depth ){ // ul
$indent = str_repeat("\t",$depth); // indents the outputted HTML
$submenu = ($depth > 0) ? ' sub-menu' : '';
$output .= "\n$indent<ul class=\"dropdown-menu$submenu depth_$depth\">\n";
}
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ){ // li a span