Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mi-yo/f8223b0328170a9ee72d to your computer and use it in GitHub Desktop.
Save mi-yo/f8223b0328170a9ee72d to your computer and use it in GitHub Desktop.
Change inline code syntax to Redmine farend_basic theme. https://github.com/farend/redmine_theme_farend_basic
--- stylesheets/application.css.org 2014-06-13 00:37:48 +0900
+++ stylesheets/application.css 2014-07-05 18:09:00 +0900
@@ -321,6 +321,16 @@
/***** Wiki *****/
+div.wiki code {
+ background-color: #f8f8f8;
+ border: 1px solid #ddd;
+ white-space: nowrap;
+ padding: 1px 4px;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+}
+
div.wiki pre {
/* farend_basic: preで横スクロールバーを表示させずに折り返す */;
border-radius: 3px;
@@ -331,6 +341,13 @@
word-wrap: break-word; /* IE 5.5+ */
}
+div.wiki pre code {
+ background: none;
+ border: none;
+ padding: 0;
+ white-space: pre-wrap;
+}
+
div.wiki p {
line-height: 165%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment