diff options
| author | Nat Lasseter <user@4574.co.uk> | 2025-06-24 22:02:28 +0100 | 
|---|---|---|
| committer | Nat Lasseter <user@4574.co.uk> | 2025-06-24 22:02:28 +0100 | 
| commit | e95e74901cfb62f338a7b3d2d538026526500978 (patch) | |
| tree | 648f8f3d81b51938a0886769c7a35dd89e18b1da | |
| parent | 73ef84047e4b0121e4d1edb33ebe145bb97b4e4c (diff) | |
[links] redo with breaking
| -rwxr-xr-x | cgi/user.cgi | 14 | ||||
| -rw-r--r-- | static/styles.css | 34 | 
2 files changed, 22 insertions, 26 deletions
diff --git a/cgi/user.cgi b/cgi/user.cgi index 5150157..6092552 100755 --- a/cgi/user.cgi +++ b/cgi/user.cgi @@ -11,14 +11,12 @@ def link(href, text, remote = false)  end  def toplinks -  $cgi.nav(class: "toplinks") { -    $cgi.ul { -      $cgi.li { link("/"                      , "Home"              ) } + -      $cgi.li { link("/bins"                  , "Bins"              ) } + -      $cgi.li { link("/eamit.html"            , "eamit"       , true) } + -      $cgi.li { link("https://git.4574.co.uk/", "Git"         , true) } + -      $cgi.li { link("/stuff-i-want"          , "Stuff I Want"      ) } -    } +  $cgi.ul(class: "toplinks") { +    $cgi.li { link("/"                      , "Home"              ) } + +    $cgi.li { link("/bins"                  , "Bins"              ) } + +    $cgi.li { link("/eamit.html"            , "eamit"       , true) } + +    $cgi.li { link("https://git.4574.co.uk/", "Git"         , true) } + +    $cgi.li { link("/stuff-i-want"          , "Stuff I Want"      ) }    }  end diff --git a/static/styles.css b/static/styles.css index a0d23f9..4916e96 100644 --- a/static/styles.css +++ b/static/styles.css @@ -30,24 +30,22 @@ div {    padding: 1em;  } -nav.toplinks { -  ul { -    margin: 0; -    padding: 0; -    text-align: center; -    list-style-type: none; -    li { -      padding: 1em; -      display: inline-block; -      a { -        font-size: 1.75em; -        color: green; -        text-decoration: none; -      } -      a:hover { -        color: darkgreen; -        filter: blur(2px); -      } +ul.toplinks { +  margin: 0; +  padding: 0; +  text-align: center; +  list-style-type: none; +  li { +    padding: 1em; +    display: inline-block; +    a { +      font-size: 1.75em; +      color: green; +      text-decoration: none; +    } +    a:hover { +      color: darkgreen; +      filter: blur(2px);      }    }  }  | 
