mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-09-07 04:40:40 +02:00
change stylelint rules
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extends": "stylelint-config-recommended"
|
"extends": "stylelint-config-recommended",
|
||||||
|
"rules": {
|
||||||
|
"no-duplicate-selectors": null,
|
||||||
|
"no-descending-specificity": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import path from 'path'
|
import path from 'path'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import { findMatchingFiles, Config as FindMatchingFilesConfig } from './lib/findMatchingFiles'
|
import { findMatchingFiles, type Config as FindMatchingFilesConfig } from './lib/findMatchingFiles'
|
||||||
import { extractProperties } from './lib/extractProperties'
|
import { extractProperties, type Doc } from './lib/extractProperties'
|
||||||
import { config }from './config'
|
import { config }from './config'
|
||||||
|
|
||||||
export type Config =
|
export type Config =
|
||||||
@@ -10,6 +10,8 @@ export type Config =
|
|||||||
filename: string
|
filename: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type GeneratedDocument = Doc[]
|
||||||
|
|
||||||
console.time('[docgen]')
|
console.time('[docgen]')
|
||||||
|
|
||||||
const files = findMatchingFiles(config.include, config.exclude)
|
const files = findMatchingFiles(config.include, config.exclude)
|
||||||
|
@@ -19,17 +19,19 @@
|
|||||||
initial-value: gray;
|
initial-value: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CSS Variables
|
||||||
|
*/
|
||||||
.nes-btn {
|
.nes-btn {
|
||||||
/**
|
|
||||||
* CSS Variables
|
|
||||||
*/
|
|
||||||
--nes-btn-border-width: 4px;
|
--nes-btn-border-width: 4px;
|
||||||
--nes-btn-border-color: black;
|
--nes-btn-border-color: black;
|
||||||
--nes-btn-border-inset-color: gray;
|
--nes-btn-border-inset-color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Basic Style
|
* Basic Style
|
||||||
*/
|
*/
|
||||||
|
.nes-btn {
|
||||||
border: solid var(--nes-btn-border-width) var(--nes-btn-border-color);
|
border: solid var(--nes-btn-border-width) var(--nes-btn-border-color);
|
||||||
box-shadow:
|
box-shadow:
|
||||||
inset 0 calc(var(--nes-btn-border-width) * -1) var(--nes-btn-border-inset-color),
|
inset 0 calc(var(--nes-btn-border-width) * -1) var(--nes-btn-border-inset-color),
|
||||||
|
1
src/elements/button/index.ts
Normal file
1
src/elements/button/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import 'button.css'
|
8
types/env.d.ts
vendored
Normal file
8
types/env.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import type { GeneratedDocument } from "../scripts/docgen"
|
||||||
|
|
||||||
|
declare module '*.css';
|
||||||
|
|
||||||
|
declare module '*.properties.json' {
|
||||||
|
const json: GeneratedDocument
|
||||||
|
export default json
|
||||||
|
}
|
Reference in New Issue
Block a user