_layout.scss 5.1 KB

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