2
0

_layout.scss 5.2 KB

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