Skip to content

Commit dd50110

Browse files
committed
Dojo タグ関連の CSS をまとめた
1 parent 02acede commit dd50110

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

app/assets/stylesheets/custom.scss

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -854,22 +854,33 @@ body>footer a:hover {
854854
color: #ccc
855855
}
856856

857+
// Dojo tags style
857858
.tags {
858859
margin: 0 5px;
859860
padding: 0;
860861
list-style: none;
861862
font-size: 13px;
862-
}
863863

864-
.tags>li {
865-
display: inline-block;
866-
font-size: 80%;
867-
color: #fff;
868-
border-radius: .3em;
869-
border: 1px solid #e8e8e8;
870-
padding: .2em .8em;
871-
margin: .1em;
872-
background: #99CCFF
864+
li {
865+
display: inline-block;
866+
font-size: 80%;
867+
color: #fff;
868+
border-radius: .3em;
869+
border: 1px solid #e8e8e8;
870+
padding: .2em .8em;
871+
margin: .1em;
872+
background: #99CCFF
873+
}
874+
875+
// Tags after 5th tag are shown as Bootstrap tooltip.
876+
.tooltip.tags-more-tooltip .tooltip-inner {
877+
background-color: #99CCFF !important;
878+
color: #fff !important;
879+
opacity: 1 !important;
880+
}
881+
.tooltip.tags-more-tooltip .tooltip-arrow {
882+
border-bottom-color: #99CCFF !important;
883+
}
873884
}
874885

875886
.title>h1 {

app/views/shared/_dojo.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
data-placement="bottom"
2424
data-html="true"
2525
data-template='<div class="tooltip tags-more-tooltip" role="tooltip">
26-
<div class="tooltip-arrow"></div>
26+
<div class="tooltip-arrow"></div>
2727
<div class="tooltip-inner"></div>
2828
</div>'
2929
title="<%= dojo.tags[5..].join(', ') %>">...</li>

0 commit comments

Comments
 (0)