docs(design): remove SVG, use PNG logo only
SVG icon is no longer in use. public/logo.png (1024x1024 RGBA) is the single logo asset. DESIGN.md updated accordingly: SVG snippet removed, wordmark pattern and <head> references updated to PNG. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d66ec03165
commit
46929e2ef5
+65
@@ -0,0 +1,65 @@
|
||||
let OldValue = require('../old-value')
|
||||
let Value = require('../value')
|
||||
let flexSpec = require('./flex-spec')
|
||||
|
||||
class DisplayFlex extends Value {
|
||||
constructor(name, prefixes) {
|
||||
super(name, prefixes)
|
||||
if (name === 'display-flex') {
|
||||
this.name = 'flex'
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Faster check for flex value
|
||||
*/
|
||||
check(decl) {
|
||||
return decl.prop === 'display' && decl.value === this.name
|
||||
}
|
||||
|
||||
/**
|
||||
* Change value for old specs
|
||||
*/
|
||||
old(prefix) {
|
||||
let prefixed = this.prefixed(prefix)
|
||||
if (!prefixed) return undefined
|
||||
return new OldValue(this.name, prefixed)
|
||||
}
|
||||
|
||||
/**
|
||||
* Return value by spec
|
||||
*/
|
||||
prefixed(prefix) {
|
||||
let spec, value
|
||||
;[spec, prefix] = flexSpec(prefix)
|
||||
|
||||
if (spec === 2009) {
|
||||
if (this.name === 'flex') {
|
||||
value = 'box'
|
||||
} else {
|
||||
value = 'inline-box'
|
||||
}
|
||||
} else if (spec === 2012) {
|
||||
if (this.name === 'flex') {
|
||||
value = 'flexbox'
|
||||
} else {
|
||||
value = 'inline-flexbox'
|
||||
}
|
||||
} else if (spec === 'final') {
|
||||
value = this.name
|
||||
}
|
||||
|
||||
return prefix + value
|
||||
}
|
||||
|
||||
/**
|
||||
* Add prefix to value depend on flebox spec version
|
||||
*/
|
||||
replace(string, prefix) {
|
||||
return this.prefixed(prefix)
|
||||
}
|
||||
}
|
||||
|
||||
DisplayFlex.names = ['display-flex', 'inline-flex']
|
||||
|
||||
module.exports = DisplayFlex
|
||||
Reference in New Issue
Block a user