- http://www.redmine.org/issues/23310 に対応していない theme の場合、表示が崩れる
- 暫定対応として、デフォルトテーマの CSS を一部そのまま使う
- public/stylesheets/project_jump.css を設置
- app/views/layouts/base.html.erb で project_jump.css を読み込むように修正
Last active
July 26, 2017 08:29
-
-
Save tkuchiki/b4130b9c5b41360cf8905c56ac591893 to your computer and use it in GitHub Desktop.
Redmine 3.3.1 から 3.4.2 にアップグレード時の CSS の対応
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb | |
index 4cdefbd..6261daa 100644 | |
--- a/app/views/layouts/base.html.erb | |
+++ b/app/views/layouts/base.html.erb | |
@@ -10,6 +10,7 @@ | |
<%= csrf_meta_tag %> | |
<%= favicon %> | |
<%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'application', 'responsive', :media => 'all' %> | |
+<%= stylesheet_link_tag 'project_jump', :media => 'all' %> | |
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> | |
<%= javascript_heads %> | |
<%= heads_for_theme %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#project-jump.drdn {width:200px;display:inline-block;} | |
#project-jump .drdn-trigger { | |
display:inline-block; | |
border-radius:3px; | |
border:1px solid #ccc; | |
margin:0 !important; | |
vertical-align:middle; | |
color:#555; | |
} | |
#project-jump .drdn-content {width:280px;} | |
.drdn-content { | |
display:none; | |
position:absolute; | |
right:0px; | |
top:25px; | |
min-width:100px; | |
background-color:#fff; | |
border:1px solid #ccc; | |
border-radius:4px; | |
color:#555; | |
z-index:99; | |
} | |
.drdn.expanded .drdn-trigger {background-image:url(../images/sort_asc.png);} | |
.drdn.expanded .drdn-content {display:block;} | |
.drdn-content .quick-search {margin:8px;} | |
.drdn-content .autocomplete {box-sizing: border-box; width:100% !important; height:28px;} | |
.drdn-content .autocomplete:focus {border-color:#5ad;} | |
.drdn-items {max-height:400px; overflow:auto;} | |
div + .drdn-items {border-top:1px solid #ccc;} | |
.drdn-items>* { | |
display:block; | |
border:1px solid #fff; | |
color:#555 !important; | |
overflow:hidden; | |
text-overflow: ellipsis; | |
white-space:nowrap; | |
padding:4px 8px; | |
} | |
.drdn-items>a:hover {text-decoration:none; background-color:#759FCF; color:#fff !important;} | |
.drdn-items>*:focus {border:1px dotted #bbb;} | |
.drdn-items.selection>*:before { | |
content:' '; | |
display:inline-block; | |
line-height:1em; | |
width:1em; | |
height:1em; | |
margin-right:4px; | |
font-weight:bold; | |
} | |
.drdn-items.selection>*.selected:before { | |
content:"\2713 "; | |
} | |
.drdn-items.selection:empty { | |
border: none; | |
} | |
.drdn-items>span {color:#999;} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment