_layout.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. .crowi { // {{{
  2. font-family: 'Open Sans', 'Helvetica Neue', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
  3. h1, h2, h3, h4, h5, h6 {
  4. font-weight: 500;
  5. }
  6. &.main-container { // {{{
  7. .crowi-header { // {{{
  8. z-index: 1040;
  9. background: $crowiHeaderBackground;
  10. height: $crowiHeaderHeight;
  11. border-radius: 0;
  12. border: none;
  13. margin-bottom: 0;
  14. box-shadow: 0 3px 10px 0px rgba(0,0,0,.3);
  15. .navbar-brand {
  16. font-weight: bold;
  17. img {
  18. display: inline;
  19. margin-right: 8px;
  20. }
  21. }
  22. .navbar-collapse {
  23. background: $crowiHeaderBackground;
  24. }
  25. > div > .navbar-nav li button {
  26. margin: 10px;
  27. }
  28. > div > a ,
  29. > div > ul > li > a {
  30. color: #ccc;
  31. &:hover {
  32. color: #aaa;
  33. }
  34. }
  35. .confidential {
  36. a {
  37. border: solid 2px #f00;
  38. background: #fff;
  39. color: #f00;
  40. font-weight: bold;
  41. height: 42px;
  42. margin-top: 5px;
  43. padding: 10px;
  44. margin-right: 5px;
  45. }
  46. }
  47. .navbar-toggle {
  48. position: absolute;
  49. top: 0;
  50. right: 0;
  51. }
  52. .navbar-collapse.collapse.in {
  53. .confidential {
  54. }
  55. }
  56. } // }}}
  57. .main {
  58. padding: 0; // cancel bootstrap padding
  59. .header-wrap {
  60. padding: 16px 16px 0 16px;
  61. }
  62. .content-main {
  63. padding: 16px;
  64. }
  65. }
  66. .layout-control { // {{{
  67. transition: .3s ease;
  68. -webkit-transition: .3s ease;
  69. position: fixed;
  70. display: block;
  71. text-align: center;
  72. right: 25%;
  73. bottom: 25px;
  74. padding: 5px 8px;
  75. border: solid 1px #ccc;
  76. border-right: none;
  77. background: $crowiAsideBackground;
  78. border-radius: 5px 0 0 5px;
  79. z-index: 1039;
  80. font-size: .8em;
  81. color: darken($link-color, 15%);
  82. &:hover {
  83. color: darken($link-color, 25%);
  84. background: darken($crowiAsideBackground, 10%);
  85. text-decoration: none;
  86. cursor: pointer;
  87. }
  88. } // }}}
  89. .page-list {
  90. .page-list-link {
  91. }
  92. .page-list-meta {
  93. font-size: .9em;
  94. color: #999;
  95. }
  96. }
  97. } // }}}
  98. } // }}}
  99. .crowi.single { // {{{
  100. } // }}}
  101. .crowi.single.nologin { // {{{
  102. //background: lighten($crowiHeaderBackground, 15%);
  103. background: $crowiHeaderBackground;
  104. .installer-header {
  105. margin-top: 100px;
  106. text-align: center;
  107. h1 {
  108. margin: 40px 0 40px;
  109. color: #fff;
  110. font-size: 1.6em;
  111. }
  112. }
  113. .main {
  114. margin: 0;
  115. padding: 0;
  116. }
  117. h1.login-page {
  118. margin-top: 80px;
  119. color: #fff;
  120. font-size: 1.6em;
  121. padding: 10px;
  122. text-align: center;
  123. text-shadow: 0px 0px 6px rgba(0,0,0,.5);
  124. line-height: 100%;
  125. }
  126. .login-dialog-container {
  127. margin: 40px auto;
  128. float: none;
  129. .login-dialog {
  130. position: relative;
  131. form {
  132. margin-top: 10px;
  133. .input-group {
  134. margin-bottom: 10px;
  135. }
  136. }
  137. .login-dialog-inner, .register-dialog-inner {
  138. top: 0;
  139. left: 0;
  140. padding: 42px 48px;
  141. background: #fff;
  142. position: absolute;
  143. margin-bottom: 40px;
  144. width: 100%;
  145. box-shadow: 0 1px 40px 0 rgba(0,0,0,0.3);
  146. border-radius: 3px;
  147. h2 {
  148. margin: 0 0 28px;
  149. font-size: 1.3em;
  150. text-align: center;
  151. }
  152. }
  153. p.bottom-text {
  154. text-align: right;
  155. margin: 20px 0 0;
  156. }
  157. }
  158. }
  159. } // }}}
  160. @media (max-width: $screen-sm-max) { // {{{
  161. } // }}}
  162. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { // {{{ tablet size
  163. .crowi.main-container { // {{{
  164. .main {
  165. article header {
  166. .bookmark-link {
  167. font-size: 1.3em;
  168. }
  169. h1 {
  170. font-size: 1.4em;
  171. margin-bottom: 0;
  172. }
  173. &.affix {
  174. width: 100%;
  175. }
  176. }
  177. }
  178. }
  179. } // }}}
  180. @media (max-width: $screen-xs-max) { // {{{ iPhone size
  181. .crowi.main-container { // {{{
  182. .main {
  183. article header {
  184. .bookmark-link {
  185. font-size: 1em;
  186. }
  187. h1 {
  188. font-size: 1.1em;
  189. }
  190. &.affix {
  191. h1 {
  192. font-size: 1.1em;
  193. }
  194. width: 100%;
  195. padding: 5px;
  196. box-shadow: 0 0px 2px #999;
  197. p.stopper {
  198. right: 20px;
  199. }
  200. }
  201. }
  202. }
  203. }
  204. }
  205. @media print { // {{{ printable style
  206. .crowi.main-container { // {{{
  207. padding: 30px;
  208. a:after {
  209. display: none !important;
  210. }
  211. .main {
  212. article header {
  213. border-bottom: solid 1px #666;
  214. h1 {
  215. font-size: 2em;
  216. color: #000;
  217. }
  218. }
  219. .revision-toc {
  220. float: none;
  221. font-size: .9em;
  222. border: solid 1px #aaa;
  223. border-radius: 5px;
  224. max-width: 100%;
  225. margin-bottom: 20px;
  226. .revision-toc-head {
  227. display: inline-block;
  228. float: none;
  229. }
  230. .revision-toc-content.collapse {
  231. display: block;
  232. height: auto;
  233. }
  234. }
  235. .meta {
  236. border-top: solid 1px #ccc;
  237. margin-top: 32px;
  238. color: #666;
  239. }
  240. }
  241. }
  242. } // }}}