_layout.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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. } // }}}
  90. } // }}}
  91. .crowi.single { // {{{
  92. } // }}}
  93. .crowi.single.nologin { // {{{
  94. //background: lighten($crowiHeaderBackground, 15%);
  95. background: $crowiHeaderBackground;
  96. .installer-header {
  97. margin-top: 100px;
  98. text-align: center;
  99. h1 {
  100. margin: 40px 0 40px;
  101. color: #fff;
  102. font-size: 1.6em;
  103. }
  104. }
  105. .main {
  106. margin: 0;
  107. padding: 0;
  108. }
  109. h1.login-page {
  110. margin-top: 80px;
  111. color: #fff;
  112. font-size: 1.6em;
  113. padding: 10px;
  114. text-align: center;
  115. text-shadow: 0px 0px 6px rgba(0,0,0,.5);
  116. line-height: 100%;
  117. }
  118. .login-dialog-container {
  119. margin: 40px auto;
  120. float: none;
  121. .login-dialog {
  122. position: relative;
  123. form {
  124. margin-top: 10px;
  125. .input-group {
  126. margin-bottom: 10px;
  127. }
  128. }
  129. .login-dialog-inner, .register-dialog-inner {
  130. top: 0;
  131. left: 0;
  132. padding: 42px 48px;
  133. background: #fff;
  134. position: absolute;
  135. margin-bottom: 40px;
  136. width: 100%;
  137. box-shadow: 0 1px 40px 0 rgba(0,0,0,0.3);
  138. border-radius: 3px;
  139. h2 {
  140. margin: 0 0 28px;
  141. font-size: 1.3em;
  142. text-align: center;
  143. }
  144. }
  145. p.bottom-text {
  146. text-align: right;
  147. margin: 20px 0 0;
  148. }
  149. }
  150. }
  151. } // }}}
  152. @media (max-width: $screen-sm-max) { // {{{
  153. } // }}}
  154. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { // {{{ tablet size
  155. .crowi.main-container { // {{{
  156. .main {
  157. article header {
  158. .bookmark-link {
  159. font-size: 1.3em;
  160. }
  161. h1 {
  162. font-size: 1.4em;
  163. margin-bottom: 0;
  164. }
  165. &.affix {
  166. width: 100%;
  167. }
  168. }
  169. }
  170. }
  171. } // }}}
  172. @media (max-width: $screen-xs-max) { // {{{ iPhone size
  173. .crowi.main-container { // {{{
  174. .main {
  175. article header {
  176. .bookmark-link {
  177. font-size: 1em;
  178. }
  179. h1 {
  180. font-size: 1.1em;
  181. }
  182. &.affix {
  183. h1 {
  184. font-size: 1.1em;
  185. }
  186. width: 100%;
  187. padding: 5px;
  188. box-shadow: 0 0px 2px #999;
  189. p.stopper {
  190. right: 20px;
  191. }
  192. }
  193. }
  194. }
  195. }
  196. }
  197. @media print { // {{{ printable style
  198. .crowi.main-container { // {{{
  199. padding: 30px;
  200. a:after {
  201. display: none !important;
  202. }
  203. .main {
  204. article header {
  205. border-bottom: solid 1px #666;
  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. } // }}}