about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-22 18:14:21 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-22 18:15:56 +0200
commitf6db5536c834185f7078e9614db7cca9faf3d153 (patch)
tree7e54b442eeea22cf2e3615adc75142b2606fbc03 /src/css
parent3e353c07a5c3d5f6c22062adf684cea59c0e86a3 (diff)
downloadchawan-f6db5536c834185f7078e9614db7cca9faf3d153.tar.gz
misc cleanups
Diffstat (limited to 'src/css')
-rw-r--r--src/css/cascade.nim3
-rw-r--r--src/css/match.nim3
-rw-r--r--src/css/stylednode.nim3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/css/cascade.nim b/src/css/cascade.nim
index 4fb69de8..78953303 100644
--- a/src/css/cascade.nim
+++ b/src/css/cascade.nim
@@ -2,6 +2,7 @@ import std/algorithm
 import std/options
 import std/strutils
 
+import chame/tags
 import css/cssparser
 import css/cssvalues
 import css/match
@@ -17,8 +18,6 @@ import layout/layoutunit
 import types/color
 import types/opt
 
-import chame/tags
-
 type
   RuleList* = array[PseudoElem, seq[CSSRuleDef]]
 
diff --git a/src/css/match.nim b/src/css/match.nim
index 52a8ab7f..02c921b9 100644
--- a/src/css/match.nim
+++ b/src/css/match.nim
@@ -2,6 +2,7 @@ import std/options
 import std/strutils
 import std/tables
 
+import chame/tags
 import css/cssparser
 import css/selectorparser
 import css/stylednode
@@ -9,8 +10,6 @@ import html/catom
 import html/dom
 import utils/twtstr
 
-import chame/tags
-
 #TODO rfNone should match insensitively for certain properties
 func attrSelectorMatches(elem: Element; sel: Selector): bool =
   case sel.rel.t
diff --git a/src/css/stylednode.nim b/src/css/stylednode.nim
index 0cfc8c64..a5d2b44b 100644
--- a/src/css/stylednode.nim
+++ b/src/css/stylednode.nim
@@ -1,9 +1,8 @@
+import chame/tags
 import css/cssvalues
 import css/selectorparser
 import html/dom
 
-import chame/tags
-
 # Container to hold a style and a node.
 # Pseudo-elements are implemented using StyledNode objects without nodes. Input
 # elements are implemented as internal "pseudo-elements."