_layout.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. .facebook-info {
  128. border-radius: 4px;
  129. border: solid 1px #ccc;
  130. padding: 10px;
  131. margin-bottom: 15px;
  132. }
  133. margin: 40px auto;
  134. float: none;
  135. .login-dialog {
  136. position: relative;
  137. form {
  138. margin-top: 10px;
  139. .input-group {
  140. margin-bottom: 10px;
  141. }
  142. }
  143. .login-dialog-inner, .register-dialog-inner {
  144. top: 0;
  145. left: 0;
  146. padding: 42px 48px;
  147. background: #fff;
  148. position: absolute;
  149. margin-bottom: 40px;
  150. width: 100%;
  151. box-shadow: 0 1px 40px 0 rgba(0,0,0,0.3);
  152. border-radius: 3px;
  153. h2 {
  154. margin: 0 0 28px;
  155. font-size: 1.3em;
  156. text-align: center;
  157. }
  158. }
  159. p.bottom-text {
  160. text-align: right;
  161. margin: 20px 0 0;
  162. }
  163. }
  164. }
  165. } // }}}
  166. @media (max-width: $screen-sm-max) { // {{{
  167. } // }}}
  168. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { // {{{ tablet size
  169. .crowi.main-container { // {{{
  170. .main {
  171. article header {
  172. .bookmark-link {
  173. font-size: 1.3em;
  174. }
  175. h1 {
  176. font-size: 1.4em;
  177. margin-bottom: 0;
  178. }
  179. &.affix {
  180. width: 100%;
  181. }
  182. }
  183. }
  184. }
  185. } // }}}
  186. @media (max-width: $screen-xs-max) { // {{{ iPhone size
  187. .crowi.main-container { // {{{
  188. .main {
  189. article header {
  190. .bookmark-link {
  191. font-size: 1em;
  192. }
  193. h1 {
  194. font-size: 1.1em;
  195. }
  196. &.affix {
  197. h1 {
  198. font-size: 1.1em;
  199. }
  200. width: 100%;
  201. padding: 5px;
  202. box-shadow: 0 0px 2px #999;
  203. p.stopper {
  204. right: 20px;
  205. }
  206. }
  207. }
  208. }
  209. }
  210. }
  211. @media print { // {{{ printable style
  212. .crowi.main-container { // {{{
  213. padding: 30px;
  214. a:after {
  215. display: none !important;
  216. }
  217. .main {
  218. article header {
  219. border-bottom: solid 1px #666;
  220. h1 {
  221. font-size: 2em;
  222. color: #000;
  223. }
  224. }
  225. .revision-toc {
  226. float: none;
  227. font-size: .9em;
  228. border: solid 1px #aaa;
  229. border-radius: 5px;
  230. max-width: 100%;
  231. margin-bottom: 20px;
  232. .revision-toc-head {
  233. display: inline-block;
  234. float: none;
  235. }
  236. .revision-toc-content.collapse {
  237. display: block;
  238. height: auto;
  239. }
  240. }
  241. .meta {
  242. border-top: solid 1px #ccc;
  243. margin-top: 32px;
  244. color: #666;
  245. }
  246. }
  247. }
  248. } // }}}