_layout.scss 5.3 KB

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