Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
module.exports = {
env: {
es2017: true,
node: true,
},
plugins: ['prettier'],
extends: 'eslint:recommended',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2022,
},
rules: {
'eol-last': 2,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 17.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [16.x, 17.x, 18.x, 19.x, 20.x]
# See supported Node.js release schedule at https://endoflife.date/nodejs

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Ignore docs
docs

## Ignore test to presever some formatting
## Ignore test to perserve some formatting
test

## ignores nyc output in prettier
.nyc_output
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2
"tabWidth": 2,
"semi": true,
"endOfLine": "lf"
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"cSpell.words": ["codecov", "lcov"]
"cSpell.words": ["codecov", "flexbox", "lcov", "linebreak"]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Cory Simmons, Peter Ramsing, and LostGrid Contributors
Copyright (c) 2023 Cory Simmons, Peter Ramsing, and LostGrid Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Read the docs on [LostGrid.org](http://lostgrid.org/docs.html)!

### Official Support

- [Supported versions of Node](https://endoflife.date/nodejs)
- LostGrid is tested in the following browsers for compatibility
- IE10+ (IE9 has the same `calc()` support as IE10 except for background position which LostGrid doesn't affect)
- Evergreen Browsers (as they update automatically, tests are performed on the latest version of the following browsers)
Expand All @@ -44,7 +45,6 @@ Read the docs on [LostGrid.org](http://lostgrid.org/docs.html)!
- FirefoxDeveloperEdition as well
- Edge
- Safari 9+
- Automated browser testing with Selenium is coming soon. 👍

### LostGrid Team

Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ google_analytics_id: 'UA-71789679-1'


# Version of LostGrid this is targeted for:
docs-version: '9.0.0'
docs-version: '9.0.1'

# Enable/show navigation. There are there options:
# 0 - always hide
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/docs/browser-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [Flexbox browser support](http://caniuse.com/#feat=flexbox)

### Official Support
- [Supported versions of Node](https://endoflife.date/nodejs)
- LostGrid is tested in the following browsers for compatibility
- IE10+ (IE9 has the same `calc()` support as IE10 except for background position which LostGrid doesn't affect)
- Evergreen Browsers (as they update automatically, tests are performed on the latest version of the following browsers)
Expand All @@ -16,5 +17,4 @@
- FirefoxDeveloperEdition as well
- Edge
- Safari 9+
- Automated browser testing with Selenium is coming soon. 👍

5 changes: 4 additions & 1 deletion docs/_sass/vendor/hamburgers/_base.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

// Hamburger
// ==================================================
.hamburger {
Expand Down Expand Up @@ -27,7 +29,8 @@

.hamburger-inner {
top: 50%;
margin-top: $hamburger-layer-height / -2;
// margin-top: $hamburger-layer-height / -2;
margin-top: math.div($hamburger-layer-height, -2);

&,
&::before,
Expand Down
2 changes: 1 addition & 1 deletion lib/lost-vars.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function lostVarsDecl(css, settings) {
re = /lost\-vars\(\s?['"]([\w\-]+)['"]\s?\)/gi,
match = null;

if (value.indexOf('lost-vars(') === -1) {
if (typeof value !== 'string' || value.indexOf('lost-vars(') === -1) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/lost-waffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ module.exports = function lostWaffleDecl(css, settings) {

if (settings.clearing === 'left') {
// FIXME: this doesn't make sense w/ rtl
/* istanbul ignore if */
/* c8 ignore start */
if (gridDirection === 'rtl') {
newBlock(
decl,
Expand All @@ -219,7 +219,7 @@ module.exports = function lostWaffleDecl(css, settings) {
['both']
);
}
/* istanbul ignore if */
/* c8 ignore end */
if (gridDirection === 'rtl') {
// FIXME: this doesn't make sense w/ rtl
if (floatRight === true) {
Expand Down
7 changes: 2 additions & 5 deletions lost.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Module dependencies
const assign = require('object-assign');

const lostAlign = require('./lib/lost-align');
const lostAtRule = require('./lib/lost-at-rule');
Expand Down Expand Up @@ -47,15 +46,13 @@ module.exports = (settings = {}) => {
return {
postcssPlugin: 'lost',
prepare() {
let runSettings = assign({}, defaultSettings, settings || {});
const runSettings = { ...defaultSettings, ...settings };
return {
AtRule(atRule) {
lostAtRule(atRule, runSettings);
},
OnceExit(css, { result }) {
libs.forEach((lib) => {
lib(css, runSettings, result);
});
libs.forEach((lib) => lib(css, runSettings, result));
},
};
},
Expand Down
Loading