Skip to content

Instantly share code, notes, and snippets.

View dmitryzatsepin's full-sized avatar

Dmitry Zatsepin dmitryzatsepin

  • Ekaterinburg, Russia
View GitHub Profile
.section__title
position: relative
text-align: center
font-size: 32px
padding-bottom: 20px
margin-bottom: 40px
text-transform: uppercase
font-weight: 300
.section__title:before
.visually-hidden
position: absolute
width: 1px
height: 1px
margin: -1px
border: 0
padding: 0
clip: rect(0 0 0 0)
overflow: hidden
{
"workbench.startupEditor": "newUntitledFile",
"git.ignoreMissingGitWarning": true,
"workbench.statusBar.feedback.visible": false,
"window.menuBarVisibility": "toggle",
"workbench.statusBar.visible": false,
"workbench.activityBar.visible": false,
"editor.minimap.enabled": false,
"files.defaultLanguage": "html",
"emmet.triggerExpansionOnTab": true,
.main-header
min-height: 100vh
background-size: cover
position: relative
align-content: center
&::before
content: ''
position: absolute
top: 0
left: 0
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<base href="/">
<title>New Project</title>
<meta name="description" content="">
<?php
$year = 1900;
echo '<select>';
while($year <= 2017){
echo "<option value='$year'>$year</option>";
$year++;
}
echo '/select>';
?>
Install Node.js
Install check update: npm i -g npm-check-updates
Install gulp globally: npm i gulp -g
Install gulp in project folder: npm i gulp
Create gulp project (initialize): npm init
Fill the data (package.json appear in the project folder)
Install gulp with save dev (save package and version in package.json): npm i gulp --save-dev (folder 'node modules' appear in project folder)
Making catalogue structure (app, dist)
Filling app folder (css, fons, img, js, sass, libs)
Create 'index.html' in app
@dmitryzatsepin
dmitryzatsepin / Label_1 (LESS)
Last active January 19, 2018 07:55
Label 1
label {
position: absolute;
left: 50%;
transform: translateX(-50%) translateY(-50%);
padding: 0.5rem;
font-size: 1.3rem;
background-color: @white;
}
.wrap {
display: table;
width: 100%;
height: 7rem;
&-block {
display: table-cell;
vertical-align: middle;
}
}