_layout.scss 5.7 KB

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