From c05d7f0fe4925e598a28da87e0174aa55ec8c9ed Mon Sep 17 00:00:00 2001 From: tenzap <46226844+tenzap@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:51:25 +0100 Subject: [PATCH] remove jquerycssmenu.css, replace ul/li by button tag (#511) This is because jquerycssmenu license doesn't permit redistribution, and so is problematic for Debian inclusion. We replace the code by custom CSS using + + +
+ +
+ + + +
+ + +
+ +
uri->segment(2) === 'conversation' && $this->uri->segment(4) === 'inbox') : if ($this->uri->segment(6) !== '6') : ?> -
  • + -
  • + +
    + +
    uri->segment(2) === 'folder' && $this->uri->segment(3) === 'outbox'): elseif ($this->uri->segment(2) === 'conversation' && $this->uri->segment(4) === 'outbox'): else:?> -
  •  
  • + uri->segment(4) === '5' or $this->uri->segment(6) === '5') : ?> -
  • + -
  • + -
  • +
  • - uri->segment(2) !== 'search'): ?> -
  •  
  • -
  • - + ?> +
    + uri->segment(2) !== 'search'): ?> +
    + +
    + + +
    uri->segment(2) === 'conversation' && $this->uri->segment(4) === 'sentitems'): ?> -
  •  
  • -
  • + + -
  • +
  • + +
    - diff --git a/media/css/base.css b/media/css/base.css index e1468c56d..0f1dcc44e 100644 --- a/media/css/base.css +++ b/media/css/base.css @@ -1165,3 +1165,35 @@ input#groups { line-height: 10px !important; font-size: 12px !important; } + +.bttn-container { + background: #86C0D2; + margin: 0px; + padding: 5px; + overflow: auto; + color: #444; +} + +.bttn-container:after { + content: ""; + clear: both; + display: table; +} + +.bttn-group button { + padding: 3px 8px; + background: linear-gradient(to bottom, white, rgba(222, 222, 222, 1)); + border: 1px outset #F0F0F0; + float: left; + font-family: inherit; +} + +.bttn-group button:last-child { + margin-right: 0.7ex; +} + +.bttn-group button a { + text-decoration: none; + font-size: 11px; + color: #000; +} diff --git a/media/css/jquery-plugin/jquerycssmenu.css b/media/css/jquery-plugin/jquerycssmenu.css deleted file mode 100644 index 7080b4006..000000000 --- a/media/css/jquery-plugin/jquerycssmenu.css +++ /dev/null @@ -1,102 +0,0 @@ -.jquerycssmenu{ -background: #86C0D2; -font-size: 11px; -margin: 0px; -padding: 5px; -overflow: auto; -color: #444; -} - -.jquerycssmenu ul{ -margin: 1px; -padding: 0; -list-style-type: none; -} - -/*Top level list items*/ -.jquerycssmenu ul li{ -position: relative; -display: inline; -float: left; -} - -.jquerycssmenu ul li.paging{ -text-align: right; -float: right; -} - -/*Top level menu link items style*/ -.jquerycssmenu ul li a.button { -display: block; -/*margin-right: 2px; */ /*spacing between tabs*/ -/*border: 1px solid #778;*/ -color: #2d2b2b; -text-decoration: none; - -/* me */ -background: url("../../images/bg-button.gif") repeat-x; -color: #000; -padding: 1px 8px; -border: 1px outset #F0F0F0; -} - - -.jquerycssmenu ul li div#paging { - display: inline; - background: none; -} - - -.jquerycssmenu ul li a:hover{ - -} - -/*1st sub level menu*/ -.jquerycssmenu ul li ul{ -position: absolute; -left: 0; -display: block; -visibility: hidden; -border-top: 1px solid black; -} - -/*Sub level menu list items (undo style from Top level List Items)*/ -.jquerycssmenu ul li ul li{ -display: list-item; -float: none; -} - -/*All subsequent sub menu levels vertical offset after 1st level sub menu */ -.jquerycssmenu ul li ul li ul{ -top: 0; -} - -/* Sub level menu links style */ -.jquerycssmenu ul li ul li a{ -width: 160px; /*width of sub menus*/ -background: #86C0D2; -color: #FFF; -padding: 4px 5px; -margin: 0; -border-top-width: 0; -border-bottom: 1px solid black; -} - -.jquerycssmenu ul li ul li a:hover{ /*sub menus hover style*/ -background: #FFFFCC; -color: black; -} - -/* ######### CSS classes applied to down and right arrow images ######### */ - -.downarrowclass{ -position: absolute; -top: 7px; -right: 5px; -} - -.rightarrowclass{ -position: absolute; -top: 5px; -right: 5px; -}