Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/master-co/css
/ functions
Functions
95 in github.com/master-co/css
⨍
Functions
95
◇
Types & classes
406
↓ 147 callers
Function
dash
(...words: string[])
src/constants/css-property-keyword.ts:3
↓ 12 callers
Function
testCSS
(cls: string, expected: string)
src/utils/test-css.ts:8
↓ 9 callers
Function
testProp
(cls: string, expected?: string)
src/utils/test-css.ts:16
↓ 6 callers
Method
match
(name: string)
src/style.ts:102
↓ 4 callers
Method
extend
( property: 'classes' | 'breakpoints' | 'colors' | 'mediaQueries', ...settings: Record<string,
src/style.ts:563
↓ 4 callers
Method
findAndInsert
(className: string)
src/sheet.ts:789
↓ 4 callers
Function
getBorderProps
(name: string, instance: object, suffix = '')
src/utils/get-border-props.ts:6
↓ 3 callers
Method
findAndNew
* 尋找匹配的 Style 生成實例
src/sheet.ts:312
↓ 2 callers
Function
css
(cls: string)
src/utils/test-css.ts:4
↓ 2 callers
Method
find
* 尋找匹配的 Style
src/sheet.ts:332
↓ 2 callers
Function
parseValueUnit
(value: string, getUnit: (method: string) => string)
src/utils/parse-value-unit.ts:3
↓ 1 callers
Function
clear
()
src/utils/normalize-css-calc-text.ts:9
↓ 1 callers
Method
delete
(className: string)
src/sheet.ts:754
↓ 1 callers
Method
deleteRule
(name: string)
src/sheet.ts:760
↓ 1 callers
Method
disconnect
()
src/sheet.ts:292
↓ 1 callers
Function
generateColor
()
src/utils/generate-level-colors.js:29
↓ 1 callers
Function
getCssPropertyText
(name: string, property: { unit?: string, value: any, important?: boolean })
src/utils/get-css-property-text.ts:1
↓ 1 callers
Function
init
()
src/styles/index.ts:443
↓ 1 callers
Method
insert
* 1. where * 2. normal * 3. where selectors * 4. normal selectors * 5. media where * 6. media normal * 7. media selector
src/sheet.ts:400
↓ 1 callers
Function
isOperator
(char: string)
src/utils/normalize-css-calc-text.ts:6
↓ 1 callers
Function
normalizeCssCalcText
(value: string)
src/utils/normalize-css-calc-text.ts:5
↓ 1 callers
Method
observe
(target: Node, options: MutationObserverInit = { subtree: true, childList: true })
src/sheet.ts:260
↓ 1 callers
Function
parseValue
( token: string | number, defaultUnit?: string, colors?: Record<string, Record<string, string>>,
src/utils/parse-value.ts:6
↓ 1 callers
Function
pushCurrent
()
src/utils/parse-value-unit.ts:13
↓ 1 callers
Function
render
(html: string, options: { StyleSheet: typeof StyleSheet })
src/render.ts:4
↓ 1 callers
Function
transformSelectorUnderline
(selector: string)
src/style.ts:51
Method
addClassName
(className: string)
src/sheet.ts:55
Method
addName
()
src/styles/group.ts:35
Method
addProp
(propertyName: string)
src/styles/group.ts:15
Method
analyze
(end: string)
src/styles/group.ts:43
Method
apply
(compiler)
src/plugins/create-color-scss.js:8
Method
checkDeep
(cssRule: any, parentCssRule: any)
src/sheet.ts:195
Method
constructor
( private container?: Element )
src/sheet.ts:23
Method
constructor
( public readonly name: string, public readonly matching?: StyleMatching )
src/style.ts:152
Function
cssEscape
(value)
src/polyfills/css-escape.js:21
Method
destroy
()
src/sheet.ts:382
Method
findAndNewStyle
(className: string)
src/sheet.ts:313
Method
findPrioritySelectorInsertIndex
( styles: Style[], findStartIndex?: (style: Style) => any, findEndIndex?:
src/sheet.ts:417
Method
findStyle
(className: string)
src/sheet.ts:333
Method
handleClassList
(classList: DOMTokenList)
src/sheet.ts:262
Method
handleClassNameDeeply
(element: Element, remove: boolean)
src/sheet.ts:37
Method
handleNodes
(nodes: HTMLCollection, remove: boolean)
src/sheet.ts:71
Method
handleSettings
(oldSettings: any, onAdd?: (key: string, value: any) => any, onDelete?: (key: string) => void)
src/style.ts:572
Method
handleStyle
(style: Style)
src/styles/group.ts:26
Method
order
()
src/styles/border-style.ts:11
Method
order
()
src/styles/border-color.ts:13
Method
order
()
src/styles/scroll-margin.ts:50
Method
order
()
src/styles/spacing.ts:49
Method
order
()
src/styles/border-radius.ts:83
Method
order
()
src/styles/padding.ts:12
Method
order
()
src/styles/margin.ts:12
Method
order
()
src/styles/scroll-padding.ts:50
Method
order
()
src/styles/overflow.ts:18
Method
order
()
src/styles/border-width.ts:11
Method
order
()
src/styles/border.ts:12
Method
parseValue
()
src/styles/grid-row.ts:8
Method
parseValue
()
src/styles/grid-column.ts:8
Method
parseValue
()
src/styles/filter.ts:9
Method
parseValue
()
src/styles/transform.ts:8
Method
parseValue
()
src/styles/backdrop-filter.ts:15
Method
props
()
src/styles/text-stroke-width.ts:6
Method
props
()
src/styles/border-style.ts:8
Method
props
()
src/styles/gap.ts:7
Method
props
()
src/styles/user-drag.ts:6
Method
props
()
src/styles/text-size.ts:7
Method
props
()
src/styles/grid-rows.ts:7
Method
props
()
src/styles/placement.ts:8
Method
props
()
src/styles/mask-image.ts:6
Method
props
()
src/styles/background-clip.ts:7
Method
props
()
src/styles/inset.ts:6
Method
props
()
src/styles/overscroll-behavior.ts:7
Method
props
()
src/styles/font-smoothing.ts:13
Method
props
()
src/styles/border-color.ts:10
Method
props
()
src/styles/box-decoration-break.ts:7
Method
props
()
src/styles/text-fill-color.ts:9
Method
props
()
src/styles/group.ts:12
Method
props
()
src/styles/scroll-margin.ts:8
Method
props
()
src/styles/spacing.ts:8
Method
props
()
src/styles/border-radius.ts:19
Method
props
()
src/styles/padding.ts:7
Method
props
()
src/styles/variable.ts:7
Method
props
()
src/styles/margin.ts:7
Method
props
()
src/styles/text-stroke-color.ts:9
Method
props
()
src/styles/backdrop-filter.ts:9
Method
props
()
src/styles/user-select.ts:6
Method
props
()
src/styles/scroll-padding.ts:8
Method
props
()
src/styles/line-clamp.ts:7
Method
props
()
src/styles/overflow.ts:7
Method
props
()
src/styles/border-width.ts:8
Method
props
()
src/styles/text-stroke.ts:6
Method
props
()
src/styles/lines.ts:9
Method
props
()
src/styles/border.ts:9
Method
props
()
src/styles/grid-columns.ts:8
Method
refresh
* 全部 sheet 根據目前蒐集到的所有 DOM class 重新 findAndNew
src/sheet.ts:352
Method
removeClassName
(className: string)
src/sheet.ts:63