_layout.scss 5.3 KB

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