Diff
diff --git a/cstyle/transformers/ol/main.go b/cstyle/transformers/ol/main.go
deleted file mode 100644
index d243037..0000000
--- a/cstyle/transformers/ol/main.go
+++ /dev/null
@@ -1,63 +0,0 @@
-package ol
-
-import (
- "gui/cstyle"
- "gui/element"
- "gui/font"
- "strconv"
-)
-
-func Init() cstyle.Transformer {
- return cstyle.Transformer{
- Selector: func(n *element.Node) bool {
- return n.TagName == "ol"
- },
- Handler: func(n element.Node, c *cstyle.CSS) element.Node {
- tN := n.CreateElement(n.TagName)
- var maxOS int
- var widths []int
- for i, v := range n.Children {
- li := n.CreateElement("li")
-
- li.Style = v.Style
- li.Style["display"] = "flex"
- li.Style["align-items"] = "center"
- li.Style = c.QuickStyles(&li)
-
- dot := li.CreateElement("div")
- dot.Style = li.Style
- dot.Style["margin-right"] = "6px"
-
- dot.Style = c.QuickStyles(&dot)
- dot.Style["display"] = "block"
-
- for _, b := range c.Fonts {
- w := font.MeasureText(&element.Text{Font: &b}, strconv.Itoa(i+1)+".")
- widths = append(widths, w)
- if w > maxOS {
- maxOS = w
- }
- break
- }
- dot.InnerText = strconv.Itoa(i+1) + "."
-
- content := li.CreateElement("div")
- content.InnerText = v.InnerText
- content.Style = li.Style
- content.Style = c.QuickStyles(&content)
- content.Style["display"] = "block"
-
- li.AppendChild(dot)
- li.AppendChild(content)
- li.Parent = &n
-
- tN.AppendChild(li)
- }
- for i := range tN.Children {
- tN.Children[i].Children[0].Style["margin-left"] = strconv.Itoa((maxOS - widths[i])) + "px"
- }
- n.Children = tN.Children
- return n
- },
- }
-}