_layout.scss 5.1 KB

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