_layout.scss 5.2 KB

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