fix style

This commit is contained in:
BOYA,CHIU 2021-08-12 14:14:15 +08:00
parent ca7ed1fd11
commit 3040aed20e
2 changed files with 18 additions and 7 deletions

View File

@ -1,11 +1,14 @@
// Place all the styles related to the act controller here. // Place all the styles related to the act controller here.
// They will automatically be included in application.css. // They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/ // You can use Sass (SCSS) here: http://sass-lang.com/
.index-link.index2 li.col-md-4{ .index-link{
float: left;
.link-img-wrap { .link-img-wrap {
display: inline-table;
width: 30%;
@media (max-width: 576px){
width: 50%;
}
overflow: hidden; overflow: hidden;
height: 12.5em;
img { img {
max-height: 100%; max-height: 100%;
max-width: 100%; max-width: 100%;
@ -13,6 +16,13 @@
width: auto; width: auto;
} }
} }
}
.index-link.index2 li.col-md-4{
float: left;
.link-img-wrap {
height: 12.5em;
width: auto;
}
a:hover .link-title{ a:hover .link-title{
color: #0032b2; color: #0032b2;
font-size: 1.15em; font-size: 1.15em;
@ -25,7 +35,8 @@
} }
@media (max-width: 576px){ @media (max-width: 576px){
width: 100%; width: 100%;
.alink-img-wrap { a .link-img-wrap {
width: auto;
height: auto; height: auto;
} }
} }

View File

@ -5,10 +5,10 @@
<ul class="list-unstyled" data-list="web_link" data-level="0"> <ul class="list-unstyled" data-list="web_link" data-level="0">
<li class="index-content"> <li class="index-content">
<a class="index-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}"> <a class="index-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">
<h4>
<div class="link-img-wrap{{display_image}}"> <div class="link-img-wrap{{display_image}}">
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}"> <img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
</div> </div>
<h4>
{{title}} {{title}}
<span data-list="statuses" data-level="1"> <span data-list="statuses" data-level="1">
<span class="label status {{status-class}}">{{status}}</span> <span class="label status {{status-class}}">{{status}}</span>