Skip to content

Instantly share code, notes, and snippets.

@Alecto
Alecto / visually-hidden
Last active October 10, 2022 06:46
Visually hidden block
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
border: 0;
padding: 0;
white-space: nowrap;
clip-path: inset(100%);
@Alecto
Alecto / fa-link
Last active October 31, 2024 18:19
Fontawesome link code
@Alecto
Alecto / package.json
Last active June 17, 2019 15:37
Webpack package.json
{
"name": "webpack",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"dev": "webpack-dev-server --mode development --open",
"build": "webpack --mode production"
},
"license": "MIT",
"devDependencies": {
@Alecto
Alecto / .eslintignore
Last active June 17, 2019 15:37
Игнорирование файлов eslint
gulpfile.js
webpack.config.js
all.min.js
bundle.js
@Alecto
Alecto / webpack.config.js
Created June 13, 2019 09:32
Настройки для Webpack
let path = require('path');
let conf = {
entry: './assets/js/main.js',
output: {
path: path.resolve(__dirname, './assets/js'),
filename: 'all.min.js',
publicPath: 'assets/js/'
},
devServer: {overlay: true},
@Alecto
Alecto / .babelrc
Last active June 17, 2019 15:38
Конфигурация плагина Babel
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
@Alecto
Alecto / .yarnrc
Created June 2, 2019 14:01
Конфиг расположения библиотеки .yarnrc
--modules-folder libs
@Alecto
Alecto / _mixins-media.scss
Last active December 2, 2022 15:32
@media mixins, миксины, диапазон ultra: ul, xl, lg, md, sm, xs, xx, ux
$diff: 0.2px;
/* ul */
@mixin ul-min {
@media (min-width: $ul) {
@content;
}
}
@mixin ul {
@Alecto
Alecto / _mixins-media.scss
Last active December 2, 2022 15:32
@media mixins, миксины, диапазон стандарт: xl, lg, md, sm, xs
$diff: 0.2px;
/* xl */
@mixin xl-min {
@media (min-width: $xl) {
@content;
}
}
@mixin xl {
@Alecto
Alecto / _mixins.scss
Last active December 4, 2023 08:52
mixins, миксины SCSS
// Reset margin, padding and list-style from a list.
@mixin unlist($m: 0, $p: 0) {
margin: $m;
padding: $p;
list-style: none;
}
// Single-line text with a three-dot at the end