Browse Source

修改公告样式

tags/v1.22.1.4^2
wangjr 3 years ago
parent
commit
c4a3d82868
2 changed files with 14 additions and 6 deletions
  1. +13
    -5
      templates/base/head_notice.tmpl
  2. +1
    -1
      web_src/less/openi.less

+ 13
- 5
templates/base/head_notice.tmpl View File

@@ -3,14 +3,22 @@
<div class="notic_content" id ="notic_content" style="display: block; position: relative"> <div class="notic_content" id ="notic_content" style="display: block; position: relative">
<diV class="ui container"> <diV class="ui container">
<marquee behavior="scroll" direction="left"> <marquee behavior="scroll" direction="left">
{{ $firstTag := true }}
{{range .notices.Notices}} {{range .notices.Notices}}
{{if eq .Visible 1}} {{if eq .Visible 1}}
<a href={{.Link}} class="a_width" target="_blank">
<i class="ri-arrow-right-s-line"></i>
{{.Title}}
</a>
{{if $firstTag}}
<a href={{.Link}} class="a_width" style = 'margin-left: 0px !important;' target="_blank">
<i class="ri-arrow-right-s-line"></i>
{{.Title}}
</a>
{{else}}
<a href={{.Link}} class="a_width" target="_blank">
<i class="ri-arrow-right-s-line"></i>
{{.Title}}
</a>
{{end}}
{{ $firstTag = false }}
{{end}} {{end}}
{{end}} {{end}}
</marquee> </marquee>


+ 1
- 1
web_src/less/openi.less View File

@@ -605,7 +605,7 @@ display: block;
} }
.a_width{ .a_width{
// width: 50% !important; // width: 50% !important;
margin-right: 20em;
margin-left: 20em;
// display:inline-block !important; // display:inline-block !important;
} }
.a_width i{ .a_width i{


Loading…
Cancel
Save