domain dashboard, hidden css prop, fix bugs

This commit is contained in:
Face
2025-08-16 19:26:52 +03:00
parent d379836405
commit 3ed49fae0d
12 changed files with 561 additions and 19 deletions

View File

@@ -913,6 +913,10 @@ static func parse_utility_class_internal(rule: CSSRule, utility_name: String) ->
rule.properties[utility_name] = "200ms"
return
if utility_name == "hidden":
rule.properties["display"] = "none"
return
# Handle more utility classes as needed
# Add more cases here for other utilities

View File

@@ -112,15 +112,15 @@ func handle_style_element(style_element: HTMLElement) -> void:
parse_result.external_css.append(src)
return
# Handle inline CSS - we'll get the text content when parsing is complete
# For now, create a parser that will be populated later
# Handle inline CSS
if not parse_result.css_parser:
parse_result.css_parser = CSSParser.new()
parse_result.css_parser.init()
func process_styles() -> void:
if not parse_result.css_parser:
return
parse_result.css_parser = CSSParser.new()
parse_result.css_parser.init()
var css_content = Constants.DEFAULT_CSS
var style_elements = find_all("style")