Skip to content

Instantly share code, notes, and snippets.

@zenya385
zenya385 / flex-basis-calc.css
Last active April 2, 2023 16:00 — forked from luxplanjay/flex-basis-calc.css
Формула розрахунку ширины flex-елементу у сітці
.element {
flex-basis: calc((100% - к-ть маржинів * значення маржина) / к-ть елементів);
}
@zenya385
zenya385 / visually-hidden.css
Last active October 6, 2022 08:25
Візуально приховати елемент
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
border: 0;
clip: rect(0 0 0 0);
}
@zenya385
zenya385 / container
Created October 12, 2022 09:35
container
.container {
margin-left: auto;
margin-right: auto;
padding-left: 15px;
padding-right: 15px;
width: 100%;
}
@media screen and (min-width: 480px) {
.container {
@zenya385
zenya385 / scss settings vscode.json
Created November 3, 2022 18:56
scss settings vscode.json
"liveSassCompile.settings.generateMap": true, // вимикаємо генерацію карти стилів
"liveSassCompile.settings.formats": [
{
"format": "expanded", // розширений, або стиснутий формат стилів
"autoprefix": "last 5 versions", // компілятор буде додавати префікси кросбраузерності для останніх 5 версій відомих браузерів
"extensionName": ".css", // розширення вихідного файлу
"savePath": "css" // папка, у яку буде компілюватись файл стилів
},
{
"format": "compressed",
@zenya385
zenya385 / pseudo element arrow
Last active April 2, 2023 16:36
arrow_left.sass
&::after {
content:"";
width: 30px;
height: 30px;
border-bottom: 2px solid red;
border-left: 2px solid red;
border-radius:
background-color: #fff;
left: -9px;
// position: absolute;
@zenya385
zenya385 / .prettierrc.json
Last active June 26, 2023 13:52
.prettierrc config
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid",
@zenya385
zenya385 / .gitignore
Created June 26, 2023 12:53
file gitignore for windows node VSCode
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Created by https://www.toptal.com/developers/gitignore/api/node,windows,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=node,windows,visualstudiocode
### Node ###
# Logs
logs
*.log
npm-debug.log*
@zenya385
zenya385 / reset.css
Last active June 10, 2024 15:33
resetter-css
html,
body,
p,
ol,
ul,
li,
hr,
h1,
h2,
h3,
@zenya385
zenya385 / *.html
Created July 29, 2023 11:06
cdn_link_reset_
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/jgthms/minireset.css@master/minireset.min.css">
@zenya385
zenya385 / cdn normalize link
Last active September 3, 2023 09:00
normalize cdn link